Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php ${"GLOBALS"}["giqqmrhr"]="mid";${"GLOBALS"}["ydaxtdp"]="ids";${"GLOBALS"}["kunuuhd"]..

Decoded Output download

<?php ${"GLOBALS"}["giqqmrhr"]="mid";${"GLOBALS"}["ydaxtdp"]="ids";${"GLOBALS"}["kunuuhd"]="pos";${"GLOBALS"}["tnfgvvio"]="querys";${"GLOBALS"}["ofbuuxl"]="mp";${"GLOBALS"}["bnxcuzmbf"]="rows2";${"GLOBALS"}["kgqktmsenf"]="sql";${"GLOBALS"}["kjddnakn"]="data";${"GLOBALS"}["gyrzsyurbpw"]="row";${"GLOBALS"}["dcffbyeiwuce"]="id";${"GLOBALS"}["elgkrybiuw"]="rows";${"GLOBALS"}["irmkybb"]="query";${"GLOBALS"}["dcvrgss"]="sportTable";require_once("adodb5/adodb.inc.php");class topodds{private$db;private$stbl;private$ttbl;private$mtbl;private$dsn;private function jsonout($rows){${"GLOBALS"}["jutsjdllbcp"]="input";$gfpemsvpxnh="rows";$struswbnvo="input";${${"GLOBALS"}["jutsjdllbcp"]}=json_encode(${$gfpemsvpxnh});echo${$struswbnvo};}public function __construct($dbserver,$database,$dbusername,$dbpassword,$sportTable,$marketTable,$tournamentTable){${"GLOBALS"}["sepftdzrup"]="tournamentTable";$this->db=&ADONewConnection("odbc_mssql");$this->dsn="Driver={SQL Server};Server=$dbserver;Database=$database;";$this->db->Connect($this->dsn,"$dbusername","$dbpassword");$this->stbl=${${"GLOBALS"}["dcvrgss"]};${"GLOBALS"}["psrodswgto"]="marketTable";$this->ttbl=${${"GLOBALS"}["sepftdzrup"]};$this->mtbl=${${"GLOBALS"}["psrodswgto"]};}public function fetchSports(){${${"GLOBALS"}["irmkybb"]}="SELECT DISTINCT sportName,{$this->stbl}.sportId FROM {$this->stbl},{$this->mtbl},{$this->ttbl} WHERE {$this->ttbl}.sportID = {$this->stbl}.sportID AND {$this->mtbl}.tournamentId = {$this->ttbl}.tournamentId AND wagerEnd > GetDate() AND status < 6 ORDER BY sportName";${"GLOBALS"}["khbxrpmilhn"]="rows";$txmbnlgllrv="query";$cyrccif="rows";$this->db->debug=-99;$krkuzhv="rows";${${"GLOBALS"}["elgkrybiuw"]}=$this->db->GetAll(${$txmbnlgllrv});${$cyrccif}=array("data"=>${$krkuzhv});$this->jsonout(${${"GLOBALS"}["khbxrpmilhn"]});}public function fetchTournaments($id){$fdopxi="query";${"GLOBALS"}["ihdyqwebga"]="id";${"GLOBALS"}["rhomlpexy"]="rows";${"GLOBALS"}["ultjavl"]="data";if(strpos(${${"GLOBALS"}["ihdyqwebga"]},"|")!==false){${"GLOBALS"}["dsxxnzpitf"]="id";${${"GLOBALS"}["dsxxnzpitf"]}=str_replace("|",",",${${"GLOBALS"}["dcffbyeiwuce"]});}${$fdopxi}="SELECT DISTINCT {$this->ttbl}.tournamentName,{$this->ttbl}.tournamentId,{$this->stbl}.sportId, {$this->stbl}.sportName FROM {$this->stbl},{$this->mtbl},{$this->ttbl} WHERE {$this->ttbl}.sportID = {$this->stbl}.sportID AND {$this->mtbl}.tournamentId = {$this->ttbl}.tournamentId AND wagerEnd > GetDate() AND status < 6 AND {$this->stbl}.sportid IN ($id) ORDER BY {$this->stbl}.sportId,{$this->ttbl}.tournamentName";${${"GLOBALS"}["elgkrybiuw"]}=$this->db->GetAll(${${"GLOBALS"}["irmkybb"]});${${"GLOBALS"}["ultjavl"]}=array();foreach(${${"GLOBALS"}["rhomlpexy"]} as${${"GLOBALS"}["gyrzsyurbpw"]}){$wdhiegzhbmsm="row";${${"GLOBALS"}["kjddnakn"]}[${${"GLOBALS"}["gyrzsyurbpw"]}[2]]["data"][]=array(${${"GLOBALS"}["gyrzsyurbpw"]}[1],${${"GLOBALS"}["gyrzsyurbpw"]}[0],);$wknogryatyhg="row";${${"GLOBALS"}["kjddnakn"]}[${$wdhiegzhbmsm}[2]]["sportName"]=${$wknogryatyhg}[3];}$this->jsonout(${${"GLOBALS"}["kjddnakn"]});}function fetchEvents($id){${"GLOBALS"}["cuqjjxx"]="query";if(strpos(${${"GLOBALS"}["dcffbyeiwuce"]},"|")!==false){${"GLOBALS"}["isolnris"]="id";${"GLOBALS"}["udjdsthty"]="id";${${"GLOBALS"}["udjdsthty"]}=str_replace("|",",",${${"GLOBALS"}["isolnris"]});}$jumsknygmko="rows";$mllqqxb="data";$rxsvri="data";${${"GLOBALS"}["irmkybb"]}="SELECT DISTINCT {$this->ttbl}.tournamentId,eventName,eventNumber,eventId,eventStatus,betType,eventDate FROM {$this->stbl},{$this->mtbl},{$this->ttbl} WHERE {$this->ttbl}.sportID = {$this->stbl}.sportID AND {$this->mtbl}.tournamentId = {$this->ttbl}.tournamentId AND wagerEnd > GetDate() AND status < 6 AND {$this->ttbl}.tournamentId IN ($id) ORDER BY {$this->ttbl}.tournamentId, EventName";${${"GLOBALS"}["elgkrybiuw"]}=$this->db->GetAll(${${"GLOBALS"}["cuqjjxx"]});${$mllqqxb}=array();foreach(${$jumsknygmko} as${${"GLOBALS"}["gyrzsyurbpw"]}){$fndbunnj="row";${"GLOBALS"}["ghywynqdi"]="row";${"GLOBALS"}["wpsidtmuf"]="data";$oqtapgleaad="row";if(${${"GLOBALS"}["ghywynqdi"]}[5]==1){$qzhldpsi="rows2";$wqabgtlhsx="sql";${${"GLOBALS"}["kgqktmsenf"]}="SELECT marketId, marketName1,marketName2,homePrice,drawPrice,awayPrice FROM market WHERE eventId = {$row[3]}";${${"GLOBALS"}["bnxcuzmbf"]}=$this->db->GetAll(${$wqabgtlhsx});foreach(${$qzhldpsi} as${${"GLOBALS"}["ofbuuxl"]}){$scwyxwiblb="row";$uczhzcklef="mp";${${"GLOBALS"}["kjddnakn"]}[${${"GLOBALS"}["gyrzsyurbpw"]}[0]][]=array(htmlentities(${$scwyxwiblb}[1])." : ".htmlentities(${$uczhzcklef}[1])." VS ".htmlentities(${${"GLOBALS"}["ofbuuxl"]}[2]),${${"GLOBALS"}["gyrzsyurbpw"]}[2],"$row[3].$mp[0]",${${"GLOBALS"}["gyrzsyurbpw"]}[4],${${"GLOBALS"}["gyrzsyurbpw"]}[5],${${"GLOBALS"}["gyrzsyurbpw"]}[6]);}}else${${"GLOBALS"}["wpsidtmuf"]}[${$oqtapgleaad}[0]][]=array(${${"GLOBALS"}["gyrzsyurbpw"]}[1],${${"GLOBALS"}["gyrzsyurbpw"]}[2],${${"GLOBALS"}["gyrzsyurbpw"]}[3],${${"GLOBALS"}["gyrzsyurbpw"]}[4],${${"GLOBALS"}["gyrzsyurbpw"]}[5],${$fndbunnj}[6]);}$this->jsonout(${$rxsvri});}public function fetchMarkets($id){$qldvjvy="pos";${"GLOBALS"}["sdhtpqr"]="data";$cqwpjmbc="id";if(strpos(${$cqwpjmbc},"|")!==false){$iqpcrrgp="id";${${"GLOBALS"}["dcffbyeiwuce"]}=str_replace("|",",",${$iqpcrrgp});}$ccycvgsd="data";$ujinohgjq="querys";${$qldvjvy}=strpos(${${"GLOBALS"}["dcffbyeiwuce"]},".");${${"GLOBALS"}["sdhtpqr"]}=array();${${"GLOBALS"}["tnfgvvio"]}=array();if(${${"GLOBALS"}["kunuuhd"]}===false){${${"GLOBALS"}["tnfgvvio"]}[]="SELECT  eventId,marketId,marketName1,status,eventStatus,currentPrice,CONVERT(CHAR(20),displayEnd,20) AS displayEnd2,betType,marketName2,homePrice,drawPrice,awayPrice FROM sport,market,tournament  WHERE market.eventStatus < 6 AND tournament.sportID = sport.sportID AND market.tournamentId = tournament.tournamentId AND eventId IN ($id) ORDER BY marketId";}else{${"GLOBALS"}["sgernkc"]="id";$tfuoicvrk="id";${${"GLOBALS"}["ydaxtdp"]}=explode(",",${${"GLOBALS"}["sgernkc"]});foreach(${${"GLOBALS"}["ydaxtdp"]} as${$tfuoicvrk}){${"GLOBALS"}["sxhkvvif"]="id";$cwwlxfdmm="pos";${$cwwlxfdmm}=strpos(${${"GLOBALS"}["sxhkvvif"]},".");if(${${"GLOBALS"}["kunuuhd"]}===false){${"GLOBALS"}["rgokiwtmd"]="querys";${${"GLOBALS"}["rgokiwtmd"]}[]="SELECT eventId,marketId,marketName1,status,eventStatus,currentPrice,CONVERT(CHAR(20),displayEnd,20) AS displayEnd2,betType,marketName2,homePrice,drawPrice,awayPrice FROM sport,market,tournament  WHERE market.eventStatus < 6 AND tournament.sportID = sport.sportID AND market.tournamentId = tournament.tournamentId AND eventId = ($id) ORDER BY marketId";}else{${"GLOBALS"}["zfwriuze"]="id";${${"GLOBALS"}["giqqmrhr"]}=explode(".",${${"GLOBALS"}["zfwriuze"]});${${"GLOBALS"}["tnfgvvio"]}[]="SELECT eventId,marketId,marketName1,status,eventStatus,currentPrice,CONVERT(CHAR(20),displayEnd,20) AS displayEnd2,betType,marketName2,homePrice,drawPrice,awayPrice  FROM sport,market,tournament WHERE market.eventStatus < 6 AND tournament.sportID = sport.sportID AND market.tournamentId = tournament.tournamentId AND eventId = $mid[0] AND market.marketId = $mid[1] ORDER BY marketId";}}}foreach(${$ujinohgjq} as${${"GLOBALS"}["irmkybb"]}){$zndkqxzdb="rows";$ogywajzbssh="rows";$this->db->debug=-099;${"GLOBALS"}["iizufwq"]="row";$pykfcht="query";${$zndkqxzdb}=$this->db->GetAll(${$pykfcht});foreach(${$ogywajzbssh} as${${"GLOBALS"}["iizufwq"]}){${"GLOBALS"}["lgafojnymphs"]="row";if(${${"GLOBALS"}["lgafojnymphs"]}[7]<>1){${"GLOBALS"}["kxixjwes"]="row";${"GLOBALS"}["ncyjxhttjt"]="row";$lrbuhgh="row";$yvhgylum="row";${"GLOBALS"}["qeybker"]="row";$tfroelqn="row";${${"GLOBALS"}["kjddnakn"]}[${${"GLOBALS"}["ncyjxhttjt"]}[0]]["data"][]=array(${${"GLOBALS"}["gyrzsyurbpw"]}[1],${${"GLOBALS"}["qeybker"]}[2],${$lrbuhgh}[5],${${"GLOBALS"}["gyrzsyurbpw"]}[3]);${${"GLOBALS"}["kjddnakn"]}[${${"GLOBALS"}["kxixjwes"]}[0]]["eventStatus"]=${${"GLOBALS"}["gyrzsyurbpw"]}[4];${${"GLOBALS"}["kjddnakn"]}[${$tfroelqn}[0]]["eventDate"]=strtotime(${${"GLOBALS"}["gyrzsyurbpw"]}[6]);${${"GLOBALS"}["kjddnakn"]}[${${"GLOBALS"}["gyrzsyurbpw"]}[0]]["eventType"]=${$yvhgylum}[7];}else{${"GLOBALS"}["wljfcmrim"]="row";${"GLOBALS"}["vhpkdclx"]="row";$rbbwgjdeughv="row";${"GLOBALS"}["dtsfgwhuxg"]="row";${"GLOBALS"}["xxcliruepxx"]="data";$peboqvkyqe="data";$rvqqerndjypd="row";${"GLOBALS"}["ntolowehqn"]="row";$qlqnplvcmi="data";$rngfsxrykgl="row";$mmpoggo="row";$hfkghoweahd="row";${$peboqvkyqe}[${${"GLOBALS"}["gyrzsyurbpw"]}[0].".".${${"GLOBALS"}["gyrzsyurbpw"]}[1]]["data"][]=array(${${"GLOBALS"}["dtsfgwhuxg"]}[1],${${"GLOBALS"}["gyrzsyurbpw"]}[2],${$hfkghoweahd}[8],${$rvqqerndjypd}[9],${${"GLOBALS"}["gyrzsyurbpw"]}[10],${${"GLOBALS"}["ntolowehqn"]}[11],${${"GLOBALS"}["gyrzsyurbpw"]}[3]);$ztfsoxsfd="data";${$qlqnplvcmi}[${$rbbwgjdeughv}[0].".".${${"GLOBALS"}["gyrzsyurbpw"]}[1]]["eventStatus"]=${$mmpoggo}[4];${$ztfsoxsfd}[${${"GLOBALS"}["wljfcmrim"]}[0].".".${${"GLOBALS"}["gyrzsyurbpw"]}[1]]["eventDate"]=strtotime(${${"GLOBALS"}["gyrzsyurbpw"]}[6]);${${"GLOBALS"}["xxcliruepxx"]}[${$rngfsxrykgl}[0].".".${${"GLOBALS"}["vhpkdclx"]}[1]]["eventType"]=${${"GLOBALS"}["gyrzsyurbpw"]}[7];}}}$this->jsonout(${$ccycvgsd});}public function findMarkets($arg='',$sportId=0){${"GLOBALS"}["mksshbm"]="sportId";${"GLOBALS"}["lzxizjx"]="data";${"GLOBALS"}["ywmqholmhgl"]="query";$fppjoyiy="rows";${"GLOBALS"}["wsbendg"]="query";if(${${"GLOBALS"}["mksshbm"]}==0)${${"GLOBALS"}["irmkybb"]}="SELECT DISTINCT {$this->ttbl}.tournamentName,{$this->ttbl}.tournamentId,{$this->stbl}.sportId,{$this->mtbl}.eventId FROM {$this->stbl},{$this->mtbl},{$this->ttbl} WHERE {$this->ttbl}.sportID = {$this->stbl}.sportID AND {$this->mtbl}.tournamentId = {$this->ttbl}.tournamentId AND wagerEnd > GetDate() AND status < 6 AND (marketName1 LIKE '%$arg%' OR marketName2 LIKE '%$arg%') ORDER BY {$this->ttbl}.tournamentName";else${${"GLOBALS"}["ywmqholmhgl"]}="SELECT DISTINCT {$this->ttbl}.tournamentName,{$this->ttbl}.tournamentId,{$this->stbl}.sportId,{$this->mtbl}.eventId FROM {$this->stbl},{$this->mtbl},{$this->ttbl} WHERE {$this->ttbl}.sportID = {$this->stbl}.sportID AND {$this->mtbl}.tournamentId = {$this->ttbl}.tournamentId AND wagerEnd > GetDate() AND status < 6 AND {$this->stbl}.sportid = $sportId AND (marketName1 LIKE '%$arg%' OR marketName2 LIKE '%$arg%') ORDER BY {$this->ttbl}.tournamentName";$etfnqbtqcq="data";${$fppjoyiy}=$this->db->GetAll(${${"GLOBALS"}["wsbendg"]});$nlmjtbmmyve="rows";${${"GLOBALS"}["kjddnakn"]}=array();foreach(${$nlmjtbmmyve} as${${"GLOBALS"}["gyrzsyurbpw"]}){$ptouehdn="row";${"GLOBALS"}["mgvtlkeqox"]="data";${${"GLOBALS"}["mgvtlkeqox"]}[${${"GLOBALS"}["gyrzsyurbpw"]}[2]][${$ptouehdn}[1]][]=${${"GLOBALS"}["gyrzsyurbpw"]}[3];}${${"GLOBALS"}["lzxizjx"]}=array("data"=>${$etfnqbtqcq});$this->jsonout(${${"GLOBALS"}["kjddnakn"]});}public function version(){${"GLOBALS"}["jejflo"]="data";$lomxqoyewztr="data";${${"GLOBALS"}["jejflo"]}=array("data"=>"3.0.0");$this->jsonout(${$lomxqoyewztr});}}   
 ?>

