From: niekt0 Date: Wed, 22 Dec 2010 23:22:03 +0000 (+0100) Subject: verification fix X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=c7ad1c0aafefeb887934ee54d15c205e5baa906c;p=mirrors%2FKyberia-bloodline.git verification fix --- diff --git a/wwwroot/inc/eventz/verify.inc b/wwwroot/inc/eventz/verify.inc index 0481671..a062642 100644 --- a/wwwroot/inc/eventz/verify.inc +++ b/wwwroot/inc/eventz/verify.inc @@ -24,10 +24,19 @@ if($uvercode!=$vercode) { $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=".REGISTRATION_REQUEST_NODE.", node_vector='00000101020914480$userid' where node_id='$userid'"; -$db->update($q); + +//$q="update nodes set node_parent=".REGISTRATION_REQUEST_NODE.", node_vector='00000101020914480$userid' where node_id='$userid'"; +//$db->update($q); + + + $params['node_parent']=REGISTRATION_REQUEST_NODE; + $params['node_id']=$userid; + nodes::setParent($params); + + $q="update nodes set node_children_count=node_children_count+1 where node_id=".REGISTRATION_REQUEST_NODE; $db->update($q); $q="update nodes set node_created=NOW() where node_id='$userid'"; diff --git a/wwwroot/inc/nodes.inc b/wwwroot/inc/nodes.inc index 279142d..fc8e271 100644 --- a/wwwroot/inc/nodes.inc +++ b/wwwroot/inc/nodes.inc @@ -297,7 +297,7 @@ node_parent='$node_handle' order by node_created $orderby LIMIT $offset,$limit"; // Simple internal function to set node parrent -function setParrent() { +function setParent() { global $db,$node,$error,$error_messages; $parent_id=$params['node_parent']; $node_id=$params['node_id'];