From 919aa7df54dfa8cadc74075310617139bbb257c4 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Sep 2008 17:37:56 +0000 Subject: [PATCH] Improved register_globals Improved error handling --- www/verify.php | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/www/verify.php b/www/verify.php index b923c29..c9088f5 100644 --- a/www/verify.php +++ b/www/verify.php @@ -18,13 +18,13 @@ 0) { $row = mysql_fetch_assoc($res); - $row[attempts]++; - if($row[attempts] >= 6) + $row['attempts']++; + if($row['attempts'] >= 6) { $query = "update `domains` set `hash`='', `attempts`='$row[attempts]', `deleted`=NOW() where `id`='$domainid'"; showheader(_("Error!"), _("Error!")); @@ -142,4 +141,11 @@ showfooter(); exit; } + else + { + showheader(_("Error!"), _("Error!")); + echo _("Parameters are missing. Please try the complete URL."); + showfooter(); + exit; + } ?>