($menu_pref['most_members_online'] + $menu_pref['most_guests_online'])) { $menu_pref['most_members_online'] = MEMBERS_ONLINE; $menu_pref['most_guests_online'] = GUESTS_ONLINE; $menu_pref['most_online_datestamp'] = time(); $tmp = addslashes(serialize($menu_pref)); $sql->db_Update("core", "e107_value='$tmp' WHERE e107_name='menu_pref' "); } //display list of 'member viewing page' if($menu_pref['online_show_memberlist_extended']) { if (MEMBERS_ONLINE) { global $listuserson, $pinfo, $ADMIN_DIRECTORY, $online_location_page, $oid, $oname, $online_location_page; $ret=''; foreach($listuserson as $uinfo => $pinfo) { list($oid, $oname) = explode(".", $uinfo, 2); $online_location_page = substr(strrchr($pinfo, "/"), 1); if ($pinfo == "log.php" || $pinfo == "error.php") { $pinfo = "news.php"; $online_location_page = "news.php"; } if ($online_location_page == "request.php") { $pinfo = "download.php"; } if (strstr($online_location_page, "forum")) { $pinfo = e_PLUGIN."forum/forum.php"; $online_location_page = "forum.php"; } if (strstr($online_location_page, "content")) { $pinfo = "content.php"; $online_location_page = "content.php"; } if (strstr($online_location_page, "comment")) { $pinfo = "comment.php"; $online_location_page = "comment.php"; } $ret .= $tp -> parseTemplate($TEMPLATE_ONLINE['ONLINE_MEMBERS_LIST_EXTENDED'], FALSE, $online_shortcodes); } global $ONLINE_MEMBERS_LIST_EXTENDED; $ONLINE_MEMBERS_LIST_EXTENDED = $ret; } } $text = $e107->tp->parseTemplate($TEMPLATE_ONLINE['ENABLED'], TRUE); } else { if (ADMIN) { $text = $e107->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'); ?>