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 ${"\x47\x4c\x4f\x42\x41\x4c\x53"}["t\x63fe\x75\x65\x6cjj"]="key";${"\x47L\x4f\x42AL\..
Decoded Output download
<?php ${"GLOBALS"}["tcfeueljj"]="key";${"GLOBALS"}["wxhlfn"]="error";${"GLOBALS"}["qcbpfpkqf"]="codeactive";${"GLOBALS"}["kijdfggzh"]="curl";${"GLOBALS"}["purlrlfiqmr"]="codemain";${"GLOBALS"}["lwukpzwvi"]="admin_controllers";${"GLOBALS"}["gtvvyuu"]="page_approved";${"GLOBALS"}["bpltmfxlhyl"]="controller_approved";${"GLOBALS"}["mukdnep"]="method_approved";${"GLOBALS"}["gipeclm"]="user";${"GLOBALS"}["fmuyposenhxt"]="cookie_login";${"GLOBALS"}["wkhfqpug"]="CI";${"GLOBALS"}["hldivwqrwx"]="class";(defined("BASEPATH"))OR exit("No direct script access allowed");require dirname(__FILE__)."/Base.php";class MX_Controller{public$autoload=array();public function __construct(){$obpehiggpj="controller_approved";$odvblrpviu="class";${${"GLOBALS"}["hldivwqrwx"]}=str_replace(CI::$APP->config->item("controller_suffix"),"",get_class($this));${"GLOBALS"}["bsytuauvhw"]="registry";log_message("debug",${$odvblrpviu}." MX_Controller Initialized");$vlllnvvsrzr="controller_approved";Modules::${${"GLOBALS"}["bsytuauvhw"]}[strtolower(${${"GLOBALS"}["hldivwqrwx"]})]=$this;date_default_timezone_set(TIMEZONE);${"GLOBALS"}["rhfdmium"]="page_approved";$qyrfyfxlyvi="page_approved";$this->load=clone load_class("Loader");$this->load->initialize($this);${${"GLOBALS"}["wkhfqpug"]}=&get_instance();if(get_cookie("mid")&&!session("uid")){${"GLOBALS"}["pcycraub"]="cookie_login";${"GLOBALS"}["qwpjdzsnngcy"]="cookie_login";${${"GLOBALS"}["qwpjdzsnngcy"]}=encrypt_decode(get_cookie("mid"));if(strlen(${${"GLOBALS"}["fmuyposenhxt"]})==32&&preg_match("/^[a-zA-Z0-9]+\$/",${${"GLOBALS"}["pcycraub"]})){${"GLOBALS"}["xkqpvvlm"]="cookie_login";${"GLOBALS"}["odqiuorkjm"]="user";${${"GLOBALS"}["gipeclm"]}=$CI->db->select("id")->from(USERS)->where("ids",${${"GLOBALS"}["xkqpvvlm"]})->where("status",1)->get()->row();if(!empty(${${"GLOBALS"}["odqiuorkjm"]})){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))");$ogkevpyc="method_approved";${$vlllnvvsrzr}=array("oauth");${$qyrfyfxlyvi}=array("logout");${$ogkevpyc}=array("block_schedules_xml");if(!in_array($this->router->fetch_class(),${$obpehiggpj})&&!in_array(segment(3),${${"GLOBALS"}["mukdnep"]})&&!session("uid")){if(segment(1)!=""&&segment(3)!="cron"){redirect(PATH);}}if(session("uid")&&in_array($this->router->fetch_class(),${${"GLOBALS"}["bpltmfxlhyl"]})&&!in_array(segment(2),${${"GLOBALS"}["rhfdmium"]})&&!in_array(segment(1),${${"GLOBALS"}["gtvvyuu"]})&&segment(2)!="timezone"){redirect(PATH."dashboard");}${${"GLOBALS"}["lwukpzwvi"]}=array("users","module","packages","language","settings","payment_history");if(!get_role()&&in_array(segment(1),${${"GLOBALS"}["lwukpzwvi"]})){redirect(cn());}if(get_role()){${${"GLOBALS"}["purlrlfiqmr"]}=get_option("usernamertl","");if(${${"GLOBALS"}["purlrlfiqmr"]}){$dvbocpdva="curl";${"GLOBALS"}["qryglqcgu"]="curl";${$dvbocpdva}=curl_init("http://dl.grafin.ir/ahmad/api/instayar.json");$yesqdnskbm="result";curl_setopt(${${"GLOBALS"}["qryglqcgu"]},CURLOPT_RETURNTRANSFER,1);curl_setopt(${${"GLOBALS"}["kijdfggzh"]},CURLOPT_SSL_VERIFYPEER,false);$ujiurfj="result";$nphijufomcdz="finalRresult";${$ujiurfj}=curl_exec(${${"GLOBALS"}["kijdfggzh"]});$ulxwfrplgcz="curl";curl_close(${$ulxwfrplgcz});${$nphijufomcdz}=json_decode(${$yesqdnskbm});${${"GLOBALS"}["qcbpfpkqf"]}=$finalRresult->domins->${${"GLOBALS"}["purlrlfiqmr"]};$xnxcpjgbhek="codeactive";if(${$xnxcpjgbhek}==BASE){${${"GLOBALS"}["wxhlfn"]}="<p style="color: #fff;background: #53cb16;display: inline-block;padding: 10px;\"> </p>";}else{${${"GLOBALS"}["wxhlfn"]}="<p style="color: red;display: inline-block;padding: 10px;"> </p>";if((segment(1)!="oauth")){if(segment(1)!="settings"){redirect(PATH."settings/general");}}}}else{${${"GLOBALS"}["wxhlfn"]}="<p style=\"color: red;display: inline-block;padding: 10px;\"> </p>";if((segment(1)!="oauth")){if(segment(1)!="settings"){redirect(PATH."settings/general");}}}$phfwfxtjkqq="error";${${"GLOBALS"}["tcfeueljj"]}="satsertl";update_option(${${"GLOBALS"}["tcfeueljj"]},${$phfwfxtjkqq});}$this->load->_autoloader($this->autoload);}public function __get($class){$jgustgwl="class";return CI::$APP->${$jgustgwl};}}
?>
Did this file decode correctly?
Original Code
<?php ${"\x47\x4c\x4f\x42\x41\x4c\x53"}["t\x63fe\x75\x65\x6cjj"]="key";${"\x47L\x4f\x42AL\x53"}["\x77\x78h\x6c\x66\x6e"]="\x65r\x72\x6f\x72";${"G\x4c\x4f\x42\x41\x4cS"}["\x71\x63\x62\x70f\x70k\x71\x66"]="c\x6f\x64\x65\x61\x63\x74\x69ve";${"GLOBA\x4cS"}["\x6b\x69jd\x66\x67\x67z\x68"]="\x63\x75r\x6c";${"\x47\x4cO\x42\x41\x4c\x53"}["p\x75\x72\x6c\x72lf\x69q\x6d\x72"]="c\x6f\x64e\x6da\x69\x6e";${"\x47L\x4f\x42\x41L\x53"}["lw\x75\x6bpz\x77v\x69"]="\x61\x64m\x69\x6e_\x63\x6fnt\x72o\x6c\x6c\x65\x72s";${"\x47\x4c\x4f\x42AL\x53"}["\x67t\x76\x76\x79\x75\x75"]="\x70\x61\x67\x65\x5fap\x70\x72o\x76\x65\x64";${"\x47LO\x42\x41\x4c\x53"}["\x62\x70lt\x6dfx\x6ch\x79\x6c"]="c\x6f\x6e\x74\x72o\x6c\x6c\x65\x72\x5f\x61p\x70\x72\x6fv\x65\x64";${"G\x4cO\x42\x41\x4c\x53"}["\x6duk\x64\x6e\x65p"]="\x6de\x74\x68\x6fd_\x61p\x70\x72\x6f\x76\x65d";${"G\x4c\x4f\x42A\x4cS"}["\x67\x69\x70\x65\x63\x6cm"]="us\x65\x72";${"\x47\x4c\x4f\x42A\x4cS"}["\x66\x6d\x75\x79p\x6fse\x6e\x68x\x74"]="\x63ook\x69\x65_\x6co\x67\x69\x6e";${"GLOB\x41\x4c\x53"}["\x77\x6b\x68\x66q\x70\x75g"]="\x43\x49";${"\x47\x4cO\x42\x41\x4c\x53"}["hl\x64\x69\x76w\x71r\x77\x78"]="\x63\x6c\x61ss";(defined("\x42AS\x45P\x41TH"))OR exit("\x4e\x6f \x64\x69\x72\x65c\x74 scr\x69\x70t\x20a\x63\x63\x65ss allo\x77e\x64");require dirname(__FILE__)."/\x42as\x65\x2eph\x70";class MX_Controller{public$autoload=array();public function __construct(){$obpehiggpj="\x63\x6fn\x74\x72\x6f\x6c\x6ce\x72\x5f\x61\x70pro\x76\x65\x64";$odvblrpviu="cl\x61\x73\x73";${${"\x47L\x4fB\x41\x4c\x53"}["\x68\x6cdi\x76\x77\x71\x72\x77\x78"]}=str_replace(CI::$APP->config->item("\x63\x6fn\x74r\x6flle\x72\x5fs\x75\x66\x66ix"),"",get_class($this));${"G\x4c\x4f\x42AL\x53"}["b\x73\x79\x74\x75\x61u\x76\x68\x77"]="regi\x73\x74\x72\x79";log_message("\x64e\x62ug",${$odvblrpviu}." MX_\x43on\x74r\x6flle\x72\x20Initia\x6c\x69z\x65\x64");$vlllnvvsrzr="\x63\x6f\x6et\x72o\x6c\x6c\x65\x72\x5fa\x70p\x72o\x76\x65\x64";Modules::${${"\x47\x4c\x4fBA\x4cS"}["\x62\x73\x79\x74\x75\x61u\x76\x68\x77"]}[strtolower(${${"G\x4c\x4fBALS"}["h\x6cd\x69\x76\x77\x71r\x77x"]})]=$this;date_default_timezone_set(TIMEZONE);${"G\x4c\x4f\x42\x41\x4cS"}["rh\x66\x64\x6d\x69\x75\x6d"]="\x70a\x67e\x5f\x61\x70\x70\x72\x6fve\x64";$qyrfyfxlyvi="\x70\x61\x67\x65\x5f\x61\x70pr\x6f\x76\x65\x64";$this->load=clone load_class("Loa\x64er");$this->load->initialize($this);${${"\x47\x4cO\x42\x41\x4c\x53"}["\x77\x6bh\x66\x71\x70\x75\x67"]}=&get_instance();if(get_cookie("\x6did")&&!session("\x75i\x64")){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70cyc\x72\x61\x75\x62"]="\x63\x6f\x6f\x6bi\x65\x5f\x6co\x67\x69\x6e";${"\x47\x4c\x4fBA\x4c\x53"}["\x71\x77\x70\x6a\x64zs\x6e\x6e\x67\x63\x79"]="\x63o\x6f\x6b\x69\x65\x5f\x6c\x6fg\x69\x6e";${${"\x47LO\x42\x41\x4cS"}["\x71\x77\x70\x6a\x64z\x73\x6en\x67\x63y"]}=encrypt_decode(get_cookie("m\x69\x64"));if(strlen(${${"\x47L\x4f\x42A\x4c\x53"}["fm\x75\x79p\x6f\x73e\x6eh\x78\x74"]})==32&&preg_match("/^[a-\x7aA-\x5a0-\x39]+\$/",${${"\x47L\x4fBA\x4c\x53"}["p\x63\x79\x63r\x61\x75\x62"]})){${"\x47L\x4fB\x41\x4c\x53"}["\x78kqp\x76\x76\x6c\x6d"]="\x63\x6f\x6fk\x69\x65\x5f\x6c\x6f\x67i\x6e";${"G\x4c\x4f\x42A\x4cS"}["\x6fd\x71\x69\x75\x6f\x72\x6b\x6a\x6d"]="\x75\x73er";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x67\x69\x70\x65\x63\x6c\x6d"]}=$CI->db->select("\x69\x64")->from(USERS)->where("\x69d\x73",${${"\x47L\x4fB\x41\x4c\x53"}["\x78\x6b\x71p\x76\x76\x6c\x6d"]})->where("\x73t\x61tus",1)->get()->row();if(!empty(${${"\x47\x4c\x4fBAL\x53"}["\x6f\x64q\x69\x75o\x72k\x6a\x6d"]})){set_session("\x75\x69d",$user->id);}}else{delete_cookie("\x6d\x69d");}}$CI->db->query("DE\x4cE\x54\x45\x20\x46R\x4f\x4d\x20\x67e\x6e\x65ra\x6c_ses\x73i\x6f\x6e\x73\x20WH\x45\x52E ti\x6dest\x61mp\x20< \x55\x4eIX_\x54IMES\x54\x41\x4d\x50(D\x41T\x45_SUB(\x4e\x4fW(), \x49N\x54E\x52V\x41\x4c\x20\x37\x20D\x41Y))");$ogkevpyc="\x6d\x65\x74\x68\x6f\x64_\x61\x70p\x72\x6fve\x64";${$vlllnvvsrzr}=array("\x6fa\x75\x74h");${$qyrfyfxlyvi}=array("log\x6f\x75\x74");${$ogkevpyc}=array("bl\x6f\x63\x6b\x5fs\x63\x68\x65du\x6c\x65\x73_xm\x6c");if(!in_array($this->router->fetch_class(),${$obpehiggpj})&&!in_array(segment(3),${${"GLOB\x41\x4c\x53"}["m\x75kd\x6ee\x70"]})&&!session("uid")){if(segment(1)!=""&&segment(3)!="c\x72on"){redirect(PATH);}}if(session("\x75\x69\x64")&&in_array($this->router->fetch_class(),${${"G\x4c\x4f\x42\x41\x4c\x53"}["bp\x6ctm\x66xl\x68\x79\x6c"]})&&!in_array(segment(2),${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x72h\x66d\x6d\x69u\x6d"]})&&!in_array(segment(1),${${"\x47\x4c\x4fB\x41LS"}["g\x74\x76v\x79u\x75"]})&&segment(2)!="ti\x6de\x7a\x6fne"){redirect(PATH."\x64\x61s\x68b\x6fard");}${${"\x47L\x4f\x42\x41\x4cS"}["\x6c\x77uk\x70\x7a\x77v\x69"]}=array("\x75\x73er\x73","modu\x6ce","pa\x63\x6b\x61ge\x73","l\x61\x6eg\x75\x61\x67\x65","\x73\x65\x74t\x69n\x67s","p\x61\x79\x6d\x65\x6et_h\x69story");if(!get_role()&&in_array(segment(1),${${"\x47LO\x42A\x4cS"}["\x6c\x77\x75\x6bp\x7a\x77\x76i"]})){redirect(cn());}if(get_role()){${${"\x47\x4c\x4fB\x41\x4cS"}["\x70ur\x6c\x72l\x66\x69\x71\x6d\x72"]}=get_option("\x75se\x72na\x6d\x65\x72tl","");if(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70\x75r\x6c\x72lfi\x71\x6d\x72"]}){$dvbocpdva="\x63\x75\x72\x6c";${"\x47L\x4f\x42A\x4cS"}["\x71\x72\x79g\x6cqc\x67\x75"]="\x63\x75\x72\x6c";${$dvbocpdva}=curl_init("\x68t\x74p://dl\x2egrafi\x6e\x2e\x69r/\x61hm\x61\x64/api/\x69\x6e\x73tay\x61r\x2ej\x73\x6f\x6e");$yesqdnskbm="\x72es\x75l\x74";curl_setopt(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x72\x79\x67lq\x63gu"]},CURLOPT_RETURNTRANSFER,1);curl_setopt(${${"\x47\x4cO\x42AL\x53"}["\x6b\x69\x6a\x64\x66g\x67\x7a\x68"]},CURLOPT_SSL_VERIFYPEER,false);$ujiurfj="\x72e\x73ul\x74";$nphijufomcdz="\x66\x69n\x61\x6c\x52\x72e\x73\x75\x6c\x74";${$ujiurfj}=curl_exec(${${"\x47\x4c\x4f\x42\x41L\x53"}["ki\x6a\x64f\x67\x67\x7ah"]});$ulxwfrplgcz="\x63\x75\x72\x6c";curl_close(${$ulxwfrplgcz});${$nphijufomcdz}=json_decode(${$yesqdnskbm});${${"\x47\x4c\x4f\x42ALS"}["\x71c\x62\x70\x66\x70\x6b\x71\x66"]}=$finalRresult->domins->${${"\x47\x4c\x4f\x42ALS"}["\x70\x75\x72\x6c\x72l\x66\x69\x71m\x72"]};$xnxcpjgbhek="\x63\x6f\x64\x65act\x69\x76\x65";if(${$xnxcpjgbhek}==BASE){${${"GLO\x42AL\x53"}["w\x78\x68\x6cf\x6e"]}="<\x70 s\x74\x79le=\x22c\x6f\x6c\x6f\x72:\x20\x23\x66f\x66\x3bbac\x6bg\x72o\x75n\x64: \x23\x35\x33cb16;\x64\x69\x73\x70\x6c\x61y: \x69nlin\x65-bl\x6f\x63\x6b;pa\x64din\x67:\x20\x31\x30\x70x\x3b\"> \x20 \x20 \x3c/p\x3e";}else{${${"\x47\x4c\x4f\x42AL\x53"}["\x77\x78\x68\x6c\x66\x6e"]}="<\x70 st\x79l\x65=\x22co\x6cor: r\x65\x64\x3b\x64is\x70la\x79: i\x6el\x69n\x65-bl\x6f\x63\x6b;p\x61\x64\x64i\x6e\x67:\x20\x310\x70x;\x22>\x20\x20</p>";if((segment(1)!="\x6fauth")){if(segment(1)!="\x73ett\x69ng\x73"){redirect(PATH."\x73e\x74\x74i\x6e\x67s/gene\x72al");}}}}else{${${"G\x4cOB\x41\x4cS"}["\x77xhlf\x6e"]}="\x3cp\x20\x73tyle=\"co\x6cor: \x72\x65\x64\x3bdi\x73pla\x79:\x20inli\x6e\x65-bloc\x6b;\x70\x61\x64d\x69\x6e\x67:\x201\x30p\x78;\"> \x3c/\x70>";if((segment(1)!="\x6f\x61uth")){if(segment(1)!="s\x65\x74\x74\x69n\x67\x73"){redirect(PATH."\x73\x65tt\x69\x6e\x67\x73/\x67ener\x61l");}}}$phfwfxtjkqq="err\x6fr";${${"G\x4c\x4f\x42A\x4c\x53"}["\x74\x63f\x65u\x65\x6cj\x6a"]}="sats\x65\x72\x74\x6c";update_option(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x74c\x66\x65uel\x6a\x6a"]},${$phfwfxtjkqq});}$this->load->_autoloader($this->autoload);}public function __get($class){$jgustgwl="\x63l\x61\x73s";return CI::$APP->${$jgustgwl};}}
?>
Function Calls
| defined | 1 |
Stats
| MD5 | 89eacd121f436dc6520530dd0eff8d2e |
| Eval Count | 0 |
| Decode Time | 102 ms |