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 @@
loadem("account");
+ if($_REQUEST['Notify'] != "")
+ {
+ echo "do something here";
+ exit;
+ }
+
+ $type = $_REQUEST['type'];
+
if($type == "email")
{
$id = 1;
@@ -27,7 +35,7 @@
{
$row = mysql_fetch_assoc($res);
$row['attempts']++;
- if($row['attempts'] == 4)
+ if($row['attempts'] >= 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