當前位置: 首頁>>代碼示例>>PHP>>正文


PHP IPSText::htmlspecialchars方法代碼示例

本文整理匯總了PHP中IPSText::htmlspecialchars方法的典型用法代碼示例。如果您正苦於以下問題:PHP IPSText::htmlspecialchars方法的具體用法?PHP IPSText::htmlspecialchars怎麽用?PHP IPSText::htmlspecialchars使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在IPSText的用法示例。


在下文中一共展示了IPSText::htmlspecialchars方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: comment

 function comment($r, $parent, $settings)
 {
     $IPBHTML = "";
     // Adjust author name as needed
     if (empty($r['author']['member_id']) && !empty($r['author']['comment_author_name'])) {
         $r['author']['members_display_name'] = $r['author']['comment_author_name'];
     }
     $IPBHTML .= "<a id='comment_{$r['comment']['comment_id']}'></a>\n<div class=\"row\" id=\"comment-{$r['comment']['comment_id']}\">\n\t<div class='icon'>\n\t\t<img src='{$r['author']['pp_thumb_photo']}' width='{$r['author']['pp_thumb_width']}' height='{$r['author']['pp_thumb_height']}' class='photo' />\n\t</div>\n\t<div class='rowContent'>\n\t\t<h4>" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($r['author']) : '') . ", <span class='desc'>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($r['comment']['comment_date'], "short", 0)) . "</span></h4>\n\t\t{$r['comment']['comment_text']}\n\t</div>\n</div>";
     return $IPBHTML;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews-Live,代碼行數:10,代碼來源:skin_global_comments.php

