/** * Alter Control Panel by adding member list * * @return string **/ function show_full_control_panel_end($out) { global $EXT, $STAT, $SESS; $STAT = new Stats_CP(); $STAT->update_stats(); if ($EXT->last_call !== FALSE) { $out = $EXT->last_call; } if (!in_array($SESS->userdata['group_id'], $this->settings['groups'])) { return $out; } foreach ($STAT->stats['current_names'] as $member) { $list[] = $member[0]; } $list = implode(', ', $list); $find = "<div class='copyright'>"; $add = "\n <div class='box' style='" . $this->settings['css'] . "'>\n <p><strong>Active Members:</strong> {$list}</p>\n</div>\n" . $find; return str_replace($find, $add, $out); // return $out; }
} // ---------------------------------------------- // Filter GET Data // ---------------------------------------------- // We need to filter GET data for security. // We've pre-processed global data eariler, but since // we didn't have a session yet we were not able to // determine a condition for filtering $IN->filter_get_data(REQ); // ---------------------------------------------- // Update system statistics // ---------------------------------------------- require PATH_MOD . 'stats/mcp.stats' . EXT; $STAT = new Stats_CP(); if (REQ == 'PAGE' && $PREFS->ini('enable_online_user_tracking') != 'n') { $STAT->update_stats(); } // ---------------------------------------------- // Instantiate language class // ---------------------------------------------- require_once PATH_CORE . 'core.language' . EXT; $LANG = new Language(); // Fetch core language file $LANG->fetch_language_file('core'); // ---------------------------------------------- // Is the system turned on? // ---------------------------------------------- // Note: super-admins can always view the system if ($SESS->userdata('group_id') != 1 and REQ != 'CP') { if ($PREFS->ini('is_system_on') == 'y' && ($PREFS->ini('multiple_sites_enabled') != 'y' or $PREFS->ini('is_site_on') == 'y')) { if ($SESS->userdata('can_view_online_system') == 'n') {