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;
 }
Beispiel #2
0
 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;
 }
 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;
 }
 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;
 }
Beispiel #5
0
 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;
 }
 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;
 }
 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;
 }
 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;
 }
Beispiel #9
0
 /**
  * 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;
 }
 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;
 }
 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;
 }
 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;
 }
 /**
  * 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);
             $q = str_ireplace("SELECT", "<span style='color:red'>SELECT</span>", $q);
             $q = preg_replace("/^UPDATE/i", "<span style='color:blue'>UPDATE</span>", $q);
             $q = preg_replace("/^DELETE/i", "<span style='color:orange'>DELETE</span>", $q);
             $q = preg_replace("/^INSERT/i", "<span style='color:green'>INSERT</span>", $q);
             $q = str_replace("LEFT JOIN", "<span style='color:red'>LEFT JOIN</span>", $q);
             $stats .= "<p style='padding:6px;border-bottom:1px solid black'>{$q}</p>\n";
         }
         if (count($this->DB->obj['shutdown_queries'])) {
             foreach ($this->DB->obj['shutdown_queries'] as $q) {
                 $q = htmlspecialchars($q);
                 $q = preg_replace("/^SELECT/i", "<span style='color:red'>SELECT</span>", $q);
                 $q = preg_replace("/^UPDATE/i", "<span style='color:blue'>UPDATE</span>", $q);
                 $q = preg_replace("/^DELETE/i", "<span style='color:orange'>DELETE</span>", $q);
                 $q = preg_replace("/^INSERT/i", "<span style='color:green'>INSERT</span>", $q);
                 $q = str_replace("LEFT JOIN", "<span style='color:red'>LEFT JOIN</span>", $q);
                 //$q = preg_replace( "/(".$this->settings['sql_tbl_prefix'].")(\S+?)([\s\.,]|$)/", "<span class='purple'>\\1\\2</span>\\3", $q );
                 $stats .= "<div style='background:#DEDEDE'><b>SHUTDOWN:</b> {$q}</div><br />\n";
             }
         }
         $stats .= "</div>\n</div>";
     }
     //-----------------------------------------
     // Memory usage
     //-----------------------------------------
     if (IPS_MEMORY_DEBUG_MODE and defined('IPS_MEMORY_START') and $this->memberData['g_access_cp']) {
         if (is_array(IPSDebug::$memory_debug)) {
             $memory .= "<br />\n<div class='tableborder'>\n<div class='subtitle'>MEMORY USAGE</div><div class='row1' style='padding:6px'>\n";
             $memory .= "<table cellpadding='4' cellspacing='0' border='0' width='100%'>\n";
             $_c = 0;
             foreach (IPSDebug::$memory_debug as $usage) {
                 $_col = $_c % 2 ? '#eee' : '#ddd';
                 $_c++;
                 if ($usage[1] > 500 * 1024) {
                     $_col .= ";color:#D00000";
                 } else {
                     if ($usage[1] < 10 * 1024) {
                         $_col .= ";color:darkgreen";
                     } else {
                         if ($usage[1] < 100 * 1024) {
                             $_col .= ";color:darkorange";
                         }
                     }
                 }
                 $memory .= "<tr><td width='60%' style='background-color:{$_col}' align='left'>{$usage[0]}</td><td style='background-color:{$_col}' align='left'><strong>" . IPSLib::sizeFormat($usage[1]) . "</strong></td></tr>";
             }
             $memory .= "</table></div></div>";
         }
         $end = memory_get_usage();
         $peak_end = function_exists('memory_get_peak_usage') ? memory_get_peak_usage() : memory_get_usage();
         $_used = $end - IPS_MEMORY_START;
         $peak_used = $peak_end - IPS_MEMORY_START;
         $stats .= $memory;
         $stats .= "Total Memory Used: " . IPSLib::sizeFormat($_used) . " (Peak:" . IPSLib::sizeFormat($peak_used) . ")";
     }
     if ($stats) {
         $stats = "\n\t\t\t\t\t  <div align='center' style='width:92%; margin:120px auto 20px auto; overflow:auto;'>\n\t\t\t\t\t   <div class='tableborder' align='left'>\n\t\t\t\t\t\t<div class='maintitle'>Debug Information (<a href='#' onclick=\"\$('debug').toggle(); return false;\">Toggle Debug Information</a>)</div>\n\t\t\t\t\t\t <div style='padding:5px;background:#8394B2;' id='debug'>{$stats}</div>\n\t\t\t\t\t   </div>\n\t\t\t\t\t  </div>";
     }
     return $stats;
 }
 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;
 }
Beispiel #15
0
 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;
 }
Beispiel #16
0
 /**
  * Form for adding/editing an RSS Export Stream
  *
  * @param	string	$type	add/edit
  * @return	@e void
  */
 public function rssExportForm($type = 'add')
 {
     /* INIT */
     $rss_export_id = $this->request['rss_export_id'] ? intval($this->request['rss_export_id']) : 0;
     $dd_sort = array(0 => array('DESC', $this->lang->words['ex_opt_desc']), 1 => array('ASC', $this->lang->words['ex_opt_asc']));
     $dd_order = array(0 => array('start_date', $this->lang->words['ex_opt_start']), 1 => array('last_post', $this->lang->words['ex_opt_last']), 2 => array('views', $this->lang->words['ex_opt_views']), 3 => array('starter_id', $this->lang->words['ex_opt_starter']), 4 => array('topic_rating_total', $this->lang->words['ex_opt_rating']));
     /* Check (please?) */
     if ($type == 'add') {
         /* Form Bits */
         $formcode = 'rssexport_add_save';
         $title = $this->lang->words['ex_createnew'];
         $button = $this->lang->words['ex_createnew'];
         /* Form Data */
         $rssstream = array('rss_export_id' => 0, 'rss_export_title' => '', 'rss_export_forums' => NULL, 'rss_export_desc' => '', 'rss_export_image' => '', 'rss_export_include_post' => 1, 'rss_export_enabled' => 1, 'rss_export_count' => '', 'rss_export_cache_time' => '', 'rss_export_sort' => '', 'rss_export_order' => '');
     } else {
         /* Form Data */
         $rssstream = $this->DB->buildAndFetch(array('select' => '*', 'from' => 'rss_export', 'where' => 'rss_export_id=' . $rss_export_id));
         if (!$rssstream['rss_export_id']) {
             $this->registry->output->global_message = $this->lang->words['ex_noid'];
             $this->rssExportOverview();
             return;
         }
         /* Form bits */
         $formcode = 'rssexport_edit_save';
         $title = $this->lang->words['ex_edit'] . $rssstream['rss_export_title'];
         $button = $this->lang->words['ex_save'];
     }
     /* Build forum multi select list */
     $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('forums') . "/sources/classes/forums/admin_forum_functions.php", 'admin_forum_functions', 'forums');
     $aff = new $classToLoad($this->registry);
     $aff->forumsInit();
     $dropdown = $aff->adForumsForumList(1);
     $rss_export_forums = (isset($this->request['rss_export_forums']) and is_array($this->request['rss_export_forums'])) ? implode(",", $this->request['rss_export_forums']) : $rssstream['rss_export_forums'];
     /* Form Elements */
     $form = array();
     $form['rss_export_title'] = $this->registry->output->formInput('rss_export_title', IPSText::htmlspecialchars(!empty($this->request['rss_export_title']) ? $this->request['rss_export_title'] : $rssstream['rss_export_title']));
     $form['rss_export_desc'] = $this->registry->output->formInput('rss_export_desc', IPSText::htmlspecialchars(!empty($this->request['rss_export_desc']) ? $this->request['rss_export_desc'] : $rssstream['rss_export_desc']));
     $form['rss_export_image'] = $this->registry->output->formInput('rss_export_image', IPSText::htmlspecialchars(!empty($this->request['rss_export_image']) ? $this->request['rss_export_image'] : $rssstream['rss_export_image']));
     $form['rss_export_include_post'] = $this->registry->output->formYesNo('rss_export_include_post', !empty($this->request['rss_export_include_post']) ? $this->request['rss_export_include_post'] : $rssstream['rss_export_include_post']);
     $form['rss_export_enabled'] = $this->registry->output->formYesNo('rss_export_enabled', !empty($this->request['rss_export_enabled']) ? $this->request['rss_export_enabled'] : $rssstream['rss_export_enabled']);
     $form['rss_export_count'] = $this->registry->output->formSimpleInput('rss_export_count', !empty($this->request['rss_export_count']) ? $this->request['rss_export_count'] : $rssstream['rss_export_count'], 5);
     $form['rss_export_forums'] = $this->registry->output->formMultiDropdown('rss_export_forums[]', $dropdown, explode(",", $rss_export_forums), 7);
     $form['rss_export_cache_time'] = $this->registry->output->formSimpleInput('rss_export_cache_time', !empty($this->request['rss_export_cache_time']) ? $this->request['rss_export_cache_time'] : $rssstream['rss_export_cache_time'], 5);
     $form['rss_export_sort'] = $this->registry->output->formDropdown('rss_export_sort', $dd_sort, !empty($this->request['rss_export_sort']) ? $this->request['rss_export_sort'] : $rssstream['rss_export_sort']);
     $form['rss_export_order'] = $this->registry->output->formDropdown('rss_export_order', $dd_order, !empty($this->request['rss_export_order']) ? $this->request['rss_export_order'] : $rssstream['rss_export_order']);
     /* Output */
     $this->registry->output->html .= $this->html->rssExportForm($form, $title, $formcode, $button, $rssstream);
 }
 function __f__72edc29e07cce39cbefe8beabada49e2($member, $rows, $links = '')
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($rows as $r) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t\t\t\t<tr class='" . IPSLib::next($this->registry->templateStriping["modlog"]) . "'>\n\t\t\t\t\t\t<td><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$r['punisher_id']}", "public", ''), "{$r['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'><strong>{$r['punisher_name']}</strong></a></td>\n\t\t\t\t\t\t<td>{$this->lang->words['mod_warn_added']} <strong>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($r['wlog_date'], "long", 1)) . "</strong></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr class='" . IPSLib::next($this->registry->templateStriping["modlog"]) . "'>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<span class=\"" . (($r['wlog_type'] == 'note' or $r['wlog_type'] == 'pos') ? "positive" : "negative") . "\" " . ($r['wlog_type'] == 'note' || $r['wlog_type'] == 'nochan' || $r['wlog_type'] == 'custom' ? "style='color:gray'" : "") . ">\n\t\t\t\t\t\t\t\t" . ($r['wlog_type'] == 'note' ? "\n\t\t\t\t\t\t\t\t\t{$this->lang->words['mod_warn_note']}\n\t\t\t\t\t\t\t\t" : "" . ($r['wlog_type'] == 'pos' ? "\n\t\t\t\t\t\t\t\t\t\t{$this->lang->words['w_v_minus']}\n\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t" . ($r['wlog_type'] == 'neg' ? "\n\t\t\t\t\t\t\t\t\t\t{$this->lang->words['w_v_add']}\n\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t" . ($r['wlog_type'] == 'nochan' ? "\n\t\t\t\t\t\t\t\t\t\t{$this->lang->words['w_v_nochan']}\n\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t" . ($r['wlog_type'] == 'custom' ? "\n\t\t\t\t\t\t\t\t\t\t{$this->lang->words['w_v_custom']}\n\t\t\t\t\t\t\t\t\t" : "") . "") . "\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td>{$r['content']}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
Beispiel #18
0
 /**
  * Show the edit bulk mail form
  *
  * @param	string		[add|edit]
  * @param	array		Error messages
  * @return	@e void
  */
 protected function _mailForm($type = 'add', $errors = array())
 {
     //-----------------------------------------
     // Init some values
     //-----------------------------------------
     $id = intval($this->request['id']);
     if ($type == 'add') {
         $mail = array();
     } else {
         $mail = $this->DB->buildAndFetch(array('select' => '*', 'from' => 'bulk_mail', 'where' => 'mail_id=' . $this->request['id']));
     }
     if ($this->request['mail_groups']) {
         $mail['mail_groups'] = $this->request['mail_groups'];
     }
     //-----------------------------------------
     // Format mail content
     //-----------------------------------------
     $mail_content = $_POST['mail_content'] ? IPSText::stripslashes($_POST['mail_content']) : $mail['mail_content'];
     $mail_content = preg_replace("[^\r]\n", "\r\n", $mail_content);
     if (!$mail_content and $type == 'add') {
         $mail_content = $this->_getDefaultMailContents();
     }
     /* Bug report #39173 */
     $mail_content = IPSText::htmlspecialchars($mail_content);
     //-----------------------------------------
     // Get Filters
     //-----------------------------------------
     $opts = unserialize($mail['mail_opts']);
     $id = 1;
     $filters = array();
     foreach (IPSLib::getEnabledApplications() as $app) {
         $extensionFile = IPSLib::getAppDir($app['app_directory']) . '/extensions/bulkMailFilters.php';
         if (file_exists($extensionFile)) {
             $classToLoad = IPSLib::loadLibrary($extensionFile, 'bulkMailFilters_' . $app['app_directory']);
             $class = new $classToLoad($this->registry);
             $filters[$id] = array('appName' => $app['app_title'], 'appKey' => $app['app_directory'], 'filters' => array());
             foreach ($class->filters as $f) {
                 $classToLoad = IPSLib::loadLibrary($extensionFile, "bulkMailFilter_{$app['app_directory']}_{$f}");
                 $_class = new $classToLoad($this->registry);
                 $filters[$id]['filters'][] = array('title' => $this->lang->words["bulkMailFilter_{$app['app_directory']}_{$f}"], 'field' => $_class->getSettingField($opts['filters'][$app['app_directory']][$f]));
             }
             $id++;
         }
     }
     /* We want the members tab to be first so it shows groups, which will be the most common filter */
     uasort($filters, create_function('$a, $b', 'if ( $a[\'appKey\'] == "members" ) { return -1; } else { return 0; }'));
     //-----------------------------------------
     // Output
     //-----------------------------------------
     $this->registry->output->html .= $this->html->mailForm($type, $mail, $mail_content, $filters, $errors);
 }
Beispiel #19
0
 /**
  * Encodes meta tag content so its safe for readers, etc
  * 
  * @param	string		$content		Meta tag content
  * @return	@e string
  */
 public function encodeMetaTagContent($content, $makeUTF8Safe = false)
 {
     $content = IPSText::htmlspecialchars($content);
     # Hebrew chars screw up Facebook sharer
     if ($makeUTF8Safe === true && IPS_DOC_CHAR_SET == 'UTF-8' && IPSText::isUTF8($content)) {
         $content = IPSText::utf8ToEntities($content);
     }
     return $content;
 }
 function shareLinks($links, $title = '', $url = '', $cssClass = 'topic_share left')
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_global', $this->_funcHooks['shareLinks'])) {
         $count_f978eae4844f7c661c0cd9f78bf733df = is_array($this->functionData['shareLinks']) ? count($this->functionData['shareLinks']) : 0;
         $this->functionData['shareLinks'][$count_f978eae4844f7c661c0cd9f78bf733df]['links'] = $links;
         $this->functionData['shareLinks'][$count_f978eae4844f7c661c0cd9f78bf733df]['title'] = $title;
         $this->functionData['shareLinks'][$count_f978eae4844f7c661c0cd9f78bf733df]['url'] = $url;
         $this->functionData['shareLinks'][$count_f978eae4844f7c661c0cd9f78bf733df]['cssClass'] = $cssClass;
     }
     $IPBHTML .= "" . $this->registry->getClass('output')->addJSModule("sharelinks", "0") . "\n" . (is_array($links) ? "\n\t<ul class='{$cssClass} shareButtons ipsList_inline'>\n\t" . $this->__f__cdf08cf85f92ef8ef4013206021a0615($links, $title, $url, $cssClass) . "\t</ul>\n\t<script type=\"text/javascript\">\n\t\tipb.sharelinks.url   = \"" . IPSText::base64_decode_urlSafe($url) . "\";\n\t\tipb.sharelinks.title = \"" . IPSText::base64_decode_urlSafe(IPSText::htmlspecialchars($title)) . "\";\n\t\tipb.sharelinks.bname = \"" . trim(addslashes($this->settings['board_name'])) . "\";\n\t</script>\n" : "") . "";
     return $IPBHTML;
 }
 function post($post, $displayData, $topic, $forum = array())
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_topic', $this->_funcHooks['post'])) {
         $count_468c23a30e0a26d82a0008498a1321fd = is_array($this->functionData['post']) ? count($this->functionData['post']) : 0;
         $this->functionData['post'][$count_468c23a30e0a26d82a0008498a1321fd]['post'] = $post;
         $this->functionData['post'][$count_468c23a30e0a26d82a0008498a1321fd]['displayData'] = $displayData;
         $this->functionData['post'][$count_468c23a30e0a26d82a0008498a1321fd]['topic'] = $topic;
         $this->functionData['post'][$count_468c23a30e0a26d82a0008498a1321fd]['forum'] = $forum;
     }
     $IPBHTML .= "<post>\n\t\t\t\t\t<id>{$post['post']['pid']}</id>\n\t\t\t\t\t<date>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($post['post']['post_date'], "DATE", 0)) . "</date>\n\t\t\t\t\t<url>" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showtopic={$post['post']['topic_id']}&amp;view=findpost&amp;p={$post['post']['pid']}", "public", ''), "{$topic['title_seo']}", "showtopic") . "</url>\n\t\t\t\t\t<text><![CDATA[\n\t\t\t\t\t\t\t\t\t{$post['post']['post']}{$post['post']['attachmentHtml']}\n\t\t\t\t\t\t]]>\t\n\t\t\t\t\t</text>\n\t\t\t\t\t<reputation>{$post['post']['rep_points']}</reputation>\n\t\t\t\t\t<user>\n\t\t" . ($post['author']['member_id'] ? "\n\t\t\t\t\t\t<id>{$post['author']['member_id']}</id>\n\t\t\t\t\t\t<name><![CDATA[{$post['author']['members_display_name']}]]></name>\n\t\t\t\t\t\t<avatar><![CDATA[{$post['author']['pp_thumb_photo']}]]></avatar>\n\t\t\t\t\t\t<url><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$post['author']['member_id']}", "public", ''), "{$post['author']['members_seo_name']}", "showuser") . "]]></url>\n\t\t\t\t\t\t<online>{$post['author']['_online']}</online>\n\t\t\t\t\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userInfoPane') ? $this->registry->getClass('output')->getTemplate('global')->userInfoPane($post['author'], $post['post']['pid'], array()) : '') . "" : "\n\t\t\t\t\t\t<id>0</id>\n\t\t\t\t\t\t<name><![CDATA[{$post['author']['members_display_name']}]]></name>\n\t\t") . "\n\t\t\t\t\t</user>\n\t\t<options>\n\t\t" . (!$topic['_isArchived'] ? "\n\t\t\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global_other'), 'repButtons') ? $this->registry->getClass('output')->getTemplate('global_other')->repButtons($post['author'], array_merge(array('primaryId' => $post['post']['pid'], 'domLikeStripId' => 'like_post_' . $post['post']['pid'], 'domCountId' => 'rep_post_' . $post['post']['pid'], 'app' => 'forums', 'type' => 'pid', 'likeFormatted' => $post['post']['like']['formatted']), $post['post'])) : '') . "\n\t\t\t\t" : "") . "\t\t\t\t\n\t\t\t" . (($topic['_canReport'] and $this->memberData['member_id'] && !$topic['_isArchived']) ? "\n\t\t\t<reportURL><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=reports&amp;rcom=post&amp;tid={$this->request['t']}&amp;fid={$this->request['f']}&amp;pid={$post['post']['pid']}&amp;st={$this->request['st']}", "public", ''), "", "") . "]]></reportURL>\n\t\t\t" : "") . "\n\t\t\t" . ($post['post']['_can_edit'] === TRUE ? "\n\t\t\t\t<editURL><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("module=post&amp;section=post&amp;do=edit_post&amp;f={$this->request['f']}&amp;t={$this->request['t']}&amp;p={$post['post']['pid']}&amp;st={$this->request['st']}", "publicWithApp", ''), "", "") . "]]></editURL>\n\t\t\t" : "") . "\n\t\t\t\n\t\t\t" . ($post['post']['_can_delete'] === TRUE && !$topic['_isArchived'] ? "\n\t\t\t\t<deleteURL><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=deletedo&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;selectedpids[]={$post['post']['pid']}&amp;st={$this->request['st']}&amp;auth_key={$this->member->form_hash}", "publicWithApp", ''), "", "") . "]]></deleteURL>\n\t\t\t" : "") . "\n\t\t\t" . ($post['post']['_canReply'] ? "\n\t\t\t\t<replyURL><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("module=post&amp;section=post&amp;do=reply_post&amp;f={$this->request['f']}&amp;t={$this->request['t']}&amp;qpid={$post['post']['pid']}", "publicWithApp", ''), "", "") . "]]></replyURL>\n\t\t\t" : "") . "\n\t\t\t" . ($post['post']['_softDelete'] && !$topic['_isArchived'] ? "\n\t\t\t\t<hideURL><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=delete&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;selectedpids[]={$post['post']['pid']}&amp;st={$this->request['st']}&amp;auth_key={$this->member->form_hash}", "publicWithApp", ''), "", "") . "]]></hideURL>\n\t\t\t" : "") . "\n\t\t\t\n\t\t</options>\n\t\t\t\t\t\n\t\t\t\t</post>";
     return $IPBHTML;
 }
