PHP gevorderde |
|
In die e-mail zet je een link.
activate.php?uid=3&code=jfj9399f3984jf84fj84fjjfj9490593j2ljff&code2=955454j54kj54lkj4ffhlkhffhfhff
Dan kun je 'm activeren met deze query:
<?php
"UPDATE users SET users_activated = 1, users_code = '', users_code2 = '' WHERE users_code = '" . addslashes($_GET['code']) . "' AND users_code2 = '" . addslashes($_GET['code2']) . "' AND users_id = " . intval($_GET['uid']);
?>
<?php "UPDATE users SET users_activated = 1, users_code = '', users_code2 = '' WHERE users_code = '" . addslashes($_GET['code']) . "' AND users_code2 = '" . addslashes($_GET['code2']) . "' AND users_id = " . intval($_GET['uid']); ?>
Je echo't ALTIJD dat de user is geactiveerd, dit tegen geautomatiseerde scripts.
|