X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fdatabase.inc;h=815f03fa66ce54e810d0ec2d29b44895ff9dfc68;hb=fe69da5f874fb15c978927554677a4c98dea9265;hp=53f698d5588c649bc8a6b65644ba3ec369cff10d;hpb=51ff32267c4949bad6a8dddc502cbc01ed56edc8;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/database.inc b/wwwroot/inc/database.inc index 53f698d..815f03f 100644 --- a/wwwroot/inc/database.inc +++ b/wwwroot/inc/database.inc @@ -65,7 +65,7 @@ function query($sql) { // if (preg_match("/^select/i",$sql) && (rand(0,1000)>MASTER2SLAVE) && $this->Master) { // every select query goes to onyx + opraveny regexp, aby matchoval vnorene selecty (br) - if (preg_match('/^\(?select/i',$sql) && $this->Master) { +/* if (preg_match('/^\(?select/i',$sql) && $this->Master) { $this->_linkId = false; $this->connect(SLAVE_HOST,SLAVE_USER,SLAVE_PASS,SLAVE_DATABASE); $this->Master = false; @@ -73,10 +73,10 @@ function query($sql) { } elseif (!preg_match("/^select/i",$sql) && !$this->Master) { - $this->_linkId = false; +*/ $this->_linkId = false; $this->connect(DB_HOST,DB_USER,DB_PASS,DB_DATABASE); $this->Master = true; - } +// } $this->_queryId = mysql_query($sql,$this->_linkId);