示例2: __f__b02dcf2fa1efeb4a0b49e66f3160d9d5

 function __f__b02dcf2fa1efeb4a0b49e66f3160d9d5($rows, $links = "", $defaults = array())
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($rows as $session) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t\t<tr>\n\t\t\t\t<td class='row1'>\n\t\t\t\t\t<img src='{$session['_memberData']['pp_thumb_photo']}' alt=\"" . sprintf($this->lang->words['users_photo'], $session['_memberData']['members_display_name'] ? $session['_memberData']['members_display_name'] : $this->lang->words['global_guestname']) . "\" width='{$session['_memberData']['pp_thumb_width']}' height='{$session['_memberData']['pp_thumb_height']}' class='photo' />\n\t\t\t\t</td>\n\t\t\t\t<td class='" . IPSLib::next($this->registry->templateStriping["online"]) . "'>\n\t\t\t\t\t" . ($session['member_name'] ? "" . ($session['member_id'] ? "\n\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$session['member_id']}", "public", ''), "{$session['seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'>" . IPSMember::makeNameFormatted($session['member_name'], $session['member_group']) . "</a>\n\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t" . IPSMember::makeNameFormatted($session['member_name'], $session['member_group']) . "\n\t\t\t\t\t\t") . "" : "\n\t\t\t\t\t\t{$this->lang->words['global_guestname']}\n\t\t\t\t\t") . "\n\t\t\t\t\t" . ($session['login_type'] == 1 ? "" . ($this->memberData['g_access_cp'] ? "*" : "") . "" : "") . "\n\t\t\t\t\t" . ($this->memberData['g_access_cp'] ? "\n\t\t\t\t\t\t<span class='ip'>( {$session['ip_address']} )</span>\n\t\t\t\t\t" : "") . "\n\t\t\t\t</td>\n\t\t\t\t<td class='" . IPSLib::next($this->registry->templateStriping["online"]) . "'>\n\t\t\t\t\t" . (!$session['where_line'] || $session['in_error'] ? "\n\t\t\t\t\t\t{$this->lang->words['board_index']}\n\t\t\t\t\t" : "" . (($session['where_link'] and !$session['where_line_more']) ? "\n\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("{$session['where_link']}", "public", ''), "", "") . "'>\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t{$session['where_line']} \n\t\t\t\t\t\t" . ($session['where_line_more'] ? "&nbsp;\n\t\t\t\t\t\t\t" . ($session['_whereLinkSeo'] ? "\n\t\t\t\t\t\t\t\t<a href='{$session['_whereLinkSeo']}'>\n\t\t\t\t\t\t\t" : "" . ($session['where_link'] ? "<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("{$session['where_link']}", "public", ''), "", "") . "'>" : "") . "") . "\n\t\t\t\t\t\t\t{$session['where_line_more']}\n\t\t\t\t\t\t\t" . ($session['where_link'] ? "</a>" : "") . "" : "" . ($session['where_link'] ? "</a>" : "") . "") . "") . "\n\t\t\t\t</td>\n\t\t\t\t<td class='" . IPSLib::next($this->registry->templateStriping["online"]) . "'>\n\t\t\t\t\t" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($session['running_time'], "long", 1)) . "\n\t\t\t\t</td>\n\t\t\t\t<td class='" . IPSLib::next($this->registry->templateStriping["online"]) . "'>\n\t\t\t\t\t" . (($session['member_id'] and $session['member_name']) ? "<ul class='user_controls clear'>\n\t\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $session['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "" . (IPSMember::checkFriendStatus($session['member_id']) ? "\n\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_friend' id='friend_online_{$session['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=remove&amp;member_id={$session['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['remove_friend']}'>" . $this->registry->getClass('output')->getReplacement("remove_friend") . "</a></li>\n\t\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_not_friend' id='friend_online_{$session['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=add&amp;member_id={$session['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['add_friend']}'>" . $this->registry->getClass('output')->getReplacement("add_friend") . "</a></li>\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t") . "" : "") . "\n\t\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $session['member_id'] and $this->memberData['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members')) ? "\n\t\t\t\t\t\t\t\t<li class='pm_button' id='pm_online_{$session['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$session['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['pm_member']}'>" . $this->registry->getClass('output')->getReplacement("send_msg") . "</a></li>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t" . (($session['memberData']['has_blog'] and IPSLib::appIsInstalled('blog')) ? "\n\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=blog&amp;module=display&amp;section=blog&amp;show_members_blogs={$session['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_blog']}'>" . $this->registry->getClass('output')->getReplacement("blog_link") . "</a></li>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t" . (($session['memberData']['has_gallery'] and IPSLib::appIsInstalled('gallery')) ? "\n\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=gallery&amp;module=user&amp;section=user&amp;user={$session['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_gallery']}'>" . $this->registry->getClass('output')->getReplacement("gallery_link") . "</a></li>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t</ul>" : "\n\t\t\t\t\t\t<span class='desc'>{$this->lang->words['no_options_available']}</span>\n\t\t\t\t\t") . "\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:mover5,項目名稱:imobackup,代碼行數:12,代碼來源:skin_online.php

示例3: __f__5d3660a62477933eaa026ede06d9eee7

 function __f__5d3660a62477933eaa026ede06d9eee7($forum_data, $announce_data, $topic_data, $other_data, $multi_mod_data, $sub_forum_data, $footer_filter, $active_user_data, $mod_data, $inforum = 1, $_data = '')
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($_data['forum_data'] as $forum_id => $forum_data) {
         $__iteratorCount++;
         $_ips___x_retval .= "\r\n\t\t\t<forum>\r\n\t\t\t\t<id>{$forum_data['id']}</id>\r\n\t\t\t\t<title><![CDATA[{$forum_data['name']}]]></title>\r\n\t\t\t\t<url><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showforum={$forum_data['id']}", "public", ''), "{$forum_data['name_seo']}", "showforum") . "]]></url>\r\n\t\t\t\t<description><![CDATA[{$forum_data['description']}]]></description>\r\n\t\t\t\t\t" . ($forum_data['redirect_on'] ? "\t\t\t\t\t\t\t\r\n\t\t\t\t<type>redirect</type>\r\n\t\t\t\t\t" : "<type>{$forum_data['status']}</type>\r\n\t\t\t\t<topics>{$forum_data['topics']}</topics>\r\n\t\t\t\t<replies>{$forum_data['posts']}</replies>\r\n\t\t\t\t\t\t" . ($forum_data['_has_unread'] ? "\r\n\t\t\t\t\t\t\t<isRead>0</isRead>\r\n\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t\t<isRead>1</isRead>\r\n\t\t\t\t\t\t") . "\t\t\t\t\t\t\r\n\t\t\t\t<lastPost>\r\n\t\t\t\t\t\t" . ($forum_data['hide_last_info'] ? "\r\n\t\t\t\t\t<name>{$this->lang->words['f_protected']}</name>\r\n\t\t\t\t\t\t" : "<date>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($forum_data['last_post'], "DATE", 0)) . "</date>\r\n\t\t\t\t\t<name><![CDATA[{$forum_data['last_title']}]]></name>\r\n\t\t\t\t\t<id>{$forum_data['last_id']}</id>\r\n\t\t\t\t\t<url><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showtopic={$forum_data['last_id']}&amp;view=getnewpost", "public", ''), "{$forum_data['seo_last_title']}", "showtopic") . "]]></url>\r\n\t\t\t\t\t<user>\r\n\t\t\t\t\t\t\t" . ($forum_data['last_poster_id'] ? "\t\t\t\t\t\t\r\n\t\t\t\t\t\t<id>{$forum_data['last_poster_id']}</id>\r\n\t\t\t\t\t\t<name><![CDATA[{$forum_data['last_poster_name']}]]></name>\r\n\t\t\t\t\t\t<url><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$forum_data['last_poster_id']}", "public", ''), "{$forum_data['seo_last_name']}", "showuser") . "]]></url>\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t<id>0</id>\r\n\t\t\t\t\t\t<name><![CDATA[{$this->settings['guest_name_pre']}{$forum_data['last_poster_name']}{$this->settings['guest_name_suf']}]]></name>\r\n\t\t\t\t\t\t<url></url>\r\n\t\t\t\t\t\t\t") . "\r\n\t\t\t\t\t</user>") . "\r\n\t\t\t\t</lastPost>") . "\r\n\t\t\t</forum>\r\n\t\t\t\r\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews,代碼行數:12,代碼來源:skin_forum.php

示例4: __f__7046da7023dc6898b789bfa2de184ba2

 function __f__7046da7023dc6898b789bfa2de184ba2($rows, $links = "", $defaults = array())
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($rows as $session) {
         $__iteratorCount++;
         $_ips___x_retval .= "\r\n\t\t\t\t\t<tr class='" . IPSLib::next($this->registry->templateStriping["online"]) . "'>\r\n\t\t\t\t\t\t<td>" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userSmallPhoto') ? $this->registry->getClass('output')->getTemplate('global')->userSmallPhoto(array_merge($session['_memberData'], array('alt' => sprintf($this->lang->words['users_photo'], $session['_memberData']['members_display_name'] ? $session['_memberData']['members_display_name'] : $this->lang->words['global_guestname'])))) : '') . "</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t" . ($session['_memberData']['member_id'] ? "\r\n\t\t\t\t\t\t\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard(array_merge($session['_memberData'], array('members_display_name' => IPSMember::makeNameFormatted($session['_memberData']['members_display_name'], $session['_memberData']['member_group_id'])))) : '') . "\r\n\t\t\t\t\t\t\t" : "" . ($session['member_name'] ? "\r\n\t\t\t\t\t\t\t\t\t" . IPSMember::makeNameFormatted($session['member_name'], $session['member_group']) . "\r\n\t\t\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t\t\t\t{$this->lang->words['global_guestname']}\r\n\t\t\t\t\t\t\t\t") . "") . "\r\n\t\t\t\t\t\t\t" . ($session['login_type'] == 1 ? "" . ($this->memberData['g_access_cp'] || $session['_memberData']['member_id'] == $this->memberData['member_id'] ? "*" : "") . "" : "") . "\r\n\t\t\t\t\t\t\t" . ($this->memberData['g_is_supmod'] ? "\r\n\t\t\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t\t\t<span class='ip desc lighter ipsText_smaller'>({$session['ip_address']})</span>\r\n\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t" . (!$session['where_line'] || $session['in_error'] ? "\r\n\t\t\t\t\t\t\t\t{$this->lang->words['board_index']}\r\n\t\t\t\t\t\t\t" : "" . (($session['where_link'] and !$session['where_line_more']) ? "" . ($session['_whereLinkSeo'] ? "\r\n\t\t\t\t\t\t\t\t\t\t<a href='{$session['_whereLinkSeo']}'>\r\n\t\t\t\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("{$session['where_link']}", "public", ''), "", "") . "'>\r\n\t\t\t\t\t\t\t\t\t") . "" : "") . "\r\n\t\t\t\t\t\t\t\t{$session['where_line']} \r\n\t\t\t\t\t\t\t\t" . ($session['where_line_more'] ? "&nbsp;\r\n\t\t\t\t\t\t\t\t\t" . ($session['_whereLinkSeo'] ? "\r\n\t\t\t\t\t\t\t\t\t\t<a href='{$session['_whereLinkSeo']}'>\r\n\t\t\t\t\t\t\t\t\t" : "" . ($session['where_link'] ? "<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("{$session['where_link']}", "public", ''), "", "") . "'>" : "") . "") . "\r\n\t\t\t\t\t\t\t\t\t{$session['where_line_more']}\r\n\t\t\t\t\t\t\t\t\t" . ($session['where_link'] ? "</a>" : "") . "" : "" . ($session['where_link'] ? "</a>" : "") . "") . "") . "\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($session['running_time'], "long", 1)) . "\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t" . (($session['member_id'] and $session['member_name']) ? "<ul class='ipsList_inline ipsList_nowrap right'>\r\n\t\t\t\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $session['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "" . (IPSMember::checkFriendStatus($session['member_id']) ? "\r\n\t\t\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_friend' id='friend_online_{$session['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=remove&amp;member_id={$session['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['remove_friend']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("remove_friend") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_not_friend' id='friend_online_{$session['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=add&amp;member_id={$session['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['add_friend']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("add_friend") . "</a></li>\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t") . "" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $session['member_id'] and $this->memberData['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members')) ? "\r\n\t\t\t\t\t\t\t\t\t\t<li class='pm_button' id='pm_online_{$session['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$session['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['pm_member']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("send_msg") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . (($session['memberData']['has_blog'] and IPSLib::appIsInstalled('blog')) ? "\r\n\t\t\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=blog&amp;module=display&amp;section=blog&amp;show_members_blogs={$session['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_blog']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("blog_link") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . (($session['memberData']['has_gallery'] and IPSLib::appIsInstalled('gallery')) ? "\r\n\t\t\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=gallery&amp;user={$session['member_id']}", "public", ''), "{$session['memberData']['members_seo_name']}", "useralbum") . "' title='{$this->lang->words['view_gallery']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("gallery_link") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t</ul>" : "\r\n\t\t\t\t\t\t\t\t<span class='desc'>{$this->lang->words['no_options_available']}</span>\r\n\t\t\t\t\t\t\t") . "\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t\r\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews,代碼行數:12,代碼來源:skin_online.php

示例5: __f__852ffa03cc7ed989c57690205007c21a

 function __f__852ffa03cc7ed989c57690205007c21a($lastvisit = "", $stats = array(), $cat_data = array(), $show_side_blocks = true, $side_blocks = array(), $_data = '')
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($_data['forum_data'] as $forum_id => $forum_data) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t\t\t\t<forum>\n\t\t\t\t\t\t<id>{$forum_data['id']}</id>\n\t\t\t\t\t\t<name><![CDATA[{$forum_data['name']}]]></name>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<url><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showforum={$forum_data['id']}", "public", ''), "{$forum_data['name_seo']}", "showforum") . "]]></url>\n\t\t\t\t\t\t<description><![CDATA[{$forum_data['description']}]]></description>\n\t\t\t\t\t\t\t" . ($forum_data['redirect_on'] ? "\t\t\t\t\t\t\t\n\t\t\t\t\t\t<redirect>1</redirect>\n\t\t\t\t\t\t<redirectHits>{$forum_data['redirect_hits']}</redirectHits>\n\t\t\t\t\t\t<redirect_url><![CDATA[{$forum_data['redirect_url']}]]></redirect_url>\n\t\t\t\t\t\t\t" : "" . ($forum_data['_has_unread'] ? "\n\t\t\t\t\t\t\t<isRead>0</isRead>\n\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t<isRead>1</isRead>\n\t\t\t\t\t\t") . "\n\t\t\t\t\t\t<redirect>0</redirect>\n\t\t\t\t\t\t<type>{$forum_data['status']}</type>\n\t\t\t\t\t\t<topics>{$forum_data['topics']}</topics>\n\t\t\t\t\t\t<replies>{$forum_data['posts']}</replies>\n\t\t\t\t\t\t<lastpost>\n\t\t\t\t\t\t\t\t" . ($forum_data['hide_last_info'] ? "\n\t\t\t\t\t\t\t<name>{$this->lang->words['f_protected']}</name>\n\t\t\t\t\t\t\t\t" : "<date>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($forum_data['last_post'], "DATE", 0)) . "</date>\n\t\t\t\t\t\t\t<name><![CDATA[{$forum_data['last_title']}]]></name>\n\t\t\t\t\t\t\t<id>{$forum_data['last_id']}</id>\n\t\t\t\t\t\t\t<url><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showtopic={$forum_data['last_id']}&amp;view=getnewpost", "public", ''), "{$forum_data['seo_last_title']}", "showtopic") . "]]></url>\n\t\t\t\t\t\t\t<user>\n\t\t\t\t\t\t\t\t" . ($forum_data['last_poster_id'] ? "\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<id>{$forum_data['last_poster_id']}</id>\n\t\t\t\t\t\t\t\t<name><![CDATA[{$forum_data['last_poster_name']}]]></name>\n\t\t\t\t\t\t\t\t<url><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$forum_data['last_poster_id']}", "public", ''), "{$forum_data['seo_last_name']}", "showuser") . "]]></url>\n\t\t\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t<id>0</id>\n\t\t\t\t\t\t\t\t<name><![CDATA[{$this->settings['guest_name_pre']}{$forum_data['last_poster_name']}{$this->settings['guest_name_suf']}]]></name>\n\t\t\t\t\t\t\t\t<url></url>\n\t\t\t\t\t\t\t\t") . "\n\t\t\t\t\t\t\t</user>") . "\n\t\t\t\t\t\t</lastpost>") . "\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t" . (($forum_data['show_subforums'] and count($forum_data['subforums']) and $forum_data['show_subforums']) ? "\n\t\t\t\t\t\t<subforums>\n\t\t\t\t\t\t\t\t\t\t\t" . $this->__f__3f7af29c3c1c98cfbaa59ecd61896319($lastvisit, $stats, $cat_data, $show_side_blocks, $side_blocks, $_data, $forum_id, $forum_data) . "\t\t\t\t\t\t</subforums>\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t</forum>\n\t\t\t\t\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:mover5,項目名稱:imobackup,代碼行數:12,代碼來源:skin_boards.php

示例6: __f__a51c649dac47de7fc673a6fcd76e6a74

 function __f__a51c649dac47de7fc673a6fcd76e6a74($topic, $replies, $members, $jump = "")
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($replies as $msg_id => $msg) {
         $__iteratorCount++;
         $_ips___x_retval .= "\r\n\t\t<messageReply>\r\n\t\t\t<user>\r\n\t\t\t\t<id>{$msg['msg_author_id']}</id>\r\n\t\t\t\t<name><![CDATA[{$members[$msg['msg_author_id']]['members_display_name']}]]></name>\r\n\t\t\t\t<date>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($msg['msg_date'], "DATE", 0)) . "</date>\r\n\t\t\t\t<avatar><![CDATA[{$members[$msg['msg_author_id']]['pp_thumb_photo']}]]></avatar>\r\n\t\t\t\t<url><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$msg['msg_author_id']}", "public", ''), "{$members[$msg['msg_author_id']]['members_seo_name']}", "showuser") . "]]></url>\r\n\t\t\t</user>\t\r\n\t\t\t<date>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($msg['post']['post_date'], "DATE", 0)) . "</date>\r\n\t\t\t<text><![CDATA[{$msg['msg_post']}\r\n\t\t\t{$msg['attachmentHtml']}]]></text>\r\n\t\t\t<options>\r\n\t\t\t" . (($topic['_canReport'] and $this->memberData['member_id']) ? "\r\n\t\t\t\t<reportURL><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=reports&amp;rcom=messages&amp;topicID={$this->request['topicID']}&amp;st={$this->request['st']}&amp;msg={$msg['msg_id']}", "public", ''), "", "") . "]]></reportURL>\r\n\t\t\t" : "") . "\r\n\t\t\t\r\n\t\t\t" . ($msg['_canEdit'] === TRUE ? "\r\n\t\t\t\t<editURL><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("module=messaging&amp;section=send&amp;do=editMessage&amp;topicID={$topic['mt_id']}&amp;msgID={$msg['msg_id']}", "publicWithApp", ''), "", "") . "]]></editURL>\r\n\t\t\t" : "") . "\r\n\t\t\t\r\n\t\t\t" . ($msg['_canDelete'] === TRUE && $msg['msg_is_first_post'] != 1 ? "\r\n\t\t\t\t<deleteURL><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("module=messaging&amp;section=send&amp;do=deleteReply&amp;topicID={$topic['mt_id']}&amp;msgID={$msg['msg_id']}&amp;authKey={$this->member->form_hash}", "publicWithApp", ''), "", "") . "]]></deleteURL>\r\n\t\t\t" : "") . "\r\n\t\t\t\r\n\t\t\t" . (($topic['_canReply'] and empty($topic['_everyoneElseHasLeft'])) ? "\r\n\t\t\t\t<replyURL><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("module=messaging&amp;section=send&amp;do=replyForm&amp;topicID={$topic['mt_id']}&amp;msgID={$msg['msg_id']}", "publicWithApp", ''), "", "") . "]]></replyURL>\r\n\t\t\t" : "") . "\r\n\t\t\t\t</options>\t\t\t\t\t\t\t\r\n\t\t</messageReply>\r\n\t\r\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews,代碼行數:12,代碼來源:skin_messaging.php

