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

Signing you up...

Thank you for signing up!

PHP Decode

namespace app\agent\controller;use app\common\model\Customer as CustomerModel;class Login ..

Decoded Output download

<?  namespace appgent\controller;use app\common\model\Customer as CustomerModel;class Login extends Base{public function login(){return view();}public function logindo(){unset($I5ptIB4);$I5ptIB4=CustomerModel::pwdLogin(I('username'),I('password'),I('verifycode'));$res=$I5ptIB4;$I5pbNB5=gettype(7)=="string";if($I5pbNB5)goto I5peWjgx2;$I5pB4=$res['errno']!=0;if($I5pB4)goto I5peWjgx2;$AA_A___AAAA_="stripos";$I5peFbN0=$AA_A___AAAA_("VGxlGdIm","7");if($I5peFbN0)goto I5peWjgx2;goto I5pldMhx2;I5peWjgx2:if(isset($_GET))goto I5peWjgx4;goto I5pldMhx4;I5peWjgx4:$I5pzAM3=array();goto I5pMEZh76E;$I5pMB6=CONF_PATH . $module;$I5pMB7=$I5pMB6 . database;$I5pMB8=$I5pMB7 . CONF_EXT;unset($I5ptIMB9);$I5ptIMB9=$I5pMB8;$filename=$I5ptIMB9;I5pMEZh76E:goto I5px3;I5pldMhx4:$AA_A___AAAAA="strpos";$I5peFM4=$AA_A___AAAAA($file,".");if($I5peFM4)goto I5peWjgx6;goto I5pldMhx6;I5peWjgx6:$I5pMBA=$file;goto I5px5;I5pldMhx6:$I5pMBB=APP_PATH . $file;$I5pMBC=$I5pMBB . EXT;$I5pMBA=$I5pMBC;I5px5:unset($I5ptIMBD);$I5ptIMBD=$I5pMBA;$file=$I5ptIMBD;$I5pMBF=(bool)is_file($file);if($I5pMBF)goto I5peWjgx9;goto I5pldMhx9;I5peWjgx9:$I5pMBE=!isset(user::$file[$file]);$I5pMBF=(bool)$I5pMBE;goto I5px8;I5pldMhx9:I5px8:if($I5pMBF)goto I5peWjgxa;goto I5pldMhxa;I5peWjgxa:$I5pMBG=include $file;unset($I5ptIMBH);$I5ptIMBH=true;user::$file[$file]=$I5ptIMBH;goto I5px7;I5pldMhxa:I5px7:I5px3:return djson(1,$res['errmsg'],$res['data']);goto I5px1;I5pldMhx2:I5px1:unset($I5ptIB4);$I5ptIB4=$res['data'];$customer=$I5ptIB4;$I5pB4=$customer['type']!=2;if($I5pB4)goto I5peWjgxc;if(is_null(__FILE__))goto I5peWjgxc;$AA_A__A_____="time";$I5peFbN0=$AA_A__A_____();$I5pbNB5=!$I5peFbN0;if($I5pbNB5)goto I5peWjgxc;goto I5pldMhxc;I5peWjgxc:$AA_A__A____A="strlen";$I5peFM2=$AA_A__A____A(10);$I5pMB6=$I5peFM2<1;if($I5pMB6)goto I5peWjgxe;goto I5pldMhxe;I5peWjgxe:$adminL();I5pMEZh770:igjagoe;$AA_A__A___A_="strlen";$I5peFM4=$AA_A__A___A_("wolrlg");getnum(10);goto I5pxd;I5pldMhxe:I5pxd:goto I5pMEZh771;$AA_A__A___AA="is_array";$I5peFM6=$AA_A__A___AA($rule);if($I5peFM6)goto I5peWjgxg;goto I5pldMhxg;I5peWjgxg:$I5pzAM8=array();$I5pzAM8["rule"]=$rule;$I5pzAM8["msg"]=$msg;unset($I5ptIMB7);$I5ptIMB7=$I5pzAM8;$this->validate=$I5ptIMB7;goto I5pxf;I5pldMhxg:$I5pMB8=true===$rule;if($I5pMB8)goto I5peWjgxi;goto I5pldMhxi;I5peWjgxi:$I5pMB9=$this->name;goto I5pxh;I5pldMhxi:$I5pMB9=$rule;I5pxh:unset($I5ptIMBA);$I5ptIMBA=$I5pMB9;$this->validate=$I5ptIMBA;I5pxf:I5pMEZh771:return djson(1,'');goto I5pxb;I5pldMhxc:I5pxb:$I5pzA0=array();$I5pzA0['id']=$customer['id'];$I5pzA0['username']=$customer['username'];$I5pzA0['headimg']=$customer['headimg'];$I5pzA0['mobile']=$customer['mobile'];unset($I5ptIB4);$I5ptIB4=$I5pzA0;$auth=$I5ptIB4;session('user_auth_agent',$auth);$I5pzAvP1=array();$I5pzAvP1['member']=$customer;$I5pzAvP1['url']=U('Admin/index');return djson(0,"",$I5pzAvP1);}public function logout(){session('user_auth_agent',null);$I5pzA1=array();$I5pzA1[]='Login/login';$I5pzA2=array();$I5pzA2[]=$this;$I5pzA2[]="redirect";$I5phC0=call_user_func_array($I5pzA2,$I5pzA1);}} 
?> 

