diff -r e3d7322305bf -r 5e1f1e916419 punbb/admin_index.php --- a/punbb/admin_index.php Sun Sep 02 11:00:57 2007 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,208 +0,0 @@ -= $latest_version) - message('You are running the latest version of PunBB.'); - else - message('A new version of PunBB has been released. You can download the latest version at PunBB.org.'); -} - - -// Show phpinfo() output -else if ($action == 'phpinfo' && $pun_user['g_id'] == PUN_ADMIN) -{ - // Is phpinfo() a disabled function? - if (strpos(strtolower((string)@ini_get('disable_functions')), 'phpinfo') !== false) - message('The PHP function phpinfo() has been disabled on this server.'); - - phpinfo(); - exit; -} - - -// Get the server load averages (if possible) -if (@file_exists('/proc/loadavg') && is_readable('/proc/loadavg')) -{ - // We use @ just in case - $fh = @fopen('/proc/loadavg', 'r'); - $load_averages = @fread($fh, 64); - @fclose($fh); - - $load_averages = @explode(' ', $load_averages); - $server_load = isset($load_averages[2]) ? $load_averages[0].' '.$load_averages[1].' '.$load_averages[2] : 'Not available'; -} -else if (!in_array(PHP_OS, array('WINNT', 'WIN32')) && preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/i', @exec('uptime'), $load_averages)) - $server_load = $load_averages[1].' '.$load_averages[2].' '.$load_averages[3]; -else - $server_load = 'Not available'; - - -// Get number of current visitors -$result = $pun_db->query('SELECT COUNT(user_id) FROM '.$pun_db->prefix.'online WHERE idle=0') or error('Unable to fetch online count', __FILE__, __LINE__, $pun_db->error()); -$num_online = $pun_db->result($result); - - -// Get the database system version -switch ($db_type) -{ - case 'sqlite': - $db_version = 'SQLite '.sqlite_libversion(); - break; - - default: - $result = $pun_db->query('SELECT VERSION()') or error('Unable to fetch version info', __FILE__, __LINE__, $pun_db->error()); - $db_version = $pun_db->result($result); - break; -} - - -// Collect some additional info about MySQL -if ($db_type == 'mysql' || $db_type == 'mysqli') -{ - $db_version = 'MySQL '.$db_version; - - // Calculate total db size/row count - $result = $pun_db->query('SHOW TABLE STATUS FROM `'.$db_name.'`') or error('Unable to fetch table status', __FILE__, __LINE__, $pun_db->error()); - - $total_records = $total_size = 0; - while ($status = $pun_db->fetch_assoc($result)) - { - $total_records += $status['Rows']; - $total_size += $status['Data_length'] + $status['Index_length']; - } - - $total_size = $total_size / 1024; - - if ($total_size > 1024) - $total_size = round($total_size / 1024, 2).' MB'; - else - $total_size = round($total_size, 2).' KB'; -} - - -// See if MMCache or PHPA is loaded -if (function_exists('mmcache')) - $php_accelerator = 'Turck MMCache'; -else if (isset($_PHPA)) - $php_accelerator = 'ionCube PHP Accelerator'; -else - $php_accelerator = 'N/A'; - - -$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin'; -require PUN_ROOT.'header.php'; - -generate_admin_menu('index'); - -?> -
-

Forum administration

-
-
-

- Welcome to the PunBB administration control panel. From here you can control vital aspects of the forum. Depending on whether you are an administrator or a moderator you can

-  - organize categories and forums.
-  - set forum-wide options and preferences.
-  - control permissions for users and guests.
-  - view IP statistics for users.
-  - ban users.
-  - censor words.
-  - set up user ranks.
-  - prune old posts.
-  - handle post reports. -

-
-
- -

Statistics

-
-
-
-
PunBB version
-
- PunBB - Check for upgrade
- © Copyright 2002, 2003, 2004, 2005 Rickard Andersson -
-
Server load
-
- ( users online) -
-
Environment
-
- Operating system:
- PHP: - Show info
- Accelerator: -
-
Database
-
- -
Rows: -
Size: -
-
-
-
-
-
- -