示例7: commentHidden

 function commentHidden($r, $parent, $settings)
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_global_comments', $this->_funcHooks['commentHidden'])) {
         $count_73173e5d6299fd918222b6c693fcfd1b = is_array($this->functionData['commentHidden']) ? count($this->functionData['commentHidden']) : 0;
         $this->functionData['commentHidden'][$count_73173e5d6299fd918222b6c693fcfd1b]['r'] = $r;
         $this->functionData['commentHidden'][$count_73173e5d6299fd918222b6c693fcfd1b]['parent'] = $parent;
         $this->functionData['commentHidden'][$count_73173e5d6299fd918222b6c693fcfd1b]['settings'] = $settings;
     }
     // Adjust author name as needed
     if (empty($r['author']['member_id']) && !empty($r['author']['comment_author_name'])) {
         $r['author']['members_display_name'] = $r['author']['comment_author_name'];
     }
     $IPBHTML .= "" . ((!$this->hasEditJs and !$parent['_canComment'] and $r['comment']['_canEdit']) ? "\r\n\t" . (method_exists($this->registry->getClass('output')->getTemplate('global_comments'), 'getEditJs') ? $this->registry->getClass('output')->getTemplate('global_comments')->getEditJs() : '') . "\r\n" : "") . "\r\n<a id='comment_{$r['comment']['comment_id']}'></a>\r\n<div data-commentid='{$r['comment']['comment_id']}' class='ipsComment clearfix moderated' id='comment_id_{$r['comment']['comment_id']}'>\r\n\t<div class='ipsComment_author'>\r\n\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($r['author']) : '') . "<br />\r\n\t</div>\t\r\n\t<div id='comment_{$r['comment']['comment_id']}' class='ipsComment_comment'>\r\n\t\t<div class='comment_content' id='hidden_text_{$r['comment']['comment_id']}'>\r\n\t\t\t{$this->lang->words['post_deleted_by']} <a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$r['sD']['sdl_obj_member_id']}", "public", ''), "{$r['sD']['member']['members_seo_name']}", "showuser") . "'>{$r['sD']['member']['members_display_name']}</a> {$this->lang->words['on']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($r['sD']['sdl_obj_date'], "long", 0)) . ".\r\n\t\t\t<p class='desc'>" . ($r['sD']['sdl_obj_reason'] ? "{$r['sD']['sdl_obj_reason']}" : "{$this->lang->words['no_reason_given']}") . "</p>\r\n\t\t</div>\r\n\t\t<div class='comment_content' id='comment_content_{$r['comment']['comment_id']}' style='display:none'>\r\n\t\t\t{$r['comment']['comment_text']}\r\n\t\t</div>\r\n\t\t<ul class='ipsComment_controls ipsList_inline ipsType_smaller'>\r\n\t\t\t" . ($parent['_canModerate'] ? "\r\n\t\t\t\t<li class='right'>&nbsp;&nbsp;<input class=\"ipsComment_mod\" type='checkbox' name='' id='mod_comment_id_{$r['comment']['comment_id']}' data-status='{$r['comment']['comment_approved']}' /></li>\r\n\t\t\t" : "") . "\r\n\t\t\t<li>\r\n\t\t\t\t<span class='clickable' onclick=\"\$('hidden_text_{$r['comment']['comment_id']}').toggle();\$('comment_content_{$r['comment']['comment_id']}').toggle();\">{$this->lang->words['comment_hidden_content']}</span>\r\n\t\t\t</li>\r\n\t\t\t" . ($r['comment']['_canUnhide'] ? "\r\n\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("{$settings['baseUrl']}&amp;do=unhide&amp;comment_id={$r['comment']['comment_id']}&amp;auth_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['unhide_link']}'>{$this->lang->words['unhide_link']}</a></li>\r\n\t\t\t" : "") . "\r\n\t\t\t" . ($r['comment']['_canDelete'] ? "\r\n\t\t\t\t<li>\r\n\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("{$settings['baseUrl']}&amp;do=delete&amp;comment_id={$r['comment']['comment_id']}&amp;auth_key={$this->member->form_hash}", "public", ''), "", "") . "' id='delete_comment_{$r['comment']['comment_id']}' class='delete_comment' title='{$this->lang->words['delete_comment']}' data-confirmaction=\"true\">{$this->lang->words['delete_link']}</a>\r\n\t\t\t\t</li>\r\n\t\t\t" : "") . "\r\n\t\t</ul>\r\n\t</div>\r\n</div>";
     return $IPBHTML;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews,代碼行數:16,代碼來源:skin_global_comments.php

示例8: comment

 function comment($r, $parent, $settings)
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_global_comments', $this->_funcHooks['comment'])) {
         $count_66b4382d97e16dd55060dccf06b88ac7 = is_array($this->functionData['comment']) ? count($this->functionData['comment']) : 0;
         $this->functionData['comment'][$count_66b4382d97e16dd55060dccf06b88ac7]['r'] = $r;
         $this->functionData['comment'][$count_66b4382d97e16dd55060dccf06b88ac7]['parent'] = $parent;
         $this->functionData['comment'][$count_66b4382d97e16dd55060dccf06b88ac7]['settings'] = $settings;
     }
     // Adjust author name as needed
     if (empty($r['author']['member_id']) && !empty($r['author']['comment_author_name'])) {
         $r['author']['members_display_name'] = $r['author']['comment_author_name'];
     }
     $IPBHTML .= "<a id='comment_{$r['comment']['comment_id']}'></a>\n<div class=\"row\" id=\"comment-{$r['comment']['comment_id']}\">\n\t<div class='icon'>\n\t\t<img src='{$r['author']['pp_thumb_photo']}' width='{$r['author']['pp_thumb_width']}' height='{$r['author']['pp_thumb_height']}' class='photo' />\n\t</div>\n\t<div class='rowContent'>\n\t\t<h4>" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($r['author']) : '') . ", <span class='desc'>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($r['comment']['comment_date'], "short", 0)) . "</span></h4>\n\t\t{$r['comment']['comment_text']}\n\t</div>\n</div>";
     return $IPBHTML;
 }
