hulpadmin != 1 && $data->login != $admin1 && $data->login != $admin2)
{
exit;
}
?>
Hulp Admin - Statistieken |
print <<
ENDHTML;
/* ------------------------- */ ?>
if($_GET['x'] == "banned"){
echo "
# |
Gebruiker |
Email |
";
$query = "SELECT * FROM `[users]` WHERE `level` = '-1'";
$info = mysql_query($query) or die(mysql_error());
$count = 0;
while ($gegeven = mysql_fetch_array($info)) {
$naam = $gegeven["login"];
$email = $gegeven["email"];
$count++;
echo "
".$count.". |
".$naam." |
".$email." |
";
}
}
?>
if($_GET['x'] == "belcredits"){
echo "
# |
Gebruiker |
Credits |
Email |
";
$query = "SELECT * FROM `[users]` WHERE `belcredits` > '0'";
$info = mysql_query($query) or die(mysql_error());
$count = 0;
while ($gegeven = mysql_fetch_array($info)) {
$naam = $gegeven["login"];
$belcredits = $gegeven["belcredits"];
$email = $gegeven["email"];
$count++;
echo "
".$count.". |
".$naam." |
".$belcredits." |
".$email." |
";
}
}
?>
if($_GET['x'] == "attacks"){
echo "
# |
Gebruiker |
Attacks |
";
$query = "SELECT * FROM `[users]` WHERE `attwins` > '1000'";
$info = mysql_query($query) or die(mysql_error());
$count = 0;
while ($gegeven = mysql_fetch_array($info)) {
$naam = $gegeven["login"];
$attwins = $gegeven["attwins"];
$count++;
echo "
".$count.". |
".$naam." |
".$attwins." |
";
}
}
?>
if($_GET['x'] == "active"){
echo "
# |
Gebruiker |
Email |
";
$query = "SELECT * FROM `[users]` WHERE `activated` = '0'";
$info = mysql_query($query) or die(mysql_error());
$count = 0;
while ($gegeven = mysql_fetch_array($info)) {
$naam = $gegeven["login"];
$email = $gegeven["email"];
$count++;
echo "
".$count.". |
".$naam." |
".$email." |
";
}
}
?>
if($_GET['x'] == "bellers"){
echo "
# |
Gebruiker |
vandaag |
totaal |
";
$query = "SELECT * FROM `[users]` WHERE `beller` > '0' ORDER BY beller DESC";
$info = mysql_query($query) or die(mysql_error());
$count = 0;
while ($gegeven = mysql_fetch_array($info)) {
$naam = $gegeven["login"];
$vandaaggebeld2 = $gegeven["vandaaggebeld2"];
$totaalgebeld2 = $gegeven["totaalgebeld2"];
$count++;
echo "
".$count.". |
".$naam." |
".$vandaaggebeld2." |
".$totaalgebeld2." |
";
}
}
?>
if($_GET['x'] == "bellers"){
$query = "SELECT sum(`gebeld`) as total FROM `[users]` WHERE `gebeld`>'0'";
$info = mysql_query($query) or die(mysql_error());
$totaal = mysql_fetch_array($info);
$geld2 = $totaal['total'];
$totaalgeld = 0.84*$geld2;
$query2 = "SELECT sum(`gebeldtoday`) as totalday FROM `[users]` WHERE `gebeldtoday`>'0'";
$info2 = mysql_query($query2) or die(mysql_error());
$totaal2 = mysql_fetch_array($info2);
$geld3 = $totaal2['totalday'];
$totaalgeldd = 0.84*$geld3;
$query3 = "SELECT sum(`totaluur`) as totaluur FROM `[users]` WHERE `totaluur`>'0'";
$info3 = mysql_query($query3) or die(mysql_error());
$totaal3 = mysql_fetch_array($info3);
$geld4 = $totaal3['totaluur'];
$totaalgeldd2 = 0.84*$geld4;
$query5 = "SELECT sum(`totalweek`) as totalweek FROM `[users]` WHERE `totalweek`>'0'";
$info5 = mysql_query($query5) or die(mysql_error());
$totaal5 = mysql_fetch_array($info5);
$geld5 = $totaal5['totalweek'];
$totaalgeldd3 = 0.84*$geld5;
print "Er is dit uur {$data->totaluur}x gebeld, dat is $".$totaalgeldd2." |
\n";
print "Er is vandaag ".$totaal2['totalday']."x gebeld, dat is $".$totaalgeldd." |
\n";
print "Er is deze week {$data->totalweek}x gebeld, dat is $".$totaalgeldd3." |
\n";
print "Er is deze maand in totaal ".$totaal['total']."x gebeld, dat is $".$totaalgeld." |
\n";
}
?>
if($_GET['x'] == "betaald"){
echo "
# |
Gebruiker |
dagen |
Email |
";
$query = "SELECT * FROM `[users]` WHERE `paying` > '0'";
$info = mysql_query($query) or die(mysql_error());
$count = 0;
while ($gegeven = mysql_fetch_array($info)) {
$naam = $gegeven["login"];
$bdatum = $gegeven["paying"];
$email = $gegeven["email"];
$count++;
echo "
".$count.". |
".$naam." |
".$bdatum." |
".$email." |
";
}
}
?>
if($_GET['x'] == "berichten"){
echo "
==> Laatste 100 berichten <== |
# |
Van |
Naar |
Onderwerp |
Bericht |
";
$query = "SELECT * FROM `[messages]` ORDER BY time DESC LIMIT 0,100";
$info = mysql_query($query) or die(mysql_error());
$count = 0;
while ($gegeven = mysql_fetch_array($info)) {
$van = $gegeven["from"];
$naar = $gegeven["to"];
$subject = $gegeven["subject"];
$bericht = $gegeven["message"];
$count++;
echo "
".$count.". |
".$van." |
".$naar." |
".$subject." |
".$bericht." |
";
}
}
?>