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: clan.php?x={$data['clan']}\n"); } } } mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='".$data['login']."'"); ?>