getLine("SELECT forumposts, lastvisit FROM users WHERE id = '{$_SESSION['id']}' AND username = '{$_SESSION['username']}'"); //----------------------------------------------------------------- // Count Bans //----------------------------------------------------------------- $TotalBansCount = $db->getInfo_countRows("bans"); //----------------------------------------------------------------- // Count Forum Topics and Posts //----------------------------------------------------------------- $TotalTopicsCount = $db->getInfo_countRows("forum_topics","type != 3"); $TotalPostsCount = $db->getInfo_countRows("forum_replies"); //----------------------------------------------------------------- // Calculate the hit averages //----------------------------------------------------------------- $days_uptime = intval(abs((((($misc['site_opened'] - time())/60)/60)/24))); $daily_average = @round(($misc['total_hits']/$days_uptime), 0); $weekly_average = @round(($misc['total_hits']/($days_uptime/7)), 0); $monthly_average = @round(($misc['total_hits']/($days_uptime/30)), 0); //----------------------------------------------------------------- // UNIX load //----------------------------------------------------------------- if (@file_exists('/proc/loadavg')) { $fh = @fopen('/proc/loadavg', 'r'); $load_averages = @fread($fh, 64); @fclose($fh); $load_averages = @explode(' ', $load_averages); $server_load = $load_averages[0].' '.$load_averages[1].' '.$load_averages[2]; } else $server_load = $language['HQ server desc8']; //----------------------------------------------------------------- // PHP Accelerator //----------------------------------------------------------------- if (function_exists('mmcache')) $php_accelerator = 'Turck MMCache'; else if (isset($_PHPA)) $php_accelerator = 'ionCube PHP Accelerator'; else $php_accelerator = 'N/A'; //----------------------------------------------------------------- // Database system version //----------------------------------------------------------------- $result = $db->query('SELECT version()'); $db_version = @mysql_result($result, 0); //----------------------------------------------------------------- // Collect some info about MySQL //----------------------------------------------------------------- $result = $db->query("SHOW TABLE STATUS FROM `$database_name`"); $num_tables = @mysql_num_rows($result); $total_records = NULL; $total_size = NULL; while ($num_tables--) { $status = @mysql_fetch_row($result); $total_records += $status[4]; $total_size += $status[6] + $status[8]; } $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'; //----------------------------------------------------------------- // Check site for update //----------------------------------------------------------------- if(isset($is_webmaster)) // Slows site down, so it's avalable only for the webmaster { $update = @file_get_contents("http://www.jupiterportal.com/index.php?n=modules/update&a=1&d=$url"); //----------------------------------------------------------------- // Variables for differit messages //----------------------------------------------------------------- if($update) { if (!ini_get('allow_url_fopen')) $status = ''.$language['HQ update desc6'].''; elseif($update > $script_version) $status = ''.$language['HQ update desc3'].''; elseif($script_version > $update) $status = ''.$language['HQ update desc4'].''; elseif($script_version == $update) $status = ''.$language['HQ update desc5'].''; } else $status = ''.$language['HQ update desc7'].''; } //----------------------------------------------------------------- // Count PM //----------------------------------------------------------------- $new_pm_count = $db->getInfo_countRows("pm","r_user_id = '{$_SESSION['id']}' AND r_user_user = '{$_SESSION['username']}' AND r_date = 'unread' AND r_delete = 1"); //----------------------------------------------------------------- // Display information //----------------------------------------------------------------- ?>
{$_SESSION['username']}" ?>
".find_authorization($_SESSION['authorization'])."" ?>