ich mach da immer md5 aus email und timestamp - dazu noch ein paar random-zahlen
Code: Alles auswählen
$dan = rand(15, 900) . rand(15, 1000) . rand(0, 99) . rand(0, 900) . rand(100, 900);
$dan = md5(time() . $email . $dan);
Code: Alles auswählen
<?php
$sqlse = new sql;
$sqlse->setQuery("select id from rex_2_user where login_activation = '0' and user_email = '" . $_GET['email'] . "' and activation_key != '' and activation_key = '" . $_GET['regid'] . "' limit 1");
if ($sqlse->getRows() > 0){
$sqlse->setQuery("update rex_2_user set login_activation = '1', activation_key = '' where user_email = '" . $_GET['email'] . "' and activation_key = '" . $_GET['regid'] . "' limit 1");
header("Location: http://www.xxx.at/37-0-Loginseite.html?reg=true");
exit();
} else {
header("Location: http://www.xxx.at/37-0-Loginseite.html?reg=false");
exit();
}
?>