}\r
\r
// registration clause // XXX hard coded, registration text\r
- $qr_rc = $db->query('select node_content from nodes where node_id = 791946');\r
+ $qr_rc = $db->query('select node_content from nodes where node_id = '.REGISTRATION_TEXT_NODE);\r
$qr_rc->next();\r
\r
$params['node_content'] = sprintf('<i>%s</i><br />%s<br />\r
$content,\r
$email);\r
// XXX hard-coded\r
- $params['node_parent'] = 1836516; // registrations_noverified forum\r
+ $params['node_parent'] = UNVERIFIED_REGISTRATIONS_NODE; // registrations_noverified forum\r
$params['node_name'] = 'request for access';\r
$params['flag'] = 'registration';\r
$user_id = nodes::addNode($params);\r
// 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='000001010473807402091448$userid' where node_id='$userid'";
+$db->update($q);
- $params['node_parent']=REGISTRATION_REQUEST_NODE;
- $params['node_id']=$userid;
- nodes::setParent($params);
+// $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;
define('REGISTRATION_VOTES',2); //too small so far
// An attempt to remove hard-code constants from code
+define('REGISTRATION_TEXT_NODE',791946);
define('REGISTRATION_REQUEST_NODE',2091448);
define('UNVERIFIED_REGISTRATIONS_NODE',1836516);