当前位置: 首页>>代码示例>>PHP>>正文


PHP IPSLib::moduleIsEnabled方法代码示例

本文整理汇总了PHP中IPSLib::moduleIsEnabled方法的典型用法代码示例。如果您正苦于以下问题:PHP IPSLib::moduleIsEnabled方法的具体用法?PHP IPSLib::moduleIsEnabled怎么用?PHP IPSLib::moduleIsEnabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IPSLib的用法示例。


在下文中一共展示了IPSLib::moduleIsEnabled方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __f__286c41c379bb925f4c65c76d211aefab

 function __f__286c41c379bb925f4c65c76d211aefab($rows)
 {
     $_ips___x_retval = '';
     foreach ($rows as $info) {
         $_ips___x_retval .= "\n\t\t\t<tr class='" . IPSLib::next($this->registry->templateStriping["top_posters"]) . "'>\n\t\t\t\t<td>\n\t\t\t\t\t<img src='{$info['pp_mini_photo']}' alt=\"{$info['members_display_name']}{$this->lang->words['users_photo']}\" class='photo' width='{$info['pp_mini_width']}' height='{$info['pp_mini_height']}' />\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t" . ($info['member_id'] > 0 ? "\n\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$info['member_id']}", 'public', ''), "{$info['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'>{$info['members_display_name']}</a> " . $this->registry->getClass('output')->getTemplate('global')->user_popup($info['member_id'], $info['members_seo_name']) . "\n\t\t\t\t\t" : "\n\t\t\t\t\t\t{$info['members_display_name']}\n\t\t\t\t\t") . "\n\t\t\t\t</td>\n\t\t\t\t<td class='altrow'>\n\t\t\t\t\t" . $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='user_controls clear'>\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']}'>" . $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']}'>" . $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") . "" : "") . "\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']}'>" . $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;mid={$info['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" : "") . "\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;module=user&amp;section=user&amp;user={$info['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" : "") . "\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 .= '';
     return $_ips___x_retval;
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:9,代码来源:skin_stats.php

示例2: __f__bbeb34120594dcbbf1392e3622a54dac

 function __f__bbeb34120594dcbbf1392e3622a54dac($rows, $links = "", $defaults = array(), $our_mgroups = array())
 {
     $_ips___x_retval = '';
     foreach ($rows as $session) {
         $_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=\"{$session['_memberData']['members_display_name']}{$this->lang->words['users_photo']}\" 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']}'>" . IPSLib::makeNameFormatted($session['member_name'], $session['member_group']) . "</a>" . $this->registry->getClass('output')->getTemplate('global')->user_popup($session['member_id'], $session['seo_name']) . "\n\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t" . IPSLib::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['is_bot'] and $this->settings['spider_anon']) ? "" . ($this->memberData['g_access_cp'] ? "\n\t\t\t\t\t\t\t*\n\t\t\t\t\t\t" : "") . "" : "" . ($session['login_type'] == 1 ? "" . ((!$this->settings['disable_admin_anon'] and $this->memberData['g_access_cp']) ? "\n\t\t\t\t\t\t\t\t*\n\t\t\t\t\t\t\t" : "") . "" : "") . "") . "\n\t\t\t\t\t" . (($this->memberData['g_access_cp'] and !$this->settings['disable_online_ip']) ? "\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'] ? "\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" . $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;mid={$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 .= '';
     return $_ips___x_retval;
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:9,代码来源:skin_online.php

示例3: __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

示例4: doExecute

 /**
  * Class entry point
  *
  * @param	object		Registry reference
  * @return	@e void		[Outputs to screen/redirects]
  */
 public function doExecute(ipsRegistry $registry)
 {
     //-----------------------------------------
     // Check viewing permissions, etc
     //-----------------------------------------
     if (!$this->memberData['g_use_pm']) {
         $this->registry->getClass('output')->showError('messenger_disabled', 10226, null, null, 403);
     }
     if ($this->memberData['members_disable_pm']) {
         $this->registry->getClass('output')->showError('messenger_disabled', 10227, null, null, 403);
     }
     if (!$this->memberData['member_id']) {
         $this->registry->getClass('output')->showError('messenger_no_guests', 10228, null, null, 403);
     }
     if (!IPSLib::moduleIsEnabled('messaging', 'members')) {
         $this->registry->getClass('output')->showError('messenger_disabled', 10227.1, null, null, 404);
     }
     //-----------------------------------------
     // Language
     //-----------------------------------------
     $this->registry->class_localization->loadLanguageFile(array('public_messaging'), 'members');
     $this->registry->class_localization->loadLanguageFile(array('public_topic'), 'forums');
     //-----------------------------------------
     // Grab class
     //-----------------------------------------
     $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('members') . '/sources/classes/messaging/messengerFunctions.php', 'messengerFunctions', 'members');
     $this->messengerFunctions = new $classToLoad($registry);
     /* Messenger Totals */
     $totals = $this->messengerFunctions->buildMessageTotals();
     //-----------------------------------------
     // What to do?
     //-----------------------------------------
     switch ($this->request['do']) {
         default:
         case 'search':
             $html = $this->_search();
             break;
     }
     //-----------------------------------------
     // If we have any HTML to print, do so...
     //-----------------------------------------
     $this->registry->output->addContent($this->registry->getClass('output')->getTemplate('messaging')->messengerTemplate($html, $this->messengerFunctions->_jumpMenu, $this->messengerFunctions->_dirData, $totals, $this->_topicParticipants, $this->_errorString));
     $this->registry->output->setTitle($this->_title . ' - ' . ipsRegistry::$settings['board_name']);
     $this->registry->output->addNavigation($this->lang->words['messenger__nav'], 'app=members&amp;module=messaging');
     if (is_array($this->_navigation) and count($this->_navigation)) {
         foreach ($this->_navigation as $idx => $data) {
             $this->registry->output->addNavigation($data[0], $data[1]);
         }
     }
     $this->registry->output->sendOutput();
 }
开发者ID:Advanture,项目名称:Online-RolePlay,代码行数:57,代码来源:search.php

