diff --git a/www/verify.php b/www/verify.php index cf5a220..2fee994 100644 --- a/www/verify.php +++ b/www/verify.php @@ -15,6 +15,14 @@ = 6) { mysql_query("update `email` set `hash`='', `attempts`='$row[attempts]', `deleted`=NOW() where `id`='$emailid'"); showheader(_("Error!"), _("Error!")); @@ -38,7 +46,7 @@ mysql_query("update `email` set `attempts`='$row[attempts]' where `id`='$emailid'"); } - $query = "select * from `email` where `id`='$emailid' and `hash`='$hash' and hash!='' and deleted=0 and `attempts` <= 2"; + $query = "select * from `email` where `id`='$emailid' and `hash`='$hash' and hash!='' and deleted=0 and `attempts` <= 6"; $res = mysql_query($query); if(mysql_num_rows($res) <= 0) { @@ -48,7 +56,7 @@ exit; } $row = mysql_fetch_assoc($res); - if($_REQUEST['reallyverify'] == 1) + if($_REQUEST['Yes'] != "") { $query = "update `email` set `hash`='',`modified`=NOW() where `id`='$emailid'"; mysql_query($query); @@ -56,10 +64,19 @@ mysql_query($query); showheader(_("Updated"), _("Updated")); echo _("Your account and/or email address has been verified. You can now start issuing certificates for this address."); + } else if($_REQUEST['No'] != "") { + header("location: /index.php"); + exit; } else { + showheader(_("Updated"), _("Updated")); printf(_("Are you sure you want to verify the email %s?"), $row['email']); - echo "
\n"; - printf(_("%sYes%s %sNo%s"), "", "", "", ""); + echo "
\n
"; + echo ""; + echo ""; + echo ""; + echo "
\n"; + echo "
\n"; + echo "
\n"; } showfooter(); exit; @@ -99,16 +116,25 @@ exit; } $row = mysql_fetch_assoc($res); - if($_REQUEST['reallyverify'] == 1) + if($_REQUEST['Yes'] != "") { $query = "update `domains` set `hash`='',`modified`=NOW() where `id`='$domainid'"; mysql_query($query); showheader(_("Updated"), _("Updated")); echo _("Your domain has been verified. You can now start issuing certificates for this domain."); + } else if($_REQUEST['No'] != "") { + header("location: /index.php"); + exit; } else { + showheader(_("Updated"), _("Updated")); printf(_("Are you sure you want to verify the domain %s?"), $row['name']); - echo "
\n"; - printf(_("%sYes%s %sNo%s"), "", "", "", ""); + echo "
\n
"; + echo ""; + echo ""; + echo ""; + echo "
\n"; + echo "
\n"; + echo "
\n"; } showfooter(); exit;