small fix to verify event
authorniekt0 <niekt0@kyberia.cz>
Wed, 8 Dec 2010 01:27:55 +0000 (02:27 +0100)
committerniekt0 <niekt0@kyberia.cz>
Wed, 8 Dec 2010 01:27:55 +0000 (02:27 +0100)
wwwroot/inc/eventz/verify.inc

index b19a7ac71932f6bff3f4caf0b55f228e0ef48b42..b6749aa0593c243765702b7fef9767abacc1e83d 100644 (file)
@@ -1,5 +1,5 @@
 <?
-function verify() {
+function verify(){
 
 global $db;
 $uvercode=mysql_real_escape_string($_POST['vc']);
@@ -20,12 +20,10 @@ $kset=$db->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 "<center>Verification successfull.<br><h3>from now on your registration is in the hands of kyberians</h3></center>";
-
-die();
+       die();
 }
+
 }
 ?>
This page took 0.130905 seconds and 4 git commands to generate.