query('SELECT COUNT(user_id) FROM '.$db->prefix.'online') or error('Unable to fetch online count', __FILE__, __LINE__, $db->error()); $num_online = $db->result($result, 0); // Get the database system version $result = $db->query('SELECT version()') or error('Unable to fetch version info', __FILE__, __LINE__, $db->error()); $db_version = $db->result($result, 0); if ($db_type == 'mysql') { $db_version = 'MySQL '.$db_version; // Calculate total db size/row count (MySQL only) $result = $db->query('SHOW TABLE STATUS FROM '.$db_name) or error('Unable to fetch table status', __FILE__, __LINE__, $db->error()); $num_tables = $db->num_rows($result); $total_records = 0; $total_size = 0; while ($num_tables--) { $status = $db->fetch_row($result); $total_records += (int)$status[3]; $total_size += (int)$status[5] + (int)$status[7]; } $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'; } $page_title = htmlspecialchars($options['board_title']).' / Admin'; require 'header.php'; if ($cur_user['status'] > 1) admin_menu(); else moderator_menu(); ?>
Forum administation |
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 | |
Current version |
PunBB Developed by Rickard Andersson © Copyright 2002, 2003 Rickard Andersson |
Unix load averages | - users online |
Environment |
PHP Rows: Size: |