Did this file decode correctly?

Original Code

<?php ${"GLOBALS"}["giqqmrhr"]="mid";${"GLOBALS"}["ydaxtdp"]="ids";${"GLOBALS"}["kunuuhd"]="pos";${"GLOBALS"}["tnfgvvio"]="querys";${"GLOBALS"}["ofbuuxl"]="mp";${"GLOBALS"}["bnxcuzmbf"]="rows2";${"GLOBALS"}["kgqktmsenf"]="sql";${"GLOBALS"}["kjddnakn"]="data";${"GLOBALS"}["gyrzsyurbpw"]="row";${"GLOBALS"}["dcffbyeiwuce"]="id";${"GLOBALS"}["elgkrybiuw"]="rows";${"GLOBALS"}["irmkybb"]="query";${"GLOBALS"}["dcvrgss"]="sportTable";require_once("adodb5/adodb.inc.php");class topodds{private$db;private$stbl;private$ttbl;private$mtbl;private$dsn;private function jsonout($rows){${"GLOBALS"}["jutsjdllbcp"]="input";$gfpemsvpxnh="rows";$struswbnvo="input";${${"GLOBALS"}["jutsjdllbcp"]}=json_encode(${$gfpemsvpxnh});echo${$struswbnvo};}public function __construct($dbserver,$database,$dbusername,$dbpassword,$sportTable,$marketTable,$tournamentTable){${"GLOBALS"}["sepftdzrup"]="tournamentTable";$this->db=&ADONewConnection("odbc_mssql");$this->dsn="Driver={SQL Server};Server=$dbserver;Database=$database;";$this->db->Connect($this->dsn,"$dbusername","$dbpassword");$this->stbl=${${"GLOBALS"}["dcvrgss"]};${"GLOBALS"}["psrodswgto"]="marketTable";$this->ttbl=${${"GLOBALS"}["sepftdzrup"]};$this->mtbl=${${"GLOBALS"}["psrodswgto"]};}public function fetchSports(){${${"GLOBALS"}["irmkybb"]}="SELECT DISTINCT sportName,{$this->stbl}.sportId FROM {$this->stbl},{$this->mtbl},{$this->ttbl} WHERE {$this->ttbl}.sportID = {$this->stbl}.sportID AND {$this->mtbl}.tournamentId = {$this->ttbl}.tournamentId AND wagerEnd > GetDate() AND status < 6 ORDER BY sportName";${"GLOBALS"}["khbxrpmilhn"]="rows";$txmbnlgllrv="query";$cyrccif="rows";$this->db->debug=-99;$krkuzhv="rows";${${"GLOBALS"}["elgkrybiuw"]}=$this->db->GetAll(${$txmbnlgllrv});${$cyrccif}=array("data"=>${$krkuzhv});$this->jsonout(${${"GLOBALS"}["khbxrpmilhn"]});}public function fetchTournaments($id){$fdopxi="query";${"GLOBALS"}["ihdyqwebga"]="id";${"GLOBALS"}["rhomlpexy"]="rows";${"GLOBALS"}["ultjavl"]="data";if(strpos(${${"GLOBALS"}["ihdyqwebga"]},"|")!==false){${"GLOBALS"}["dsxxnzpitf"]="id";${${"GLOBALS"}["dsxxnzpitf"]}=str_replace("|",",",${${"GLOBALS"}["dcffbyeiwuce"]});}${$fdopxi}="SELECT DISTINCT {$this->ttbl}.tournamentName,{$this->ttbl}.tournamentId,{$this->stbl}.sportId, {$this->stbl}.sportName FROM {$this->stbl},{$this->mtbl},{$this->ttbl} WHERE {$this->ttbl}.sportID = {$this->stbl}.sportID AND {$this->mtbl}.tournamentId = {$this->ttbl}.tournamentId AND wagerEnd > GetDate() AND status < 6 AND {$this->stbl}.sportid IN ($id) ORDER BY {$this->stbl}.sportId,{$this->ttbl}.tournamentName";${${"GLOBALS"}["elgkrybiuw"]}=$this->db->GetAll(${${"GLOBALS"}["irmkybb"]});${${"GLOBALS"}["ultjavl"]}=array();foreach(${${"GLOBALS"}["rhomlpexy"]} as${${"GLOBALS"}["gyrzsyurbpw"]}){$wdhiegzhbmsm="row";${${"GLOBALS"}["kjddnakn"]}[${${"GLOBALS"}["gyrzsyurbpw"]}[2]]["data"][]=array(${${"GLOBALS"}["gyrzsyurbpw"]}[1],${${"GLOBALS"}["gyrzsyurbpw"]}[0],);$wknogryatyhg="row";${${"GLOBALS"}["kjddnakn"]}[${$wdhiegzhbmsm}[2]]["sportName"]=${$wknogryatyhg}[3];}$this->jsonout(${${"GLOBALS"}["kjddnakn"]});}function fetchEvents($id){${"GLOBALS"}["cuqjjxx"]="query";if(strpos(${${"GLOBALS"}["dcffbyeiwuce"]},"|")!==false){${"GLOBALS"}["isolnris"]="id";${"GLOBALS"}["udjdsthty"]="id";${${"GLOBALS"}["udjdsthty"]}=str_replace("|",",",${${"GLOBALS"}["isolnris"]});}$jumsknygmko="rows";$mllqqxb="data";$rxsvri="data";${${"GLOBALS"}["irmkybb"]}="SELECT DISTINCT {$this->ttbl}.tournamentId,eventName,eventNumber,eventId,eventStatus,betType,eventDate FROM {$this->stbl},{$this->mtbl},{$this->ttbl} WHERE {$this->ttbl}.sportID = {$this->stbl}.sportID AND {$this->mtbl}.tournamentId = {$this->ttbl}.tournamentId AND wagerEnd > GetDate() AND status < 6 AND {$this->ttbl}.tournamentId IN ($id) ORDER BY {$this->ttbl}.tournamentId, EventName";${${"GLOBALS"}["elgkrybiuw"]}=$this->db->GetAll(${${"GLOBALS"}["cuqjjxx"]});${$mllqqxb}=array();foreach(${$jumsknygmko} as${${"GLOBALS"}["gyrzsyurbpw"]}){$fndbunnj="row";${"GLOBALS"}["ghywynqdi"]="row";${"GLOBALS"}["wpsidtmuf"]="data";$oqtapgleaad="row";if(${${"GLOBALS"}["ghywynqdi"]}[5]==1){$qzhldpsi="rows2";$wqabgtlhsx="sql";${${"GLOBALS"}["kgqktmsenf"]}="SELECT marketId, marketName1,marketName2,homePrice,drawPrice,awayPrice FROM market WHERE eventId = {$row[3]}";${${"GLOBALS"}["bnxcuzmbf"]}=$this->db->GetAll(${$wqabgtlhsx});foreach(${$qzhldpsi} as${${"GLOBALS"}["ofbuuxl"]}){$scwyxwiblb="row";$uczhzcklef="mp";${${"GLOBALS"}["kjddnakn"]}[${${"GLOBALS"}["gyrzsyurbpw"]}[0]][]=array(htmlentities(${$scwyxwiblb}[1])." : ".htmlentities(${$uczhzcklef}[1])." VS ".htmlentities(${${"GLOBALS"}["ofbuuxl"]}[2]),${${"GLOBALS"}["gyrzsyurbpw"]}[2],"$row[3].$mp[0]",${${"GLOBALS"}["gyrzsyurbpw"]}[4],${${"GLOBALS"}["gyrzsyurbpw"]}[5],${${"GLOBALS"}["gyrzsyurbpw"]}[6]);}}else${${"GLOBALS"}["wpsidtmuf"]}[${$oqtapgleaad}[0]][]=array(${${"GLOBALS"}["gyrzsyurbpw"]}[1],${${"GLOBALS"}["gyrzsyurbpw"]}[2],${${"GLOBALS"}["gyrzsyurbpw"]}[3],${${"GLOBALS"}["gyrzsyurbpw"]}[4],${${"GLOBALS"}["gyrzsyurbpw"]}[5],${$fndbunnj}[6]);}$this->jsonout(${$rxsvri});}public function fetchMarkets($id){$qldvjvy="pos";${"GLOBALS"}["sdhtpqr"]="data";$cqwpjmbc="id";if(strpos(${$cqwpjmbc},"|")!==false){$iqpcrrgp="id";${${"GLOBALS"}["dcffbyeiwuce"]}=str_replace("|",",",${$iqpcrrgp});}$ccycvgsd="data";$ujinohgjq="querys";${$qldvjvy}=strpos(${${"GLOBALS"}["dcffbyeiwuce"]},".");${${"GLOBALS"}["sdhtpqr"]}=array();${${"GLOBALS"}["tnfgvvio"]}=array();if(${${"GLOBALS"}["kunuuhd"]}===false){${${"GLOBALS"}["tnfgvvio"]}[]="SELECT  eventId,marketId,marketName1,status,eventStatus,currentPrice,CONVERT(CHAR(20),displayEnd,20) AS displayEnd2,betType,marketName2,homePrice,drawPrice,awayPrice FROM sport,market,tournament  WHERE market.eventStatus < 6 AND tournament.sportID = sport.sportID AND market.tournamentId = tournament.tournamentId AND eventId IN ($id) ORDER BY marketId";}else{${"GLOBALS"}["sgernkc"]="id";$tfuoicvrk="id";${${"GLOBALS"}["ydaxtdp"]}=explode(",",${${"GLOBALS"}["sgernkc"]});foreach(${${"GLOBALS"}["ydaxtdp"]} as${$tfuoicvrk}){${"GLOBALS"}["sxhkvvif"]="id";$cwwlxfdmm="pos";${$cwwlxfdmm}=strpos(${${"GLOBALS"}["sxhkvvif"]},".");if(${${"GLOBALS"}["kunuuhd"]}===false){${"GLOBALS"}["rgokiwtmd"]="querys";${${"GLOBALS"}["rgokiwtmd"]}[]="SELECT eventId,marketId,marketName1,status,eventStatus,currentPrice,CONVERT(CHAR(20),displayEnd,20) AS displayEnd2,betType,marketName2,homePrice,drawPrice,awayPrice FROM sport,market,tournament  WHERE market.eventStatus < 6 AND tournament.sportID = sport.sportID AND market.tournamentId = tournament.tournamentId AND eventId = ($id) ORDER BY marketId";}else{${"GLOBALS"}["zfwriuze"]="id";${${"GLOBALS"}["giqqmrhr"]}=explode(".",${${"GLOBALS"}["zfwriuze"]});${${"GLOBALS"}["tnfgvvio"]}[]="SELECT eventId,marketId,marketName1,status,eventStatus,currentPrice,CONVERT(CHAR(20),displayEnd,20) AS displayEnd2,betType,marketName2,homePrice,drawPrice,awayPrice  FROM sport,market,tournament WHERE market.eventStatus < 6 AND tournament.sportID = sport.sportID AND market.tournamentId = tournament.tournamentId AND eventId = $mid[0] AND market.marketId = $mid[1] ORDER BY marketId";}}}foreach(${$ujinohgjq} as${${"GLOBALS"}["irmkybb"]}){$zndkqxzdb="rows";$ogywajzbssh="rows";$this->db->debug=-099;${"GLOBALS"}["iizufwq"]="row";$pykfcht="query";${$zndkqxzdb}=$this->db->GetAll(${$pykfcht});foreach(${$ogywajzbssh} as${${"GLOBALS"}["iizufwq"]}){${"GLOBALS"}["lgafojnymphs"]="row";if(${${"GLOBALS"}["lgafojnymphs"]}[7]<>1){${"GLOBALS"}["kxixjwes"]="row";${"GLOBALS"}["ncyjxhttjt"]="row";$lrbuhgh="row";$yvhgylum="row";${"GLOBALS"}["qeybker"]="row";$tfroelqn="row";${${"GLOBALS"}["kjddnakn"]}[${${"GLOBALS"}["ncyjxhttjt"]}[0]]["data"][]=array(${${"GLOBALS"}["gyrzsyurbpw"]}[1],${${"GLOBALS"}["qeybker"]}[2],${$lrbuhgh}[5],${${"GLOBALS"}["gyrzsyurbpw"]}[3]);${${"GLOBALS"}["kjddnakn"]}[${${"GLOBALS"}["kxixjwes"]}[0]]["eventStatus"]=${${"GLOBALS"}["gyrzsyurbpw"]}[4];${${"GLOBALS"}["kjddnakn"]}[${$tfroelqn}[0]]["eventDate"]=strtotime(${${"GLOBALS"}["gyrzsyurbpw"]}[6]);${${"GLOBALS"}["kjddnakn"]}[${${"GLOBALS"}["gyrzsyurbpw"]}[0]]["eventType"]=${$yvhgylum}[7];}else{${"GLOBALS"}["wljfcmrim"]="row";${"GLOBALS"}["vhpkdclx"]="row";$rbbwgjdeughv="row";${"GLOBALS"}["dtsfgwhuxg"]="row";${"GLOBALS"}["xxcliruepxx"]="data";$peboqvkyqe="data";$rvqqerndjypd="row";${"GLOBALS"}["ntolowehqn"]="row";$qlqnplvcmi="data";$rngfsxrykgl="row";$mmpoggo="row";$hfkghoweahd="row";${$peboqvkyqe}[${${"GLOBALS"}["gyrzsyurbpw"]}[0].".".${${"GLOBALS"}["gyrzsyurbpw"]}[1]]["data"][]=array(${${"GLOBALS"}["dtsfgwhuxg"]}[1],${${"GLOBALS"}["gyrzsyurbpw"]}[2],${$hfkghoweahd}[8],${$rvqqerndjypd}[9],${${"GLOBALS"}["gyrzsyurbpw"]}[10],${${"GLOBALS"}["ntolowehqn"]}[11],${${"GLOBALS"}["gyrzsyurbpw"]}[3]);$ztfsoxsfd="data";${$qlqnplvcmi}[${$rbbwgjdeughv}[0].".".${${"GLOBALS"}["gyrzsyurbpw"]}[1]]["eventStatus"]=${$mmpoggo}[4];${$ztfsoxsfd}[${${"GLOBALS"}["wljfcmrim"]}[0].".".${${"GLOBALS"}["gyrzsyurbpw"]}[1]]["eventDate"]=strtotime(${${"GLOBALS"}["gyrzsyurbpw"]}[6]);${${"GLOBALS"}["xxcliruepxx"]}[${$rngfsxrykgl}[0].".".${${"GLOBALS"}["vhpkdclx"]}[1]]["eventType"]=${${"GLOBALS"}["gyrzsyurbpw"]}[7];}}}$this->jsonout(${$ccycvgsd});}public function findMarkets($arg='',$sportId=0){${"GLOBALS"}["mksshbm"]="sportId";${"GLOBALS"}["lzxizjx"]="data";${"GLOBALS"}["ywmqholmhgl"]="query";$fppjoyiy="rows";${"GLOBALS"}["wsbendg"]="query";if(${${"GLOBALS"}["mksshbm"]}==0)${${"GLOBALS"}["irmkybb"]}="SELECT DISTINCT {$this->ttbl}.tournamentName,{$this->ttbl}.tournamentId,{$this->stbl}.sportId,{$this->mtbl}.eventId FROM {$this->stbl},{$this->mtbl},{$this->ttbl} WHERE {$this->ttbl}.sportID = {$this->stbl}.sportID AND {$this->mtbl}.tournamentId = {$this->ttbl}.tournamentId AND wagerEnd > GetDate() AND status < 6 AND (marketName1 LIKE '%$arg%' OR marketName2 LIKE '%$arg%') ORDER BY {$this->ttbl}.tournamentName";else${${"GLOBALS"}["ywmqholmhgl"]}="SELECT DISTINCT {$this->ttbl}.tournamentName,{$this->ttbl}.tournamentId,{$this->stbl}.sportId,{$this->mtbl}.eventId FROM {$this->stbl},{$this->mtbl},{$this->ttbl} WHERE {$this->ttbl}.sportID = {$this->stbl}.sportID AND {$this->mtbl}.tournamentId = {$this->ttbl}.tournamentId AND wagerEnd > GetDate() AND status < 6 AND {$this->stbl}.sportid = $sportId AND (marketName1 LIKE '%$arg%' OR marketName2 LIKE '%$arg%') ORDER BY {$this->ttbl}.tournamentName";$etfnqbtqcq="data";${$fppjoyiy}=$this->db->GetAll(${${"GLOBALS"}["wsbendg"]});$nlmjtbmmyve="rows";${${"GLOBALS"}["kjddnakn"]}=array();foreach(${$nlmjtbmmyve} as${${"GLOBALS"}["gyrzsyurbpw"]}){$ptouehdn="row";${"GLOBALS"}["mgvtlkeqox"]="data";${${"GLOBALS"}["mgvtlkeqox"]}[${${"GLOBALS"}["gyrzsyurbpw"]}[2]][${$ptouehdn}[1]][]=${${"GLOBALS"}["gyrzsyurbpw"]}[3];}${${"GLOBALS"}["lzxizjx"]}=array("data"=>${$etfnqbtqcq});$this->jsonout(${${"GLOBALS"}["kjddnakn"]});}public function version(){${"GLOBALS"}["jejflo"]="data";$lomxqoyewztr="data";${${"GLOBALS"}["jejflo"]}=array("data"=>"3.0.0");$this->jsonout(${$lomxqoyewztr});}}  
 ?>

Function Calls

None

Variables

None

Stats

MD5 7e89b47864b573cbc515ddf44ac10ff3
Eval Count 0
Decode Time 64 ms