beste leden ik heb een probleem met me crime.
als ik naar profiel gaat ( me eigen)
logt die auto uit , hier het script:
PHP
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()) ? "<b>Nu</b>" : $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/',"<br>\n",$data->info);
$data->info = preg_replace("/\[b\](.+?)\[\/b\]/is",'<b>\1</b>', $data->info); //vette text
$data->info = preg_replace("/\[i\](.+?)\[\/i\]/is",'<i>\1</i>', $data->info); //schuine text
$data->info = preg_replace("/\[u\](.+?)\[\/u\]/is",'<u>\1</u>', $data->info); //underlined
$data->info = preg_replace("#\[s\](.*?)\[/s\]#si", "<s>\\1</s>", $data->info); // doorstreepte tekst
$data->info = preg_replace("/\[scroll\](.+?)\[\/scroll\]/is",'<marquee>\1</marquee>', $data->info); //scrollende text
$data->info = preg_replace("/\[red\](.+?)\[\/red\]/is",'<font color=red>\1</font>', $data->info); //rood
$data->info = preg_replace("/\[blue\](.+?)\[\/blue\]/is",'<font color=blue>\1</font>', $data->info); //blauw
$data->info = preg_replace("/\[green\](.+?)\[\/green\]/is",'<font color=green>\1</font>', $data->info); //groen
$data->info = preg_replace("/\[yellow\](.+?)\[\/yellow\]/is",'<font color=yellow>\1</font>', $data->info); //geel
$data->info = preg_replace ("#\[color=(\#[0-9A-F]{6}|[a-z\-]+)\](.*?)\[/color\]#si", "<font color=\"\\1\">\\2</font>", $data->info);
$data->info = preg_replace("/\[img\](.+?)\[\/img\]/is",'<img src="\1">', $data->info);
$data->info = preg_replace("/\[img w=(.+?) h=(.+?)\](.+?)\[\/img\]/is",'<img src="\3" height="\1" width="\2">', $data->info);
$rank = Array("","Empty-Suit","No-Respect","Picciotto","Winkeldief","Pickpocket","Associate","Soldaat","Mobster","Lokale Leider","Leider","Godfather","Opper Hoofd","Maffia Lord","MC-Beginner","MC-Junkie","MC-Soldaat","MC-Kapitein","MC-Gangster","MC-Maffia","MC-Godfather","MC-Lord");
$rank = $rank[$data->rank];
// land
$landen = array (
"nl" => "<img border=\"0\" src=\"images/vlaggen/nl.gif\" alt=Nederland width=\"18\" height=\"12\">",
"be" => "<img border=\"0\" src=\"images/vlaggen/be.gif\" alt=België width=\"18\" height=\"12\">",
"de" => "<img border=\"0\" src=\"images/vlaggen/de.gif\" alt=Duitsland width=\"18\" height=\"12\">",
"com" => "<img border=\"0\" src=\"images/vlaggen/uk.gif\" alt=Amerika/Engeland width=\"18\" height=\"12\">");
$remotehost = gethostbyaddr($data->IP);
$ext = substr(strrchr($remotehost, "."), 1);
$land = $landen[$ext];
if ($land == "") {
$land = "<img border=\"0\" src=\"images/vlaggen/onbekend.gif\" alt=Onbekend width=\"18\" height=\"12\">";
}
if($data->allies == "") {
$data->allies = "{$data->login} heeft geen vrienden!";
}
if($data->enemies == "") {
$data->enemies = "{$data->login} heeft geen vijanden!";
}
if($data->info == "") {
$data->info = "<b><font color=red>Er is geen informatie tekst ingevuld</b></font>";
}
if($data->Partner_trouw == "") {
$data->Partner_trouw = "<b><font color=red>Niet Getrouwt</b></font>";
}
print <<<ENDHTML
<tr><td class="mainTxt"><b>Vrienden:</b> {$data->allies}</td></tr>
<tr><td class="mainTxt"><b>Vijanden:</b> {$data->enemies}</td></tr>
<table width=100%><tr><td class="MainTxt">
{$data->info}
</i></td></tr>
<tr><td class="mainTxt">
<table align="left"><p> <img src="$data->avaurl" width="220" height="220" border="0"></a></p></tr></td>
<table align="center">
<tr><td width=100><b>Nickname:</b></td> <td align="right"><b>$data->login</b></td></tr>
<tr><td width=100><b>Getrouwt met:</b></td> <td align="right"><b>{$data->Partner_trouw}</b></td></tr>
<tr><td width=100>Rank:</td> <td align="right">{$rank}</td></tr>
<tr><td width=100>$criminals:</td> <td align="right">{$data->clicks}</td></tr>
<tr><td width=125>Herkomst:</td> <td align="right">{$land}</td></tr>
<tr><td width=100>Clicks-Vandaag:</td> <td align="right">{$data->clickstoday}</td></tr>
<tr><td width=100>Land:</td> <td align="right">{$data->land}</td></tr>
<tr><td width=100><b>Drugs Meter:</b></td> <td align="right"><b>{$data->drugsmeter}</b></td></tr>
<tr><td width=100><b>Joint`s:</b></td> <td align="right"><b>{$data->joint}</b></td></tr>
<tr><td width=100>Attack Power:</td> <td align="right">{$data->attack}</td></tr>
<tr><td width=100>Defence-Power:</td> <td align="right">{$data->defence}</td></tr>
<tr><td width=100>Power:</td> <td align="right">{$power}</td></tr>
<tr><td width=100>Contant:</td> <td align="right">\${$data->cash}</td></tr>
<tr><td width=100>Op de bank:</td> <td align="right">\${$data->bank}</td></tr>
<tr><td width=125>Laatst online:</td> <td align="right">$online</td></tr>
<tr><td><br></td></tr>
</div></div></div>
Toon Meer