X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;ds=inline;f=wwwroot%2Finc%2Feventz%2Fvycisti_registracky.inc;h=8df8c0c6bcb9a20a9b5dd35f67237ed8095f3f11;hb=945c8fc4e3e7db4ea960e3ed751c113da0e0ad64;hp=0bf0a204a57287562c70f0a26037be347ac74a83;hpb=51ff32267c4949bad6a8dddc502cbc01ed56edc8;p=mirrors%2FKyberia-bloodline.git
diff --git a/wwwroot/inc/eventz/vycisti_registracky.inc b/wwwroot/inc/eventz/vycisti_registracky.inc
index 0bf0a20..8df8c0c 100644
--- a/wwwroot/inc/eventz/vycisti_registracky.inc
+++ b/wwwroot/inc/eventz/vycisti_registracky.inc
@@ -3,7 +3,7 @@ function vycisti_registracky() {
global $db,$error;
$q="select users.login as persona,users.email as email,k,node_id,node_creator,login from nodes
-left join users on nodes.node_creator=users.user_id where node_name='request for access' and node_parent=2091448 and k<=4";
+left 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;
$set=$db->query($q);
while ($set->next()) {
@@ -20,13 +20,14 @@ $q="delete from users where user_id=$noda";
echo $q;
$db->update($q);
echo "
";
+// XXX hard coded, fix
$q="delete from nodes where node_vector like '020914480$noda%'";
echo $q;
$db->update($q);
echo "
";
echo "