From: niekt0 Date: Sat, 18 Dec 2010 03:13:07 +0000 (+0100) Subject: small registratiron fix X-Git-Url: http://git.harvie.cz/?a=commitdiff_plain;ds=sidebyside;h=4b313ce7c4582f34e4ca12422a632c1bb95ae43a;p=mirrors%2FKyberia-bloodline.git small registratiron fix --- diff --git a/wwwroot/inc/eventz/register.inc b/wwwroot/inc/eventz/register.inc index c9bcff6..bb75903 100644 --- a/wwwroot/inc/eventz/register.inc +++ b/wwwroot/inc/eventz/register.inc @@ -78,7 +78,7 @@ Ten musis zadat na adresu '.SYSTEM_URL.'/id/1976899/, kde vyplnis formular s tvojim nickom a verifkacnym kodom. Od tej chvile bude tvoja ziadost volne pristupna uz zaregistrovanym clenom, ktori o nej budu hlasovat. -Pocet hlasov aby sa ziadosti vyhovelo je 5. +Pocet hlasov aby sa ziadosti vyhovelo je x. Deadline na nazbieranie je 1 tyzden. Takze fakticky dufam ze si o sebe napisal(a) nieco inteligentne :) diff --git a/wwwroot/inc/eventz/verify.inc b/wwwroot/inc/eventz/verify.inc index f2b0605..1d80ace 100644 --- a/wwwroot/inc/eventz/verify.inc +++ b/wwwroot/inc/eventz/verify.inc @@ -8,6 +8,7 @@ $login=mysql_real_escape_string($_POST['login']); $kset=$db->query("select user_id from users where login='$login'"); $kset->next();$userid=$kset->getString('user_id'); +// XXX HARD CODED $set=$db->query("select * from nodes where node_id='$userid' and node_parent=1836516"); if($set->getNumRows()!=1) { global $error; @@ -26,7 +27,7 @@ if($uvercode!=$vercode) { } else { // ouch!! this is gonna be dirty!!!!! will be revised later:-) // XXX hardcoded, rewrite -$q="update nodes set node_parent=2091448, node_vector='00876611020914480$userid' where node_id='$userid'"; +$q="update nodes set node_parent=2091448, node_vector='0000010120914480$userid' where node_id='$userid'"; $db->update($q); $q="update nodes set node_children_count=node_children_count+1 where node_id=2091448"; $db->update($q);