<?php
###############################################
#  by MaZaFaKa                                #
#  ICQ: 449-559                               #
#  E-mail: Dimonnet@inbox.ru                  #
#  Menghabiskan waktu: Sekitar 2 minggu         #
#  Translate by: jogerplay #
#  Situs: http://jogerwap.net #
###############################################


$sql = mysql_query("SELECT * FROM `".USERS."` WHERE `status` != 'locked' AND `hosts` > 0 AND `hits` > 0 ORDER BY `hosts` DESC, `hits` DESC;");
$active = mysql_num_rows($sql);
$sql = mysql_query("SELECT COUNT(*) FROM `".USERS."`;");
$all_users = mysql_result($sql, 0);

$sql = mysql_query("SELECT COUNT(*) FROM `".USERS."` WHERE `status` = 'locked';");
$locked = mysql_result($sql, 0);

$sql = mysql_query("SELECT SUM(`hosts`), SUM(`hits`), SUM(`yday_hosts`), SUM(`yday_hits`), SUM(`month_hosts`), SUM(`month_hits`), SUM(`all_hosts`), SUM(`all_hits`), SUM(`in`), SUM(`out`), SUM(`all_in`), SUM(`all_out`) FROM `".USERS."`;");
list($hosts, $hits, $last_hosts, $last_hits, $month_hosts, $month_hits, $all_hosts, $all_hits, $in, $out, $all_in, $all_out) = mysql_fetch_row($sql);

echo(
"<u>Statistik</u><br />\n".
"Total Members: ".intval($all_users)."<br />\n".
"Aktif hari ini: ".intval($active)."<br />\n".
"Diblokir: ".intval($locked)."<br />\n".
"---<br />\n".
"Host hari ini: ".intval($hosts)."<br />\n".
"Hits hari ini: ".intval($hits)."<br />\n".
"Host kemarin: ".intval($last_hosts)."<br />\n".
"Hits kemarin: ".intval($last_hits)."<br />\n".
"Host bulan ini: ".intval($month_hosts)."<br />\n".
"Hits bulan ini: ".intval($month_hits)."<br />\n".
"Total host: ".intval($all_hosts)."<br />\n".
"Total hits: ".intval($all_hits)."<br />\n".
"---<br />\n".
"in: ".intval($in)."<br />\n".
"out: ".intval($out)."<br />\n".
"Total in: ".intval($all_in)."<br />\n".
"Total out: ".intval($all_out)."<br />\n".
"---<br />\n".
"<a href='".PATH."/".VERSION."/?".SESSION."'>".NAME."</a><br />\n");
?>