=0 ORDER BY rank DESC LIMIT 0,1"); $meestepower = mysql_query("SELECT * FROM `[users]` WHERE `activated`>=0 ORDER BY attack DESC LIMIT 0,1"); $meesterespect = mysql_query("SELECT * FROM `[users]` WHERE `activated`>=0 ORDER BY respect DESC LIMIT 0,1"); if(isset($_POST['login'],$_POST['pass'])) { $dbres = mysql_query("SELECT `login`,`activated` FROM `[users]` WHERE `login`='{$_POST['login']}' AND `pass`=MD5('{$_POST['pass']}')"); if(($data = mysql_fetch_object($dbres)) && $data->activated == 1) { $validate = md5(rand(0,1000)); setcookie("login",$data->login,time()+60*60*24,"/",""); setcookie("validate",$validate,time()+60*60*24,"/",""); mysql_query("REPLACE INTO `[online]`(`time`,`login`,`IP`,`validate`) values(NOW(),'{$_SERVER['REMOTE_ADDR']}','{$data->login}','$validate')"); $_SESSION['login'] = $data->login; $_SESSION['IP'] = $_SERVER['REMOTE_ADDR']; $dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup` FROM `[users]` WHERE `login`='{$_SESSION['login']}'"); $_SESSION['data'] = mysql_fetch_object($dbres); } } ?> <?php echo $page->sitetitle; ?>

Business... Nothing Personal

cash prizes each round!

Login:*
Password:*
Herhaal:*
E-Mail:*
Land:*
Recruiter:

ENDHTML; } else print "Aangemeld SuccesVol.

Je bent geregistreerd bij $page->sitetitle, Je kunt nu meteen in loggen.\n"; } /* ------------------------- */ ?>