login != $admin1 && $data->login != $admin2) { exit; } mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'"); /* ------------------------- */ ?>
Admin - Statistieken
Meeste belcredits Laatste berichten Meeste attacks Alle verbannen leden


ENDHTML; /* ------------------------- */ ?> ==> Verbannen leden <== "; $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 " "; } } ?>
# Gebruiker Email
".$count.". ".$naam." ".$email."
Meeste Bel credits
"; $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 " "; } } ?>
# Gebruiker Credits
".$count.". ".$naam." ".$belcredits."
Attacks Boven de 50
"; $query = "SELECT * FROM `[users]` WHERE `attwins` > '50'"; $info = mysql_query($query) or die(mysql_error()); $count = 0; while ($gegeven = mysql_fetch_array($info)) { $naam = $gegeven["login"]; $attwins = $gegeven["attwins"]; $count++; echo " "; } } ?>
# Gebruiker Attacks
".$count.". ".$naam." ".$attwins."
==> Onactieve leden <==
"; $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 " "; } } ?>
# Gebruiker Email
".$count.". ".$naam." ".$email."
Bel Statistieken
"; $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 " "; } } ?> '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 "
# Gebruiker vandaag totaal
".$count.". ".$naam." ".$vandaaggebeld2." ".$totaalgebeld2."
\n"; 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"; } ?>
Er is deze maand in totaal ".$totaal['total']."x gebeld, dat is $".$totaalgeld."
De betaalde leden
"; $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 " "; } } ?>
# Gebruiker dagen Email
".$count.". ".$naam." ".$bdatum." ".$email."
==> Laatste 100 berichten <==
"; $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 " "; } } ?>
# Van Naar Subject Bericht
".$count.". ".$van." ".$naar." ".$subject." ".$bericht."