get_image_link fix
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / vycisti_registracky.inc
CommitLineData
51ff3226 1<?php
2function vycisti_registracky() {
3global $db,$error;
4
5$q="select users.login as persona,users.email as email,k,node_id,node_creator,login from nodes
09f0f2fa 6left join users on nodes.node_creator=users.user_id where node_name='request for access' and node_parent=".REGISTRATION_REQUEST_NODE." and k<=".REGISTRATION_VOTES;
51ff3226 7
8$set=$db->query($q);
9while ($set->next()) {
10$noda=$set->getString('node_id');
11echo "Uchadzac ";
12echo $set->getString('login');
13echo "<br>Jeho noda:: ";
14echo $set->getString('node_id');
15echo "<br>";
16echo " pocet hlasov:: ";
17echo $set->getString('k');
18echo "<br>";
19$q="delete from users where user_id=$noda";
20echo $q;
21 $db->update($q);
22echo "<br>";
ac3bdc72 23// XXX hard coded, fix
51ff3226 24$q="delete from nodes where node_vector like '020914480$noda%'";
25echo $q;
26 $db->update($q);
27echo "<br>";
28echo "<hr>";
29$mail=$set->getString('email');
b6e35197 30mail($mail,SYSTEM_URL. " registracia","Lutujem, vasa registracia bola zamietnuta");
51ff3226 31// echo $mail;
32
33
34}
35
36return false;
37}
b6e35197 38?>
This page took 1.052529 seconds and 4 git commands to generate.