get('online_show_memberlist_extended')) { if (MEMBERS_ONLINE) { global $listuserson; $ret=''; foreach($listuserson as $uinfo => $pinfo) { $online_location_page = str_replace('.php', '', substr(strrchr($pinfo, '/'), 1)); if ($pinfo == 'log.php' || $pinfo == 'error.php') { $pinfo = 'news.php'; $online_location_page = 'news'; } elseif ($online_location_page == 'request.php') { $pinfo = 'download.php'; $online_location_page = 'news'; } elseif (strstr($online_location_page, 'forum')) { $pinfo = e_PLUGIN.'forum/forum.php'; $online_location_page = 'forum'; } elseif (strstr($online_location_page, 'content')) { $pinfo = 'content.php'; $online_location_page = 'content'; } elseif (strstr($online_location_page, 'comment')) { $pinfo = 'comment.php'; $online_location_page = 'comment'; } list($oid, $oname) = explode('.', $uinfo, 2); setScVar('online_shortcodes', 'currentMember', array('oid' => $oid, 'oname' => $oname, 'page' => $online_location_page, 'pinfo' => $pinfo)); $ret .= $tp->parseTemplate($TEMPLATE_ONLINE['ONLINE_MEMBERS_LIST_EXTENDED'], TRUE); } setScVar('online_shortcodes', 'onlineMembersList', $ret); } } $text = $tp->parseTemplate($TEMPLATE_ONLINE['ENABLED'], TRUE); } else { if (ADMIN) { $text = $tp->parseTemplate($TEMPLATE_ONLINE['DISABLED'], TRUE); } else { return; } } $img = (is_readable(THEME.'images/online_menu.png') ? "" : ''); $caption = $img.' '.varsettrue($menu_pref['online_caption'],LAN_ONLINE_10); $ns->tablerender($caption, $text, 'online'); ?>