開發者ID:mover5,項目名稱:imobackup,代碼行數:16,代碼來源:skin_global_comments.php

示例9: fromPlainTextArea

 /**
  * Text passed from a plain text editor
  * @param string $content
  */
 public function fromPlainTextArea($content)
 {
     /* PHP htmlspecialchars() method can return empty string, causing "You must enter a post" error erroneously */
     $content = IPSText::htmlspecialchars($content);
     $parser = new class_text_parser_legacy();
     $this->passSettings($parser);
     $content = $parser->preEditor($content);
     /* When there is BBcode, it is processed and linebreaks turn to BR so watch for this */
     if (!preg_match('#<br([^>]+?)?>#i', $content)) {
         $content = nl2br($content);
     }
     return $content;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews,代碼行數:17,代碼來源:composite.php

示例10: __f__2d5fb08b1e33f0c2ec3ed40a555c4a33

 function __f__2d5fb08b1e33f0c2ec3ed40a555c4a33($topics)
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($topics as $r) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t<li class='clearfix'>\n\t\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userSmallPhoto') ? $this->registry->getClass('output')->getTemplate('global')->userSmallPhoto($r) : '') . "\n\t\t\t<div class='list_content'>\n\t\t\t\t<a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showtopic={$r['tid']}", "public", ''), "{$r['title_seo']}", "showtopic") . "\" rel='bookmark' class='ipsType_small' title='" . strip_tags($r['topic_title']) . " {$this->lang->words['topic_started_on']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($r['start_date'], "LONG", 0)) . "'>{$r['topic_title']}</a>\n\t\t\t\t<p class='desc ipsType_smaller'>\n\t\t\t\t\t" . ($r['members_display_name'] ? "" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($r) : '') . "" : "{$this->settings['guest_name_pre']}{$r['starter_name']}{$this->settings['guest_name_suf']}") . "\n\t\t\t\t\t- " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($r['start_date'], "short", 0)) . "\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</li>\n\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews-Live,代碼行數:12,代碼來源:skin_boards.php

