From 6314a12e8a6bd2794a83365ed9ef54f59a65dffe Mon Sep 17 00:00:00 2001 From: niekt0 Date: Wed, 8 Dec 2010 02:27:55 +0100 Subject: [PATCH] small fix to verify event --- wwwroot/inc/eventz/verify.inc | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/wwwroot/inc/eventz/verify.inc b/wwwroot/inc/eventz/verify.inc index b19a7ac..b6749aa 100644 --- a/wwwroot/inc/eventz/verify.inc +++ b/wwwroot/inc/eventz/verify.inc @@ -1,5 +1,5 @@ query("select hash from users where login='$login'"); $kset->next();$vercode=$kset->getString('hash'); if($uvercode!=$vercode) { -global $error; -$error="Wrong verification code or username"; -return false; -} - -else { + global $error; + $error="Wrong verification code or username"; + return false; +} else { // ouch!! this is gonna be dirty!!!!! will be revised later:-) // XXX hardcoded, rewrite $q="update nodes set node_parent=2091448, node_vector='00876611020914480$userid' where node_id='$userid'"; @@ -41,11 +39,9 @@ $db->update($q); // and now the happy news:-)) - - echo "
Verification successfull.

from now on your registration is in the hands of kyberians

"; - -die(); + die(); } + } ?> -- 2.30.2