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