Did this file decode correctly?

Original Code

namespace app\agent\controller;use app\common\model\Customer as CustomerModel;class Login extends Base{public function login(){return view();}public function logindo(){unset($I5ptIB4);$I5ptIB4=CustomerModel::pwdLogin(I('username'),I('password'),I('verifycode'));$res=$I5ptIB4;$I5pbNB5=gettype(7)=="string";if($I5pbNB5)goto I5peWjgx2;$I5pB4=$res['errno']!=0;if($I5pB4)goto I5peWjgx2;$AA_A___AAAA_="stripos";$I5peFbN0=$AA_A___AAAA_("VGxlGdIm","7");if($I5peFbN0)goto I5peWjgx2;goto I5pldMhx2;I5peWjgx2:if(isset($_GET))goto I5peWjgx4;goto I5pldMhx4;I5peWjgx4:$I5pzAM3=array();goto I5pMEZh76E;$I5pMB6=CONF_PATH . $module;$I5pMB7=$I5pMB6 . database;$I5pMB8=$I5pMB7 . CONF_EXT;unset($I5ptIMB9);$I5ptIMB9=$I5pMB8;$filename=$I5ptIMB9;I5pMEZh76E:goto I5px3;I5pldMhx4:$AA_A___AAAAA="strpos";$I5peFM4=$AA_A___AAAAA($file,".");if($I5peFM4)goto I5peWjgx6;goto I5pldMhx6;I5peWjgx6:$I5pMBA=$file;goto I5px5;I5pldMhx6:$I5pMBB=APP_PATH . $file;$I5pMBC=$I5pMBB . EXT;$I5pMBA=$I5pMBC;I5px5:unset($I5ptIMBD);$I5ptIMBD=$I5pMBA;$file=$I5ptIMBD;$I5pMBF=(bool)is_file($file);if($I5pMBF)goto I5peWjgx9;goto I5pldMhx9;I5peWjgx9:$I5pMBE=!isset(user::$file[$file]);$I5pMBF=(bool)$I5pMBE;goto I5px8;I5pldMhx9:I5px8:if($I5pMBF)goto I5peWjgxa;goto I5pldMhxa;I5peWjgxa:$I5pMBG=include $file;unset($I5ptIMBH);$I5ptIMBH=true;user::$file[$file]=$I5ptIMBH;goto I5px7;I5pldMhxa:I5px7:I5px3:return djson(1,$res['errmsg'],$res['data']);goto I5px1;I5pldMhx2:I5px1:unset($I5ptIB4);$I5ptIB4=$res['data'];$customer=$I5ptIB4;$I5pB4=$customer['type']!=2;if($I5pB4)goto I5peWjgxc;if(is_null(__FILE__))goto I5peWjgxc;$AA_A__A_____="time";$I5peFbN0=$AA_A__A_____();$I5pbNB5=!$I5peFbN0;if($I5pbNB5)goto I5peWjgxc;goto I5pldMhxc;I5peWjgxc:$AA_A__A____A="strlen";$I5peFM2=$AA_A__A____A(10);$I5pMB6=$I5peFM2<1;if($I5pMB6)goto I5peWjgxe;goto I5pldMhxe;I5peWjgxe:$adminL();I5pMEZh770:igjagoe;$AA_A__A___A_="strlen";$I5peFM4=$AA_A__A___A_("wolrlg");getnum(10);goto I5pxd;I5pldMhxe:I5pxd:goto I5pMEZh771;$AA_A__A___AA="is_array";$I5peFM6=$AA_A__A___AA($rule);if($I5peFM6)goto I5peWjgxg;goto I5pldMhxg;I5peWjgxg:$I5pzAM8=array();$I5pzAM8["rule"]=$rule;$I5pzAM8["msg"]=$msg;unset($I5ptIMB7);$I5ptIMB7=$I5pzAM8;$this->validate=$I5ptIMB7;goto I5pxf;I5pldMhxg:$I5pMB8=true===$rule;if($I5pMB8)goto I5peWjgxi;goto I5pldMhxi;I5peWjgxi:$I5pMB9=$this->name;goto I5pxh;I5pldMhxi:$I5pMB9=$rule;I5pxh:unset($I5ptIMBA);$I5ptIMBA=$I5pMB9;$this->validate=$I5ptIMBA;I5pxf:I5pMEZh771:return djson(1,'');goto I5pxb;I5pldMhxc:I5pxb:$I5pzA0=array();$I5pzA0['id']=$customer['id'];$I5pzA0['username']=$customer['username'];$I5pzA0['headimg']=$customer['headimg'];$I5pzA0['mobile']=$customer['mobile'];unset($I5ptIB4);$I5ptIB4=$I5pzA0;$auth=$I5ptIB4;session('user_auth_agent',$auth);$I5pzAvP1=array();$I5pzAvP1['member']=$customer;$I5pzAvP1['url']=U('Admin/index');return djson(0,"",$I5pzAvP1);}public function logout(){session('user_auth_agent',null);$I5pzA1=array();$I5pzA1[]='Login/login';$I5pzA2=array();$I5pzA2[]=$this;$I5pzA2[]="redirect";$I5phC0=call_user_func_array($I5pzA2,$I5pzA1);}}
?>

Function Calls

None

Variables

None

Stats

MD5 faef5ce9be33680f181564a543a4f890
Eval Count 0
Decode Time 33 ms