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

Signing you up...

Thank you for signing up!

PHP Decode

${"\x47LO\x42A\x4c\x53"}["\x76\x72\x65\x79\x69\x6adt\x77"]="aut\x68\x5fp\x61th";${"G\x4cOB..

Decoded Output download

<?  ${"GLOBALS"}["vreyijdtw"]="auth_path";${"GLOBALS"}["lminwk"]="name";${"GLOBALS"}["ysnivpfw"]="names";${"GLOBALS"}["hxkwpmc"]="url_attributes";${"GLOBALS"}["hvkifwd"]="i";${"GLOBALS"}["zrynwncguxkn"]="url";${"GLOBALS"}["yrobdbppmmt"]="attributes";${"GLOBALS"}["pugxnjk"]="document_roots";${"GLOBALS"}["hdfrqf"]="value";${"GLOBALS"}["tnmbxgu"]="key";${"GLOBALS"}["zidbctfcq"]="issues";${"GLOBALS"}["wblwfdiod"]="copyfiles";${"GLOBALS"}["jewuqgqk"]="fullchain";${"GLOBALS"}["aowtand"]="data";${"GLOBALS"}["sdvkskhudimc"]="path_string";${"GLOBALS"}["rvfeqigscrm"]="path_array";${"GLOBALS"}["creonxg"]="path";${"GLOBALS"}["chndmjum"]="errors";${"GLOBALS"}["nxjtwmftkvc"]="config";${"GLOBALS"}["leffknjgvti"]="response";${"GLOBALS"}["etgdczld"]="conv";${"GLOBALS"}["gdfprnbn"]="date_expire";${"GLOBALS"}["vudrjmvjk"]="date_period";${"GLOBALS"}["hyyrvkuyctmd"]="expire";${"GLOBALS"}["zcwxdfxffy"]="pending";${"GLOBALS"}["jafamii"]="cert";${"GLOBALS"}["hhcydohfjld"]="attr";${"GLOBALS"}["xmzchnnqtjbc"]="backup_crt";${"GLOBALS"}["pewmvtcgct"]="cache";class Application{var$cmd=false;var$fqdn=false;var$conf=false;var$config=array();var$cache=false;var$req=false;public function run($router=false){$this->cmd=$router->getCmd();$xitehrgitsgy="cache";$this->fqdn=$router->getFqdn();$this->conf=$router->getConf();if(Config::validate($this->fqdn,$this->conf,$this->cmd)){$this->configure();}else{throw new Exception("Configuration file error.");}${$xitehrgitsgy}=new Cache();$cache->configure($this->fqdn);$this->cache=${${"GLOBALS"}["pewmvtcgct"]};if($this->cache->isExists()==false){${"GLOBALS"}["qtfhtgq"]="attr";${"GLOBALS"}["jzknplibf"]="attr";${${"GLOBALS"}["qtfhtgq"]}=explode("/",$this->config["certificate"]);${"GLOBALS"}["ugzkvh"]="backup_key";$fdihxus="backup_crt";$cjjxmhnwirv="pending";$fogbhpj="attr";${${"GLOBALS"}["xmzchnnqtjbc"]}=$this->config["backup_dir"]."/".end(${${"GLOBALS"}["jzknplibf"]});${${"GLOBALS"}["hhcydohfjld"]}=explode("/",$this->config["private_key"]);${${"GLOBALS"}["ugzkvh"]}=$this->config["backup_dir"]."/".end(${$fogbhpj});${"GLOBALS"}["jxzlltjy"]="backup_key";${"GLOBALS"}["mdvqyfsc"]="pending";${$cjjxmhnwirv}=false;if(file_exists(${${"GLOBALS"}["jxzlltjy"]})==true&&file_exists(${$fdihxus})==false){${"GLOBALS"}["oyxqewjplc"]="pending";${${"GLOBALS"}["oyxqewjplc"]}=true;}${${"GLOBALS"}["jafamii"]}=false;if($this->cmd=="autorenew"){${"GLOBALS"}["thdffhyeioq"]="cert";${${"GLOBALS"}["thdffhyeioq"]}=$this->config["certificate"];}if($this->cmd=="regist"&&${${"GLOBALS"}["mdvqyfsc"]}==false){}else{$encyembrvia="pending";$khfgdcm="cert";$this->cache->initialize(${${"GLOBALS"}["jafamii"]},${${"GLOBALS"}["zcwxdfxffy"]});Log::add("Create cache file",array("cert_path"=>${$khfgdcm},"pending"=>${$encyembrvia},));}}else{if($this->cache->isPending()){${"GLOBALS"}["jdkuvff"]="attr";${"GLOBALS"}["spfsjwwvzo"]="attr";${${"GLOBALS"}["jdkuvff"]}=explode("/",$this->config["private_key"]);if(!file_exists($this->config["backup_dir"]."/".end(${${"GLOBALS"}["spfsjwwvzo"]}))){$nqikyubnpq="attr";throw new Exception("There is no private key file. (".$this->config["backup_dir"]."/".end(${$nqikyubnpq}).")");}}}Log::add("Trace",$this->fqdn);if($this->cmd=="regist"){Log::add("Regist certificate",$this->fqdn);return$this->regist($this->config);}elseif($this->cmd=="autorenew"){Log::add("Autorenew isPending",(int)$this->cache->isPending());if($this->cache->isPending()==false){$mwxiucir="expire";$cjujvq="expire";${$cjujvq}=$this->cache->getExpire();Log::add("Check renew",$this->cache->getExpire());if(${$mwxiucir}!=false){${"GLOBALS"}["zcvvudep"]="date_expire";${${"GLOBALS"}["zcvvudep"]}=date("Ymd",strtotime(${${"GLOBALS"}["hyyrvkuyctmd"]}));$sgqpytf="date_expire";${${"GLOBALS"}["vudrjmvjk"]}=date("Ymd",strtotime("+".FUJISSL_GO_RENEW_PERIOD." Day"));if(${$sgqpytf}<=FUJISSL_GO_DATE_CURRENT){throw new Exception("Could not renew because it has expired.");}if(${${"GLOBALS"}["gdfprnbn"]}<${${"GLOBALS"}["vudrjmvjk"]}){Log::add("Renew certificate",$this->fqdn);if($this->regist($this->config)==true){throw new Exception("Message","Renewal application completed.");}}else{Log::add("Message","There is no update data.");}}}else{Log::add("Check issue certificate",$this->fqdn);if($this->inprocess($this->config)==true){Log::add("Message","Execution completed normally.");return;}}}throw new Exception("No processing.");}private function configure(){$qtegqbnvop="conv";${$qtegqbnvop}=Config::YAMLLoad($this->conf);$this->config=${${"GLOBALS"}["etgdczld"]}["config"];$this->req=new Request();$this->req->configure(array("appid"=>${${"GLOBALS"}["etgdczld"]}["config"]["appid"],"ordid"=>${${"GLOBALS"}["etgdczld"]}["config"]["ordid"],));return true;}private function regist($config){$bwhtung="data";$tmlvxmubpjjt="config";$opwkfcbv="config";${"GLOBALS"}["nlsnrgbfdw"]="config";$xaxpqdxwkw="data";$yowopiiedf="config";$brxqpapi="response";$obgplskiy="data";${"GLOBALS"}["neuvcfcxp"]="config";$pjrnceohdjp="path";${"GLOBALS"}["onisqspknv"]="config";$hzfxjn="config";$lhdjwhhelfie="config";if($this->cache->isPending()==true){$jrongjfyblw="config";throw new Exception("Certificate registration procedure is duplicated.".${$jrongjfyblw}["fqdn"]."");}${"GLOBALS"}["qyardoth"]="config";${"GLOBALS"}["dsixwjvixr"]="config";$kzlxjrlcfb="status";${${"GLOBALS"}["leffknjgvti"]}=$this->req->valid_urls(array("appid"=>${${"GLOBALS"}["nlsnrgbfdw"]}["appid"],"ordid"=>${$yowopiiedf}["ordid"],"fqdn"=>${$tmlvxmubpjjt}["fqdn"],));$xeoubnoalxsr="status";$qntdxbz="status";Log::add("Approval test url",${$brxqpapi});if($response->status=="error"){throw new Exception("Error (".$response->errors->code.") ".$response->errors->message);}$bgxyjmbq="config";$mxiqswbxn="config";${$qntdxbz}=$this->buildAuthenticateFile(array("document_root"=>!empty(${${"GLOBALS"}["nxjtwmftkvc"]}["document_root"])?${${"GLOBALS"}["onisqspknv"]}["document_root"]:false,"document_roots"=>!empty(${${"GLOBALS"}["dsixwjvixr"]}["document_roots"])?${$lhdjwhhelfie}["document_roots"]:false,"urls"=>$response->data,"check"=>$response->check,));if(${$xeoubnoalxsr}==false)return false;${"GLOBALS"}["mruxoiiwji"]="status";${"GLOBALS"}["dqtjuenvsq"]="response";${${"GLOBALS"}["leffknjgvti"]}=$this->req->challenge(array("appid"=>${$mxiqswbxn}["appid"],"urls"=>$response->data,));Log::add("Check approval test file",${${"GLOBALS"}["leffknjgvti"]});if($response->status=="error"){${${"GLOBALS"}["chndmjum"]}=$response->errors;throw new Exception(" (".$errors->code.") ".$errors->message);}${"GLOBALS"}["vdrnxhireqxd"]="config";${$obgplskiy}=Openssl::generateCsrKey(${${"GLOBALS"}["nxjtwmftkvc"]}["fqdn"]);${${"GLOBALS"}["leffknjgvti"]}=$this->req->order(array("appid"=>${${"GLOBALS"}["neuvcfcxp"]}["appid"],"ordid"=>${$bgxyjmbq}["ordid"],"fqdn"=>${$opwkfcbv}["fqdn"],"csr"=>${$xaxpqdxwkw}["csr"],"type"=>$this->cmd=="regist"?"new":"renew",));$egrflmowl="attr";Log::add("Order certificate",${${"GLOBALS"}["dqtjuenvsq"]});${"GLOBALS"}["qswogrzlxw"]="config";if($response->status=="error"){${${"GLOBALS"}["chndmjum"]}=$response->errors;if($errors->code=="E7100"){$this->cache->setPending(true);}throw new Exception(" (".$errors->code.") ".$errors->message);}${${"GLOBALS"}["mruxoiiwji"]}=$this->buildAuthenticateFile(array("document_root"=>!empty(${${"GLOBALS"}["nxjtwmftkvc"]}["document_root"])?${${"GLOBALS"}["qyardoth"]}["document_root"]:false,"document_roots"=>!empty(${${"GLOBALS"}["nxjtwmftkvc"]}["document_roots"])?${${"GLOBALS"}["vdrnxhireqxd"]}["document_roots"]:false,"urls"=>$response->data->validation_urls,"check"=>$response->data->validation_code,),true);if(${$kzlxjrlcfb}==false){throw new Exception("Authorization file creation failed.");}else{${"GLOBALS"}["qtqdgibk"]="status";echo"Create ".${${"GLOBALS"}["qtqdgibk"]}." file."."
";}foreach(array("certificate","ca_bundle")as${$pjrnceohdjp}){$wpoumxq="path_string";${"GLOBALS"}["sfdsfpui"]="path_string";${"GLOBALS"}["hqhjobe"]="path_array";$obcuyda="config";$pdedds="config";if(empty(${$obcuyda}[${${"GLOBALS"}["creonxg"]}]))continue;${${"GLOBALS"}["hqhjobe"]}=explode("/",${$pdedds}[${${"GLOBALS"}["creonxg"]}]);${${"GLOBALS"}["sfdsfpui"]}=${${"GLOBALS"}["nxjtwmftkvc"]}["backup_dir"]."/".end(${${"GLOBALS"}["rvfeqigscrm"]});if(file_exists(${$wpoumxq})){if(Fhandle::remove(${${"GLOBALS"}["sdvkskhudimc"]})!=true){$fdnrogcr="path_string";throw new Exception("Failed to delete the file. (".${$fdnrogcr}.")");}}}${${"GLOBALS"}["hhcydohfjld"]}=explode("/",${${"GLOBALS"}["nxjtwmftkvc"]}["private_key"]);Fhandle::createFile(${${"GLOBALS"}["qswogrzlxw"]}["backup_dir"]."/".end(${${"GLOBALS"}["hhcydohfjld"]}),${$bwhtung}["key"]);echo"Create ".${$hzfxjn}["backup_dir"]."/".end(${$egrflmowl})." file."."
";$this->cache->setPending(true);if($this->cmd=="regist"){echo"The certificate registed was successful."."
";echo"Register the following command in cron:"."
";echo"/usr/bin/php ".FUJISSL_GO_ROOT."/bin/fujissl-go autorenew -c ".$this->fqdn." -f ".$this->conf."
";}return true;}private function inprocess($config){$yqviltidm="config";${"GLOBALS"}["vutspmda"]="config";$sgiqlgvh="config";$egsaip="copyfiles";${"GLOBALS"}["rwrkxtkk"]="copyfiles";$zbzxwnbx="response";${$zbzxwnbx}=$this->req->certificates(array("appid"=>${$yqviltidm}["appid"],"ordid"=>${$sgiqlgvh}["ordid"],"fqdn"=>${${"GLOBALS"}["nxjtwmftkvc"]}["fqdn"]));${"GLOBALS"}["ptdvltvyeli"]="key";${"GLOBALS"}["sithirvwbh"]="copyfiles";$uvleubsubqw="config";${"GLOBALS"}["ybtntjxssqf"]="data";Log::add("Check issue certificate",${${"GLOBALS"}["leffknjgvti"]});if($response->status=="error"){throw new Exception("Error (".$response->errors->code.") ".$response->errors->message);}${${"GLOBALS"}["aowtand"]}=$response->data;if(${${"GLOBALS"}["ybtntjxssqf"]}==false){Log::add("Result","Skip due to pending.");return false;}${"GLOBALS"}["hotlodfup"]="value";if(isset(${${"GLOBALS"}["vutspmda"]}["ca_bundle"])&&${${"GLOBALS"}["nxjtwmftkvc"]}["ca_bundle"]!=""){$hkqdnyboqp="issues";${$hkqdnyboqp}=array("certificate"=>$data->certificate,"ca_bundle"=>$data->ca_bundle,);}else{$uegyqxgsjils="fullchain";${"GLOBALS"}["rkxokxrhp"]="issues";${$uegyqxgsjils}=$data->certificate."
".$data->ca_bundle;${${"GLOBALS"}["rkxokxrhp"]}=array("certificate"=>${${"GLOBALS"}["jewuqgqk"]},);}${${"GLOBALS"}["wblwfdiod"]}=array();foreach(${${"GLOBALS"}["zidbctfcq"]} as${${"GLOBALS"}["tnmbxgu"]}=>${${"GLOBALS"}["hotlodfup"]}){$uvfcikz="attr";$ffujjea="config";${${"GLOBALS"}["hhcydohfjld"]}=explode("/",${${"GLOBALS"}["nxjtwmftkvc"]}[${${"GLOBALS"}["tnmbxgu"]}]);$wktpkzgu="copyfiles";Fhandle::createFile(${$ffujjea}["backup_dir"]."/".end(${$uvfcikz}),${${"GLOBALS"}["hdfrqf"]}."
");${"GLOBALS"}["pvlovtspt"]="key";${$wktpkzgu}[]=${${"GLOBALS"}["pvlovtspt"]};}${$egsaip}[]="private_key";foreach(${${"GLOBALS"}["rwrkxtkk"]} as${${"GLOBALS"}["ptdvltvyeli"]}){$nxhvhbbt="key";if(file_exists(${${"GLOBALS"}["nxjtwmftkvc"]}[${$nxhvhbbt}])){$bpdnpkijphp="key";${${"GLOBALS"}["hhcydohfjld"]}=explode("/",${${"GLOBALS"}["nxjtwmftkvc"]}[${${"GLOBALS"}["tnmbxgu"]}]);$owctfrgo="config";Fhandle::backup(${$owctfrgo}[${$bpdnpkijphp}],${${"GLOBALS"}["nxjtwmftkvc"]}["backup_dir"]."/".end(${${"GLOBALS"}["hhcydohfjld"]}));}}foreach(${${"GLOBALS"}["sithirvwbh"]} as${${"GLOBALS"}["tnmbxgu"]}){$scwsklmcva="key";${${"GLOBALS"}["hhcydohfjld"]}=explode("/",${${"GLOBALS"}["nxjtwmftkvc"]}[${$scwsklmcva}]);$gswdcyovggq="config";Fhandle::copy(${${"GLOBALS"}["nxjtwmftkvc"]}["backup_dir"]."/".end(${${"GLOBALS"}["hhcydohfjld"]}),${$gswdcyovggq}[${${"GLOBALS"}["tnmbxgu"]}]);}if($this->cache->setExpire($data->validity_to_dt)!=true){throw new Exception("Failed to update the cache file.");}${${"GLOBALS"}["leffknjgvti"]}=$this->req->processed(array("appid"=>${$uvleubsubqw}["appid"],"ordid"=>${${"GLOBALS"}["nxjtwmftkvc"]}["ordid"],"fqdn"=>${${"GLOBALS"}["nxjtwmftkvc"]}["fqdn"]));if($response->status=="error"){throw new Exception("Error (".$response->errors->code.") ".$response->errors->message);}if($this->cache->setPending(false)!=true){throw new Exception("Failed to update the cache file.");}Log::add("Message","Issuance confirmation completed.");return true;}private function buildAuthenticateFile($attributes=array(),$return_path=false){$nrpagbtwt="attributes";$yfmfbklr="attributes";$vjbxfcqb="attributes";${"GLOBALS"}["thcplauracxo"]="return_path";${${"GLOBALS"}["pugxnjk"]}=(empty(${$yfmfbklr}["document_root"])||${${"GLOBALS"}["yrobdbppmmt"]}["document_root"]=="")?${${"GLOBALS"}["yrobdbppmmt"]}["document_roots"]:array(${$vjbxfcqb}["document_root"]);foreach(${$nrpagbtwt}["urls"]as${${"GLOBALS"}["zrynwncguxkn"]}){$pkkulhgs="names";${"GLOBALS"}["qgpkcwvsqms"]="url";$lkvfwkldo="url_attributes";$gsuqzulwqsd="i";${$pkkulhgs}=array();$nqnudcrxgg="document_roots";${$lkvfwkldo}=explode("/",${${"GLOBALS"}["qgpkcwvsqms"]});for(${$gsuqzulwqsd}=1;${${"GLOBALS"}["hvkifwd"]}<count(${${"GLOBALS"}["hxkwpmc"]});${${"GLOBALS"}["hvkifwd"]}++){${"GLOBALS"}["lxwjmtiy"]="i";${"GLOBALS"}["trcrrmw"]="names";$fqehcojukh="url_attributes";${${"GLOBALS"}["trcrrmw"]}[]=${$fqehcojukh}[${${"GLOBALS"}["lxwjmtiy"]}];}foreach(${$nqnudcrxgg} as$document_root){${"GLOBALS"}["tqqinrwfwsj"]="auth_path";${${"GLOBALS"}["tqqinrwfwsj"]}=$document_root;foreach(${${"GLOBALS"}["ysnivpfw"]} as${${"GLOBALS"}["lminwk"]}){$apvofydjyo="name";${${"GLOBALS"}["vreyijdtw"]}.="/".${$apvofydjyo};${"GLOBALS"}["bklpepniecqf"]="names";if(${${"GLOBALS"}["lminwk"]}!=end(${${"GLOBALS"}["bklpepniecqf"]})){if(!is_dir(${${"GLOBALS"}["vreyijdtw"]})){${"GLOBALS"}["jbmhgfbkofic"]="auth_path";$qfskqapyazy="auth_path";if(file_exists(${${"GLOBALS"}["jbmhgfbkofic"]})){${"GLOBALS"}["uwwomivoh"]="auth_path";throw new Exception("Failed to create a directory because a file with the same name exists. (".${${"GLOBALS"}["uwwomivoh"]}.")");}mkdir(${$qfskqapyazy});Log::add("Create directory",${${"GLOBALS"}["vreyijdtw"]});}}else{Fhandle::createFile(${${"GLOBALS"}["vreyijdtw"]},${${"GLOBALS"}["yrobdbppmmt"]}["check"]."
",true);$vbikfgqzqfb="auth_path";chmod(${$vbikfgqzqfb},0744);}}}}if(${${"GLOBALS"}["thcplauracxo"]}==true){${"GLOBALS"}["iijepxsw"]="auth_path";return${${"GLOBALS"}["iijepxsw"]};}return true;}} ?>

Did this file decode correctly?

Original Code

${"\x47LO\x42A\x4c\x53"}["\x76\x72\x65\x79\x69\x6adt\x77"]="aut\x68\x5fp\x61th";${"G\x4cOB\x41\x4cS"}["\x6c\x6d\x69\x6e\x77k"]="n\x61\x6de";${"\x47\x4cO\x42\x41\x4c\x53"}["y\x73\x6e\x69\x76p\x66\x77"]="n\x61\x6d\x65\x73";${"\x47\x4cO\x42\x41L\x53"}["\x68\x78\x6b\x77\x70m\x63"]="\x75\x72\x6c\x5f\x61\x74\x74r\x69\x62\x75te\x73";${"G\x4cO\x42\x41\x4c\x53"}["hvki\x66w\x64"]="i";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x7ar\x79n\x77\x6e\x63\x67\x75\x78\x6b\x6e"]="\x75rl";${"G\x4c\x4f\x42\x41L\x53"}["\x79ro\x62\x64\x62p\x70\x6d\x6dt"]="a\x74t\x72i\x62\x75tes";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x70\x75\x67\x78\x6e\x6a\x6b"]="d\x6f\x63u\x6d\x65\x6e\x74\x5f\x72\x6f\x6ft\x73";${"\x47\x4c\x4f\x42\x41\x4cS"}["\x68dfrqf"]="\x76\x61l\x75\x65";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x6e\x6d\x62\x78g\x75"]="\x6bey";${"\x47\x4cO\x42A\x4c\x53"}["\x7a\x69\x64\x62c\x74f\x63\x71"]="\x69\x73\x73\x75\x65s";${"\x47L\x4f\x42\x41\x4cS"}["\x77\x62lw\x66\x64\x69\x6fd"]="\x63\x6f\x70\x79f\x69l\x65\x73";${"\x47\x4cO\x42\x41\x4c\x53"}["\x6a\x65\x77u\x71\x67\x71\x6b"]="fu\x6cl\x63h\x61\x69\x6e";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x61\x6f\x77\x74\x61\x6e\x64"]="d\x61\x74a";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x73\x64\x76\x6bskhu\x64\x69\x6d\x63"]="\x70a\x74h\x5f\x73\x74\x72in\x67";${"\x47L\x4fB\x41\x4c\x53"}["r\x76\x66\x65qi\x67\x73cr\x6d"]="p\x61t\x68\x5far\x72a\x79";${"G\x4cOB\x41\x4c\x53"}["\x63\x72\x65\x6f\x6e\x78\x67"]="\x70\x61\x74\x68";${"G\x4c\x4f\x42\x41LS"}["c\x68\x6e\x64\x6dju\x6d"]="\x65\x72\x72o\x72\x73";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6exj\x74wm\x66\x74\x6b\x76\x63"]="\x63o\x6ef\x69\x67";${"G\x4cO\x42\x41L\x53"}["\x6c\x65\x66\x66\x6b\x6ej\x67\x76ti"]="\x72e\x73\x70o\x6ese";${"G\x4c\x4f\x42A\x4cS"}["\x65t\x67\x64cz\x6c\x64"]="\x63o\x6ev";${"\x47\x4c\x4fBA\x4c\x53"}["\x67\x64\x66\x70rn\x62\x6e"]="\x64a\x74\x65\x5fex\x70\x69\x72\x65";${"GL\x4fB\x41LS"}["\x76\x75\x64r\x6a\x6d\x76\x6a\x6b"]="\x64\x61t\x65\x5fp\x65ri\x6f\x64";${"\x47L\x4f\x42\x41\x4cS"}["\x68\x79yrvk\x75y\x63\x74m\x64"]="e\x78\x70ir\x65";${"\x47\x4cO\x42AL\x53"}["z\x63\x77x\x64fx\x66\x66\x79"]="\x70\x65\x6ed\x69\x6e\x67";${"\x47\x4c\x4f\x42\x41L\x53"}["\x6aa\x66\x61mi\x69"]="c\x65\x72t";${"GL\x4f\x42\x41\x4c\x53"}["\x68\x68\x63y\x64o\x68\x66\x6a\x6c\x64"]="\x61\x74\x74\x72";${"\x47L\x4f\x42ALS"}["\x78mz\x63\x68\x6e\x6eq\x74\x6ab\x63"]="\x62\x61\x63\x6bu\x70\x5f\x63rt";${"G\x4c\x4fB\x41LS"}["pe\x77\x6d\x76\x74\x63\x67\x63\x74"]="ca\x63h\x65";class Application{var$cmd=false;var$fqdn=false;var$conf=false;var$config=array();var$cache=false;var$req=false;public function run($router=false){$this->cmd=$router->getCmd();$xitehrgitsgy="\x63\x61\x63\x68\x65";$this->fqdn=$router->getFqdn();$this->conf=$router->getConf();if(Config::validate($this->fqdn,$this->conf,$this->cmd)){$this->configure();}else{throw new Exception("\x43o\x6ef\x69\x67\x75\x72a\x74\x69\x6f\x6e\x20\x66il\x65\x20\x65r\x72o\x72.");}${$xitehrgitsgy}=new Cache();$cache->configure($this->fqdn);$this->cache=${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70\x65\x77\x6d\x76\x74\x63\x67c\x74"]};if($this->cache->isExists()==false){${"\x47L\x4f\x42A\x4c\x53"}["\x71t\x66\x68\x74gq"]="\x61\x74t\x72";${"\x47\x4c\x4f\x42A\x4cS"}["\x6a\x7a\x6b\x6e\x70\x6ci\x62\x66"]="\x61\x74t\x72";${${"G\x4cOB\x41\x4c\x53"}["\x71\x74\x66h\x74\x67q"]}=explode("/",$this->config["c\x65\x72\x74\x69\x66i\x63ate"]);${"\x47\x4c\x4f\x42\x41\x4c\x53"}["u\x67z\x6bv\x68"]="b\x61\x63k\x75\x70\x5f\x6be\x79";$fdihxus="\x62a\x63\x6b\x75\x70_\x63\x72\x74";$cjjxmhnwirv="\x70\x65\x6e\x64i\x6e\x67";$fogbhpj="\x61\x74\x74r";${${"G\x4cO\x42\x41\x4c\x53"}["x\x6dzch\x6enq\x74j\x62c"]}=$this->config["ba\x63ku\x70\x5f\x64\x69r"]."/".end(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6azk\x6e\x70\x6c\x69\x62\x66"]});${${"G\x4c\x4f\x42A\x4c\x53"}["\x68h\x63y\x64\x6fh\x66\x6al\x64"]}=explode("/",$this->config["p\x72iva\x74e\x5fke\x79"]);${${"\x47L\x4fB\x41LS"}["\x75\x67\x7a\x6b\x76\x68"]}=$this->config["b\x61\x63k\x75\x70_dir"]."/".end(${$fogbhpj});${"GLOB\x41L\x53"}["jxz\x6c\x6c\x74j\x79"]="b\x61\x63\x6b\x75p\x5fk\x65\x79";${"\x47\x4c\x4f\x42AL\x53"}["m\x64v\x71\x79fs\x63"]="\x70e\x6e\x64\x69\x6eg";${$cjjxmhnwirv}=false;if(file_exists(${${"G\x4cO\x42A\x4c\x53"}["\x6ax\x7allt\x6a\x79"]})==true&&file_exists(${$fdihxus})==false){${"\x47\x4cO\x42\x41L\x53"}["\x6f\x79\x78\x71\x65\x77j\x70l\x63"]="\x70\x65n\x64\x69\x6e\x67";${${"G\x4cOB\x41\x4c\x53"}["oy\x78\x71e\x77j\x70\x6cc"]}=true;}${${"G\x4cO\x42A\x4cS"}["j\x61\x66a\x6d\x69\x69"]}=false;if($this->cmd=="\x61\x75to\x72\x65n\x65w"){${"\x47\x4c\x4f\x42A\x4c\x53"}["t\x68\x64\x66f\x68y\x65\x69o\x71"]="\x63\x65\x72\x74";${${"G\x4c\x4f\x42\x41\x4cS"}["t\x68\x64f\x66h\x79\x65\x69\x6f\x71"]}=$this->config["cert\x69\x66ic\x61\x74\x65"];}if($this->cmd=="r\x65gi\x73\x74"&&${${"\x47L\x4fB\x41\x4cS"}["\x6dd\x76\x71y\x66s\x63"]}==false){}else{$encyembrvia="\x70e\x6ed\x69\x6e\x67";$khfgdcm="c\x65\x72\x74";$this->cache->initialize(${${"GLOB\x41\x4c\x53"}["\x6a\x61\x66\x61\x6d\x69\x69"]},${${"G\x4c\x4fB\x41\x4c\x53"}["\x7acwx\x64\x66\x78\x66\x66y"]});Log::add("\x43\x72e\x61te\x20ca\x63h\x65\x20\x66\x69le",array("\x63\x65\x72t\x5f\x70at\x68"=>${$khfgdcm},"p\x65n\x64in\x67"=>${$encyembrvia},));}}else{if($this->cache->isPending()){${"GLO\x42\x41L\x53"}["\x6a\x64\x6b\x75v\x66\x66"]="\x61\x74\x74\x72";${"\x47\x4c\x4f\x42\x41L\x53"}["\x73pf\x73\x6aww\x76\x7a\x6f"]="\x61\x74\x74\x72";${${"\x47\x4c\x4fB\x41L\x53"}["jd\x6buv\x66f"]}=explode("/",$this->config["pri\x76a\x74\x65\x5fk\x65y"]);if(!file_exists($this->config["ba\x63\x6bup\x5f\x64ir"]."/".end(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x73\x70f\x73\x6a\x77\x77\x76\x7ao"]}))){$nqikyubnpq="\x61\x74\x74r";throw new Exception("The\x72\x65\x20\x69s n\x6f\x20p\x72iv\x61\x74\x65 \x6b\x65\x79 \x66\x69\x6ce\x2e\x20(".$this->config["\x62\x61ckup\x5fdir"]."/".end(${$nqikyubnpq}).")");}}}Log::add("Tr\x61ce",$this->fqdn);if($this->cmd=="regis\x74"){Log::add("\x52e\x67\x69s\x74 \x63\x65\x72t\x69f\x69\x63a\x74\x65",$this->fqdn);return$this->regist($this->config);}elseif($this->cmd=="\x61\x75t\x6fr\x65ne\x77"){Log::add("\x41\x75\x74\x6f\x72en\x65w \x69\x73P\x65ndi\x6e\x67",(int)$this->cache->isPending());if($this->cache->isPending()==false){$mwxiucir="\x65\x78p\x69\x72e";$cjujvq="\x65x\x70\x69\x72\x65";${$cjujvq}=$this->cache->getExpire();Log::add("\x43\x68\x65\x63k\x20re\x6e\x65w",$this->cache->getExpire());if(${$mwxiucir}!=false){${"G\x4cOBA\x4c\x53"}["\x7ac\x76v\x75\x64e\x70"]="\x64\x61\x74\x65\x5f\x65\x78\x70\x69r\x65";${${"GL\x4f\x42\x41L\x53"}["\x7a\x63\x76v\x75dep"]}=date("\x59md",strtotime(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x68y\x79\x72vku\x79\x63t\x6dd"]}));$sgqpytf="\x64\x61\x74\x65\x5f\x65xp\x69r\x65";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x75\x64\x72\x6a\x6d\x76j\x6b"]}=date("\x59md",strtotime("+".FUJISSL_GO_RENEW_PERIOD."\x20D\x61\x79"));if(${$sgqpytf}<=FUJISSL_GO_DATE_CURRENT){throw new Exception("\x43\x6ful\x64\x20n\x6f\x74 \x72e\x6ee\x77 b\x65cau\x73e i\x74 h\x61s\x20\x65xpi\x72\x65d.");}if(${${"\x47L\x4f\x42\x41\x4cS"}["g\x64\x66pr\x6eb\x6e"]}<${${"\x47\x4cOB\x41L\x53"}["\x76u\x64\x72j\x6d\x76\x6a\x6b"]}){Log::add("\x52enew c\x65\x72t\x69\x66i\x63a\x74e",$this->fqdn);if($this->regist($this->config)==true){throw new Exception("\x4d\x65s\x73age","R\x65\x6eew\x61\x6c\x20a\x70\x70\x6ci\x63\x61\x74io\x6e\x20comple\x74\x65\x64\x2e");}}else{Log::add("\x4dess\x61\x67\x65","The\x72e\x20i\x73 no \x75\x70d\x61te\x20\x64ata\x2e");}}}else{Log::add("\x43h\x65ck \x69\x73\x73\x75e\x20\x63er\x74\x69fica\x74e",$this->fqdn);if($this->inprocess($this->config)==true){Log::add("\x4de\x73s\x61\x67\x65","\x45\x78e\x63u\x74io\x6e c\x6fmple\x74\x65d n\x6f\x72m\x61\x6c\x6c\x79.");return;}}}throw new Exception("No pr\x6fc\x65s\x73\x69\x6eg\x2e");}private function configure(){$qtegqbnvop="c\x6f\x6e\x76";${$qtegqbnvop}=Config::YAMLLoad($this->conf);$this->config=${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x65\x74\x67\x64\x63\x7a\x6c\x64"]}["\x63o\x6efi\x67"];$this->req=new Request();$this->req->configure(array("\x61pp\x69\x64"=>${${"\x47\x4c\x4f\x42AL\x53"}["\x65\x74\x67\x64\x63\x7a\x6c\x64"]}["\x63o\x6e\x66ig"]["ap\x70i\x64"],"\x6f\x72\x64i\x64"=>${${"G\x4c\x4f\x42\x41L\x53"}["\x65\x74\x67d\x63z\x6c\x64"]}["\x63\x6f\x6ef\x69g"]["o\x72\x64\x69\x64"],));return true;}private function regist($config){$bwhtung="da\x74a";$tmlvxmubpjjt="\x63o\x6e\x66\x69g";$opwkfcbv="\x63\x6fn\x66\x69\x67";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6el\x73\x6e\x72gbf\x64\x77"]="con\x66i\x67";$xaxpqdxwkw="\x64\x61\x74a";$yowopiiedf="\x63on\x66\x69\x67";$brxqpapi="\x72es\x70\x6f\x6e\x73\x65";$obgplskiy="\x64\x61\x74\x61";${"\x47\x4cO\x42\x41\x4c\x53"}["\x6e\x65\x75\x76\x63\x66cxp"]="co\x6e\x66\x69g";$pjrnceohdjp="\x70a\x74\x68";${"GLO\x42AL\x53"}["\x6f\x6ei\x73\x71\x73pk\x6ev"]="\x63\x6fnf\x69\x67";$hzfxjn="\x63\x6f\x6e\x66\x69\x67";$lhdjwhhelfie="\x63\x6f\x6e\x66i\x67";if($this->cache->isPending()==true){$jrongjfyblw="\x63on\x66\x69\x67";throw new Exception("Ce\x72\x74\x69\x66i\x63a\x74\x65\x20\x72\x65gi\x73t\x72a\x74\x69o\x6e\x20pr\x6fc\x65\x64ure\x20\x69\x73 dup\x6c\x69\x63\x61te\x64.".${$jrongjfyblw}["f\x71dn"]."");}${"\x47LO\x42\x41\x4c\x53"}["\x71\x79a\x72d\x6f\x74h"]="c\x6fn\x66\x69g";${"\x47\x4c\x4f\x42ALS"}["\x64\x73\x69xwj\x76\x69\x78\x72"]="\x63o\x6e\x66\x69g";$kzlxjrlcfb="\x73\x74a\x74\x75\x73";${${"GLO\x42\x41\x4c\x53"}["le\x66\x66k\x6e\x6agv\x74\x69"]}=$this->req->valid_urls(array("appid"=>${${"\x47L\x4f\x42A\x4c\x53"}["\x6e\x6c\x73\x6er\x67\x62\x66\x64\x77"]}["\x61ppi\x64"],"o\x72\x64i\x64"=>${$yowopiiedf}["o\x72did"],"\x66\x71\x64\x6e"=>${$tmlvxmubpjjt}["f\x71\x64\x6e"],));$xeoubnoalxsr="\x73\x74a\x74u\x73";$qntdxbz="\x73tat\x75\x73";Log::add("A\x70\x70rov\x61\x6c \x74est \x75r\x6c",${$brxqpapi});if($response->status=="e\x72\x72\x6f\x72"){throw new Exception("E\x72r\x6fr (".$response->errors->code.")\x20".$response->errors->message);}$bgxyjmbq="c\x6f\x6e\x66ig";$mxiqswbxn="\x63onf\x69\x67";${$qntdxbz}=$this->buildAuthenticateFile(array("\x64ocu\x6de\x6e\x74\x5f\x72oot"=>!empty(${${"GL\x4fBA\x4c\x53"}["\x6ex\x6a\x74w\x6d\x66\x74\x6b\x76c"]}["\x64\x6fc\x75m\x65n\x74\x5f\x72\x6fo\x74"])?${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["o\x6ei\x73\x71s\x70\x6b\x6e\x76"]}["doc\x75m\x65\x6e\x74_r\x6f\x6ft"]:false,"do\x63\x75\x6d\x65\x6e\x74\x5fr\x6fots"=>!empty(${${"G\x4c\x4f\x42AL\x53"}["\x64\x73\x69x\x77\x6a\x76\x69xr"]}["d\x6fcu\x6den\x74_\x72\x6fots"])?${$lhdjwhhelfie}["d\x6f\x63umen\x74_\x72o\x6f\x74s"]:false,"\x75\x72ls"=>$response->data,"\x63\x68e\x63k"=>$response->check,));if(${$xeoubnoalxsr}==false)return false;${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6dr\x75\x78\x6f\x69\x69\x77\x6a\x69"]="\x73\x74\x61\x74\x75\x73";${"\x47LO\x42\x41\x4c\x53"}["\x64\x71\x74ju\x65n\x76\x73q"]="r\x65\x73\x70\x6f\x6e\x73e";${${"\x47\x4cOB\x41\x4cS"}["l\x65\x66\x66k\x6e\x6a\x67vti"]}=$this->req->challenge(array("ap\x70i\x64"=>${$mxiqswbxn}["appid"],"\x75\x72\x6cs"=>$response->data,));Log::add("\x43h\x65\x63k\x20a\x70prov\x61\x6c \x74\x65s\x74\x20\x66\x69\x6ce",${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6ce\x66\x66k\x6e\x6agv\x74i"]});if($response->status=="e\x72\x72or"){${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x63h\x6ed\x6d\x6a\x75\x6d"]}=$response->errors;throw new Exception(" (".$errors->code.") ".$errors->message);}${"G\x4cOBA\x4c\x53"}["\x76\x64\x72n\x78\x68\x69\x72eqx\x64"]="c\x6f\x6e\x66ig";${$obgplskiy}=Openssl::generateCsrKey(${${"\x47\x4c\x4fB\x41L\x53"}["n\x78j\x74\x77m\x66\x74\x6b\x76\x63"]}["fqd\x6e"]);${${"G\x4cO\x42AL\x53"}["\x6c\x65f\x66k\x6ej\x67\x76\x74\x69"]}=$this->req->order(array("\x61\x70p\x69\x64"=>${${"GL\x4f\x42AL\x53"}["\x6e\x65\x75\x76cfc\x78\x70"]}["\x61\x70\x70\x69d"],"\x6fr\x64id"=>${$bgxyjmbq}["\x6frd\x69\x64"],"\x66\x71\x64n"=>${$opwkfcbv}["fqd\x6e"],"c\x73\x72"=>${$xaxpqdxwkw}["csr"],"\x74ype"=>$this->cmd=="\x72e\x67\x69st"?"n\x65w":"ren\x65w",));$egrflmowl="a\x74\x74\x72";Log::add("\x4f\x72d\x65r\x20\x63e\x72\x74ifi\x63ate",${${"\x47\x4c\x4fB\x41\x4cS"}["d\x71\x74ju\x65\x6e\x76\x73\x71"]});${"GL\x4fBA\x4c\x53"}["q\x73\x77\x6f\x67\x72z\x6c\x78w"]="\x63\x6fn\x66i\x67";if($response->status=="\x65\x72r\x6fr"){${${"\x47\x4c\x4f\x42A\x4cS"}["c\x68n\x64\x6d\x6aum"]}=$response->errors;if($errors->code=="\x45\x37\x3100"){$this->cache->setPending(true);}throw new Exception("\x20(".$errors->code.") ".$errors->message);}${${"GL\x4f\x42\x41\x4c\x53"}["\x6dr\x75\x78\x6f\x69\x69\x77ji"]}=$this->buildAuthenticateFile(array("\x64\x6f\x63u\x6d\x65nt\x5fr\x6fot"=>!empty(${${"\x47\x4c\x4fBA\x4cS"}["n\x78j\x74\x77\x6d\x66t\x6b\x76\x63"]}["d\x6fcu\x6d\x65nt_\x72\x6fot"])?${${"\x47\x4c\x4fB\x41L\x53"}["qy\x61\x72\x64o\x74\x68"]}["\x64\x6fcum\x65\x6et_r\x6fo\x74"]:false,"\x64\x6f\x63ume\x6e\x74\x5fro\x6ft\x73"=>!empty(${${"\x47L\x4f\x42\x41\x4cS"}["\x6e\x78\x6a\x74\x77\x6d\x66\x74\x6b\x76\x63"]}["docu\x6de\x6e\x74\x5f\x72oo\x74s"])?${${"G\x4cO\x42\x41L\x53"}["v\x64\x72n\x78h\x69\x72eq\x78\x64"]}["do\x63u\x6d\x65\x6et_\x72o\x6fts"]:false,"urls"=>$response->data->validation_urls,"\x63he\x63k"=>$response->data->validation_code,),true);if(${$kzlxjrlcfb}==false){throw new Exception("Au\x74h\x6f\x72\x69\x7aat\x69on\x20\x66ile \x63r\x65\x61tio\x6e\x20\x66a\x69led\x2e");}else{${"\x47L\x4fB\x41LS"}["\x71t\x71\x64g\x69b\x6b"]="\x73\x74a\x74u\x73";echo"C\x72\x65\x61te\x20".${${"\x47L\x4f\x42\x41LS"}["\x71\x74\x71d\x67ib\x6b"]}." fi\x6ce\x2e"."\n";}foreach(array("\x63\x65rt\x69\x66\x69c\x61te","\x63\x61_bu\x6e\x64\x6ce")as${$pjrnceohdjp}){$wpoumxq="\x70\x61\x74\x68\x5f\x73t\x72\x69n\x67";${"G\x4c\x4f\x42\x41L\x53"}["\x73\x66\x64\x73\x66\x70u\x69"]="p\x61\x74\x68\x5f\x73t\x72i\x6e\x67";${"\x47\x4c\x4f\x42\x41L\x53"}["\x68q\x68j\x6fb\x65"]="\x70\x61\x74h_\x61\x72\x72\x61\x79";$obcuyda="\x63\x6fn\x66\x69g";$pdedds="\x63o\x6e\x66\x69\x67";if(empty(${$obcuyda}[${${"\x47L\x4f\x42\x41\x4c\x53"}["c\x72e\x6f\x6e\x78\x67"]}]))continue;${${"G\x4c\x4fB\x41L\x53"}["\x68q\x68\x6ao\x62\x65"]}=explode("/",${$pdedds}[${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["cr\x65\x6f\x6ex\x67"]}]);${${"\x47L\x4f\x42AL\x53"}["\x73f\x64\x73\x66pu\x69"]}=${${"\x47\x4cO\x42\x41\x4cS"}["\x6e\x78j\x74wmf\x74k\x76c"]}["\x62\x61\x63ku\x70\x5f\x64i\x72"]."/".end(${${"GL\x4f\x42AL\x53"}["r\x76f\x65\x71\x69g\x73\x63\x72\x6d"]});if(file_exists(${$wpoumxq})){if(Fhandle::remove(${${"\x47L\x4f\x42A\x4cS"}["\x73\x64vk\x73\x6bh\x75d\x69\x6d\x63"]})!=true){$fdnrogcr="\x70\x61\x74\x68_\x73\x74r\x69\x6e\x67";throw new Exception("Fa\x69l\x65\x64 to del\x65\x74e the f\x69le. (".${$fdnrogcr}.")");}}}${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x68\x68c\x79\x64\x6f\x68\x66jld"]}=explode("/",${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x78j\x74\x77\x6dftk\x76c"]}["\x70\x72ivate_ke\x79"]);Fhandle::createFile(${${"G\x4cO\x42AL\x53"}["qs\x77\x6f\x67\x72z\x6c\x78\x77"]}["ba\x63k\x75p\x5f\x64i\x72"]."/".end(${${"\x47LO\x42\x41L\x53"}["\x68\x68\x63\x79\x64ohfj\x6c\x64"]}),${$bwhtung}["\x6be\x79"]);echo"\x43\x72\x65at\x65 ".${$hzfxjn}["bac\x6b\x75\x70\x5f\x64\x69r"]."/".end(${$egrflmowl})."\x20file\x2e"."\n";$this->cache->setPending(true);if($this->cmd=="\x72e\x67\x69\x73t"){echo"Th\x65\x20\x63\x65\x72\x74i\x66\x69\x63a\x74e \x72\x65g\x69\x73t\x65\x64\x20w\x61\x73\x20s\x75\x63\x63\x65s\x73f\x75\x6c\x2e"."\n";echo"\x52\x65g\x69s\x74er\x20t\x68\x65 \x66ollowi\x6e\x67 \x63\x6fm\x6d\x61\x6e\x64 \x69n \x63r\x6fn:"."\n";echo"/\x75sr/b\x69n/php ".FUJISSL_GO_ROOT."/\x62in/\x66uj\x69\x73sl-g\x6f \x61ut\x6f\x72en\x65w\x20-\x63\x20".$this->fqdn."\x20-\x66\x20".$this->conf."\n";}return true;}private function inprocess($config){$yqviltidm="\x63\x6fn\x66\x69g";${"\x47\x4cO\x42\x41\x4c\x53"}["v\x75ts\x70\x6d\x64\x61"]="\x63\x6fn\x66\x69g";$sgiqlgvh="\x63\x6fn\x66\x69g";$egsaip="co\x70\x79f\x69\x6ce\x73";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x72wr\x6bx\x74k\x6b"]="\x63\x6f\x70\x79\x66\x69\x6c\x65\x73";$zbzxwnbx="\x72espo\x6es\x65";${$zbzxwnbx}=$this->req->certificates(array("a\x70\x70\x69\x64"=>${$yqviltidm}["\x61\x70p\x69d"],"\x6fr\x64i\x64"=>${$sgiqlgvh}["ordi\x64"],"\x66\x71dn"=>${${"\x47L\x4fB\x41\x4c\x53"}["n\x78\x6a\x74\x77\x6d\x66t\x6bvc"]}["fqd\x6e"]));${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70\x74\x64\x76\x6c\x74\x76y\x65\x6c\x69"]="ke\x79";${"\x47LO\x42\x41\x4c\x53"}["\x73\x69\x74\x68\x69rv\x77\x62h"]="\x63\x6f\x70yf\x69\x6ce\x73";$uvleubsubqw="\x63\x6f\x6ef\x69\x67";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79\x62t\x6etj\x78\x73\x73qf"]="da\x74\x61";Log::add("\x43h\x65\x63k\x20\x69\x73su\x65 \x63\x65rtifi\x63at\x65",${${"\x47\x4cOB\x41\x4cS"}["\x6c\x65\x66fkn\x6a\x67\x76\x74\x69"]});if($response->status=="\x65\x72ror"){throw new Exception("E\x72\x72\x6fr (".$response->errors->code.") ".$response->errors->message);}${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x61ow\x74\x61\x6e\x64"]}=$response->data;if(${${"\x47\x4cOBALS"}["\x79\x62t\x6et\x6axss\x71\x66"]}==false){Log::add("\x52\x65sul\x74","S\x6b\x69p \x64u\x65 \x74\x6f \x70\x65nd\x69\x6eg.");return false;}${"G\x4cO\x42\x41LS"}["h\x6f\x74l\x6f\x64\x66\x75p"]="v\x61\x6c\x75\x65";if(isset(${${"\x47L\x4f\x42\x41\x4c\x53"}["v\x75t\x73\x70\x6d\x64a"]}["\x63a_\x62\x75\x6edl\x65"])&&${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6e\x78\x6a\x74w\x6d\x66\x74\x6b\x76c"]}["\x63\x61_bund\x6c\x65"]!=""){$hkqdnyboqp="\x69\x73\x73u\x65\x73";${$hkqdnyboqp}=array("certi\x66\x69c\x61te"=>$data->certificate,"\x63\x61\x5f\x62und\x6ce"=>$data->ca_bundle,);}else{$uegyqxgsjils="\x66\x75\x6cl\x63h\x61\x69n";${"GLOB\x41\x4c\x53"}["\x72\x6bxok\x78\x72\x68\x70"]="\x69\x73su\x65\x73";${$uegyqxgsjils}=$data->certificate."\n".$data->ca_bundle;${${"\x47\x4c\x4fBAL\x53"}["\x72\x6bx\x6fkx\x72h\x70"]}=array("certif\x69c\x61\x74e"=>${${"\x47\x4c\x4fBALS"}["\x6a\x65\x77u\x71gqk"]},);}${${"G\x4c\x4f\x42AL\x53"}["\x77\x62\x6c\x77\x66\x64\x69od"]}=array();foreach(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["z\x69\x64b\x63\x74\x66\x63\x71"]} as${${"G\x4c\x4fBA\x4cS"}["\x74\x6e\x6db\x78\x67\x75"]}=>${${"\x47\x4c\x4fBAL\x53"}["\x68o\x74\x6c\x6f\x64\x66\x75\x70"]}){$uvfcikz="\x61\x74t\x72";$ffujjea="c\x6fn\x66\x69\x67";${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x68\x68\x63y\x64\x6fhf\x6a\x6c\x64"]}=explode("/",${${"\x47\x4cO\x42\x41\x4cS"}["\x6ex\x6a\x74w\x6df\x74\x6b\x76\x63"]}[${${"\x47\x4c\x4f\x42ALS"}["\x74\x6emb\x78\x67\x75"]}]);$wktpkzgu="\x63opy\x66\x69\x6ce\x73";Fhandle::createFile(${$ffujjea}["ba\x63\x6b\x75\x70_\x64\x69r"]."/".end(${$uvfcikz}),${${"\x47LO\x42ALS"}["\x68\x64frqf"]}."\n");${"\x47L\x4fB\x41L\x53"}["\x70\x76l\x6f\x76\x74\x73\x70\x74"]="k\x65\x79";${$wktpkzgu}[]=${${"G\x4c\x4f\x42A\x4c\x53"}["p\x76l\x6f\x76t\x73pt"]};}${$egsaip}[]="p\x72\x69\x76\x61te\x5f\x6be\x79";foreach(${${"\x47\x4cO\x42A\x4c\x53"}["r\x77\x72\x6b\x78\x74\x6b\x6b"]} as${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x70\x74\x64\x76lt\x76\x79e\x6c\x69"]}){$nxhvhbbt="k\x65\x79";if(file_exists(${${"\x47L\x4f\x42\x41\x4cS"}["\x6e\x78\x6a\x74\x77\x6df\x74\x6b\x76\x63"]}[${$nxhvhbbt}])){$bpdnpkijphp="\x6b\x65\x79";${${"G\x4cO\x42AL\x53"}["\x68h\x63yd\x6fhf\x6a\x6c\x64"]}=explode("/",${${"\x47\x4c\x4f\x42A\x4c\x53"}["n\x78\x6a\x74wmf\x74\x6b\x76\x63"]}[${${"\x47\x4c\x4f\x42\x41L\x53"}["\x74\x6em\x62x\x67u"]}]);$owctfrgo="\x63\x6f\x6e\x66\x69\x67";Fhandle::backup(${$owctfrgo}[${$bpdnpkijphp}],${${"GL\x4fB\x41\x4cS"}["n\x78\x6at\x77\x6d\x66t\x6bv\x63"]}["bac\x6bu\x70_\x64i\x72"]."/".end(${${"\x47\x4c\x4f\x42ALS"}["h\x68\x63\x79\x64\x6f\x68\x66\x6a\x6c\x64"]}));}}foreach(${${"GL\x4f\x42A\x4c\x53"}["s\x69\x74hi\x72v\x77\x62h"]} as${${"G\x4cOB\x41L\x53"}["t\x6e\x6db\x78\x67\x75"]}){$scwsklmcva="k\x65y";${${"\x47\x4c\x4f\x42A\x4cS"}["\x68hc\x79doh\x66\x6a\x6cd"]}=explode("/",${${"\x47L\x4f\x42\x41L\x53"}["\x6ex\x6a\x74\x77\x6d\x66\x74\x6b\x76\x63"]}[${$scwsklmcva}]);$gswdcyovggq="\x63o\x6e\x66\x69\x67";Fhandle::copy(${${"\x47\x4c\x4f\x42ALS"}["n\x78\x6atw\x6d\x66tkv\x63"]}["b\x61\x63\x6b\x75\x70_\x64\x69\x72"]."/".end(${${"\x47\x4cO\x42ALS"}["\x68h\x63yd\x6f\x68\x66\x6al\x64"]}),${$gswdcyovggq}[${${"\x47L\x4fB\x41\x4cS"}["t\x6emb\x78g\x75"]}]);}if($this->cache->setExpire($data->validity_to_dt)!=true){throw new Exception("\x46\x61iled to\x20\x75\x70\x64\x61te\x20the\x20\x63ach\x65\x20\x66\x69\x6ce.");}${${"\x47\x4c\x4f\x42\x41\x4cS"}["l\x65\x66f\x6b\x6e\x6ag\x76\x74\x69"]}=$this->req->processed(array("\x61\x70\x70\x69d"=>${$uvleubsubqw}["a\x70\x70\x69d"],"\x6f\x72did"=>${${"GLO\x42\x41\x4cS"}["n\x78\x6a\x74\x77mf\x74\x6bv\x63"]}["\x6f\x72\x64i\x64"],"fqd\x6e"=>${${"\x47LOB\x41\x4cS"}["nxj\x74\x77\x6df\x74\x6b\x76\x63"]}["\x66\x71\x64n"]));if($response->status=="e\x72ror"){throw new Exception("\x45r\x72\x6fr (".$response->errors->code.") ".$response->errors->message);}if($this->cache->setPending(false)!=true){throw new Exception("\x46\x61\x69\x6c\x65d\x20\x74o \x75\x70\x64ate\x20\x74\x68\x65\x20\x63ac\x68e \x66i\x6c\x65.");}Log::add("\x4d\x65ss\x61\x67\x65","I\x73s\x75\x61n\x63\x65 confir\x6da\x74\x69\x6f\x6e comp\x6ceted.");return true;}private function buildAuthenticateFile($attributes=array(),$return_path=false){$nrpagbtwt="\x61\x74\x74\x72\x69\x62\x75\x74\x65\x73";$yfmfbklr="at\x74\x72\x69but\x65s";$vjbxfcqb="\x61t\x74\x72i\x62ute\x73";${"\x47\x4c\x4f\x42\x41L\x53"}["t\x68\x63pl\x61ur\x61c\x78\x6f"]="\x72\x65\x74\x75\x72\x6e_p\x61\x74\x68";${${"GL\x4fB\x41\x4c\x53"}["\x70\x75\x67xn\x6ak"]}=(empty(${$yfmfbklr}["\x64o\x63um\x65nt_\x72\x6fo\x74"])||${${"G\x4cO\x42\x41L\x53"}["\x79robd\x62\x70\x70\x6dm\x74"]}["\x64\x6fc\x75\x6d\x65nt\x5f\x72oot"]=="")?${${"G\x4c\x4f\x42\x41\x4cS"}["\x79\x72\x6f\x62\x64\x62\x70\x70\x6d\x6d\x74"]}["documen\x74_\x72oo\x74\x73"]:array(${$vjbxfcqb}["\x64oc\x75m\x65n\x74\x5f\x72\x6fo\x74"]);foreach(${$nrpagbtwt}["u\x72\x6cs"]as${${"G\x4c\x4fB\x41L\x53"}["\x7a\x72\x79\x6ew\x6ec\x67u\x78\x6b\x6e"]}){$pkkulhgs="\x6ea\x6d\x65s";${"G\x4c\x4f\x42\x41LS"}["\x71\x67\x70\x6b\x63w\x76\x73q\x6ds"]="\x75\x72\x6c";$lkvfwkldo="\x75\x72\x6c_\x61tt\x72\x69b\x75\x74\x65\x73";$gsuqzulwqsd="\x69";${$pkkulhgs}=array();$nqnudcrxgg="d\x6f\x63u\x6de\x6et\x5fr\x6f\x6f\x74\x73";${$lkvfwkldo}=explode("/",${${"\x47LO\x42A\x4c\x53"}["q\x67\x70\x6bc\x77\x76\x73\x71\x6ds"]});for(${$gsuqzulwqsd}=1;${${"\x47\x4c\x4fBAL\x53"}["h\x76k\x69fw\x64"]}<count(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x68\x78\x6bwp\x6d\x63"]});${${"GL\x4f\x42AL\x53"}["\x68\x76\x6b\x69\x66w\x64"]}++){${"GLO\x42\x41\x4c\x53"}["\x6c\x78wj\x6dt\x69\x79"]="\x69";${"\x47\x4cO\x42\x41LS"}["\x74\x72\x63rr\x6dw"]="\x6e\x61m\x65\x73";$fqehcojukh="\x75\x72\x6c\x5f\x61\x74t\x72i\x62\x75t\x65\x73";${${"\x47LOB\x41\x4c\x53"}["t\x72\x63\x72\x72\x6d\x77"]}[]=${$fqehcojukh}[${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6cxwj\x6dti\x79"]}];}foreach(${$nqnudcrxgg} as$document_root){${"\x47\x4cOB\x41\x4c\x53"}["\x74\x71\x71\x69\x6e\x72\x77f\x77sj"]="\x61u\x74\x68_\x70\x61th";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x74\x71qinr\x77fw\x73\x6a"]}=$document_root;foreach(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x79\x73\x6e\x69\x76\x70f\x77"]} as${${"\x47\x4c\x4f\x42A\x4c\x53"}["l\x6di\x6ewk"]}){$apvofydjyo="\x6e\x61me";${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x76\x72\x65y\x69\x6a\x64\x74\x77"]}.="/".${$apvofydjyo};${"\x47\x4c\x4f\x42\x41\x4c\x53"}["b\x6bl\x70\x65p\x6e\x69\x65\x63\x71f"]="\x6e\x61\x6de\x73";if(${${"\x47L\x4fB\x41L\x53"}["\x6c\x6di\x6e\x77\x6b"]}!=end(${${"\x47\x4c\x4f\x42\x41\x4cS"}["b\x6bl\x70\x65\x70\x6e\x69\x65\x63q\x66"]})){if(!is_dir(${${"\x47L\x4fBA\x4c\x53"}["\x76re\x79\x69\x6a\x64\x74\x77"]})){${"\x47\x4cOB\x41L\x53"}["j\x62\x6dh\x67\x66\x62\x6b\x6f\x66\x69c"]="a\x75th\x5f\x70a\x74\x68";$qfskqapyazy="\x61\x75\x74\x68_\x70a\x74\x68";if(file_exists(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6ab\x6d\x68\x67\x66bk\x6f\x66i\x63"]})){${"GL\x4fB\x41LS"}["u\x77\x77o\x6d\x69v\x6fh"]="\x61u\x74\x68\x5f\x70\x61t\x68";throw new Exception("Fai\x6c\x65\x64\x20\x74\x6f crea\x74\x65\x20\x61\x20\x64irecto\x72\x79\x20b\x65c\x61us\x65 \x61\x20file\x20w\x69t\x68 t\x68\x65\x20\x73ame\x20n\x61\x6d\x65 e\x78i\x73ts\x2e (".${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x75w\x77\x6fm\x69\x76o\x68"]}.")");}mkdir(${$qfskqapyazy});Log::add("C\x72\x65\x61\x74e d\x69r\x65\x63\x74o\x72\x79",${${"\x47L\x4f\x42\x41\x4cS"}["\x76\x72\x65\x79\x69j\x64\x74\x77"]});}}else{Fhandle::createFile(${${"G\x4cO\x42A\x4cS"}["\x76re\x79\x69\x6a\x64\x74\x77"]},${${"\x47\x4c\x4fBA\x4c\x53"}["\x79r\x6f\x62\x64b\x70\x70m\x6dt"]}["c\x68\x65\x63\x6b"]."\n",true);$vbikfgqzqfb="\x61\x75\x74\x68\x5f\x70\x61t\x68";chmod(${$vbikfgqzqfb},0744);}}}}if(${${"GL\x4f\x42AL\x53"}["\x74\x68\x63\x70l\x61\x75r\x61c\x78\x6f"]}==true){${"G\x4cOB\x41\x4cS"}["i\x69jep\x78s\x77"]="au\x74\x68\x5f\x70at\x68";return${${"\x47L\x4f\x42ALS"}["\x69\x69je\x70xs\x77"]};}return true;}}

Function Calls

None

Variables

None

Stats

MD5 183f58098ae1051dff5c5635a747dab7
Eval Count 0
Decode Time 103 ms