示例11: tabSingleColumn

 function tabSingleColumn($row = array(), $read_more_link = '', $url = '', $title = '')
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_profile', $this->_funcHooks['tabSingleColumn'])) {
         $count_cd97a7c3902c5e3d4c36385431362c7f = is_array($this->functionData['tabSingleColumn']) ? count($this->functionData['tabSingleColumn']) : 0;
         $this->functionData['tabSingleColumn'][$count_cd97a7c3902c5e3d4c36385431362c7f]['row'] = $row;
         $this->functionData['tabSingleColumn'][$count_cd97a7c3902c5e3d4c36385431362c7f]['read_more_link'] = $read_more_link;
         $this->functionData['tabSingleColumn'][$count_cd97a7c3902c5e3d4c36385431362c7f]['url'] = $url;
         $this->functionData['tabSingleColumn'][$count_cd97a7c3902c5e3d4c36385431362c7f]['title'] = $title;
     }
     $IPBHTML .= "<post>\n<title><![CDATA[" . IPSText::truncate($title, 90) . "]]></title>\n<url><![CDATA[{$url}]]></url>\n<text><![CDATA[{$row['post']}]]></text>\n<date>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($row['_raw_date'], "long", 0)) . "</date>\n</post>";
     return $IPBHTML;
 }
開發者ID:Advanture,項目名稱:Online-RolePlay,代碼行數:13,代碼來源:skin_profile.php

