From: Daniel Hromada Date: Sun, 30 Jan 2011 22:11:37 +0000 (+0100) Subject: after the registration verification, the registration request shall be put into... X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=918e58f47c1c62056afccb50a536275c4da6c151;p=mirrors%2FKyberia-bloodline.git after the registration verification, the registration request shall be put into the node of a chosen guild --- 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(); } + + } ?>