2 function uprav_zaregistrovanych() {
4 // 2110364 >> debug user
8 // XXX hardcoded, rewrite
9 $q="select users.login as persona,users.email as email,k,node_id,node_creator,login from nodes
10 left join users on nodes.node_creator=users.user_id where node_name!='request for access' and node_parent=".REGISTRATION_REQUEST_NODE." and
11 k>=".REGISTRATION_VOTES;
14 while ($set->next()) {
15 $noda=$set->getString('node_id');
17 echo $set->getString('login');
18 echo "<br>Jeho noda:: ";
19 echo $set->getString('node_id');
21 echo " pocet hlasov:: ";
22 echo $set->getString('k');
24 $q="update nodes set external_link='db://user' where node_id=$noda";
28 $q="update nodes set template_id=7 where node_id=$noda";
32 $q="update nodes set node_parent=0 where node_id=$noda";
36 $q="update nodes set node_vector='0$noda' where node_id=$noda"; // XXX setParent
40 $q="update users set user_mail=0 where user_id=$noda";