clan; $OMNILOG = 1; include("_include-config.php"); if(! check_login()) { header("Location: login.php"); exit; } if($data->clanlevel == 9) { if(isset($_POST['change_owner']) && $_POST['owner'] != $data->login) { $dbres = mysql_query("SELECT `login`,`level`,`clan` FROM `[users]` WHERE `login`='{$_POST['owner']}'"); if(($owner = mysql_fetch_object($dbres)) && $owner->clan == $data->clan && $owner->level & 0x01) { mysql_query("UPDATE `[users]` SET `clanlevel`=1 WHERE `login`='{$data->login}'"); mysql_query("UPDATE `[users]` SET `clanlevel`=9 WHERE `login`='{$owner->login}'"); mysql_query("UPDATE `[clans]` SET `owner`='{$owner->login}' WHERE `name`='{$data->clan}'"); header("Location: /criminals/clan.php?x={$data->clan}\n"); } } } mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'"); $dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup`,UNIX_TIMESTAMP(`online`) AS `online` FROM `[users]` WHERE `login`='{$_SESSION['login']}'"); $data = mysql_fetch_object($dbres); if($data->health <= 1){ mysql_query("UPDATE `[users]` SET `levens`=`levens`-1 WHERE `login`='{$data->login}'"); mysql_query("UPDATE `[users]` SET `health`=100 WHERE `login`='{$data->login}'"); } if($data->health <= 1){ print <<
Dutchcrime2005
Je bent dood gegaan u heeft nu nog {$data->levens} over