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 ${"GLOB\x41L\x53"}["\x70\x71\x64tvn\x75\x68j\x6ek\x78"]="k\x65y";${"\x47\x4c\x4f\x42..

Decoded Output download

<?php ${"GLOBALS"}["pqdtvnuhjnkx"]="key";${"GLOBALS"}["hycuzmja"]="error";${"GLOBALS"}["sgmeuyt"]="codemain";${"GLOBALS"}["avsbyhoto"]="finalRresult";${"GLOBALS"}["aemetthplvx"]="result";${"GLOBALS"}["qtksxakf"]="curl";${"GLOBALS"}["frifrgioiisb"]="user";${"GLOBALS"}["yeofhqdfwq"]="cookie_login";${"GLOBALS"}["jvbcdbdsdn"]="class";(defined("BASEPATH"))OR exit("No direct script access allowed");require dirname(__FILE__)."/Base.php";class MX_Controller{public$autoload=array();public function __construct(){${"GLOBALS"}["fvztvlwn"]="registry";${${"GLOBALS"}["jvbcdbdsdn"]}=str_replace(CI::$APP->config->item("controller_suffix"),"",get_class($this));log_message("debug",${${"GLOBALS"}["jvbcdbdsdn"]}." MX_Controller Initialized");Modules::${${"GLOBALS"}["fvztvlwn"]}[strtolower(${${"GLOBALS"}["jvbcdbdsdn"]})]=$this;date_default_timezone_set(TIMEZONE);${"GLOBALS"}["ohhbrfraunt"]="CI";$this->load=clone load_class("Loader");$this->load->initialize($this);${${"GLOBALS"}["ohhbrfraunt"]}=&get_instance();if(strpos(current_url(),"cron")===FALSE){if(get_cookie("mid")&&!session("uid")){${"GLOBALS"}["gwfqlgstaci"]="cookie_login";${"GLOBALS"}["kntzeq"]="cookie_login";${${"GLOBALS"}["gwfqlgstaci"]}=encrypt_decode(get_cookie("mid"));if(strlen(${${"GLOBALS"}["kntzeq"]})==32&&preg_match("/^[a-zA-Z0-9]+\$/",${${"GLOBALS"}["yeofhqdfwq"]})){${${"GLOBALS"}["frifrgioiisb"]}=$CI->db->select("id")->from(USERS)->where("ids",${${"GLOBALS"}["yeofhqdfwq"]})->where("status",1)->get()->row();if(!empty(${${"GLOBALS"}["frifrgioiisb"]})){set_session("uid",$user->id);}}else{delete_cookie("mid");}}$CI->db->query("DELETE FROM general_sessions WHERE timestamp < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 7 DAY))");}if(segment(1)!="set_language"&&(segment(2)!="pagseguro"||segment(3)!="complete")&&!file_exists("plugins/".segment(1))){$rumxoou="page_approved";$skpetmhng="page_approved";${"GLOBALS"}["viebrstvypo"]="controller_approved";$vrsbfcymk="method_approved";${"GLOBALS"}["ugkinfixm"]="controller_approved";$jupehmsrx="page_approved";$erhhkiocfq="page_approved";${"GLOBALS"}["ynwsndjko"]="method_approved";${${"GLOBALS"}["viebrstvypo"]}=array("auth");${$erhhkiocfq}=array("logout","p");$eifiryckmb="admin_controllers";${${"GLOBALS"}["ynwsndjko"]}=array("block_schedules_xml");$uemucsp="admin_controllers";${"GLOBALS"}["gcprfxjjpxh"]="controller_approved";if(!in_array($this->router->fetch_class(),${${"GLOBALS"}["gcprfxjjpxh"]})&&!in_array(segment(3),${$vrsbfcymk})&&!in_array(segment(1),${$rumxoou})&&!session("uid")){if(segment(1)!=""&&segment(3)!="cron"&&segment(1)!="cron"){redirect(PATH);}}if(session("uid")&&in_array($this->router->fetch_class(),${${"GLOBALS"}["ugkinfixm"]})&&!in_array(segment(2),${$skpetmhng})&&!in_array(segment(1),${$jupehmsrx})&&segment(2)!="timezone"){redirect(PATH."dashboard");}${$eifiryckmb}=array("users","module","packages","language","settings","payment_history");if(!get_role()&&in_array(segment(1),${$uemucsp})){redirect(cn());}if(get_role()){$mjshinfky="codemain";${$mjshinfky}=get_option("usernamertl","");$ndyxns="codemain";${"GLOBALS"}["kuqifjj"]="error";if(${$ndyxns}){$faiwdinbitld="curl";${${"GLOBALS"}["qtksxakf"]}=curl_init("http://dl.grafin.ir/ahmad/api/instayar.json");$ccleyfgkpl="codeactive";curl_setopt(${${"GLOBALS"}["qtksxakf"]},CURLOPT_RETURNTRANSFER,1);curl_setopt(${${"GLOBALS"}["qtksxakf"]},CURLOPT_SSL_VERIFYPEER,false);$kofulcj="codeactive";${${"GLOBALS"}["aemetthplvx"]}=curl_exec(${$faiwdinbitld});curl_close(${${"GLOBALS"}["qtksxakf"]});${${"GLOBALS"}["avsbyhoto"]}=json_decode(${${"GLOBALS"}["aemetthplvx"]});${$ccleyfgkpl}=$finalRresult->domins->${${"GLOBALS"}["sgmeuyt"]};if(${$kofulcj}==BASE){${"GLOBALS"}["jfvppxdvppo"]="error";${${"GLOBALS"}["jfvppxdvppo"]}="<p style="color: #fff;background: #53cb16;display: inline-block;padding: 10px;">       </p>";}else{${${"GLOBALS"}["hycuzmja"]}="<p style=\"color: red;display: inline-block;padding: 10px;\">  </p>";if((segment(1)!="oauth")){if(segment(1)!="settings"){redirect(PATH."settings/general");}}}}else{$xwihpokz="error";${$xwihpokz}="<p style=\"color: red;display: inline-block;padding: 10px;"> </p>";if((segment(1)!="oauth")){if(segment(1)!="settings"){redirect(PATH."settings/general");}}}${${"GLOBALS"}["pqdtvnuhjnkx"]}="satsertl";update_option(${${"GLOBALS"}["pqdtvnuhjnkx"]},${${"GLOBALS"}["kuqifjj"]});}}$this->load->_autoloader($this->autoload);}public function __get($class){return CI::$APP->${${"GLOBALS"}["jvbcdbdsdn"]};}} 
?>

Did this file decode correctly?

Original Code

<?php ${"GLOB\x41L\x53"}["\x70\x71\x64tvn\x75\x68j\x6ek\x78"]="k\x65y";${"\x47\x4c\x4f\x42AL\x53"}["\x68\x79\x63\x75\x7amja"]="er\x72\x6fr";${"\x47\x4cO\x42A\x4c\x53"}["\x73\x67\x6d\x65\x75\x79\x74"]="\x63\x6f\x64\x65m\x61in";${"GL\x4f\x42AL\x53"}["\x61vsb\x79\x68\x6ft\x6f"]="f\x69\x6e\x61l\x52r\x65\x73\x75\x6c\x74";${"\x47\x4cOBAL\x53"}["a\x65\x6de\x74\x74\x68\x70\x6c\x76x"]="\x72e\x73u\x6ct";${"GL\x4f\x42AL\x53"}["\x71\x74\x6b\x73\x78\x61k\x66"]="\x63\x75rl";${"\x47L\x4f\x42\x41\x4cS"}["f\x72if\x72\x67\x69\x6f\x69i\x73\x62"]="\x75s\x65\x72";${"\x47\x4c\x4f\x42A\x4cS"}["\x79\x65\x6f\x66hqdf\x77q"]="\x63\x6f\x6f\x6b\x69\x65\x5fl\x6f\x67i\x6e";${"\x47\x4cOBA\x4cS"}["\x6a\x76bcd\x62\x64s\x64n"]="\x63\x6c\x61\x73\x73";(defined("\x42AS\x45PAT\x48"))OR exit("\x4eo\x20dir\x65\x63\x74\x20scri\x70t\x20\x61c\x63\x65s\x73\x20al\x6cow\x65\x64");require dirname(__FILE__)."/B\x61\x73e\x2e\x70\x68p";class MX_Controller{public$autoload=array();public function __construct(){${"\x47\x4c\x4f\x42\x41LS"}["f\x76zt\x76\x6cw\x6e"]="\x72egi\x73\x74\x72\x79";${${"\x47L\x4f\x42A\x4c\x53"}["\x6a\x76b\x63\x64\x62ds\x64\x6e"]}=str_replace(CI::$APP->config->item("cont\x72o\x6cler_\x73u\x66f\x69\x78"),"",get_class($this));log_message("d\x65b\x75g",${${"\x47LO\x42AL\x53"}["\x6a\x76b\x63d\x62\x64sdn"]}." MX\x5fCo\x6e\x74\x72\x6fl\x6c\x65r\x20I\x6eit\x69a\x6cize\x64");Modules::${${"GLOBA\x4c\x53"}["\x66\x76\x7at\x76lw\x6e"]}[strtolower(${${"\x47\x4c\x4f\x42\x41L\x53"}["jv\x62\x63\x64b\x64\x73d\x6e"]})]=$this;date_default_timezone_set(TIMEZONE);${"\x47\x4c\x4f\x42\x41L\x53"}["o\x68\x68\x62\x72f\x72\x61\x75\x6e\x74"]="\x43\x49";$this->load=clone load_class("Lo\x61\x64e\x72");$this->load->initialize($this);${${"G\x4cO\x42\x41\x4c\x53"}["o\x68h\x62\x72\x66r\x61u\x6e\x74"]}=&get_instance();if(strpos(current_url(),"c\x72o\x6e")===FALSE){if(get_cookie("mi\x64")&&!session("\x75\x69d")){${"\x47\x4cOB\x41L\x53"}["\x67\x77\x66ql\x67\x73\x74\x61ci"]="c\x6f\x6f\x6b\x69e\x5flo\x67in";${"\x47\x4c\x4fB\x41LS"}["\x6bn\x74z\x65\x71"]="c\x6f\x6f\x6b\x69e\x5fl\x6fgin";${${"GLO\x42\x41\x4c\x53"}["\x67\x77\x66q\x6c\x67\x73\x74\x61\x63\x69"]}=encrypt_decode(get_cookie("m\x69\x64"));if(strlen(${${"GL\x4f\x42\x41\x4cS"}["\x6b\x6e\x74z\x65q"]})==32&&preg_match("/^[a-zA-Z\x30-9]+\$/",${${"G\x4cO\x42ALS"}["\x79\x65\x6f\x66\x68\x71\x64\x66\x77q"]})){${${"\x47L\x4f\x42\x41\x4c\x53"}["\x66r\x69fr\x67i\x6f\x69is\x62"]}=$CI->db->select("id")->from(USERS)->where("i\x64s",${${"\x47\x4c\x4f\x42ALS"}["y\x65\x6f\x66\x68\x71df\x77q"]})->where("s\x74a\x74\x75\x73",1)->get()->row();if(!empty(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x66\x72\x69\x66\x72\x67io\x69is\x62"]})){set_session("\x75id",$user->id);}}else{delete_cookie("\x6did");}}$CI->db->query("D\x45L\x45\x54E F\x52OM \x67\x65\x6e\x65ral\x5f\x73\x65\x73\x73\x69\x6fn\x73\x20\x57\x48E\x52\x45 tim\x65\x73tam\x70 < \x55N\x49X_TI\x4dE\x53\x54\x41M\x50(DATE\x5fSUB(NO\x57(), \x49\x4e\x54ERVA\x4c \x37 \x44A\x59))");}if(segment(1)!="s\x65\x74_l\x61ngua\x67\x65"&&(segment(2)!="\x70\x61g\x73\x65\x67u\x72\x6f"||segment(3)!="c\x6f\x6dple\x74\x65")&&!file_exists("p\x6cug\x69\x6es/".segment(1))){$rumxoou="\x70\x61\x67\x65\x5f\x61\x70\x70\x72\x6f\x76e\x64";$skpetmhng="pa\x67\x65\x5f\x61\x70\x70\x72\x6f\x76e\x64";${"\x47\x4cO\x42A\x4cS"}["\x76i\x65\x62rs\x74\x76\x79p\x6f"]="con\x74\x72o\x6c\x6c\x65\x72\x5f\x61\x70\x70\x72o\x76\x65d";$vrsbfcymk="\x6d\x65\x74\x68od\x5f\x61\x70pr\x6f\x76e\x64";${"\x47L\x4f\x42\x41LS"}["u\x67\x6bi\x6ef\x69\x78m"]="\x63o\x6e\x74\x72o\x6cl\x65\x72_\x61\x70p\x72\x6fv\x65\x64";$jupehmsrx="p\x61\x67e\x5f\x61\x70pr\x6fved";$erhhkiocfq="\x70\x61\x67e_\x61\x70pr\x6f\x76\x65\x64";${"G\x4cO\x42\x41LS"}["y\x6ew\x73\x6e\x64\x6a\x6b\x6f"]="m\x65t\x68\x6fd_\x61\x70\x70\x72\x6f\x76\x65\x64";${${"\x47L\x4f\x42\x41LS"}["\x76\x69eb\x72\x73\x74\x76\x79p\x6f"]}=array("a\x75t\x68");${$erhhkiocfq}=array("lo\x67o\x75\x74","p");$eifiryckmb="a\x64mi\x6e\x5fco\x6e\x74\x72ol\x6c\x65r\x73";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79\x6ews\x6e\x64\x6ak\x6f"]}=array("\x62\x6coc\x6b_\x73che\x64u\x6c\x65\x73_\x78ml");$uemucsp="\x61\x64\x6d\x69\x6e\x5f\x63ont\x72o\x6c\x6ce\x72\x73";${"\x47\x4c\x4f\x42\x41L\x53"}["g\x63\x70\x72\x66\x78\x6a\x6a\x70xh"]="\x63on\x74\x72oll\x65\x72\x5f\x61p\x70\x72ov\x65\x64";if(!in_array($this->router->fetch_class(),${${"\x47\x4cO\x42\x41L\x53"}["g\x63prfx\x6aj\x70x\x68"]})&&!in_array(segment(3),${$vrsbfcymk})&&!in_array(segment(1),${$rumxoou})&&!session("\x75id")){if(segment(1)!=""&&segment(3)!="cr\x6f\x6e"&&segment(1)!="c\x72\x6fn"){redirect(PATH);}}if(session("\x75\x69d")&&in_array($this->router->fetch_class(),${${"\x47\x4c\x4f\x42\x41L\x53"}["\x75\x67k\x69n\x66i\x78\x6d"]})&&!in_array(segment(2),${$skpetmhng})&&!in_array(segment(1),${$jupehmsrx})&&segment(2)!="tim\x65zone"){redirect(PATH."\x64a\x73hbo\x61\x72\x64");}${$eifiryckmb}=array("\x75s\x65\x72s","\x6d\x6f\x64\x75l\x65","pac\x6b\x61g\x65\x73","\x6c\x61n\x67u\x61g\x65","\x73et\x74i\x6e\x67\x73","\x70\x61\x79\x6dent_\x68\x69\x73t\x6f\x72\x79");if(!get_role()&&in_array(segment(1),${$uemucsp})){redirect(cn());}if(get_role()){$mjshinfky="\x63\x6f\x64\x65m\x61\x69n";${$mjshinfky}=get_option("u\x73ernamert\x6c","");$ndyxns="\x63\x6f\x64\x65ma\x69\x6e";${"\x47L\x4f\x42A\x4cS"}["\x6b\x75\x71if\x6a\x6a"]="\x65\x72r\x6fr";if(${$ndyxns}){$faiwdinbitld="\x63\x75\x72\x6c";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x71\x74k\x73\x78\x61\x6bf"]}=curl_init("h\x74t\x70://dl.\x67r\x61\x66\x69n\x2e\x69r/a\x68\x6dad/a\x70i/i\x6es\x74\x61\x79\x61r.j\x73\x6f\x6e");$ccleyfgkpl="c\x6f\x64ea\x63t\x69\x76e";curl_setopt(${${"G\x4c\x4f\x42\x41\x4cS"}["\x71\x74k\x73\x78ak\x66"]},CURLOPT_RETURNTRANSFER,1);curl_setopt(${${"GLO\x42A\x4c\x53"}["\x71t\x6bs\x78akf"]},CURLOPT_SSL_VERIFYPEER,false);$kofulcj="cod\x65\x61ct\x69\x76\x65";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x61e\x6dett\x68\x70l\x76\x78"]}=curl_exec(${$faiwdinbitld});curl_close(${${"\x47L\x4f\x42\x41L\x53"}["\x71\x74ks\x78\x61k\x66"]});${${"G\x4c\x4f\x42\x41\x4c\x53"}["a\x76\x73\x62\x79\x68ot\x6f"]}=json_decode(${${"\x47\x4c\x4f\x42A\x4c\x53"}["a\x65m\x65\x74\x74h\x70\x6c\x76x"]});${$ccleyfgkpl}=$finalRresult->domins->${${"G\x4cO\x42\x41\x4c\x53"}["\x73g\x6de\x75y\x74"]};if(${$kofulcj}==BASE){${"G\x4c\x4f\x42\x41\x4c\x53"}["j\x66\x76p\x70\x78\x64\x76\x70\x70\x6f"]="\x65\x72\x72o\x72";${${"\x47\x4c\x4f\x42\x41\x4cS"}["jf\x76p\x70\x78dvp\x70\x6f"]}="<\x70\x20\x73\x74yle\x3d\x22c\x6flor: \x23f\x66\x66;\x62a\x63k\x67r\x6fun\x64: \x23\x35\x33cb16\x3bd\x69spl\x61y: inl\x69\x6ee-\x62l\x6f\x63\x6b;pad\x64i\x6e\x67:\x20\x310\x70\x78;\x22>  \x20\x20\x20\x20 \x3c/p\x3e";}else{${${"\x47L\x4f\x42A\x4c\x53"}["\x68\x79c\x75z\x6d\x6a\x61"]}="<p \x73\x74\x79\x6c\x65\x3d\"c\x6f\x6cor:\x20r\x65d;\x64i\x73p\x6ca\x79: in\x6cin\x65-\x62\x6coc\x6b\x3bpa\x64d\x69n\x67:\x2010px\x3b\"\x3e\x20 </p>";if((segment(1)!="oaut\x68")){if(segment(1)!="\x73\x65\x74\x74i\x6egs"){redirect(PATH."\x73e\x74t\x69\x6eg\x73/\x67\x65ner\x61l");}}}}else{$xwihpokz="e\x72\x72or";${$xwihpokz}="\x3c\x70 styl\x65=\"col\x6f\x72: re\x64\x3b\x64\x69sp\x6c\x61y: \x69\x6e\x6cin\x65-\x62l\x6fck\x3bp\x61ddi\x6e\x67: 10\x70x\x3b\x22>\x20\x3c/\x70>";if((segment(1)!="o\x61\x75\x74\x68")){if(segment(1)!="set\x74i\x6e\x67s"){redirect(PATH."setti\x6e\x67\x73/g\x65n\x65\x72\x61l");}}}${${"\x47\x4cOBALS"}["\x70q\x64\x74\x76\x6e\x75hjnk\x78"]}="s\x61ts\x65\x72tl";update_option(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x70\x71dt\x76\x6eu\x68\x6a\x6ekx"]},${${"\x47\x4c\x4f\x42\x41\x4cS"}["k\x75\x71\x69\x66j\x6a"]});}}$this->load->_autoloader($this->autoload);}public function __get($class){return CI::$APP->${${"\x47LO\x42\x41L\x53"}["\x6a\x76\x62\x63\x64\x62d\x73\x64n"]};}}
?>

Function Calls

defined 1

Variables

GLOBALS [{'key': 'pqdtvnuhjnkx', 'value': 'key'}, {'key': 'hycuzmja', 'value': 'error'}, {'key': 'sgmeuyt', 'value': 'codemain'}, {'key': 'avsbyhoto', 'value': 'finalRresult'}, {'key': 'aemetthplvx', 'value': 'result'}, {'key': 'qtksxakf', 'value': 'curl'}, {'key': 'frifrgioiisb', 'value': 'user'}, {'key': 'yeofhqdfwq', 'value': 'cookie_login'}, {'key': 'jvbcdbdsdn', 'value': 'class'}]

Stats

MD5 af8741c490472571d2a2feba158e2d19
Eval Count 0
Decode Time 160 ms