login}'");
/* ------------------------- */ ?>
login}'");
$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']}' ");
if($data = mysql_fetch_object($dbres)) {
$com = mysql_query("SELECT * FROM `[comentaar]` WHERE `to`='$data->login' ORDER BY `datum` DESC");
$online = ($data->time+60*5 > time()) ? "Nu" : $data->online;
$type = Array("","Junkies","Klonen","Agenten","Terroristen","Militairen","Bitches","Killers");
$land1 = Array("","Belgie","Duitsland","Engeland","Frankrijk","Griekenland","Italie","Aruba","");
$land = $land1[$data->land];
$type = $type[$data->type];
$Provincie = $Provincie[$data->Provincie];
$criminals = Array("","Junkies","Klonen","Agenten");
$criminals = $criminals[$data->type];
$criminals1 = Array("","","","","","");
$criminals1 = $criminals1[$data->type];
$power = number_format(round(($data->attack+$data->defence)/2+$data->clicks*5),0,",",".");
$def = number_format(round($data->defence),0,",",".");
$att = number_format(round($data->attack),0,",",".");
$bankk = number_format(round($data->bank),0,",",".");
$contantt = number_format(round($data->cash),0,",",".");
$geldd = number_format(round($data->cash+$data->bank),0,",",".");
$totalattacks = $data->attwins + $data->attlosses;
$totaldefends = $data->defwins + $data->deflosses;
$data->info = opmaak($data->info);
$avaurl = $data->avaurl;
$muziek = $data->muziek;
$health = $data->health;
$clan_name = preg_replace('/-\[recruit\]/',"",$data->clan);
$data->info = preg_replace('/:P/',"",$data->info);
$data->info = preg_replace('/:D/',"",$data->info);
$data->info = preg_replace('/\:\o/',"",$data->info);
$data->info = preg_replace('/:shock:/',"",$data->info);
$data->info = preg_replace('/:lol:/',"",$data->info);
$data->info = preg_replace('/:x/',"",$data->info);
$data->info = preg_replace('/\:\$/',"",$data->info);
$data->info = preg_replace('/\:\*\(/',"",$data->info);
$data->info = preg_replace('/:evil:/',"",$data->info);
$data->info = preg_replace('/:twisted:/',"",$data->info);
$data->info = preg_replace('/\%\)/',"",$data->info);
$data->info = preg_replace('/:!:/',"",$data->info);
$data->info = preg_replace('/:question:/',"",$data->info);
$data->info = preg_replace('/:arrow:/',"",$data->info);
$data->info = preg_replace('/:idea:/',"",$data->info);
$data->info = preg_replace('/:hart:/',"",$data->info);
$data->info = preg_replace('/:o:/',"",$data->info);
$data->info = preg_replace('/:disco:/',"",$data->info);
$data->info = preg_replace('/:mrgreen:/',"",$data->info);
$data->info = preg_replace('/\:\)/',"",$data->info);
$data->info = preg_replace('/\:\(/',"",$data->info);
$data->info = preg_replace('/\;\)/',"",$data->info);
$data->info = preg_replace('/8\)/',"",$data->info);
$data->info = preg_replace('/\:\|/',"",$data->info);
$data->info = preg_replace('/\:\?/',"",$data->info);
$data->info = preg_replace('_/-o_',"",$data->info);
$data->info = preg_replace('-bonk-',"",$data->info);
$data->info = preg_replace("/\[EMAIL\](?U)((.|\n|\r)*)\[\/EMAIL\]/", "\\1", $data->info);
$data->info = preg_replace("/\[b\](.+?)\[\/b\]/is",'\1', $data->info); //vette text
$data->info = preg_replace("/\[i\](.+?)\[\/i\]/is",'\1', $data->info); //schuine text
$data->info = preg_replace("/\[u\](.+?)\[\/u\]/is",'\1', $data->info); //underlined
$data->info = preg_replace("#\[s\](.*?)\[/s\]#si", "\\1", $data->info); // doorstreepte tekst
$data->info = preg_replace("/\[scroll\](.+?)\[\/scroll\]/is",'', $data->info); //scrollende text
$data->info = preg_replace("/\[red\](.+?)\[\/red\]/is",'\1', $data->info); //rood
$data->info = preg_replace("/\[blue\](.+?)\[\/blue\]/is",'\1', $data->info); //blauw
$data->info = preg_replace("/\[green\](.+?)\[\/green\]/is",'\1', $data->info); //groen
$data->info = preg_replace("/\[yellow\](.+?)\[\/yellow\]/is",'\1', $data->info); //geel
$data->info = preg_replace ("#\[color=(\#[0-9A-F]{6}|[a-z\-]+)\](.*?)\[/color\]#si", "\\2", $data->info);
$data->info = preg_replace("/\[img\](.+?)\[\/img\]/is",'', $data->info);
$data->info = preg_replace("/\[img w=(.+?) h=(.+?)\](.+?)\[\/img\]/is",'', $data->info);
if ($data->clanlevel == 1){
$clanrank = "Member ";
}
if ($data->clanlevel == 2){
$clanrank = "Recruiter";
}
if ($data->clanlevel == 3){
$clanrank = "Member";
}
if ($data->clanlevel == 4){
$clanrank = "Member";
}
if ($data->clanlevel == 5){
$clanrank = "Member";
}
if ($data->clanlevel == 6){
$clanrank = "Manager";
}
if ($data->clanlevel == 7){
$clanrank = "Generaal";
}
if ($data->clanlevel == 8){
$clanrank = "Leader";
}
if ($data->clanlevel == 9){
$clanrank = "Owner";
}
$rank1 = array("","Empty-Suit","Deliveryboy","Picciotto","Shoplifter","Pickpocket","Thief","Associate","Mobster","Soldier","Swindler","Assassin","Local Chief","Chief","Bruglione","Godfather","Legendary Godfather");
$rank = $rank1[$data->rank];
}
$money = $data->cash+$data->bank;
if ($money <= 1999999) {
$mrank = "Straydog";
} elseif ($money > 2000000 AND $money <= 5000000) {
$mrank = "Lower Class";
} elseif ($money > 5000000 AND $money <= 10000000) {
$mrank = "Respectable Man";
} elseif ($money > 10000000 AND $money <= 15000000) {
$mrank = "Middle Class";
} elseif ($money > 15000000 AND $money <= 20000000) {
$mrank = "Wealthy";
} elseif ($money > 20000000 AND $money <= 50000000) {
$mrank = "Upper Class";
} elseif ($money > 50000000 AND $money <= 100000000) {
$mrank = "Rich";
} elseif ($money > 100000000 AND $money <= 200000000) {
$mrank = "Very Rich";
} elseif ($money > 200000000 AND $money <= 400000000) {
$mrank = "Dangerously Rich";
} elseif ($money > 400000000) {
$mrank = "Notoriously Rich";
}
$hhealth = round(100-$data->health);
if ($data->health <= 25) {
$healthcolor = "red";
} elseif ($data->health > 25 AND $data->health <= 50) {
$healthcolor = "orange";
} elseif ($data->health > 50 AND $data->health <= 75) {
$healthcolor = "yellow";
} elseif ($data->health > 75 AND $data->health <= 100) {
$healthcolor = "green";
}
if ($data->level >= 255) {
$status = "Admin";
} elseif ($data->level < 255) {
$status= "Lid";
}
if($data->vip == 0) {
$vip = "Geen VIP";
}
if($data->vip >= 1) {
$vip = "VIP lid+";
}
if($data->VI4P == 2) {
$vip = "GOLD";
}
$clan_name = preg_replace('/-\[recruit\]/',"",$data->clan);
$avatarurl = $data->avatarurl;
$data->info = preg_replace('/\n/',"
\n",$data->info);
$data->allies = preg_replace('/\n/',"
\n",$data->allies);
$data->enemies = preg_replace('/\n/',"
\n",$data->enemies);
if(isset($_SESSION['login']))
mysql_query("INSERT INTO `[wannabe]`(`time`,`login`,`person`,`code`,`area`) values(NOW(),'{$_SESSION['login']}','{$data->login}',{$data->clicks},'click')");
if(mysql_num_rows($dbres_paying) == 100) {
$medaille = " Medaille: | |
";
}
else {
$medaille = "";
}
print <<
Profiel |
{$online}
|
Info: |
|
Naam: | {$data->login} |
Clan: | {$data->clan} |
Clanrank: | {$clanrank} |
Betaald: | {$vip} |
Rank: | {$rank} |
Geldrank: | {$mrank} |
|
|
|
|
Status: |
|
$criminals: | {$data->clicks} |
Op de bank: | €{$bankk},- |
Contant: | €{$contantt},- |
|
|
|
|
Power: |
|
Attack Power: | {$att} |
Defence Power: | {$def} |
Totaal Power: | {$power} |
|
|
|
|
|
|
Vrienden:
{$data->allies}
|
Vijanden:
$data->enemies
|
|
Informatie |
{$data->info}
|
ENDHTML;
}
/* ------------------------- */ ?>