Activeer je account
'; $login = valid_input($_REQUEST['login']); $code = valid_input($_REQUEST['code']); $query = mysql_query(" SELECT activated FROM `[users]` WHERE login='". addslashes($login) ."' AND pass= '". addslashes($code) ."' ") or die (mysql_error()); $num = mysql_num_rows($query); $assoc = mysql_fetch_assoc($query); if(empty($login) || empty($code)) { echo '- Geen login/code meegegeven'; } elseif($assoc['activated'] == 1){ echo '- Dit account is al geactiveerd'; } elseif($num == 0){ echo '- Er is iets misgelopen'; } else { mysql_query("UPDATE `[users]` SET activated='1' WHERE login='" .addslashes($login) ."'"); echo 'Je account is succesvol geactiveerd, je kan nu inloggen.'; } echo '
'; } ?>
Gebruikersnaam:
Activicatie code: