0) $msgnum = 4; $dbres = mysql_query("SELECT `id` FROM `[users]` WHERE `email`='$email'"); if(mysql_num_rows($dbres) > 0) $msgnum = 5; if($msgnum == -1) { $code = rand(100000,999999); mysql_query("INSERT INTO `[users]`(signup,login,pass,IP,email,type) values(NOW(),'$login',MD5('$pass'),'$IP','$email',$type)"); mysql_query("INSERT INTO `[temp]`(login,IP,code,area,time) values('$login','$IP',$code,'signup',NOW())"); $id = mysql_insert_id(); mail($email,"Criminals activatie-code","Klik op de volgende link om je account te activeren:\nhttp://www.crimewar2004.com/signup.php?id=$id&code=$code","From: Criminals \n"); } } } /* ------------------------- */ ?> [( Criminals )] "> \n"; $id = $_GET['id']; $code = $_GET['code']; $dbres = mysql_query("SELECT `login` FROM `[temp]` WHERE `area`='signup' AND `id`='$id' AND `code`='$code'"); if($data = mysql_fetch_object($dbres)) { mysql_query("UPDATE `[users]` SET `activated`=1,`signup`=NOW() WHERE `login`='{$data->login}'"); mysql_query("DELETE FROM `[temp]` WHERE `id`='$id'"); print " \n"; } else print " \n"; } else { if($msgnum != -1) { print " \n"; if(isset($msgnum) && $msgnum != -1) print " \n"; print << ENDHTML; } else print " \n"; } /* ------------------------- */ ?>
Activatie
Activatie voltooid, je kunt nu inloggen
Incorrecte activatie-code...
Aanmelden
\n {$message[$msgnum]}\n
Login:
Wachtwoord:
Herhaal:
E-Mail:
Type: [?]
Je bent geregistreerd, er is een e-mail gestuurd naar $email met een activatie-code...