From c7ad1c0aafefeb887934ee54d15c205e5baa906c Mon Sep 17 00:00:00 2001 From: niekt0 Date: Thu, 23 Dec 2010 00:22:03 +0100 Subject: [PATCH] verification fix --- wwwroot/inc/eventz/verify.inc | 13 +++++++++++-- wwwroot/inc/nodes.inc | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) 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']; -- 2.30.2