2 function uprav_zaregistrovanych() {
4 // 2110364 >> debug user
6 // XXX hardcoded, rewrite
7 $q="select users.login as persona,users.email as email,k,node_id,node_creator,login from nodes
8 left join users on nodes.node_creator=users.user_id where node_name!='request for access' and node_parent=".REGISTRATION_REQUEST_NODE." and
9 k>=".REGISTRATION_VOTES;
12 while ($set->next()) {
13 $noda=$set->getString('node_id');
15 echo $set->getString('login');
16 echo "<br>Jeho noda:: ";
17 echo $set->getString('node_id');
19 echo " pocet hlasov:: ";
20 echo $set->getString('k');
22 $q="update nodes set external_link='db://user' where node_id=$noda";
26 $q="update nodes set template_id=7 where node_id=$noda";
30 $q="update nodes set node_parent=0 where node_id=$noda";
34 $q="update nodes set node_vector='0$noda' where node_id=$noda";
38 $q="update users set user_mail=0 where user_id=$noda";