Added rudimentary transport support to get_threaded_children
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / uprav_zaregistrovanych.inc
CommitLineData
51ff3226 1<?php
2function uprav_zaregistrovanych() {
3global $db,$error;
4// 2110364 >> debug user
5
ac3bdc72 6// XXX hardcoded, rewrite
51ff3226 7$q="select users.login as persona,users.email as email,k,node_id,node_creator,login from nodes
09f0f2fa 8left join users on nodes.node_creator=users.user_id where node_name!='request for access' and node_parent=".REGISTRATION_REQUEST_NODE." and
9k>=".REGISTRATION_VOTES;
51ff3226 10
51ff3226 11$set=$db->query($q);
12while ($set->next()) {
13$noda=$set->getString('node_id');
14echo "User ";
15echo $set->getString('login');
16echo "<br>Jeho noda:: ";
17echo $set->getString('node_id');
18echo "<br>";
19echo " pocet hlasov:: ";
20echo $set->getString('k');
21echo "<br>";
22$q="update nodes set external_link='db://user' where node_id=$noda";
23echo $q;
24 $db->update($q);
25echo "<br>";
26$q="update nodes set template_id=7 where node_id=$noda";
27echo $q;
28 $db->update($q);
29echo "<br>";
30$q="update nodes set node_parent=0 where node_id=$noda";
31echo $q;
32 $db->update($q);
33echo "<br>";
34$q="update nodes set node_vector='0$noda' where node_id=$noda";
35echo $q;
36 $db->update($q);
37
38$q="update users set user_mail=0 where user_id=$noda";
39echo $q;
40 $db->update($q);
41
42echo "<br>";
43echo "<hr>";
44
45
46
47
48}
49
50return false;
51}
ac3bdc72 52?>
This page took 1.057741 seconds and 4 git commands to generate.