login}'");
/* ------------------------- */ ?>
">
/* ------------------------- */
if(isset($_GET['x'])) {
$dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`online`) AS `time`,DATE_FORMAT(`online`,'%d-%m-%Y %H:%i') AS `online` FROM `[users]` WHERE `login`='{$_GET['x']}' AND `activated`=1");
if($data = mysql_fetch_object($dbres)) {
$online = ($data->time+60*5 > time()) ? "ja" : $data->online;
$type = Array("","Drugsdealer","Wetenschapper","Politie");
$type = $type[$data->type];
$criminals = Array("","Junkies","Klonen","Agenten");
$criminals = $criminals[$data->type];
$power = round(($data->attack+$data->defence)/2+$data->clicks*5);
$totalattacks = $data->attwins + $data->attlosses;
$totaldefends = $data->defwins + $data->deflosses;
$clan_name = preg_replace('/-\[recruit\]/',"",$data->clan);
$data->info = preg_replace('/\n/',"
\n",$data->info);
if($data->level == -1){
$status = dood;
} else {
$status = levend;
}
print <<
Statistieken
|
|
Nicknaam:
|
{$data->login} {$data->stat}
|
Clan:
|
{$data->clan}
|
Power:
|
{$power}
|
Cash:
|
\${$data->cash}
|
Bank:
|
\${$data->bank}
|
Status:
|
{$status}
|
online
|
$online
|
Slachtoffers:
|
{$data->clicks}
|
| Gewonnen | Verloren | Totaal |
Aanvallen | {$data->attwins} | {$data->attlosses} | {$totalattacks} |
Verdedigingen | {$data->defwins} | {$data->deflosses} | {$totaldefends} |
ENDHTML;
if($data->Mobieltje == 1)
print "";
print <<= 1 AND `area` <= 4) OR `area`=4+{$data->type}) ORDER BY `area`,`costs`");
$lastarea = 1;
while($weapon = mysql_fetch_object($dbres)) {
if($lastarea != $weapon->area)
print "";
$num = $data->{$weapon->name}+0;
print "";
$lastarea = $weapon->area;
}
}
}
/* ------------------------- */ ?>
|