\n";
$dbres = mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `attacktime` FROM `[logs]` WHERE `person`='{$data->login}' AND `time` >= '{$data->signup}' AND `area`='attack' ORDER BY `time` DESC LIMIT 0,25");
while($info = mysql_fetch_object($dbres)) {
$result = ($info->code & 0x01 == 1) ? "verloren" : "gewonnen";
$money = $info->code >> 1;
print <<{$info->attacktime} |
{$info->login} |
\$$money |
$result |
ENDHTML;
}
}
else if($_GET['x'] == "donate") {
print " Verzonden donaties | \n ";
$dbres = mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `donatetime` FROM `[logs]` WHERE `login`='{$data->login}' AND `time` >= '{$data->signup}' AND `area`='donate' ORDER BY `time` DESC LIMIT 0,25");
while($info = mysql_fetch_object($dbres)) {
$money = $info->code;
print <<{$info->donatetime} |
{$info->person} |
\$$money |
ENDHTML;
}
print " | \n
| \n\n Ontvangen donaties | \n";
print " \n";
$dbres = mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `donatetime` FROM `[logs]` WHERE `person`='{$data->login}' AND `time` >= '{$data->signup}' AND `area`='donate' ORDER BY `time` DESC LIMIT 0,25");
while($info = mysql_fetch_object($dbres)) {
$money = $info->code;
print <<{$info->donatetime} |
{$info->login} |
\$$money |
ENDHTML;
}
}
else if($_GET['x'] == "click") {
print " Datum | Nickname | Nummer | \n";
$dbres = mysql_query("SELECT *,DATE_FORMAT(`time`,'%d-%m-%Y %H:%i') AS `clicktime` FROM `[logs]` WHERE `person`='{$data->login}' AND `time` >= '{$data->signup}' AND `area`='click' ORDER BY `login`");
while($info = mysql_fetch_object($dbres)) {
print <<{$info->clicktime} |
{$info->login} |
{$info->code} |
ENDHTML;
}
}
else {
print <<Logs |
- Attack log
- Donatie log
- Kliks log
|
ENDHTML;
}
/* ------------------------- */ ?>
| |