示例12: __f__4364d24842d3e33a6adb7dcd5d9edd38

 function __f__4364d24842d3e33a6adb7dcd5d9edd38($rows)
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($rows as $info) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t\t<tr class='" . IPSLib::next($this->registry->templateStriping["top_posters"]) . "'>\n\t\t\t\t<td>" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userSmallPhoto') ? $this->registry->getClass('output')->getTemplate('global')->userSmallPhoto(array_merge($info, array('alt' => sprintf($this->lang->words['users_photo'], $info['members_display_name'])))) : '') . "</td>\n\t\t\t\t<td>" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($info) : '') . "</td>\n\t\t\t\t<td class='altrow'>\n\t\t\t\t\t" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($info['joined'], "joined", 0)) . "\n\t\t\t\t</td>\n\t\t\t\t<td class='short'>\n\t\t\t\t\t" . $this->registry->getClass('class_localization')->formatNumber($info['posts']) . "\n\t\t\t\t</td>\n\t\t\t\t<td class='altrow short'>\n\t\t\t\t\t" . $this->registry->getClass('class_localization')->formatNumber($info['tpost']) . "\n\t\t\t\t</td>\n\t\t\t\t<td class='short'>\n\t\t\t\t\t{$info['today_pct']}%\n\t\t\t\t</td>\n\t\t\t\t<td class='altrow short'>\n\t\t\t\t\t<ul class='ipsList_inline right'>\n\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $info['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "" . (IPSMember::checkFriendStatus($info['member_id']) ? "\n\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_friend' id='friend_xxx_{$info['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=remove&amp;member_id={$info['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['remove_friend']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("remove_friend") . "</a></li>\n\t\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_not_friend' id='friend_xxx_{$info['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=friends&amp;do=add&amp;member_id={$info['member_id']}&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['add_friend']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("add_friend") . "</a></li>\n\t\t\t\t\t\t\t") . "" : "") . "\n\t\t\t\t\t\t" . (($this->memberData['g_use_pm'] and $this->memberData['member_id'] != $info['member_id'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members')) ? "\n\t\t\t\t\t\t\t<li class='pm_button' id='pm_xxx_{$info['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$info['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['pm_member']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("send_msg") . "</a></li>\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t" . (($info['has_blog'] and IPSLib::appIsInstalled('blog')) ? "\n\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=blog&amp;module=display&amp;section=blog&amp;show_members_blogs={$info['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_blog']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("blog_link") . "</a></li>\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t" . (($info['has_gallery'] and IPSLib::appIsInstalled('gallery')) ? "\n\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=gallery&amp;user={$info['member_id']}", "public", ''), "{$info['members_seo_name']}", "useralbum") . "' title='{$this->lang->words['view_gallery']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("gallery_link") . "</a></li>\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t</ul>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:Advanture,項目名稱:Online-RolePlay,代碼行數:12,代碼來源:skin_stats.php

示例13: html_showDebugInfo

 /**
  * Returns debug data
  *
  * @access	protected
  * @return	string		Debug HTML
  */
 public function html_showDebugInfo()
 {
     $input = "";
     $queries = "";
     $sload = "";
     $stats = "";
     //-----------------------------------------
     // Form & Get & Skin
     //-----------------------------------------
     if ($this->settings['debug_level'] >= 2) {
         $stats .= "<br />\n<div class='tableborder'>\n<div class='subtitle'>IPSDebug сообщения</div><div class='row1' style='padding:6px'>\n";
         foreach (IPSDebug::getMessages() as $dx => $entry) {
             $stats .= "<strong>{$entry}</strong><br />\n";
         }
         $stats .= "</div>\n</div>";
         $stats .= "<br />\n<div class='tableborder'>\n<div class='subtitle'>IPSMember кеши</div><div class='row1' style='padding:6px'>\n";
         if (is_array(IPSMember::$debugData)) {
             foreach (IPSMember::$debugData as $entry) {
                 $stats .= "<strong>{$entry}</strong><br />\n";
             }
         }
         $stats .= "</div>\n</div>";
         /* Included Files */
         if (function_exists('get_included_files')) {
             $__files = get_included_files();
             $stats .= "<br />\n<div class='tableborder'>\n<div class='subtitle'>(" . count($__files) . ") подключенных файлов</div><div class='row1' style='padding:6px'>\n";
             foreach ($__files as $__f) {
                 $stats .= "<strong>{$__f}</strong><br />";
             }
             $stats .= '</div></div>';
         }
         /* Caches */
         $stats .= "<br />\n<div class='tableborder'>\n<div class='subtitle'>Загруженных кешей</div><div class='row1' style='padding:6px'>\n";
         $_total = 0;
         if (is_array($this->cache->debugInfo)) {
             foreach ($this->cache->debugInfo as $key => $data) {
                 $_size = $data['size'];
                 $_total += $_size;
                 $stats .= "<strong>{$key}</strong> - " . IPSLib::sizeFormat($_size) . "<br />\n";
             }
         }
         $stats .= "<strong>ИТОГО: " . IPSLib::sizeFormat($_total) . "</strong></div>\n</div>";
         /* Loaded classes */
         $loadedClasses = $this->registry->getLoadedClassesAsArray();
         $stats .= "<br />\n<div class='tableborder'>\n<div class='subtitle'>Загруженные классы через ipsRegistry::getClass()</div><div class='row1' style='padding:6px'>\n";
         if (is_array($loadedClasses)) {
             foreach ($loadedClasses as $entry) {
                 $stats .= "<strong>{$entry}</strong><br />\n";
             }
         }
         $stats .= "</div>\n</div>";
         $stats .= "<br />\n<div class='tableborder'>\n<div class='subtitle'>FORM и GET данные</div><div class='row1' style='padding:6px'>\n";
         foreach ($this->request as $k => $v) {
             if (in_array(strtolower($k), array('pass', 'password'))) {
                 $v = '*******';
             }
             $stats .= "<strong>{$k}</strong> = {$v}<br />\n";
         }
         $stats .= "</div>\n</div>";
         $stats .= "<br />\n<div class='tableborder'>\n<div class='subtitle'>SKIN, MEMBER & TASK Info</div><div class='row1' style='padding:6px'>\n";
         while (list($k, $v) = each($this->skin)) {
             if (is_array($v)) {
                 continue;
             }
             if (strlen($v) > 120) {
                 $v = substr($v, 0, 120) . '...';
             }
             $stats .= "<strong>{$k}</strong> = " . IPSText::htmlspecialchars($v) . "<br />\n";
         }
         //-----------------------------------------
         // Stop E_ALL moaning...
         //-----------------------------------------
         $cache = $this->caches['systemvars'];
         $cache['task_next_run'] = $cache['task_next_run'] ? $cache['task_next_run'] : 0;
         $stats .= "<b>Следующая задача</b> = " . $this->registry->getClass('class_localization')->getDate($cache['task_next_run'], 'LONG') . "\n<br /><b>Время</b> = " . $this->registry->getClass('class_localization')->getDate(time(), 'LONG');
         $stats .= "<br /><b>Сейчас</b> = " . time();
         $stats .= "<p>Пользователь: last_visit: " . $this->memberData['last_visit'] . " / " . $this->registry->getClass('class_localization')->getDate($this->memberData['last_visit'], 'LONG') . "</p>";
         $stats .= "<p>Пользователь: uagent_key: " . $this->memberData['userAgentKey'] . "</p>";
         $stats .= "<p>Пользователь: uagent_type: " . $this->memberData['userAgentType'] . "</p>";
         $stats .= "<p>Пользователь: uagent_version: " . $this->memberData['userAgentVersion'] . "</p>";
         $stats .= "</div>\n</div>";
         $stats .= "<br />\n<div class='tableborder'>\n<div class='subtitle'>Загруженные PHP шаблоны</div><div class='row1' style='padding:6px'>\n";
         $stats .= "<strong>" . implode(", ", array_keys($this->output->compiled_templates)) . "</strong><br />\n";
         $stats .= "<strong>" . implode(", ", array_keys($this->output->loaded_templates)) . "</strong><br />\n";
         $stats .= "<strong>" . implode(", ", array_values($this->registry->getClass('class_localization')->loaded_lang_files)) . "</strong><br />\n";
         $stats .= "</div>\n</div>";
     }
     //-----------------------------------------
     // SQL
     //-----------------------------------------
     if ($this->settings['debug_level'] >= 3) {
         $stats .= "<br />\n<div class='tableborder' style='overflow:auto'>\n<div class='subtitle'>Запросы</div><div class='row1' style='padding:6px'>";
         foreach ($this->DB->obj['cached_queries'] as $q) {
             $q = htmlspecialchars($q);
//.........這裏部分代碼省略.........
開發者ID:Advanture,項目名稱:Online-RolePlay,代碼行數:101,代碼來源:htmlOutput.php

示例14: showNotification

 function showNotification($notification)
 {
     $IPBHTML = "";
     $IPBHTML .= "<fieldset class='ipsPad row2'>\n\t<h2>{$notification['notify_title']}</h2>\n\t<ul>\n\t\t<li class='field'>\n\t\t\t{$this->lang->words['notifyview_date']}\n\t\t\t<em>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($notification['notify_sent'], "long", 0)) . "</em>\n\t\t</li>\n\t</ul>\n</fieldset>\n<fieldset class='ipsPad row1'>\n\t<ul>\n\t\t<li class='field'>\n\t\t\t{$notification['notify_text']}\n\t\t</li>\n\t</ul>\n</fieldset>\n<fieldset class='ipsPad row2'>\n\t<ul>\n\t\t<li class='field short'>\n\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=usercp&amp;area=notificationlog", "public", ''), "", "") . "' class='input_submit'>{$this->lang->words['goback']}</a>\t\n\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=usercp&amp;tab=core&amp;area=removeNotifications&amp;do=remove&amp;secure_key={$this->member->form_hash}&amp;notifications[]={$notification['notify_id']}", "public", ''), "", "") . "' class='input_submit delete'>{$this->lang->words['deletenotification']}</a>\n\t\t</li>\n\t</ul>\n</fieldset>";
     return $IPBHTML;
 }
開發者ID:ConnorChristie,項目名稱:GrabViews-Live,代碼行數:6,代碼來源:skin_ucp.php

示例15: __f__4bb21481dfdf3d05eae9797c22290c2b

 function __f__4bb21481dfdf3d05eae9797c22290c2b($topic, $avg_post, $mod_logs = array())
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($mod_logs as $data) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t\t<tr class='" . IPSLib::next($this->registry->templateStriping["modlogs"]) . "'>\n\t\t\t\t<td class='altrow'>" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($data) : '') . "</td>\n\t\t\t\t<td>{$data['action']}</td>\n\t\t\t\t<td class=\"altrow\">" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($data['ctime'], "long", 0)) . "</td>\n\t\t\t</tr>\n\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
開發者ID:mover5,項目名稱:imobackup,代碼行數:12,代碼來源:skin_mod.php


注:本文中的IPSText::htmlspecialchars方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。