acl_get('a_') ) { trigger_error('No_admin'); } // Generate relevant output if ( isset($_GET['pane']) && $_GET['pane'] == 'top' ) { page_header('', '', false); ?>
phpBB Logo lang['Admin_title']; ?>      
body {background-color: #98AAB1}', false); // Grab module information using Bart's "neat-o-module" system (tm) $dir = @opendir('.'); $setmodules = 1; while ( $file = @readdir($dir) ) { if ( preg_match('/^admin_(.*?)\.' . $phpEx . '$/', $file) ) { include($file); } } @closedir($dir); unset($setmodules); ?>
$action_ary ) { $cat = ( !empty($user->lang[$cat . '_cat']) ) ? $user->lang[$cat . '_cat'] : preg_replace('/_/', ' ', $cat); ?> $file ) { $action = ( !empty($user->lang[$action]) ) ? $user->lang[$action] : preg_replace('/_/', ' ', $action); $cell_bg = ( $cell_bg == 'row1' ) ? 'row2' : 'row1'; ?>
» lang['Return_to']; ?>
lang['Admin_Index']; ?>
lang['Forum_index']; ?>
»
sql_query($sql); if ( isset($_POST['delete']) ) { $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = config_value - " . sizeof($_POST['mark']) . " WHERE config_name = 'num_users'"; $db->sql_query($sql); } $log_action = ( isset($_POST['activate']) ) ? 'log_index_activate' : 'log_index_delete'; add_admin_log($log_action, sizeof($_POST['mark'])); } } } else if ( isset($_POST['remind']) ) { } else if ( isset($_POST['resetonline']) ) { } // Get forum statistics $total_posts = $board_config['num_posts']; $total_topics = $board_config['num_topics']; $total_users = $board_config['num_users']; $start_date = $user->format_date($board_config['board_startdate']); $boarddays = ( time() - $board_config['board_startdate'] ) / 86400; $posts_per_day = sprintf('%.2f', $total_posts / $boarddays); $topics_per_day = sprintf('%.2f', $total_topics / $boarddays); $users_per_day = sprintf('%.2f', $total_users / $boarddays); $avatar_dir_size = 0; if ( $avatar_dir = @opendir($phpbb_root_path . $board_config['avatar_path']) ) { while ( $file = @readdir($avatar_dir) ) { if ( $file != '.' && $file != '..' ) { $avatar_dir_size += @filesize($phpbb_root_path . $board_config['avatar_path'] . '/' . $file); } } @closedir($avatar_dir); // This bit of code translates the avatar directory size into human readable format // Borrowed the code from the PHP.net annoted manual, origanally written by: // Jesse (jesse@jess.on.ca) if ( $avatar_dir_size >= 1048576 ) { $avatar_dir_size = round($avatar_dir_size / 1048576 * 100) / 100 . ' MB'; } else if ( $avatar_dir_size >= 1024 ) { $avatar_dir_size = round($avatar_dir_size / 1024 * 100) / 100 . ' KB'; } else { $avatar_dir_size = $avatar_dir_size . ' Bytes'; } } else { // Couldn't open Avatar dir. $avatar_dir_size = $user->lang['Not_available']; } if ( $posts_per_day > $total_posts ) { $posts_per_day = $total_posts; } if ( $topics_per_day > $total_topics ) { $topics_per_day = $total_topics; } if ( $users_per_day > $total_users ) { $users_per_day = $total_users; } // DB size ... MySQL only // This code is heavily influenced by a similar routine // in phpMyAdmin 2.2.0 if ( preg_match('/^mysql/', SQL_LAYER) ) { $result = $db->sql_query('SELECT VERSION() AS mysql_version'); if ( $row = $db->sql_fetchrow($result) ) { $version = $row['mysql_version']; if ( preg_match('/^(3\.23|4\.)/', $version) ) { $db_name = ( preg_match('/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)/', $version) ) ? "`$dbname`" : $dbname; $sql = "SHOW TABLE STATUS FROM " . $db_name; $result = $db->sql_query($sql); $dbsize = 0; while ( $row = $db->sql_fetchrow($result) ) { if ( $row['Type'] != 'MRG_MyISAM' ) { if ( $table_prefix != '' ) { if ( strstr($row['Name'], $table_prefix) ) { $dbsize += $row['Data_length'] + $row['Index_length']; } } else { $dbsize += $row['Data_length'] + $row['Index_length']; } } } } else { $dbsize = $user->lang['Not_available']; } } else { $dbsize = $user->lang['Not_available']; } } else if ( preg_match('/^mssql/', SQL_LAYER) ) { $sql = "SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize FROM sysfiles"; $result = $db->sql_query($sql); $dbsize = ( $row = $db->sql_fetchrow($result) ) ? intval($row['dbsize']) : $user->lang['Not_available']; } else { $dbsize = $user->lang['Not_available']; } if ( is_int($dbsize) ) { $dbsize = ( $dbsize >= 1048576 ) ? sprintf('%.2f MB', ( $dbsize / 1048576 )) : ( ( $dbsize >= 1024 ) ? sprintf('%.2f KB', ( $dbsize / 1024 )) : sprintf('%.2f Bytes', $dbsize) ); } page_header($user->lang['Admin_Index']); ?>

lang['Welcome_phpBB']; ?>

lang['Admin_intro']; ?>

lang['Forum_stats']; ?>

lang['Statistic']; ?> lang['Value']; ?> lang['Statistic']; ?> lang['Value']; ?>
lang['Number_posts']; ?>: lang['Posts_per_day']; ?>:
lang['Number_topics']; ?>: lang['Topics_per_day']; ?>:
lang['Number_users']; ?>: lang['Users_per_day']; ?>:
lang['Board_started']; ?>: lang['Avatar_dir_size']; ?>:
lang['Database_size']; ?>: lang['Gzip_compression']; ?>: lang['ON'] : $user->lang['OFF']; ?>

lang['Admin_log']; ?>

lang['Admin_log_index_explain']; ?>

lang['Username']; ?> lang['IP']; ?> lang['Time']; ?> lang['Action']; ?>
format_date($log_data[$i]['time']); ?>

lang['Inactive_users']; ?>

lang['Inactive_users_explain']; ?>

"> " . ANONYMOUS . " ORDER BY user_regdate ASC"; $result = $db->sql_query($sql); if ( $row = $db->sql_fetchrow($result) ) { do { $row_class = ( $row_class == 'row1' ) ? 'row2' : 'row1'; ?> sql_fetchrow($result) ); ?>
lang['Username']; ?> lang['Joined']; ?> lang['Mark']; ?>
format_date($row['user_regdate']); ?>   
     
lang['No_inactive_users']; ?>
lang['Mark_all']; ?> :: lang['Unmark_all']; ?>
lang['ENCODING']); ?> <?php echo $user->lang['Admin_title']; ?> " name="title" noresize marginwidth="0" marginheight="0" scrolling="NO"> " name="nav" marginwidth="3" marginheight="3" scrolling="yes"> " name="main" marginwidth="0" marginheight="0" scrolling="auto"> <body bgcolor="white" text="#000000"> <p><?php echo $user->lang['No_frames']; ?></p> </body>