GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed logging
[mirrors/Kyberia-bloodline.git]
/
wwwroot
/
inc
/
eventz
/
verify.inc
diff --git
a/wwwroot/inc/eventz/verify.inc
b/wwwroot/inc/eventz/verify.inc
index f2b0605d0d092eaf323582a9ee11f91ba78082e0..407e4807d27cdf07055376b9d739cf7bcd5d9d64 100644
(file)
--- a/
wwwroot/inc/eventz/verify.inc
+++ b/
wwwroot/inc/eventz/verify.inc
@@
-8,7
+8,7
@@
$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 from users where login='$login'");
$kset->next();$userid=$kset->getString('user_id');
-$set=$db->query("select
* from nodes where node_id='$userid' and node_parent=1836516"
);
+$set=$db->query("select
node_id from nodes where node_id='$userid' and node_parent=".UNVERIFIED_REGISTRATIONS_NODE
);
if($set->getNumRows()!=1) {
global $error;
$error="User already verificated or invalid.";
if($set->getNumRows()!=1) {
global $error;
$error="User already verificated or invalid.";
@@
-24,17
+24,26
@@
if($uvercode!=$vercode) {
$error="Wrong verification code or username";
return false;
} else {
$error="Wrong verification code or username";
return false;
} else {
+
// ouch!! this is gonna be dirty!!!!! will be revised later:-)
// XXX hardcoded, rewrite
// ouch!! this is gonna be dirty!!!!! will be revised later:-)
// XXX hardcoded, rewrite
-$q="update nodes set node_parent=2091448, node_vector='00876611020914480$userid' where node_id='$userid'";
+
+$q="update nodes set node_parent=".REGISTRATION_REQUEST_NODE.", node_vector='000001010473807402091448$userid' where node_id='$userid'";
$db->update($q);
$db->update($q);
-$q="update nodes set node_children_count=node_children_count+1 where node_id=2091448";
+
+
+// $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'";
$db->update($q);
$q="update nodes set node_system_access='public' where node_id='$userid'";
$db->update($q);
$db->update($q);
$q="update nodes set node_created=NOW() where node_id='$userid'";
$db->update($q);
$q="update nodes set node_system_access='public' where node_id='$userid'";
$db->update($q);
-$q="update node_access set node_user_subchild_count=node_user_subchild_count+1 where node_id=
2091448"
;
+$q="update node_access set node_user_subchild_count=node_user_subchild_count+1 where node_id=
".REGISTRATION_REQUEST_NODE
;
$db->update($q);
$db->update($q);
This page took
0.111332 seconds
and
4
git commands to generate.