verification fix
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / verify.inc
index 0481671538139e35ed6d33acc1a5f22a7ce551d5..a0626423cbcc95e17f1326bb41a4f915efae0303 100644 (file)
@@ -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'";
This page took 0.087579 seconds and 4 git commands to generate.