示例5: __f__37b2bd1e81fb7a788cd3634df5fb5f57

 function __f__37b2bd1e81fb7a788cd3634df5fb5f57($type, $members, $pagelinks = '')
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($members as $member) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t\t\t\t\t<li id='member_id_{$member['member_id']}' class='ipsPad clearfix member_entry " . IPSLib::next($this->registry->templateStriping["memberStripe"]) . "'>\n\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}", "public", ''), "{$member['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}' class='ipsUserPhotoLink left'><img src='{$member['pp_small_photo']}' alt=\"" . sprintf($this->lang->words['users_photo'], $member['members_display_name']) . "\" class='ipsUserPhoto ipsUserPhoto_medium' /></a>\n\t\t\t\t\t\t\t<div class='ipsBox_withphoto'>\n\t\t\t\t\t\t\t\t<ul class='ipsList_inline right'>\n\t\t\t\t\t\t\t\t\t" . ($this->memberData['g_is_supmod'] == 1 && $member['member_id'] != $this->memberData['member_id'] ? "\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=core&amp;module=modcp&amp;do=editmember&amp;auth_key={$this->member->form_hash}&amp;mid={$member['member_id']}&amp;pf={$member['member_id']}", "public", ''), "", "") . "' class='ipsButton_secondary'>{$this->lang->words['edit_member']}</a></li>\n\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t" . ($member['show_warn'] ? "\n\t\t\t\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=warnings&amp;member={$member['member_id']}", "public", ''), "", "") . "' id='warn_link_modcp_{$member['member_id']}' title='{$this->lang->words['warn_view_history']}' class='ipsButton_secondary'>{$this->lang->words['warn_view_history']}</a>\n\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t" . (($this->memberData['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members') && $member['member_id'] != $this->memberData['member_id']) ? "\n\t\t\t\t\t\t\t\t\t\t<li class='pm_button' id='pm_xxx_{$member['pp_member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$member['pp_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\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=search&amp;do=user_activity&amp;mid={$member['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['gbl_find_my_content']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("find_topics_link") . "</a></li>\n\t\t\t\t\t\t\t\t\t" . (($member['has_blog'] and IPSLib::appIsInstalled('blog')) ? "\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={$member['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\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t" . (($member['has_gallery'] and IPSLib::appIsInstalled('gallery')) ? "\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={$member['member_id']}", "public", ''), "{$member['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\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<h3 class='ipsType_subtitle'>\n\t\t\t\t\t\t\t\t\t<strong>" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($member) : '') . "</strong>\n\t\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t\t" . ($this->settings['reputation_enabled'] && $this->settings['reputation_show_profile'] ? "" . ($member['pp_reputation_points'] == 0 || !$member['pp_reputation_points'] ? "\n\t\t\t\t\t\t\t\t\t\t<p class='reputation zero ipsType_small left'>\n\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t" . ($member['pp_reputation_points'] > 0 ? "\n\t\t\t\t\t\t\t\t\t\t<p class='reputation positive ipsType_small left'>\n\t\t\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t\t\t" . ($member['pp_reputation_points'] < 0 ? "\n\t\t\t\t\t\t\t\t\t\t<p class='reputation negative ipsType_small left'>\n\t\t\t\t\t\t\t\t\t" : "") . "\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<span class='number'>{$member['pp_reputation_points']}</span>\n\t\t\t\t\t\t\t\t\t\t</p>" : "") . "\n\t\t\t\t\t\t\t\t<span class='desc'>\n\t\t\t\t\t\t\t\t\t{$this->lang->words['member_joined']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($member['joined'], "joined", 0)) . "<br />\n\t\t\t\t\t\t\t\t\t" . IPSMember::makeNameFormatted($member['group'], $member['member_group_id']) . " &middot; <strong>{$this->lang->words['modqueued_til']}: " . (in_array($type, array('modposts', 'suspended', 'restrictposts')) ? "<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=profile&amp;section=warnings&amp;member={$member['member_id']}&amp;_tab=warn&amp;type=minus", "public", ''), "", "") . "'>" : "") . "<em>{$member['_language']}</em>" . (in_array($type, array('modposts', 'suspended', 'restrictposts')) ? "</a>" : "") . "</strong>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
开发者ID:Advanture,项目名称:Online-RolePlay,代码行数:12,代码来源:skin_modcp.php

示例6: getOutput

 public function getOutput()
 {
     //-----------------------------------------
     // INIT
     //-----------------------------------------
     $member_ids = array();
     $to_load = array();
     //-----------------------------------------
     // Check module/app
     //-----------------------------------------
     $module = '';
     if (!IPSLib::appIsInstalled('chat')) {
         return '';
     }
     if (IPSLib::moduleIsEnabled('addonchat', 'chat')) {
         $_hide_whoschatting = $this->settings['chat_hide_whoschatting'];
         $_who_on = $this->settings['chat_who_on'];
     } else {
         if (IPSLib::moduleIsEnabled('parachat', 'chat')) {
             $_hide_whoschatting = $this->settings['chat04_hide_whoschatting'];
             $_who_on = $this->settings['chat04_who_on'];
         } else {
             return '';
         }
     }
     //-----------------------------------------
     // Check
     //-----------------------------------------
     if (!$_who_on) {
         return;
     }
     //-----------------------------------------
     // Sort and show :D
     //-----------------------------------------
     if (is_array($this->caches['chatting']) and count($this->caches['chatting'])) {
         foreach ($this->caches['chatting'] as $id => $data) {
             if ($data['updated'] < time() - 120) {
                 continue;
             }
             $to_load[$id] = $id;
         }
     }
     //-----------------------------------------
     // Got owt?
     //-----------------------------------------
     if (count($to_load)) {
         $this->DB->build(array('select' => 'm.member_id, m.members_display_name, m.member_group_id, m.members_seo_name', 'from' => array('members' => 'm'), 'where' => "m.member_id IN(" . implode(",", $to_load) . ")", 'add_join' => array(0 => array('select' => 's.login_type, s.current_appcomponent', 'from' => array('sessions' => 's'), 'where' => 's.member_id=m.member_id', 'type' => 'left')), 'order' => 'm.members_display_name'));
         $this->DB->execute();
         while ($m = $this->DB->fetch()) {
             if ($m['member_id'] == $this->memberData['member_id']) {
                 continue;
             }
             $m['members_display_name'] = IPSLib::makeNameFormatted($m['members_display_name'], $m['member_group_id']);
             if ($m['login_type']) {
                 if ($this->memberData['g_access_cp'] and $this->settings['disable_admin_anon'] != 1) {
                     $member_ids[] = "<a href='" . $this->registry->getClass('output')->buildSEOUrl("showuser={$m['member_id']}", 'public', $m['seo_name'], 'showuser') . "'>{$m['members_display_name']}</a>";
                 }
             } else {
                 $member_ids[] = "<a href='" . $this->registry->getClass('output')->buildSEOUrl("showuser={$m['member_id']}", 'public', $m['seo_name'], 'showuser') . "'>{$m['members_display_name']}</a>";
             }
         }
     }
     //-----------------------------------------
     // Got owt?
     //-----------------------------------------
     if (count($member_ids)) {
         $this->html = $this->registry->getClass('output')->getTemplate('boards')->whoschatting_show(intval(count($member_ids)), $member_ids);
     } else {
         if (!$_hide_whoschatting) {
             $this->html = $this->registry->getClass('output')->getTemplate('boards')->whoschatting_empty();
         }
     }
     return $this->html;
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:74,代码来源:boardIndexWhosChatting_ea7910eb52cc5b76a8aacaad243111fd.php

示例7: getCommand

 /**
  * Retreive the command
  *
  * @access	public
  * @param	object		ipsRegistry reference
  * @return	object
  */
 public function getCommand(ipsRegistry $registry)
 {
     $_NOW = IPSDebug::getMemoryDebugFlag();
     $module = ipsRegistry::$current_module;
     $section = ipsRegistry::$current_section;
     $filepath = IPSLib::getAppDir(IPS_APP_COMPONENT) . '/' . self::$modules_dir . '/' . $module . '/';
     /* Bug Fix #21009 */
     if (!ipsRegistry::$applications[IPS_APP_COMPONENT]['app_enabled']) {
         throw new Exception("The specified application has been disabled");
     }
     if (!IN_ACP and !IPSLib::moduleIsEnabled($module, IPS_APP_COMPONENT) and $module != 'ajax') {
         throw new Exception("The specified module has been disabled");
     }
     /* Got a section? */
     if (!$section) {
         if (is_file($filepath . 'defaultSection.php')) {
             $DEFAULT_SECTION = '';
             include $filepath . 'defaultSection.php';
             /*noLibHook*/
             if ($DEFAULT_SECTION) {
                 $section = $DEFAULT_SECTION;
                 ipsRegistry::$current_section = $section;
             }
         }
     }
     $_classname = self::$class_dir . '_' . IPS_APP_COMPONENT . '_' . $module . '_';
     /* Rarely used, let's leave file_exists which is faster for non-existent files */
     if (file_exists($filepath . 'manualResolver.php')) {
         $classname = IPSLib::loadActionOverloader($filepath . 'manualResolver.php', $_classname . 'manualResolver');
     } else {
         if (is_file($filepath . $section . '.php')) {
             $classname = IPSLib::loadActionOverloader($filepath . $section . '.php', $_classname . $section);
         }
     }
     IPSDebug::setMemoryDebugFlag("Controller getCommand executed");
     if (class_exists($classname)) {
         $cmd_class = new ReflectionClass($classname);
         if ($cmd_class->isSubClassOf(self::$base_cmd)) {
             return $cmd_class->newInstance();
         } else {
             throw new Exception("{$section} in {$module} does not exist!");
         }
     } else {
         throw new Exception("{$classname} does not exist!");
     }
     # Fudge it to return just the default object
     return clone self::$default_cmd;
 }
开发者ID:mover5,项目名称:imobackup,代码行数:55,代码来源:ipsController.php

示例8: doExecute

 /**
  * Class entry point
  *
  * @param	object		Registry reference
  * @return	@e void		[Outputs to screen/redirects]
  */
 public function doExecute(ipsRegistry $registry)
 {
     //-----------------------------------------
     // Check viewing permissions, etc
     //-----------------------------------------
     if (!$this->memberData['g_use_pm']) {
         $this->registry->getClass('output')->showError('messenger_disabled', 10226, null, null, 403);
     }
     if ($this->memberData['members_disable_pm'] == 2) {
         $this->registry->getClass('output')->showError('messenger_disabled', 10227, null, null, 403);
     }
     if (!$this->memberData['member_id']) {
         $this->registry->getClass('output')->showError('messenger_no_guests', 10228, null, null, 403);
     }
     if (!IPSLib::moduleIsEnabled('messaging', 'members')) {
         $this->registry->getClass('output')->showError('messenger_disabled', 10227, null, null, 404);
     }
     /* Print CSS */
     $this->registry->output->addToDocumentHead('raw', "<link rel='stylesheet' type='text/css' title='Main' media='print' href='{$this->settings['css_base_url']}style_css/{$this->registry->output->skin['_csscacheid']}/ipb_print.css' />");
     //-----------------------------------------
     // Language
     //-----------------------------------------
     $this->registry->class_localization->loadLanguageFile(array("public_editors"), 'core');
     $this->registry->class_localization->loadLanguageFile(array('public_messaging'), 'members');
     $this->registry->class_localization->loadLanguageFile(array('public_topic'), 'forums');
     //-----------------------------------------
     // Grab class
     //-----------------------------------------
     $classToLoad = IPSLib::loadLibrary(IPSLib::getAppDir('members') . '/sources/classes/messaging/messengerFunctions.php', 'messengerFunctions', 'members');
     $this->messengerFunctions = new $classToLoad($registry);
     /* Messenger Totals */
     $this->_totals = $this->messengerFunctions->buildMessageTotals();
     /* Filtah */
     if ($this->request['folderFilter']) {
         $this->messengerFunctions->addFolderFilter($this->request['folderFilter']);
     }
     /* force disabled messenger into default */
     if ($this->memberData['members_disable_pm'] && $this->request['do'] != 'enableMessenger') {
         $this->request['do'] = 'inbox';
     }
     //-----------------------------------------
     // What to do?
     //-----------------------------------------
     switch ($this->request['do']) {
         default:
         case 'inbox':
         case 'showFolder':
             $html = $this->_showFolder();
             break;
         case 'showConversation':
         case 'showMessage':
             $html = $this->showConversation();
             break;
         case 'multiFile':
             $html = $this->_multiFile();
             break;
         case 'findMessage':
             $html = $this->_findMessage();
             break;
         case 'addParticipants':
             $html = $this->_addParticipants();
             break;
         case 'deleteConversation':
             $html = $this->_deleteConversation();
             break;
         case 'blockParticipant':
             $html = $this->_blockParticipant();
             break;
         case 'unblockParticipant':
             $html = $this->_unblockParticipant();
             break;
         case 'toggleNotifications':
             $html = $this->_toggleNotifications();
             break;
         case 'enableMessenger':
             $this->_enableMessenger();
             break;
         case 'disableMessenger':
             $this->_disableMessenger();
             break;
     }
     //-----------------------------------------
     // If we have any HTML to print, do so...
     //-----------------------------------------
     $this->registry->output->addContent($this->registry->getClass('output')->getTemplate('messaging')->messengerTemplate($html, $this->messengerFunctions->_jumpMenu, $this->messengerFunctions->_dirData, $this->_totals, $this->_topicParticipants, $this->_errorString, $this->_deletedTopic));
     $this->registry->output->setTitle($this->_title . ' - ' . ipsRegistry::$settings['board_name']);
     $this->registry->output->addNavigation($this->lang->words['messenger__nav'], 'app=members&amp;module=messaging');
     if (is_array($this->_navigation) and count($this->_navigation)) {
         foreach ($this->_navigation as $idx => $data) {
             $this->registry->output->addNavigation($data[0], $data[1]);
         }
     }
     $this->registry->output->sendOutput();
 }
开发者ID:mover5,项目名称:imobackup,代码行数:100,代码来源:view.php

示例9: profileModern

 function profileModern($tabs = array(), $member = array(), $visitors = array(), $default_tab = 'status', $default_tab_content = '', $friends = array(), $status = array(), $warns = array())
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_profile', $this->_funcHooks['profileModern'])) {
         $count_44e7fab34176c61d0077bfc4f0f1ba5f = is_array($this->functionData['profileModern']) ? count($this->functionData['profileModern']) : 0;
         $this->functionData['profileModern'][$count_44e7fab34176c61d0077bfc4f0f1ba5f]['tabs'] = $tabs;
         $this->functionData['profileModern'][$count_44e7fab34176c61d0077bfc4f0f1ba5f]['member'] = $member;
         $this->functionData['profileModern'][$count_44e7fab34176c61d0077bfc4f0f1ba5f]['visitors'] = $visitors;
         $this->functionData['profileModern'][$count_44e7fab34176c61d0077bfc4f0f1ba5f]['default_tab'] = $default_tab;
         $this->functionData['profileModern'][$count_44e7fab34176c61d0077bfc4f0f1ba5f]['default_tab_content'] = $default_tab_content;
         $this->functionData['profileModern'][$count_44e7fab34176c61d0077bfc4f0f1ba5f]['friends'] = $friends;
         $this->functionData['profileModern'][$count_44e7fab34176c61d0077bfc4f0f1ba5f]['status'] = $status;
         $this->functionData['profileModern'][$count_44e7fab34176c61d0077bfc4f0f1ba5f]['warns'] = $warns;
     }
     $IPBHTML .= "<template>profileView</template>\r\n<profileData>\r\n\t<id>{$member['member_id']}</id>\r\n\t<name><![CDATA[{$member['members_display_name']}]]></name>\r\n\t<memberTitle><![CDATA[{$member['title']}]]></memberTitle>\r\n\t<reputation>{$member['pp_reputation_points']}</reputation>\r\n\t<postCount>{$member['posts']}</postCount>\r\n\t<avatar><![CDATA[{$member['pp_main_photo']}]]></avatar>\t\r\n</profileData>\r\n<tab><![CDATA[{$default_tab}]]></tab>\r\n" . ($default_tab == 'core:info' ? "" . (($member['member_id'] != $this->memberData['member_id'] and $this->memberData['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members') and $member['members_disable_pm'] == 0) ? "\r\n<pmMeLink><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$member['member_id']}", "public", ''), "", "") . "]]></pmMeLink>\r\n" : "") . "\r\n<viewMyContent><![CDATA[" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=search&amp;do=user_activity&amp;mid={$member['member_id']}", "public", ''), "", "") . "]]></viewMyContent>\r\n<profileTabs>\r\n\t" . $this->__f__7c4bf5929998c6551cca2a71a3fb300f($tabs, $member, $visitors, $default_tab, $default_tab_content, $friends, $status, $warns) . "</profileTabs>" : "\r\n\t{$default_tab_content}\r\n") . "";
     return $IPBHTML;
 }
