From 918e58f47c1c62056afccb50a536275c4da6c151 Mon Sep 17 00:00:00 2001 From: Daniel Hromada Date: Sun, 30 Jan 2011 23:11:37 +0100 Subject: [PATCH] after the registration verification, the registration request shall be put into the node of a chosen guild --- wwwroot/inc/eventz/verify.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wwwroot/inc/eventz/verify.inc b/wwwroot/inc/eventz/verify.inc index 407e480..6abf4bc 100644 --- a/wwwroot/inc/eventz/verify.inc +++ b/wwwroot/inc/eventz/verify.inc @@ -5,8 +5,10 @@ global $db; $uvercode=mysql_real_escape_string($_POST['vc']); $login=mysql_real_escape_string($_POST['login']); -$kset=$db->query("select user_id from users where login='$login'"); -$kset->next();$userid=$kset->getString('user_id'); +$kset=$db->query("select user_id,guild_id from users where login='$login'"); +$kset->next(); +$userid=$kset->getString('user_id'); +$guild_id=$kset->getString('guild_id'); $set=$db->query("select node_id from nodes where node_id='$userid' and node_parent=".UNVERIFIED_REGISTRATIONS_NODE); if($set->getNumRows()!=1) { @@ -46,11 +48,14 @@ $db->update($q); $q="update node_access set node_user_subchild_count=node_user_subchild_count+1 where node_id=".REGISTRATION_REQUEST_NODE; $db->update($q); +nodes::putNode($userid,$guild_id,false); // and now the happy news:-)) echo "
Verification successfull.

from now on your registration is in the hands of kyberians

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