X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Feventz%2Fvycisti_registracky.inc;h=8df8c0c6bcb9a20a9b5dd35f67237ed8095f3f11;hb=09f0f2fae8b01c46318cee6e9864b7b1847e9fd3;hp=abd12c0b592ba3cfc47896eb9a73ca533dca4d7a;hpb=b6e351974839ae98f13663c02917350d2f408d66;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/eventz/vycisti_registracky.inc b/wwwroot/inc/eventz/vycisti_registracky.inc index abd12c0..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,6 +20,7 @@ $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);