session_start(); if (!IS_ADMIN) bb_die($lang['NOT_AUTHORISED']); $sql[] = 'SELECT count(*) FROM `'.BB_USERS.'` WHERE `user_lastvisit` < UNIX_TIMESTAMP()-2592000 AND user_id NOT IN ('.EXCLUDED_USERS_CSV.')'; $sql[] = 'SELECT count(*) FROM `'.BB_USERS.'` WHERE `user_lastvisit` < UNIX_TIMESTAMP()-7776000 AND user_id NOT IN ('.EXCLUDED_USERS_CSV.')'; $sql[] = 'SELECT round(avg(size)/1048576) FROM `'.BB_BT_TORRENTS.'`'; $sql[] = 'SELECT count(*) FROM `'.BB_BT_TORRENTS.'`'; $sql[] = 'SELECT count(distinct(topic_id)) FROM `'.BB_BT_TRACKER_SNAP.'` WHERE seeders > 0'; $sql[] = 'SELECT count(distinct(topic_id)) FROM `'.BB_BT_TRACKER_SNAP.'` WHERE seeders > 5'; $sql[] = 'SELECT count(distinct(poster_id)) FROM `'.BB_BT_TORRENTS.'`'; $sql[] = 'SELECT count(distinct(poster_id)) FROM `'.BB_BT_TORRENTS.'` WHERE reg_time >= UNIX_TIMESTAMP()-2592000'; echo '
'; echo '{$lang['TR_STATS'][$i]} | {$row[0]} | "; } echo '
'; if ($l = sys('la')) { $l = explode(' ', $l); for ($i=0; $i < 3; $i++) { $l[$i] = round($l[$i], 1); } echo "\n\nloadavg: $l[0] $l[1] $l[2]\n\n"; } echo 'gen time: '. sprintf('%.3f', (array_sum(explode(' ', microtime())) - TIMESTART)) ." sec\n"; echo '