X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Feventz%2Fverify.inc;h=6abf4bcfbba14ffde54a1a4c3d9628a0bfe9d471;hb=0fd4a30fa839ce315009ad2c9ddae09198e40967;hp=407e4807d27cdf07055376b9d739cf7bcd5d9d64;hpb=8630d2174a0f798739eeea16be61b8653a10a5da;p=mirrors%2FKyberia-bloodline.git 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(); } + + } ?>