开发者ID:ConnorChristie,项目名称:GrabViews,代码行数:17,代码来源:skin_profile.php

示例10: userInfoPane

 function userInfoPane($author, $contentid, $options)
 {
     $IPBHTML = "";
     $IPBHTML .= "<ul class='user_details'>\n\t\t" . (($author['member_id'] and $author['avatar']) ? "\n\t\t\t<li class='avatar'><a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$author['member_id']}", 'public', ''), "{$author['members_seo_name']}", "showuser") . "\" title=\"{$this->lang->words['view_profile']}\">{$author['avatar']}</a></li>\n\t\t" : "\n\t\t\t<li class='avatar'>{$author['avatar']}</li>\n\t\t") . "\n\t\t" . ($author['title'] ? "\n\t\t\t<li class='title'>{$author['title']}</li>\n\t\t" : "") . "\n\t\t" . ($author['member_rank_img'] ? "<li class='group_icon'>\n\t\t\t" . ($author['member_rank_img_i'] == 'img' ? "\n\t\t\t\t<img src='{$author['member_rank_img']}' alt='{$this->lang->words['icon']}' />\n\t\t\t" : "\n\t\t\t\t{$author['member_rank_img']}\n\t\t\t") . "\n\t\t\t</li>" : "") . "\n\t</ul>\n\t<div style='margin: 0 auto;'>\n\t\t<ul class='user_controls clear'>\n\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $author['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends'] && $author['member_id']) ? "" . (IPSMember::checkFriendStatus($author['member_id']) ? "\n\t\t\t\t\t<li class='mini_friend_toggle is_friend' id='friend_{$contentid}_{$author['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={$author['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" : "\n\t\t\t\t\t<li class='mini_friend_toggle is_not_friend' id='friend_{$contentid}_{$author['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={$author['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>\n\t\t\t\t") . "" : "") . "\n\t\t\t" . (($this->memberData['g_use_pm'] and $this->memberData['member_id'] != $author['member_id'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members') && $author['member_id']) ? "\n\t\t\t\t<li class='pm_button' id='pm_{$contentid}_{$author['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={$author['member_id']}", 'public', ''), "", "") . "' title='{$this->lang->words['pm_member']}'>" . $this->registry->getClass('output')->getReplacement("send_msg") . "</a></li>\n\t\t\t" : "") . "\n\t\t\t" . (($author['has_blog'] and IPSLib::appIsInstalled('blog')) ? "\n\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;mid={$author['member_id']}", 'public', ''), "", "") . "' title='{$this->lang->words['view_blog']}'>" . $this->registry->getClass('output')->getReplacement("blog_link") . "</a></li>\n\t\t\t" : "") . "\n\t\t\t" . (($author['has_gallery'] and IPSLib::appIsInstalled('gallery')) ? "\n\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={$author['member_id']}", 'public', ''), "", "") . "' title='{$this->lang->words['view_gallery']}'>" . $this->registry->getClass('output')->getReplacement("gallery_link") . "</a></li>\n\t\t\t" : "") . "\n\t\t</ul>\n\t</div>\n\t<ul class='user_fields'>\n\t\t<li>\n\t\t\t<span class='ft'>{$this->lang->words['m_group']}</span>\n\t\t\t<span class='fc'>{$author['_group_formatted']}</span>\n\t\t</li>\n\t\t" . ($author['member_id'] ? "\n\t\t\t<li>\n\t\t\t\t<span class='ft'>{$this->lang->words['m_posts']}</span>\n\t\t\t\t<span class='fc'>" . $this->registry->getClass('class_localization')->formatNumber(intval($author['posts'])) . "</span>\n\t\t\t</li>\n\t\t\t<li>\n\t\t\t\t<span class='ft'>{$this->lang->words['m_joined']}</span>\n\t\t\t\t<span class='fc'>" . $this->registry->getClass('class_localization')->getDate($author['joined'], "joined", 0) . "</span>\n\t\t\t</li>\n\t\t" : "") . "\n\t\t" . ($author['custom_fields'] != "" ? "\n\t\t\t" . $this->__f__16b99107a5d1351d0d29b3851421e3eb($author, $contentid, $options) . "\t\t" : "") . "\n\t</ul>\n\t" . ($author['warn_percent'] !== NULL ? "<br class='clear' />\n\t\t<div class='warn_panel clear rounded'>\n\t\t\t" . ($this->settings['warn_show_rating'] ? "<strong><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=warn&amp;section=warn&amp;do=view&amp;mid={$author['member_id']}", 'public', ''), "", "") . "' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}' class='warn_link'>{$this->lang->words['warn_status']}</a></strong>\n\t\t\t\t<p class='rating_mode user_warn' title='{$this->lang->words['warn_level']} {$author['warn_percent']}%'>\n\t\t\t\t\t" . ($author['can_edit_warn'] ? "\n\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=warn&amp;section=warn&amp;type=minus&amp;mid={$author['member_id']}&amp;t=0&amp;st=0", 'public', ''), "", "") . "' title='{$this->lang->words['warn_decrease']}'><img src='{$this->settings['img_url']}/warn_minus.gif' alt='{$this->lang->words['minus']}' class='warn_edit down'  /></a>\n\t\t\t\t\t" : "") . "\n\t\t\t\t\t&lt;&nbsp;{$this->settings['warn_min']} ( {$author['warn_level']} ) {$this->settings['warn_max']}&nbsp;&gt;\n\t\t\t\t\t" . ($author['can_edit_warn'] ? "\n\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=warn&amp;section=warn&amp;type=add&amp;mid={$author['member_id']}&amp;t={$this->request['t']}&amp;st={$this->request['st']}", 'public', ''), "", "") . "' title='{$this->lang->words['warn_increase']}'><img src='{$this->settings['img_url']}/warn_add.gif' alt='{$this->lang->words['add']}' class='warn_edit up' /></a>\n\t\t\t\t\t" : "") . "\n\t\t\t\t</p>" : "" . ($author['can_edit_warn'] ? "\n\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=warn&amp;section=warn&amp;type=add&amp;mid={$author['member_id']}&amp;t={$this->request['t']}&amp;st={$this->request['st']}", 'public', ''), "", "") . "' title='{$this->lang->words['warn_increase']}'><img src='{$this->settings['img_url']}/warn_add.gif' alt='{$this->lang->words['add']}' class='warn_edit up' /></a><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=warn&amp;section=warn&amp;type=minus&amp;mid={$author['member_id']}&amp;t=0&amp;st=0", 'public', ''), "", "") . "' title='{$this->lang->words['warn_decrease']}'><img src='{$this->settings['img_url']}/warn_minus.gif' alt='{$this->lang->words['minus']}' class='warn_edit down'  /></a>\n\t\t\t\t" : "") . "\n\t\t\t\t\t<strong><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=warn&amp;section=warn&amp;do=view&amp;mid={$author['member_id']}", 'public', ''), "", "") . "' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}' class='warn_link'>{$this->lang->words['warn_status']}</a></strong>\n\t\t\t\t" . ($author['warn_percent'] >= 80 ? "\n\t\t\t\t\t<p class='progress_bar user_warn limit' title='{$this->lang->words['warn_level']} {$author['warn_percent']}%'>\n\t\t\t\t" : "\n\t\t\t\t\t<p class='progress_bar user_warn' title='{$this->lang->words['warn_level']} {$author['warn_percent']}%'>\n\t\t\t\t") . "\n\t\t\t\t\t<span style='width: {$author['warn_percent']}%'><span>{$this->lang->words['warn_level']} {$author['warn_percent']}%</span></span>\n\t\t\t\t</p>") . "\n\t\t</div>" : "") . "";
     return $IPBHTML;
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:6,代码来源:skin_global.php

示例11: userInfoPane

 function userInfoPane($author, $contentid, $options)
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_global', $this->_funcHooks['userInfoPane'])) {
         $count_8b2a85db6931f9b78f2202bea4dbd958 = is_array($this->functionData['userInfoPane']) ? count($this->functionData['userInfoPane']) : 0;
         $this->functionData['userInfoPane'][$count_8b2a85db6931f9b78f2202bea4dbd958]['author'] = $author;
         $this->functionData['userInfoPane'][$count_8b2a85db6931f9b78f2202bea4dbd958]['contentid'] = $contentid;
         $this->functionData['userInfoPane'][$count_8b2a85db6931f9b78f2202bea4dbd958]['options'] = $options;
     }
     $IPBHTML .= "<ul class='user_details'>\r\n\t\t" . ($author['title'] ? "\r\n\t\t\t<li class='title'>{$author['title']}</li>\r\n\t\t" : "") . "\r\n\t\t" . ($author['member_rank_img'] ? "<li class='group_icon'>\r\n\t\t\t" . ($author['member_rank_img_i'] == 'img' ? "\r\n\t\t\t\t<img src='{$author['member_rank_img']}' alt='' />\r\n\t\t\t" : "\r\n\t\t\t\t{$author['member_rank_img']}\r\n\t\t\t") . "\r\n\t\t\t</li>" : "") . "\r\n\t</ul>\r\n\t<div style='margin: 0 auto;'>\r\n\t\t<ul class='user_controls clear'>\r\n\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $author['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends'] && $author['member_id']) ? "" . (IPSMember::checkFriendStatus($author['member_id']) ? "\r\n\t\t\t\t\t<li class='mini_friend_toggle is_friend' id='friend_{$contentid}_{$author['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={$author['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>\r\n\t\t\t\t" : "\r\n\t\t\t\t\t<li class='mini_friend_toggle is_not_friend' id='friend_{$contentid}_{$author['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={$author['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>\r\n\t\t\t\t") . "" : "") . "\r\n\t\t\t" . (($this->memberData['g_use_pm'] and $this->memberData['member_id'] != $author['member_id'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members') && $author['member_id']) ? "\r\n\t\t\t\t<li class='pm_button' id='pm_{$contentid}_{$author['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={$author['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['pm_member']}'>" . $this->registry->getClass('output')->getReplacement("send_msg") . "</a></li>\r\n\t\t\t" : "") . "\r\n\t\t\t" . (($author['has_blog'] and IPSLib::appIsInstalled('blog')) ? "\r\n\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={$author['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_blog']}'>" . $this->registry->getClass('output')->getReplacement("blog_link") . "</a></li>\r\n\t\t\t" : "") . "\r\n\t\t\t" . (($author['has_gallery'] and IPSLib::appIsInstalled('gallery')) ? "\r\n\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={$author['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['view_gallery']}'>" . $this->registry->getClass('output')->getReplacement("gallery_link") . "</a></li>\r\n\t\t\t" : "") . "\r\n\t\t</ul>\r\n\t</div>\r\n\t<ul class='user_fields'>\r\n\t\t<li>\r\n\t\t\t<span class='ft'>{$this->lang->words['m_group']}</span>\r\n\t\t\t<span class='fc'>{$author['_group_formatted']}</span>\r\n\t\t</li>\r\n\t\t" . ($author['member_id'] ? "\r\n\t\t\t<li>\r\n\t\t\t\t<span class='ft'>{$this->lang->words['m_posts']}</span>\r\n\t\t\t\t<span class='fc'>" . $this->registry->getClass('class_localization')->formatNumber(intval($author['posts'])) . "</span>\r\n\t\t\t</li>\r\n\t\t\t<li>\r\n\t\t\t\t<span class='ft'>{$this->lang->words['m_joined']}</span>\r\n\t\t\t\t<span class='fc'>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($author['joined'], "joined", 0)) . "</span>\r\n\t\t\t</li>\r\n\t\t" : "") . "\r\n\t\t" . ($author['custom_fields'] != "" ? "\r\n\t\t\t" . $this->__f__21d1925e327c658090aaccaf9dc3301b($author, $contentid, $options) . "\t\t" : "") . "\r\n\t</ul>\r\n\t" . ($author['warn_percent'] !== NULL ? "<br class='clear' />\r\n\t\t<div class='warn_panel clear rounded'>\r\n\t\t\t" . ($author['can_edit_warn'] ? "\r\n\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=modcp&amp;section=editmember&amp;type=add&amp;mid={$author['member_id']}&amp;t={$this->request['t']}&amp;st={$this->request['st']}", "public", ''), "", "") . "' title='{$this->lang->words['warn_increase']}'><img src='{$this->settings['img_url']}/warn_add.gif' alt='{$this->lang->words['add']}' class='warn_edit up' /></a><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=modcp&amp;section=editmember&amp;type=minus&amp;mid={$author['member_id']}&amp;t=0&amp;st=0", "public", ''), "", "") . "' title='{$this->lang->words['warn_decrease']}'><img src='{$this->settings['img_url']}/warn_minus.gif' alt='{$this->lang->words['minus']}' class='warn_edit down'  /></a>\r\n\t\t\t" : "") . "\r\n\t\t\t\t<strong><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=modcp&amp;section=editmember&amp;do=view&amp;mid={$author['member_id']}", "public", ''), "", "") . "' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}' class='warn_link'>{$this->lang->words['warn_status']}</a></strong>\r\n\t\t\t" . ($author['warn_percent'] >= 80 ? "\r\n\t\t\t\t<p class='progress_bar user_warn limit' title='{$this->lang->words['warn_level']} {$author['warn_percent']}%'>\r\n\t\t\t" : "\r\n\t\t\t\t<p class='progress_bar user_warn' title='{$this->lang->words['warn_level']} {$author['warn_percent']}%'>\r\n\t\t\t") . "\r\n\t\t\t\t<span style='width: {$author['warn_percent']}%'><span>{$this->lang->words['warn_level']} {$author['warn_percent']}%</span></span>\r\n\t\t\t</p>\r\n\t\t</div>" : "") . "";
     return $IPBHTML;
 }
开发者ID:ConnorChristie,项目名称:GrabViews,代码行数:12,代码来源:skin_global.php

示例12: __f__79050217f26a5bb7a82436b7e6a3397f

 function __f__79050217f26a5bb7a82436b7e6a3397f($members, $pages = "", $dropdowns = array(), $defaults = array(), $custom_fields = null, $url = '')
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($members as $member) {
         $__iteratorCount++;
         $_ips___x_retval .= "\r\n\t\t\t\t\t\t<li id='member_id_{$member['member_id']}' class='ipsPad clearfix member_entry " . IPSLib::next($this->registry->templateStriping["memberStripe"]) . "'>\r\n\t\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}", "public", ''), "{$member['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}' class='ipsUserPhotoLink left'><img src='{$member['pp_small_photo']}' alt=\"" . sprintf($this->lang->words['users_photo'], $member['members_display_name']) . "\" class='ipsUserPhoto ipsUserPhoto_medium' /></a>\r\n\t\t\t\t\t\t\t<div class='ipsBox_withphoto'>\r\n\t\t\t\t\t\t\t\t<ul class='ipsList_inline right'>\r\n\t\t\t\t\t\t\t\t\t" . ($this->memberData['g_is_supmod'] == 1 && $member['member_id'] != $this->memberData['member_id'] ? "\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=core&amp;module=modcp&amp;do=editmember&amp;auth_key={$this->member->form_hash}&amp;mid={$member['member_id']}&amp;pf={$member['member_id']}", "public", ''), "", "") . "' class='ipsButton_secondary'>{$this->lang->words['edit_member']}</a></li>\r\n\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'] != $member['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "" . (IPSMember::checkFriendStatus($member['member_id']) ? "\r\n\t\t\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_friend' id='friend_mlist_{$member['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=profile&amp;section=friends&amp;do=remove&amp;member_id={$member['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_mlist_{$member['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=profile&amp;section=friends&amp;do=add&amp;member_id={$member['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['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members') && $member['member_id'] != $this->memberData['member_id']) ? "\r\n\t\t\t\t\t\t\t\t\t\t<li class='pm_button' id='pm_xxx_{$member['pp_member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$member['pp_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<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=search&amp;do=user_activity&amp;mid={$member['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['gbl_find_my_content']}' class='ipsButton_secondary'>" . $this->registry->getClass('output')->getReplacement("find_topics_link") . "</a></li>\r\n\t\t\t\t\t\t\t\t\t" . (($member['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={$member['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" . (($member['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={$member['member_id']}", "public", ''), "{$member['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\r\n\t\t\t\t\t\t\t\t<h3 class='ipsType_subtitle'>\r\n\t\t\t\t\t\t\t\t\t<strong><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}", "public", ''), "{$member['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'>{$member['members_display_name']}</a></strong>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t" . ($this->settings['pp_allow_member_rate'] && $this->request['pp_rating_real'] ? "<span class='rating'> \r\n\t\t\t\t\t\t\t\t\t\t\t" . ($member['pp_rating_real'] >= 1 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 2 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 3 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 4 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 5 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "\r\n\t\t\t\t\t\t\t\t\t\t</span>" : "") . "\r\n\t\t\t\t\t\t\t\t</h3>\r\n\t\t\t\t\t\t\t\t" . ($this->settings['reputation_enabled'] && $this->settings['reputation_show_profile'] && $member['pp_reputation_points'] !== null ? "" . ($member['pp_reputation_points'] == 0 || !$member['pp_reputation_points'] ? "\r\n\t\t\t\t\t\t\t\t\t\t<p class='reputation zero ipsType_small left' data-tooltip=\"" . sprintf($this->lang->words['member_has_x_rep'], $member['members_display_name'], $member['pp_reputation_points']) . "\">\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . ($member['pp_reputation_points'] > 0 ? "\r\n\t\t\t\t\t\t\t\t\t\t<p class='reputation positive ipsType_small left' data-tooltip=\"" . sprintf($this->lang->words['member_has_x_rep'], $member['members_display_name'], $member['pp_reputation_points']) . "\">\r\n\t\t\t\t\t\t\t\t\t" : "") . "\r\n\t\t\t\t\t\t\t\t\t" . ($member['pp_reputation_points'] < 0 ? "\r\n\t\t\t\t\t\t\t\t\t\t<p class='reputation negative ipsType_small left' data-tooltip=\"" . sprintf($this->lang->words['member_has_x_rep'], $member['members_display_name'], $member['pp_reputation_points']) . "\">\r\n\t\t\t\t\t\t\t\t\t" : "") . "\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t<span class='number'>{$member['pp_reputation_points']}</span>\r\n\t\t\t\t\t\t\t\t\t\t</p>" : "") . "\r\n\t\t\t\t\t\t\t\t<span class='desc'>\r\n\t\t\t\t\t\t\t\t\t{$this->lang->words['member_joined']} " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($member['joined'], "joined", 0)) . "<br />\r\n\t\t\t\t\t\t\t\t\t" . IPSMember::makeNameFormatted($member['group'], $member['member_group_id']) . " &middot;\r\n\t\t\t\t\t\t\t\t\t" . ($this->request['sort_key'] == 'members_profile_views' ? "\r\n\t\t\t\t\t\t\t\t\t\t" . $this->registry->getClass('class_localization')->formatNumber($member['members_profile_views']) . " {$this->lang->words['m_views']}\r\n\t\t\t\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t\t\t\t\t" . $this->registry->getClass('class_localization')->formatNumber($member['posts']) . " {$this->lang->words['member_posts']}\r\n\t\t\t\t\t\t\t\t\t") . "\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</li>\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
开发者ID:ConnorChristie,项目名称:GrabViews,代码行数:12,代码来源:skin_mlist.php

示例13: __f__1cf6af88e7d6275896d661b4fc4a044b

 function __f__1cf6af88e7d6275896d661b4fc4a044b($rows)
 {
     $_ips___x_retval = '';
     $__iteratorCount = 0;
     foreach ($rows as $member) {
         $__iteratorCount++;
         $_ips___x_retval .= "\n\t\t\t\t\t<li id='member_id_{$member['member_id']}' class='general_box clear member_entry " . IPSLib::next($this->registry->templateStriping["memberStripe"]) . "'>\n\t\t\t\t\t\t<h3 class='bar'>" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($member) : '') . "</h3>\n\t\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$member['member_id']}", "public", ''), "{$member['members_seo_name']}", "showuser") . "' title='{$this->lang->words['view_profile']}'><img src='{$member['pp_small_photo']}' width='{$member['pp_small_width']}' height='{$member['pp_small_height']}' alt=\"" . sprintf($this->lang->words['users_photo'], $member['members_display_name']) . "\" class='photo' /></a>\t\n\t\t\t\t\t\n\t\t\t\t\t\t<dl class='info'>\n\t\t\t\t\t\t\t<dt class='clear'>{$this->lang->words['member_joined']}:</dt>\n\t\t\t\t\t\t\t<dd>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($member['joined'], "joined", 0)) . "</dd>\n\t\t\t\t\t\t\t<dt class='clear'>{$this->lang->words['member_group']}:</dt>\n\t\t\t\t\t\t\t<dd>" . IPSMember::makeNameFormatted($member['group'], $member['member_group_id']) . "</dd>\n\t\t\t\t\t\t\t<dt class='clear'>{$this->lang->words['age_suffix']}:</dt>\n\t\t\t\t\t\t\t<dd>" . ($member['age'] ? "{$member['age']}" : "<em>{$this->lang->words['age_not_avail']}</em>") . "</dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<ul class='user_controls clear'>\n\t\t\t\t\t\t\t" . (($this->memberData['member_id'] and $this->memberData['member_id'] != $member['member_id'] && $this->settings['friends_enabled'] and $this->memberData['g_can_add_friends']) ? "" . (IPSMember::checkFriendStatus($member['member_id']) ? "\n\t\t\t\t\t\t\t\t\t<li class='mini_friend_toggle is_friend' id='friend_mlist_{$member['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=profile&amp;section=friends&amp;do=remove&amp;member_id={$member['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_mlist_{$member['member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=profile&amp;section=friends&amp;do=add&amp;member_id={$member['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['g_use_pm'] and $this->memberData['members_disable_pm'] == 0 and IPSLib::moduleIsEnabled('messaging', 'members') && $member['member_id'] != $this->memberData['member_id']) ? "\n\t\t\t\t\t\t\t\t<li class='pm_button' id='pm_xxx_{$member['pp_member_id']}'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=members&amp;module=list&amp;module=messaging&amp;section=send&amp;do=form&amp;fromMemberID={$member['pp_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<li><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=search&amp;do=user_activity&amp;mid={$member['member_id']}", "public", ''), "", "") . "' title='{$this->lang->words['gbl_find_my_content']}'>" . $this->registry->getClass('output')->getReplacement("find_topics_link") . "</a></li>\n\t\t\t\t\t\t\t" . (($member['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={$member['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" . (($member['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={$member['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" . ($this->settings['pp_allow_member_rate'] ? "<p class='rating'> \n\t\t\t\t\t\t\t\t" . ($member['pp_rating_real'] >= 1 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 2 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 3 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 4 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($member['pp_rating_real'] >= 5 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "\n\t\t\t\t\t\t\t</p>" : "") . "\n\t\t\t\t\t\t\n\t\t\t\t\t\t" . ($this->settings['reputation_enabled'] && $this->settings['reputation_show_profile'] ? "" . ($member['pp_reputation_points'] == 0 || !$member['pp_reputation_points'] ? "\n\t\t\t\t\t\t\t\t<p class='reputation zero'>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t" . ($member['pp_reputation_points'] > 0 ? "\n\t\t\t\t\t\t\t\t<p class='reputation positive'>\n\t\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t\t" . ($member['pp_reputation_points'] < 0 ? "\n\t\t\t\t\t\t\t\t<p class='reputation negative'>\n\t\t\t\t\t\t\t" : "") . "\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<span class='number'>{$this->lang->words['reputation']}: {$member['pp_reputation_points']}</span>\n\t\t\t\t\t\t\t\t</p>" : "") . "\t\t\t\t\t\t\n\t\t\t\t\t</li>\n\t\t\t\t\n";
     }
     $_ips___x_retval .= '';
     unset($__iteratorCount);
     return $_ips___x_retval;
 }
开发者ID:mover5,项目名称:imobackup,代码行数:12,代码来源:skin_calendar.php

示例14: doExecute

 /**
  * Class entry point
  *
  * @access	public
  * @param	object		Registry reference
  * @return	void		[Outputs to screen/redirects]
  */
 public function doExecute(ipsRegistry $registry)
 {
     //-----------------------------------------
     // Check viewing permissions, etc
     //-----------------------------------------
     if (!$this->memberData['g_use_pm']) {
         $this->registry->getClass('output')->showError('messenger_disabled', 10222);
     }
     if ($this->memberData['members_disable_pm']) {
         $this->registry->getClass('output')->showError('messenger_disabled', 10223);
     }
     if (!$this->memberData['member_id']) {
         $this->registry->getClass('output')->showError('messenger_no_guests', 10224);
     }
     if (!IPSLib::moduleIsEnabled('messaging', 'members')) {
         $this->registry->getClass('output')->showError('messenger_disabled', 10227);
     }
     //-----------------------------------------
     // Reset Classes
     //-----------------------------------------
     IPSText::resetTextClass('bbcode');
     IPSText::resetTextClass('editor');
     //-----------------------------------------
     // Load lang file
     //-----------------------------------------
     $this->registry->getClass('class_localization')->loadLanguageFile(array("public_error", "public_editors"), 'core');
     //-----------------------------------------
     // Post Key
     //-----------------------------------------
     $this->_postKey = ($this->request['postKey'] and $this->request['postKey'] != '') ? $this->request['postKey'] : md5(microtime());
     //-----------------------------------------
     // Can we upload?
     //-----------------------------------------
     if ($this->memberData['g_attach_max'] != -1 and $this->memberData['g_can_msg_attach']) {
         $this->_canUpload = 1;
     }
     $this->lang->words['the_max_length'] = $this->settings['max_post_length'] * 1024;
     //-----------------------------------------
     // Language
     //-----------------------------------------
     /* Load post lang file for attachments stuff */
     $this->registry->class_localization->loadLanguageFile(array('public_post'), 'forums');
     $this->registry->class_localization->loadLanguageFile(array('public_messaging'), 'members');
     //-----------------------------------------
     // Grab class
     //-----------------------------------------
     require_once IPSLib::getAppDir('members') . '/sources/classes/messaging/messengerFunctions.php';
     $this->messengerFunctions = new messengerFunctions($registry);
     /* Messenger Totals */
     $totals = $this->messengerFunctions->buildMessageTotals();
     //-----------------------------------------
     // Did we preview new topic?
     //-----------------------------------------
     if ($this->request['preview']) {
         $this->request['do'] = 'form';
     }
     //-----------------------------------------
     // Or a reply?
     //-----------------------------------------
     if ($this->request['previewReply']) {
         if ($this->request['do'] == 'sendEdit') {
             $this->request['do'] = 'editMessage';
         } else {
             $this->request['do'] = 'replyForm';
         }
     }
     //-----------------------------------------
     // What to do?
     //-----------------------------------------
     switch ($this->request['do']) {
         default:
         case 'form':
             $html = $this->_showNewTopicForm();
             break;
         case 'replyForm':
             $html = $this->_showForm('reply');
             break;
         case 'send':
             $html = $this->_sendNewPersonalTopic();
             break;
         case 'sendReply':
             $html = $this->_sendReply();
             break;
         case 'editMessage':
             $html = $this->_showForm('edit');
             break;
         case 'sendEdit':
             $html = $this->_sendEdit();
             break;
         case 'deleteReply':
             $html = $this->_deleteReply();
             break;
     }
//.........这里部分代码省略.........
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:101,代码来源:send.php

示例15: doExecute

 /**
  * Class entry point
  *
  * @access	public
  * @param	object		Registry reference
  * @return	void		[Outputs to screen/redirects]
  */
 public function doExecute(ipsRegistry $registry)
 {
     //-----------------------------------------
     // Check viewing permissions, etc
     //-----------------------------------------
     if (!$this->memberData['g_use_pm']) {
         $this->registry->getClass('output')->showError('messenger_disabled', 10226);
     }
     if ($this->memberData['members_disable_pm']) {
         $this->registry->getClass('output')->showError('messenger_disabled', 10227);
     }
     if (!$this->memberData['member_id']) {
         $this->registry->getClass('output')->showError('messenger_no_guests', 10228);
     }
     if (!IPSLib::moduleIsEnabled('messaging', 'members')) {
         $this->registry->getClass('output')->showError('messenger_disabled', 10227);
     }
     //-----------------------------------------
     // Language
     //-----------------------------------------
     $this->registry->class_localization->loadLanguageFile(array("public_editors"), 'core');
     $this->registry->class_localization->loadLanguageFile(array('public_messaging'), 'members');
     $this->registry->class_localization->loadLanguageFile(array('public_topic'), 'forums');
     //-----------------------------------------
     // Grab class
     //-----------------------------------------
     require_once IPSLib::getAppDir('members') . '/sources/classes/messaging/messengerFunctions.php';
     $this->messengerFunctions = new messengerFunctions($registry);
     /* Messenger Totals */
     $this->_totals = $this->messengerFunctions->buildMessageTotals();
     /* Filtah */
     if ($this->request['folderFilter']) {
         $this->messengerFunctions->addFolderFilter($this->request['folderFilter']);
     }
     //-----------------------------------------
     // What to do?
     //-----------------------------------------
     switch ($this->request['do']) {
         default:
         case 'inbox':
         case 'showFolder':
             $html = $this->_showFolder();
             break;
         case 'showConversation':
         case 'showMessage':
             $html = $this->showConversation();
             break;
         case 'multiFile':
             $html = $this->_multiFile();
             break;
         case 'findMessage':
             $html = $this->_findMessage();
             break;
         case 'addParticipants':
             $html = $this->_addParticipants();
             break;
             /*case 'leaveConversation':
             			$html = $this->_leaveConversation();
             		break;
             		case 'rejoinConversation':
             			$html = $this->_rejoinConversation();
             		break;*/
         /*case 'leaveConversation':
         			$html = $this->_leaveConversation();
         		break;
         		case 'rejoinConversation':
         			$html = $this->_rejoinConversation();
         		break;*/
         case 'deleteConversation':
             $html = $this->_deleteConversation();
             break;
         case 'blockParticipant':
             $html = $this->_blockParticipant();
             break;
         case 'unblockParticipant':
             $html = $this->_unblockParticipant();
             break;
         case 'toggleNotifications':
             $html = $this->_toggleNotifications();
             break;
     }
     //-----------------------------------------
     // If we have any HTML to print, do so...
     //-----------------------------------------
     $this->registry->output->addContent($this->registry->getClass('output')->getTemplate('messaging')->messengerTemplate($html, $this->messengerFunctions->_jumpMenu, $this->messengerFunctions->_dirData, $this->_totals, $this->_topicParticipants, $this->_errorString, $this->_deletedTopic));
     $this->registry->output->setTitle($this->_title);
     $this->registry->output->addNavigation($this->lang->words['messenger__nav'], 'app=members&amp;module=messaging');
     if (is_array($this->_navigation) and count($this->_navigation)) {
         foreach ($this->_navigation as $idx => $data) {
             $this->registry->output->addNavigation($data[0], $data[1]);
         }
     }
     $this->registry->output->sendOutput();
//.........这里部分代码省略.........
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:101,代码来源:view.php


注:本文中的IPSLib::moduleIsEnabled方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。