get_acl_admin() ) { message_die(MESSAGE, 'No_admin', '', true); } // // Generate relevant output // if ( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'top' ) { include('page_header_admin.'.$phpEx); ?>
phpBB Logo      
body {background-color: #98AAB1}'; include('page_header_admin.'.$phpEx); // // 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($lang[$cat]) ) ? $lang[$cat] : preg_replace('/_/', ' ', $cat); ?> $file ) { $action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace('/_/', ' ', $action); $cell_bg = ( $cell_bg == 'row1' ) ? 'row2' : 'row1'; ?>
»
»
sql_query($sql); $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = config_value - " . sizeof($HTTP_POST_VARS['mark']) . " WHERE config_name = 'num_users'"; $db->sql_query($sql); $log_action = ( isset($HTTP_POST_VARS['activate']) ) ? 'log_index_activate' : 'log_index_delete'; add_admin_log($log_action, sizeof($HTTP_POST_VARS['mark'])); } } } else if ( isset($HTTP_POST_VARS['remind']) ) { } // // Get forum statistics // $total_posts = get_db_stat('postcount'); $total_topics = get_db_stat('topiccount'); $total_users = $board_config['num_users']; $start_date = create_date($board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone']); $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 = $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 = $lang['Not_available']; } } else { $dbsize = $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']) : $lang['Not_available']; } else { $dbsize = $lang['Not_available']; } if ( is_integer($dbsize) ) { $dbsize = ( $dbsize >= 1048576 ) ? sprintf('%.2f MB', ( $dbsize / 1048576 )) : ( ( $dbsize >= 1024 ) ? sprintf('%.2f KB', ( $dbsize / 1024 )) : sprintf('%.2f Bytes', $dbsize) ); } page_header($lang['Admin_Index']); ?>

: :
: :
: :
: :
: :

"> " . ANONYMOUS . " ORDER BY user_regdate ASC"; $result = $db->sql_query($sql); if ( $row = $db->sql_fetchrow($result) ) { do { $cell_bg = ( $cell_bg == 'row1' ) ? 'row2' : 'row1'; ?> sql_fetchrow($result) ); ?>
  
     
::
<?php echo $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 $lang['No_frames']; ?></p> </body>