Beispiel #22
0
 /**
  * Convert tags
  *
  * @access	public
  * @param 	array		Tags
  * @param 	array 		Data to insert to tags
  * @return 	boolean		Success or fail
  **/
 public function convertTags($tags, $info, $app = 'forums', $area = 'topics')
 {
     //-----------------------------------------
     // Make sure we have everything we need
     //-----------------------------------------
     if (!$info['tag_meta_id']) {
         $this->logError($id, 'No ID number provided');
         return false;
     }
     if (!$info['tag_meta_parent_id']) {
         $this->logError($id, 'No parent ID number provided');
         return false;
     }
     // Clean tags
     foreach ($tags as $key => $tag) {
         $tags[$key] = trim(IPSText::htmlspecialchars($tag));
     }
     // Load tagging library
     if (!$this->registry->isClassLoaded('tags')) {
         require_once IPS_ROOT_PATH . 'sources/classes/tags/bootstrap.php';
         /*noLibHook*/
     }
     $this->registry->setClass('tags', classes_tags_bootstrap::run($app, $area));
     $this->registry->tags = ipsRegistry::getClass('tags');
     switch ($area) {
         case 'topics':
             $linkType = 'topics';
             $linkParentType = 'forums';
             break;
     }
     // Get links
     $info['tag_meta_id'] = $this->getLink($info['tag_meta_id'], $linkType);
     $info['tag_meta_parent_id'] = $this->getLink($info['tag_meta_parent_id'], $linkParentType);
     $info['tag_member_id'] = $info['tag_member_id'] ? $this->getLink($info['tag_member_id'], 'members') : 0;
     if (!$info['tag_meta_id']) {
         $this->logError($id, 'No ID number available');
         return false;
     }
     if (!$info['tag_meta_parent_id']) {
         $this->logError($id, 'No parent ID number available');
         return false;
     }
     $this->registry->tags->add($tags, $info, 'add');
     return true;
 }
 function tabSingleColumn($row = array(), $read_more_link = '', $url = '', $title = '')
 {
     $IPBHTML = "";
     $IPBHTML .= "<post>\r\n<title><![CDATA[" . IPSText::truncate($title, 90) . "]]></title>\r\n<url><![CDATA[{$url}]]></url>\r\n<text><![CDATA[{$row['post']}]]></text>\r\n<date>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($row['_raw_date'], "long", 0)) . "</date>\r\n</post>";
     return $IPBHTML;
 }
 function __f__31165f0ae25e57ec43fffe3309bcc3e7($data, $relId)
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($data as $mid => $data) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n                        <li class='clearfix ipsPad_half " . ($data['like_is_anon'] ? "faded" : "") . "'>\n                                <a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$data['member_id']}", "public", ''), "{$data['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}' class='ipsUserPhotoLink left'>\n                                        <img src='{$data['pp_small_photo']}' class='ipsUserPhoto ipsUserPhoto_mini' />\n                                </a>\n                                <div class='list_content'>\n                                        <a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$data['member_id']}", "public", ''), "{$data['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'><strong>{$data['members_display_name']}</strong></a>\n                                        <em class='desc'>{$this->lang->words['likeadded']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($data['rep_date'], "short", 0)) . "</em>\n                                        <p class='desc'>\n                                                " . IPSMember::makeNameFormatted($data['g_title'], $data['g_id']) . "\n                                        </p>\n                                </div>\n                        </li>\n                \n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
 function __f__f5b216073eeb67aa50d46802b83084a7($options = array(), $reports = array(), $comments = array())
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($reports as $report) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t<div class='post_block  hentry clear'>\n\t\t\t<div class='post_wrap'>\n\t\t\t\t<h3>" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($report['author']) : '') . "</h3>\n\t\t\t\t<div class='author_info'>\n\t\t\t\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userInfoPane') ? $this->registry->getClass('output')->getTemplate('global')->userInfoPane($report['author'], 'mreport', array('id2' => $report['rid'])) : '') . "\n\t\t\t\t</div>\n\t\t\t\t<div class='post_body'>\n\t\t\t\t\t<p class='posted_info'>{$this->lang->words['posted_prefix']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($report['date_reported'], "long", 0)) . "</p>\n\t\t\t\t\t<div class='post entry-content'>{$report['report']}</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<br class='clear' />\n\t\t</div>\n\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
 /**
  * Returns debug data
  *
  * @access	private
  * @return	string		Debug HTML
  */
 public function html_showDebugInfo()
 {
     $input = "";
     $queries = "";
     $sload = "";
     $stats = "";
     //-----------------------------------------
     // Form & Get & Skin
     //-----------------------------------------
     /* Admins only */
     if (!$this->memberData['g_access_cp']) {
         //return '';
     }
     if ($this->settings['debug_level'] >= 2) {
         $stats .= "<br />\n<div class='tableborder'>\n<div class='subtitle'>IPSDebug Messages</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 Cache Actions</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) . ") Included 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'>Loaded Caches</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>TOTAL: " . IPSLib::sizeFormat($_total) . "</strong></div>\n</div>";
         /* Loaded classes */
         $loadedClasses = $this->registry->getLoadedClassesAsArray();
         $stats .= "<br />\n<div class='tableborder'>\n<div class='subtitle'>Loaded Classes In 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 and GET Input</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>Next task</b> = " . $this->registry->getClass('class_localization')->getDate($cache['task_next_run'], 'LONG') . "\n<br /><b>Time now</b> = " . $this->registry->getClass('class_localization')->getDate(time(), 'LONG');
         $stats .= "<br /><b>Timestamp Now</b> = " . time();
         $stats .= "<p>MEMBER: last_visit: " . $this->memberData['last_visit'] . " / " . $this->registry->getClass('class_localization')->getDate($this->memberData['last_visit'], 'LONG') . "</p>";
         $stats .= "<p>MEMBER: uagent_key: " . $this->memberData['userAgentKey'] . "</p>";
         $stats .= "<p>MEMBER: uagent_type: " . $this->memberData['userAgentType'] . "</p>";
         $stats .= "<p>MEMBER: uagent_version: " . $this->memberData['userAgentVersion'] . "</p>";
         $stats .= "</div>\n</div>";
         $stats .= "<br />\n<div class='tableborder'>\n<div class='subtitle'>Loaded PHP Templates</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'>Queries Used</div><div class='row1' style='padding:6px'>";
         foreach ($this->DB->obj['cached_queries'] as $q) {
             $q = htmlspecialchars($q);
             $q = str_ireplace("SELECT", "<span style='color:red'>SELECT</span>", $q);
             $q = preg_replace("/^UPDATE/i", "<span style='color:blue'>UPDATE</span>", $q);
             $q = preg_replace("/^DELETE/i", "<span style='color:orange'>DELETE</span>", $q);
             $q = preg_replace("/^INSERT/i", "<span style='color:green'>INSERT</span>", $q);
             $q = str_replace("LEFT JOIN", "<span style='color:red'>LEFT JOIN</span>", $q);
             $stats .= "<p style='padding:6px;border-bottom:1px solid black'>{$q}</p>\n";
         }
         if (count($this->DB->obj['shutdown_queries'])) {
             foreach ($this->DB->obj['shutdown_queries'] as $q) {
                 $q = htmlspecialchars($q);
                 $q = preg_replace("/^SELECT/i", "<span style='color:red'>SELECT</span>", $q);
                 $q = preg_replace("/^UPDATE/i", "<span style='color:blue'>UPDATE</span>", $q);
                 $q = preg_replace("/^DELETE/i", "<span style='color:orange'>DELETE</span>", $q);
                 $q = preg_replace("/^INSERT/i", "<span style='color:green'>INSERT</span>", $q);
                 $q = str_replace("LEFT JOIN", "<span style='color:red'>LEFT JOIN</span>", $q);
                 //$q = preg_replace( "/(".$this->settings['sql_tbl_prefix'].")(\S+?)([\s\.,]|$)/", "<span class='purple'>\\1\\2</span>\\3", $q );
                 $stats .= "<div style='background:#DEDEDE'><b>SHUTDOWN:</b> {$q}</div><br />\n";
             }
         }
         $stats .= "</div>\n</div>";
     }
     if ($stats) {
         $stats = "\n\t\t\t\t\t  <div align='center'>\n\t\t\t\t\t   <div class='row2' style='padding:8px;vertical-align:middle'><a href='#' onclick=\"\$('debug').toggle(); return false;\">Hide Debug Information</a></div>\n\t\t\t\t\t   <br />\n\t\t\t\t\t   <div class='tableborder' align='left' id='debug'>\n\t\t\t\t\t\t<div class='maintitle'>Debug Information</div>\n\t\t\t\t\t\t <div style='padding:5px;background:#8394B2;'>{$stats}</div>\n\t\t\t\t\t   </div>\n\t\t\t\t\t  </div>";
     }
     return $stats;
 }
 function __f__9798b4ea44a00f669a45f347ab223c07($results)
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($results as $data) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t<div class='post_block hentry clear no_sidebar ipsBox_container'>\n\t\t\t<div class='post_wrap'>\n\t\t\t\t" . ($data['author_id'] ? "\n\t\t\t\t\t<h3 class='row2'>\n\t\t\t\t" : "\n\t\t\t\t\t<h3 class='guest row2'>\n\t\t\t\t") . "\n\t\t\t\t\t<span class='post_id right ipsType_small desc blend_links'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showtopic={$data['topic_id']}&amp;view=findpost&amp;p={$data['pid']}", "public", ''), "{$data['title_seo']}", "showtopic") . "' rel='bookmark' title='{$data['topic_title']}{$this->lang->words['link_to_post']} #{$data['pid']}'>#{$data['pid']}</a></span>\n\t\t\t\t\t<a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showtopic={$data['tid']}", "public", ''), "{$data['title_seo']}", "showtopic") . "\">" . IPSText::truncate($data['topic_title'], 80) . "</a>\n\t\t\t\t</h3>\n\t\t\t\t<div class='post_body'>\n\t\t\t\t\t<p class='posted_info desc lighter ipsType_small'>\n\t\t\t\t\t\t<img src='{$data['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_tiny' /> {$this->lang->words['posted']} {$this->lang->words['search_by']}\n\t\t\t\t\t\t" . ($data['member_id'] ? "<span class=\"author vcard\">" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($data) : '') . "</span>" : "{$data['members_display_name']}") . "\n\t\t\t\t\t\t{$this->lang->words['on']} <abbr class=\"published\" title=\"" . date('c', $data['post_date']) . "\">" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($data['post_date'], "long", 0)) . "</abbr>\n\t\t\t\t\t\t" . ($data['_forum_trail'] ? "\n\t\t\t\t\t\t\tin\n\t\t\t\t\t\t\t" . $this->__f__14837d740329e582a4ef8455d2aa03a6($results, $data) . "\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t</p>\n\t\t\t\t\t<div class='post entry-content clearfix'>\n\t\t\t\t\t\t{$data['post']}\n\t\t\t\t\t\t<br />\n\t\t\t\t\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global_other'), 'repButtons') ? $this->registry->getClass('output')->getTemplate('global_other')->repButtons($data, array_merge(array('primaryId' => $data['pid'], 'domLikeStripId' => 'like_post_' . $data['pid'], 'domCountId' => 'rep_post_' . $data['pid'], 'app' => 'forums', 'type' => 'pid', 'likeFormatted' => $data['repButtons']['formatted'], 'has_given_rep' => $data['repButtons']['iLike']), $data)) : '') . "\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<br />\n\t\t</div>\n\t\t<br />\n\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
Beispiel #28
0
 /**
  * Remap form
  *
  * @param	string	Type of form
  * @return	string	HTML
  */
 protected function _remapForm($type = 'add')
 {
     //-----------------------------------------
     // INIT
     //-----------------------------------------
     $setID = intval($this->request['setID']);
     $map_id = intval($this->request['map_id']);
     $map_match_type = array(0 => array('contains', $this->lang->words['um_contains']), 1 => array('exactly', $this->lang->words['um_isexactly']));
     $form = array();
     $remap = array();
     $setData = array();
     //-----------------------------------------
     // Get template set data
     //-----------------------------------------
     $setData = $this->skinFunctions->fetchSkinData($setID);
     //-----------------------------------------
     // Check (please?)
     //-----------------------------------------
     if ($type == 'add') {
         $formcode = 'remapAddDo';
         $title = $this->lang->words['um_addnew'];
         $button = $this->lang->words['um_addnew'];
     } else {
         $remap = $this->DB->buildAndFetch(array('select' => '*', 'from' => 'skin_url_mapping', 'where' => 'map_id=' . $map_id));
         if (!$remap['map_id']) {
             $this->registry->getClass('output')->global_message = $this->lang->words['um_noid'];
             $this->_showURLMappingList();
             return;
         }
         $formcode = 'remapEditDo';
         $title = $this->lang->words['um_editremap'] . $remap['map_title'];
         $button = $this->lang->words['um_savechanges'];
     }
     //-----------------------------------------
     // Form elements
     //-----------------------------------------
     $form['map_title'] = $this->registry->getClass('output')->formInput('map_title', IPSText::htmlspecialchars(!empty($_POST['map_title']) ? $_POST['map_title'] : $remap['map_title']));
     $form['map_match_type'] = $this->registry->getClass('output')->formDropdown('map_match_type', $map_match_type, !empty($_POST['map_match_type']) ? $_POST['map_match_type'] : $remap['map_match_type']);
     $form['map_url'] = $this->registry->getClass('output')->formInput('map_url', IPSText::htmlspecialchars(!empty($_POST['map_url']) ? $_POST['map_url'] : $remap['map_url']));
     //-----------------------------------------
     // Navvy Gation
     //-----------------------------------------
     $this->registry->output->extra_nav[] = array($this->settings['base_url'] . 'module=templates&amp;section=skinsets&amp;do=overview', $this->lang->words['um_nav1']);
     $this->registry->output->extra_nav[] = array($this->settings['base_url'] . 'module=templates&amp;section=urlmap&amp;do=show&amp;setID=' . $setID, $this->lang->words['um_nav2'] . $setData['set_name']);
     //-----------------------------------------
     // Print it...
     //-----------------------------------------
     $this->registry->output->html .= $this->html->urlmap_showForm($form, $title, $formcode, $button, $remap, $setData);
 }
 function searchRowGenericFormat($r, $resultAsTitle = false)
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_search', $this->_funcHooks['searchRowGenericFormat'])) {
         $count_044b6607c6d73e32e42e17e99e11ec66 = is_array($this->functionData['searchRowGenericFormat']) ? count($this->functionData['searchRowGenericFormat']) : 0;
         $this->functionData['searchRowGenericFormat'][$count_044b6607c6d73e32e42e17e99e11ec66]['r'] = $r;
         $this->functionData['searchRowGenericFormat'][$count_044b6607c6d73e32e42e17e99e11ec66]['resultAsTitle'] = $resultAsTitle;
     }
     $IPBHTML .= "<div class='result_info'>\n\t<h3>{$r['content_title']}</h3>\n\t" . (!$resultAsTitle ? "\n\t<p>\n\t\t{$r['content']}\n\t</p>\n\t" : "") . "\n</div>\n" . (($r['updated'] or $r['member_id']) ? "<div class='result_details desc'>\n\t\t<ul>\n\t\t\t" . ($r['updated'] ? "\n\t\t\t\t<li>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($r['updated'], "short", 0)) . "</li>\n\t\t\t" : "") . "\n\t\t\t" . ($r['member_id'] ? "\n\t\t\t\t<li>{$this->lang->words['search_by']} " . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($r) : '') . "</li>\n\t\t\t" : "") . "\n\t\t</ul>\n\t</div>" : "") . "";
     return $IPBHTML;
 }
Beispiel #30
0
 /**
  * Shows the login method form [add,edit]
  *
  * @param	string		Add or Edit flag
  * @return	@e void		[Outputs to screen]
  */
 protected function _loginForm($type = 'add')
 {
     //-----------------------------------------
     // Init Vars
     //-----------------------------------------
     $login_id = intval(ipsRegistry::$request['login_id']);
     //-----------------------------------------
     // Check (please?)
     //-----------------------------------------
     if ($type == 'add') {
         $formcode = 'login_add_do';
         $title = $this->lang->words['l_registernew'];
         $button = $this->lang->words['l_registernew'];
     } else {
         $login = $this->DB->buildAndFetch(array('select' => '*', 'from' => 'login_methods', 'where' => 'login_id=' . $login_id));
         if (!$login['login_id']) {
             ipsRegistry::getClass('output')->global_message = $this->lang->words['l_404'];
             $this->_loginList();
             return;
         }
         $formcode = 'login_edit_do';
         $title = $this->lang->words['editloginmethod'] . $login['login_title'];
         $button = $this->lang->words['sl_form_edit_button'];
     }
     //-----------------------------------------
     // Form elements
     //-----------------------------------------
     $valid_types = array(array('username', $this->lang->words['l_username']), array('email', $this->lang->words['l_email']), array('either', $this->lang->words['l_username_or_email']));
     $form = array();
     $form['login_title'] = ipsRegistry::getClass('output')->formInput('login_title', $_POST['login_title'] ? $_POST['login_title'] : $login['login_title']);
     $form['login_description'] = ipsRegistry::getClass('output')->formInput('login_description', IPSText::htmlspecialchars($_POST['login_description'] ? $_POST['login_description'] : $login['login_description']));
     $form['login_folder_name'] = ipsRegistry::getClass('output')->formInput('login_folder_name', $_POST['login_folder_name'] ? $_POST['login_folder_name'] : $login['login_folder_name']);
     $form['login_maintain_url'] = ipsRegistry::getClass('output')->formInput('login_maintain_url', $_POST['login_maintain_url'] ? $_POST['login_maintain_url'] : $login['login_maintain_url']);
     $form['login_register_url'] = ipsRegistry::getClass('output')->formInput('login_register_url', $_POST['login_register_url'] ? $_POST['login_register_url'] : $login['login_register_url']);
     $form['login_login_url'] = ipsRegistry::getClass('output')->formInput('login_login_url', $_POST['login_login_url'] ? $_POST['login_login_url'] : $login['login_login_url']);
     $form['login_logout_url'] = ipsRegistry::getClass('output')->formInput('login_logout_url', $_POST['login_logout_url'] ? $_POST['login_logout_url'] : $login['login_logout_url']);
     $form['login_enabled'] = ipsRegistry::getClass('output')->formYesNo('login_enabled', $_POST['login_enabled'] ? $_POST['login_enabled'] : $login['login_enabled']);
     $form['login_settings'] = ipsRegistry::getClass('output')->formYesNo('login_settings', $_POST['login_settings'] ? $_POST['login_settings'] : $login['login_settings']);
     $form['login_register_url'] = ipsRegistry::getClass('output')->formInput('login_register_url', $_POST['login_register_url'] ? $_POST['login_register_url'] : $login['login_register_url']);
     $form['login_replace_form'] = ipsRegistry::getClass('output')->formYesNo('login_replace_form', $_POST['login_replace_form'] ? $_POST['login_replace_form'] : $login['login_replace_form']);
     $form['login_alt_login_html'] = ipsRegistry::getClass('output')->formTextarea('login_alt_login_html', IPSText::htmlspecialchars($_POST['login_alt_login_html'] ? $_POST['login_alt_login_html'] : $login['login_alt_login_html']));
     $form['login_alt_acp_html'] = ipsRegistry::getClass('output')->formTextarea('login_alt_acp_html', IPSText::htmlspecialchars($_POST['login_alt_acp_html'] ? $_POST['login_alt_acp_html'] : $login['login_alt_acp_html']));
     $form['login_user_id'] = ipsRegistry::getClass('output')->formDropdown('login_user_id', $valid_types, $_POST['login_user_id'] ? $_POST['login_user_id'] : $login['login_user_id']);
     if (IN_DEV) {
         $form['login_safemode'] = ipsRegistry::getClass('output')->formYesNo('login_safemode', $_POST['login_safemode'] ? $_POST['login_safemode'] : $login['login_safemode']);
     }
     ipsRegistry::getClass('output')->html .= $this->html->login_form($form, $title, $formcode, $button, $login);
 }