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\x4cS"}["x\x79\x72\x71\x64\x6b\x70"]="re\x74ur\x6e\x5f\x70\x6..

Decoded Output download

<?php ${"GLOBALS"}["xyrqdkp"]="return_path";${"GLOBALS"}["drtpmyvm"]="name";${"GLOBALS"}["yqqsgiev"]="auth_path";${"GLOBALS"}["nhhqcr"]="i";${"GLOBALS"}["qwwprbdvb"]="url";${"GLOBALS"}["gzmvnjdlg"]="url_attributes";${"GLOBALS"}["szrxlpnp"]="names";${"GLOBALS"}["vpmgfvw"]="attributes";${"GLOBALS"}["ylefmncjpvp"]="key";${"GLOBALS"}["vvpcnfl"]="value";${"GLOBALS"}["wisoipgi"]="copyfiles";${"GLOBALS"}["hbsqiwxhtvd"]="fullchain";${"GLOBALS"}["xqbrqmdkfe"]="path_string";${"GLOBALS"}["hwlrgcx"]="path_array";${"GLOBALS"}["lbajhgbk"]="path";${"GLOBALS"}["yeiscvbmvd"]="status";${"GLOBALS"}["roiyuaacp"]="data";${"GLOBALS"}["qhfmoqsv"]="config";${"GLOBALS"}["oxyxwzqhuyus"]="response";${"GLOBALS"}["vrsbkmalojq"]="conv";${"GLOBALS"}["qxtsvqxvjw"]="date_expire";${"GLOBALS"}["lgbrdvwkgmv"]="expire";${"GLOBALS"}["qzorfylapy"]="cert";${"GLOBALS"}["lhxtugwgq"]="pending";${"GLOBALS"}["wsqsrw"]="backup_key";${"GLOBALS"}["smnopecwhnu"]="attr";${"GLOBALS"}["hjprxxdtdtps"]="backup_crt";${"GLOBALS"}["pgywywa"]="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();$this->fqdn=$router->getFqdn();$this->conf=$router->getConf();${"GLOBALS"}["smdgoyfgkf"]="cache";if(Config::validate($this->fqdn,$this->conf,$this->cmd)){$this->configure();}else{throw new Exception("Configuration file error.");}${${"GLOBALS"}["smdgoyfgkf"]}=new Cache();$cache->configure($this->fqdn);$this->cache=${${"GLOBALS"}["pgywywa"]};if($this->cache->isExists()==false){${"GLOBALS"}["sacluozc"]="attr";$smmvbynom="backup_key";${${"GLOBALS"}["sacluozc"]}=explode("/",$this->config["certificate"]);${${"GLOBALS"}["hjprxxdtdtps"]}=$this->config["backup_dir"]."/".end(${${"GLOBALS"}["smnopecwhnu"]});${${"GLOBALS"}["smnopecwhnu"]}=explode("/",$this->config["private_key"]);${${"GLOBALS"}["wsqsrw"]}=$this->config["backup_dir"]."/".end(${${"GLOBALS"}["smnopecwhnu"]});${"GLOBALS"}["rsogytdbzlt"]="pending";${${"GLOBALS"}["lhxtugwgq"]}=false;if(file_exists(${$smmvbynom})==true&&file_exists(${${"GLOBALS"}["hjprxxdtdtps"]})==false){${${"GLOBALS"}["lhxtugwgq"]}=true;}${${"GLOBALS"}["qzorfylapy"]}=false;if($this->cmd=="autorenew"){${${"GLOBALS"}["qzorfylapy"]}=$this->config["certificate"];}if($this->cmd=="regist"&&${${"GLOBALS"}["rsogytdbzlt"]}==false){}else{$drtefpiugkkk="cert";${"GLOBALS"}["mhlgwclmku"]="cert";$this->cache->initialize(${${"GLOBALS"}["mhlgwclmku"]},${${"GLOBALS"}["lhxtugwgq"]});Log::add("Create cache file",array("cert_path"=>${$drtefpiugkkk},"pending"=>${${"GLOBALS"}["lhxtugwgq"]},));}}else{if($this->cache->isPending()){${"GLOBALS"}["iuinkpjigr"]="attr";${"GLOBALS"}["bfvyjyu"]="attr";${${"GLOBALS"}["iuinkpjigr"]}=explode("/",$this->config["private_key"]);if(!file_exists($this->config["backup_dir"]."/".end(${${"GLOBALS"}["bfvyjyu"]}))){throw new Exception("There is no private key file. (".$this->config["backup_dir"]."/".end(${${"GLOBALS"}["smnopecwhnu"]}).")");}}}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){${${"GLOBALS"}["lgbrdvwkgmv"]}=$this->cache->getExpire();${"GLOBALS"}["hrmytafh"]="expire";Log::add("Check renew",$this->cache->getExpire());if(${${"GLOBALS"}["hrmytafh"]}!=false){$mddeiiczk="date_expire";${"GLOBALS"}["qyrkbw"]="date_period";$nusjxo="date_expire";$vvdibuit="date_period";${$mddeiiczk}=date("Ymd",strtotime(${${"GLOBALS"}["lgbrdvwkgmv"]}));${${"GLOBALS"}["qyrkbw"]}=date("Ymd",strtotime("+".SSLSTORE_RENEW_PERIOD." Day"));if(${$nusjxo}<=SSLSTORE_DATE_CURRENT){throw new Exception("Could not renew because it has expired.");}if(${${"GLOBALS"}["qxtsvqxvjw"]}<${$vvdibuit}){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(){$qhvrjy="conv";$lfyiweqi="conv";${${"GLOBALS"}["vrsbkmalojq"]}=Config::YAMLLoad($this->conf);$xpssssyi="conv";$this->config=${$xpssssyi}["config"];$this->req=new Request();$this->req->configure(array("appid"=>${$qhvrjy}["config"]["appid"],"ordid"=>${$lfyiweqi}["config"]["ordid"],));return true;}private function regist($config){${"GLOBALS"}["qowumlki"]="status";${"GLOBALS"}["tapiinu"]="config";${"GLOBALS"}["nridhskqt"]="response";$frmhpxyydjal="status";${"GLOBALS"}["inrdxhvhqjw"]="response";${"GLOBALS"}["oadshgj"]="response";$oxmgevkx="response";${"GLOBALS"}["ridboxs"]="config";$lkdkidultez="config";$jnflewyglsdx="config";if($this->cache->isPending()==true){${"GLOBALS"}["pnislwjujv"]="config";throw new Exception("Certificate registration procedure is duplicated.".${${"GLOBALS"}["pnislwjujv"]}["fqdn"]."");}${"GLOBALS"}["rvbpmccu"]="status";${${"GLOBALS"}["oxyxwzqhuyus"]}=$this->req->valid_urls(array("appid"=>${${"GLOBALS"}["qhfmoqsv"]}["appid"],"ordid"=>${$jnflewyglsdx}["ordid"],"fqdn"=>${${"GLOBALS"}["qhfmoqsv"]}["fqdn"],));$eekelrwngxcf="config";$funyqvzbwxl="config";Log::add("Approval test url",${${"GLOBALS"}["inrdxhvhqjw"]});${"GLOBALS"}["skrayubo"]="config";$fjxvwewhmbs="config";if($response->status=="error"){throw new Exception("Error (".$response->errors->code.") ".$response->errors->message);}${$frmhpxyydjal}=$this->buildAuthenticateFile(array("document_root"=>!empty(${${"GLOBALS"}["skrayubo"]}["document_root"])?${${"GLOBALS"}["qhfmoqsv"]}["document_root"]:false,"document_roots"=>!empty(${${"GLOBALS"}["ridboxs"]}["document_roots"])?${$eekelrwngxcf}["document_roots"]:false,"urls"=>$response->data,"check"=>$response->check,));if(${${"GLOBALS"}["qowumlki"]}==false)return false;${${"GLOBALS"}["oadshgj"]}=$this->req->challenge(array("appid"=>${${"GLOBALS"}["qhfmoqsv"]}["appid"],"urls"=>$response->data,));Log::add("Check approval test file",${${"GLOBALS"}["nridhskqt"]});if($response->status=="error"){${"GLOBALS"}["pvxhuke"]="errors";${${"GLOBALS"}["pvxhuke"]}=$response->errors;throw new Exception(" (".$errors->code.") ".$errors->message);}${${"GLOBALS"}["roiyuaacp"]}=Openssl::generateCsrKey(${$lkdkidultez}["fqdn"]);$ykgkoxuccc="data";${${"GLOBALS"}["oxyxwzqhuyus"]}=$this->req->order(array("appid"=>${${"GLOBALS"}["qhfmoqsv"]}["appid"],"ordid"=>${$funyqvzbwxl}["ordid"],"fqdn"=>${${"GLOBALS"}["qhfmoqsv"]}["fqdn"],"csr"=>${${"GLOBALS"}["roiyuaacp"]}["csr"],"type"=>$this->cmd=="regist"?"new":"renew",));${"GLOBALS"}["yrekoqq"]="attr";Log::add("Order certificate",${$oxmgevkx});if($response->status=="error"){$tmcjnydq="errors";${$tmcjnydq}=$response->errors;if($errors->code=="E7100"){$this->cache->setPending(true);}throw new Exception(" (".$errors->code.") ".$errors->message);}${${"GLOBALS"}["rvbpmccu"]}=$this->buildAuthenticateFile(array("document_root"=>!empty(${${"GLOBALS"}["qhfmoqsv"]}["document_root"])?${${"GLOBALS"}["qhfmoqsv"]}["document_root"]:false,"document_roots"=>!empty(${${"GLOBALS"}["qhfmoqsv"]}["document_roots"])?${$fjxvwewhmbs}["document_roots"]:false,"urls"=>$response->data->validation_urls,"check"=>$response->data->validation_code,),true);if(${${"GLOBALS"}["yeiscvbmvd"]}==false){throw new Exception("Authorization file creation failed.");}else{echo"Create ".${${"GLOBALS"}["yeiscvbmvd"]}." file."."
";}$pivnqgbd="config";foreach(array("certificate","ca_bundle")as${${"GLOBALS"}["lbajhgbk"]}){${"GLOBALS"}["czvqpewbirl"]="path";${"GLOBALS"}["hqqbtsfwxrb"]="config";if(empty(${${"GLOBALS"}["hqqbtsfwxrb"]}[${${"GLOBALS"}["czvqpewbirl"]}]))continue;${${"GLOBALS"}["hwlrgcx"]}=explode("/",${${"GLOBALS"}["qhfmoqsv"]}[${${"GLOBALS"}["lbajhgbk"]}]);$tqqimvws="path_array";$wkwxvhjwxsx="path_string";${$wkwxvhjwxsx}=${${"GLOBALS"}["qhfmoqsv"]}["backup_dir"]."/".end(${$tqqimvws});if(file_exists(${${"GLOBALS"}["xqbrqmdkfe"]})){$huboiwd="path_string";if(Fhandle::remove(${$huboiwd})!=true){${"GLOBALS"}["sxwjcff"]="path_string";throw new Exception("Failed to delete the file. (".${${"GLOBALS"}["sxwjcff"]}.")");}}}$zxjttyytnp="config";$vegjncsdf="attr";${$vegjncsdf}=explode("/",${$zxjttyytnp}["private_key"]);Fhandle::createFile(${$pivnqgbd}["backup_dir"]."/".end(${${"GLOBALS"}["yrekoqq"]}),${$ykgkoxuccc}["key"]);echo"Create ".${${"GLOBALS"}["tapiinu"]}["backup_dir"]."/".end(${${"GLOBALS"}["smnopecwhnu"]})." 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 ".SSLSTORE_ROOT."/bin/sslstore-client autorenew -c ".$this->fqdn." -f ".$this->conf."
";}return true;}private function inprocess($config){${"GLOBALS"}["khkjpzywr"]="config";${"GLOBALS"}["prnontzzxl"]="key";$nnhvpkiwi="config";${${"GLOBALS"}["oxyxwzqhuyus"]}=$this->req->certificates(array("appid"=>${$nnhvpkiwi}["appid"],"ordid"=>${${"GLOBALS"}["qhfmoqsv"]}["ordid"],"fqdn"=>${${"GLOBALS"}["khkjpzywr"]}["fqdn"]));${"GLOBALS"}["ipdnicl"]="config";$gkzwkeo="config";${"GLOBALS"}["xvppbcodxij"]="response";$fklndr="response";Log::add("Check issue certificate",${${"GLOBALS"}["xvppbcodxij"]});if($response->status=="error"){throw new Exception("Error (".$response->errors->code.") ".$response->errors->message);}${"GLOBALS"}["bwpxwjn"]="key";${"GLOBALS"}["usxtgsjhd"]="value";${${"GLOBALS"}["roiyuaacp"]}=$response->data;${"GLOBALS"}["wzhxbcpzn"]="config";${"GLOBALS"}["qpgiclbveyti"]="data";$umeilwuruojj="issues";if(${${"GLOBALS"}["qpgiclbveyti"]}==false){Log::add("Result","Skip due to pending.");return false;}if(isset(${${"GLOBALS"}["ipdnicl"]}["ca_bundle"])&&${${"GLOBALS"}["wzhxbcpzn"]}["ca_bundle"]!=""){${"GLOBALS"}["tdpkbcnihq"]="issues";${${"GLOBALS"}["tdpkbcnihq"]}=array("certificate"=>$data->certificate,"ca_bundle"=>$data->ca_bundle,);}else{$amibwv="issues";${${"GLOBALS"}["hbsqiwxhtvd"]}=$data->certificate."
".$data->ca_bundle;${$amibwv}=array("certificate"=>${${"GLOBALS"}["hbsqiwxhtvd"]},);}${${"GLOBALS"}["wisoipgi"]}=array();foreach(${$umeilwuruojj} as${${"GLOBALS"}["prnontzzxl"]}=>${${"GLOBALS"}["usxtgsjhd"]}){$hsokbgehhjg="key";${"GLOBALS"}["fyzkkgc"]="config";${${"GLOBALS"}["smnopecwhnu"]}=explode("/",${${"GLOBALS"}["fyzkkgc"]}[${$hsokbgehhjg}]);${"GLOBALS"}["meailttkqtjc"]="copyfiles";Fhandle::createFile(${${"GLOBALS"}["qhfmoqsv"]}["backup_dir"]."/".end(${${"GLOBALS"}["smnopecwhnu"]}),${${"GLOBALS"}["vvpcnfl"]}."
");${${"GLOBALS"}["meailttkqtjc"]}[]=${${"GLOBALS"}["ylefmncjpvp"]};}${${"GLOBALS"}["wisoipgi"]}[]="private_key";foreach(${${"GLOBALS"}["wisoipgi"]} as${${"GLOBALS"}["ylefmncjpvp"]}){$fkcvqgvlqtv="key";${"GLOBALS"}["gooxccfg"]="config";if(file_exists(${${"GLOBALS"}["gooxccfg"]}[${$fkcvqgvlqtv}])){${"GLOBALS"}["mdbhoglrrf"]="key";$dauooeevr="config";${${"GLOBALS"}["smnopecwhnu"]}=explode("/",${$dauooeevr}[${${"GLOBALS"}["mdbhoglrrf"]}]);$gwmubxacqi="attr";Fhandle::backup(${${"GLOBALS"}["qhfmoqsv"]}[${${"GLOBALS"}["ylefmncjpvp"]}],${${"GLOBALS"}["qhfmoqsv"]}["backup_dir"]."/".end(${$gwmubxacqi}));}}foreach(${${"GLOBALS"}["wisoipgi"]} as${${"GLOBALS"}["bwpxwjn"]}){${"GLOBALS"}["vfjccjl"]="config";${"GLOBALS"}["xlnqbebjkkh"]="attr";$mlpvmhrkbi="key";${"GLOBALS"}["tidtbfxhsoqm"]="key";$wldpyvj="config";${${"GLOBALS"}["smnopecwhnu"]}=explode("/",${${"GLOBALS"}["vfjccjl"]}[${$mlpvmhrkbi}]);Fhandle::copy(${$wldpyvj}["backup_dir"]."/".end(${${"GLOBALS"}["xlnqbebjkkh"]}),${${"GLOBALS"}["qhfmoqsv"]}[${${"GLOBALS"}["tidtbfxhsoqm"]}]);}if($this->cache->setExpire($data->validity_to_dt)!=true){throw new Exception("Failed to update the cache file.");}${$fklndr}=$this->req->processed(array("appid"=>${${"GLOBALS"}["qhfmoqsv"]}["appid"],"ordid"=>${$gkzwkeo}["ordid"],"fqdn"=>${${"GLOBALS"}["qhfmoqsv"]}["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){${"GLOBALS"}["cxrdhdevmeh"]="document_roots";${"GLOBALS"}["vsuvcv"]="attributes";$yqmifufssf="attributes";$naxutjr="url";${${"GLOBALS"}["cxrdhdevmeh"]}=(empty(${${"GLOBALS"}["vpmgfvw"]}["document_root"])||${$yqmifufssf}["document_root"]=="")?${${"GLOBALS"}["vpmgfvw"]}["document_roots"]:array(${${"GLOBALS"}["vpmgfvw"]}["document_root"]);foreach(${${"GLOBALS"}["vsuvcv"]}["urls"]as${$naxutjr}){${"GLOBALS"}["grofbz"]="i";${"GLOBALS"}["fjlzqcwwwl"]="i";${"GLOBALS"}["qwdyvk"]="i";${"GLOBALS"}["nloneo"]="url_attributes";${"GLOBALS"}["xmjvxyokhqx"]="document_roots";${${"GLOBALS"}["szrxlpnp"]}=array();${${"GLOBALS"}["gzmvnjdlg"]}=explode("/",${${"GLOBALS"}["qwwprbdvb"]});for(${${"GLOBALS"}["qwdyvk"]}=1;${${"GLOBALS"}["fjlzqcwwwl"]}<count(${${"GLOBALS"}["nloneo"]});${${"GLOBALS"}["grofbz"]}++){${${"GLOBALS"}["szrxlpnp"]}[]=${${"GLOBALS"}["gzmvnjdlg"]}[${${"GLOBALS"}["nhhqcr"]}];}foreach(${${"GLOBALS"}["xmjvxyokhqx"]} as$document_root){$sycbimthpgi="auth_path";${"GLOBALS"}["jjxnuyy"]="name";${$sycbimthpgi}=$document_root;foreach(${${"GLOBALS"}["szrxlpnp"]} as${${"GLOBALS"}["jjxnuyy"]}){${${"GLOBALS"}["yqqsgiev"]}.="/".${${"GLOBALS"}["drtpmyvm"]};$iazidxwqiuio="names";${"GLOBALS"}["wxelhumevv"]="name";if(${${"GLOBALS"}["wxelhumevv"]}!=end(${$iazidxwqiuio})){$exczleq="auth_path";if(!is_dir(${$exczleq})){if(file_exists(${${"GLOBALS"}["yqqsgiev"]})){throw new Exception("Failed to create a directory because a file with the same name exists. (".${${"GLOBALS"}["yqqsgiev"]}.")");}mkdir(${${"GLOBALS"}["yqqsgiev"]});Log::add("Create directory",${${"GLOBALS"}["yqqsgiev"]});}}else{$jwvxdnrutjd="attributes";$ttonnttmexv="auth_path";Fhandle::createFile(${${"GLOBALS"}["yqqsgiev"]},${$jwvxdnrutjd}["check"]."
",true);chmod(${$ttonnttmexv},0744);}}}}if(${${"GLOBALS"}["xyrqdkp"]}==true){${"GLOBALS"}["jqkrdwybcokq"]="auth_path";return${${"GLOBALS"}["jqkrdwybcokq"]};}return true;}} ?>

Did this file decode correctly?

Original Code

<?php ${"\x47\x4c\x4f\x42\x41\x4cS"}["x\x79\x72\x71\x64\x6b\x70"]="re\x74ur\x6e\x5f\x70\x61t\x68";${"\x47L\x4fBAL\x53"}["d\x72\x74\x70myv\x6d"]="\x6e\x61\x6de";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79qqsg\x69ev"]="a\x75\x74\x68\x5fpath";${"G\x4cOB\x41L\x53"}["\x6e\x68\x68\x71c\x72"]="i";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71wwprb\x64v\x62"]="\x75r\x6c";${"\x47L\x4fB\x41\x4c\x53"}["g\x7a\x6d\x76\x6ej\x64\x6c\x67"]="\x75rl\x5f\x61\x74t\x72\x69b\x75\x74\x65s";${"\x47LOB\x41\x4c\x53"}["\x73\x7a\x72\x78\x6c\x70\x6e\x70"]="\x6e\x61m\x65s";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x70\x6d\x67\x66vw"]="\x61\x74\x74r\x69\x62\x75\x74\x65\x73";${"\x47LOB\x41\x4c\x53"}["\x79le\x66\x6d\x6ec\x6a\x70v\x70"]="\x6be\x79";${"G\x4cO\x42\x41\x4c\x53"}["\x76\x76p\x63\x6ef\x6c"]="v\x61lue";${"G\x4c\x4fB\x41\x4cS"}["\x77\x69s\x6fi\x70\x67\x69"]="\x63\x6f\x70y\x66\x69\x6c\x65s";${"\x47\x4c\x4fB\x41L\x53"}["h\x62\x73\x71\x69\x77\x78\x68\x74\x76\x64"]="\x66u\x6c\x6c\x63\x68a\x69n";${"GL\x4f\x42\x41L\x53"}["\x78\x71br\x71\x6d\x64k\x66e"]="\x70\x61\x74h_\x73\x74\x72i\x6e\x67";${"\x47LO\x42\x41\x4c\x53"}["\x68\x77l\x72g\x63\x78"]="pa\x74\x68_\x61\x72\x72a\x79";${"\x47\x4c\x4fB\x41LS"}["lb\x61\x6a\x68g\x62\x6b"]="\x70\x61t\x68";${"\x47\x4c\x4f\x42ALS"}["\x79e\x69\x73\x63\x76\x62m\x76d"]="s\x74at\x75s";${"\x47\x4c\x4f\x42A\x4cS"}["r\x6f\x69\x79\x75a\x61c\x70"]="\x64\x61ta";${"GLOB\x41\x4cS"}["\x71\x68\x66m\x6f\x71\x73v"]="\x63\x6f\x6e\x66ig";${"\x47\x4c\x4fBA\x4cS"}["\x6f\x78y\x78w\x7a\x71\x68\x75\x79u\x73"]="r\x65s\x70\x6fn\x73\x65";${"\x47\x4cO\x42\x41\x4c\x53"}["\x76\x72\x73b\x6b\x6d\x61l\x6fjq"]="\x63\x6f\x6ev";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x71\x78\x74\x73\x76\x71x\x76\x6a\x77"]="\x64\x61t\x65\x5fe\x78\x70i\x72\x65";${"G\x4cO\x42\x41\x4c\x53"}["\x6cgb\x72\x64\x76\x77\x6bgmv"]="\x65x\x70\x69\x72\x65";${"G\x4cO\x42\x41LS"}["\x71\x7a\x6f\x72\x66\x79\x6ca\x70\x79"]="\x63\x65\x72t";${"\x47LOBAL\x53"}["\x6c\x68\x78\x74\x75\x67\x77g\x71"]="p\x65\x6e\x64\x69\x6e\x67";${"G\x4c\x4fBA\x4c\x53"}["\x77sq\x73\x72w"]="\x62\x61\x63k\x75\x70\x5fke\x79";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73\x6d\x6eop\x65cwh\x6eu"]="\x61\x74t\x72";${"G\x4c\x4f\x42\x41\x4c\x53"}["hj\x70\x72\x78\x78dtd\x74\x70\x73"]="\x62a\x63k\x75\x70\x5fcrt";${"G\x4c\x4fBA\x4c\x53"}["\x70\x67y\x77\x79\x77\x61"]="c\x61\x63\x68\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();$this->fqdn=$router->getFqdn();$this->conf=$router->getConf();${"\x47L\x4f\x42\x41\x4c\x53"}["\x73\x6d\x64\x67o\x79fg\x6bf"]="\x63ach\x65";if(Config::validate($this->fqdn,$this->conf,$this->cmd)){$this->configure();}else{throw new Exception("\x43\x6f\x6ef\x69\x67u\x72a\x74\x69\x6fn\x20\x66\x69\x6c\x65 e\x72ro\x72\x2e");}${${"\x47LO\x42A\x4cS"}["s\x6d\x64g\x6f\x79f\x67\x6bf"]}=new Cache();$cache->configure($this->fqdn);$this->cache=${${"\x47LO\x42\x41L\x53"}["p\x67y\x77y\x77\x61"]};if($this->cache->isExists()==false){${"\x47\x4c\x4f\x42A\x4cS"}["\x73\x61\x63\x6cu\x6f\x7ac"]="\x61\x74\x74\x72";$smmvbynom="\x62\x61\x63\x6bup_\x6b\x65\x79";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x73\x61\x63\x6c\x75\x6fzc"]}=explode("/",$this->config["c\x65\x72\x74\x69\x66ic\x61te"]);${${"G\x4cO\x42\x41\x4c\x53"}["\x68\x6a\x70\x72x\x78\x64\x74\x64\x74\x70\x73"]}=$this->config["\x62\x61\x63\x6b\x75p_di\x72"]."/".end(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["sm\x6eopec\x77\x68\x6e\x75"]});${${"GL\x4fB\x41\x4c\x53"}["\x73\x6d\x6eop\x65c\x77\x68n\x75"]}=explode("/",$this->config["\x70riv\x61\x74e\x5fke\x79"]);${${"GL\x4fBA\x4c\x53"}["\x77\x73\x71\x73r\x77"]}=$this->config["b\x61\x63\x6bup\x5fd\x69r"]."/".end(${${"G\x4cOB\x41\x4c\x53"}["\x73m\x6eope\x63\x77h\x6eu"]});${"\x47\x4c\x4fB\x41L\x53"}["\x72s\x6f\x67yt\x64\x62\x7alt"]="pe\x6e\x64\x69n\x67";${${"G\x4c\x4f\x42A\x4c\x53"}["l\x68x\x74\x75gw\x67q"]}=false;if(file_exists(${$smmvbynom})==true&&file_exists(${${"G\x4cO\x42A\x4cS"}["\x68jpr\x78x\x64t\x64t\x70\x73"]})==false){${${"G\x4cOB\x41LS"}["l\x68\x78\x74ug\x77\x67\x71"]}=true;}${${"GL\x4fBA\x4c\x53"}["\x71zo\x72\x66yl\x61p\x79"]}=false;if($this->cmd=="\x61\x75\x74ore\x6e\x65\x77"){${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71\x7a\x6f\x72\x66\x79la\x70y"]}=$this->config["\x63\x65r\x74ifica\x74\x65"];}if($this->cmd=="\x72\x65gist"&&${${"\x47L\x4fBA\x4c\x53"}["\x72s\x6f\x67\x79\x74\x64\x62\x7a\x6c\x74"]}==false){}else{$drtefpiugkkk="\x63e\x72t";${"\x47L\x4fB\x41\x4c\x53"}["\x6d\x68lg\x77clm\x6b\x75"]="\x63\x65rt";$this->cache->initialize(${${"\x47\x4c\x4f\x42AL\x53"}["\x6d\x68\x6c\x67\x77\x63\x6c\x6dk\x75"]},${${"G\x4cO\x42\x41\x4c\x53"}["\x6c\x68\x78t\x75\x67w\x67q"]});Log::add("\x43re\x61t\x65 \x63ach\x65\x20\x66il\x65",array("c\x65r\x74\x5fp\x61\x74h"=>${$drtefpiugkkk},"\x70\x65ndi\x6e\x67"=>${${"\x47\x4cOB\x41\x4cS"}["\x6chx\x74u\x67\x77\x67\x71"]},));}}else{if($this->cache->isPending()){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x69\x75i\x6e\x6bpjigr"]="at\x74\x72";${"\x47L\x4fB\x41\x4cS"}["b\x66\x76\x79\x6ay\x75"]="at\x74\x72";${${"G\x4c\x4fBA\x4c\x53"}["iui\x6ek\x70\x6a\x69\x67\x72"]}=explode("/",$this->config["p\x72i\x76\x61te_\x6b\x65y"]);if(!file_exists($this->config["\x62\x61cku\x70_\x64\x69r"]."/".end(${${"\x47LOBAL\x53"}["\x62f\x76\x79\x6ay\x75"]}))){throw new Exception("\x54\x68er\x65 is n\x6f \x70\x72iv\x61\x74e\x20\x6bey\x20fi\x6ce.\x20(".$this->config["b\x61ck\x75p_\x64ir"]."/".end(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x73\x6d\x6e\x6f\x70e\x63\x77\x68\x6e\x75"]}).")");}}}Log::add("T\x72\x61c\x65",$this->fqdn);if($this->cmd=="\x72eg\x69\x73\x74"){Log::add("\x52\x65g\x69s\x74\x20\x63\x65\x72\x74i\x66ic\x61t\x65",$this->fqdn);return$this->regist($this->config);}elseif($this->cmd=="a\x75torene\x77"){Log::add("A\x75\x74o\x72\x65n\x65\x77 \x69sP\x65n\x64\x69n\x67",(int)$this->cache->isPending());if($this->cache->isPending()==false){${${"GL\x4f\x42AL\x53"}["\x6cg\x62\x72\x64v\x77kg\x6dv"]}=$this->cache->getExpire();${"\x47LO\x42A\x4cS"}["\x68r\x6d\x79\x74\x61\x66\x68"]="ex\x70i\x72\x65";Log::add("\x43h\x65c\x6b r\x65n\x65\x77",$this->cache->getExpire());if(${${"\x47\x4cO\x42A\x4c\x53"}["h\x72m\x79\x74\x61\x66\x68"]}!=false){$mddeiiczk="\x64\x61\x74e\x5f\x65x\x70i\x72\x65";${"\x47\x4cO\x42\x41\x4c\x53"}["qy\x72\x6b\x62\x77"]="\x64\x61\x74e\x5fpe\x72io\x64";$nusjxo="\x64\x61te_e\x78p\x69re";$vvdibuit="d\x61\x74e\x5f\x70e\x72\x69od";${$mddeiiczk}=date("Y\x6dd",strtotime(${${"GL\x4fBA\x4c\x53"}["\x6c\x67\x62\x72\x64vw\x6b\x67\x6d\x76"]}));${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x71\x79\x72\x6b\x62w"]}=date("Ym\x64",strtotime("+".SSLSTORE_RENEW_PERIOD." Da\x79"));if(${$nusjxo}<=SSLSTORE_DATE_CURRENT){throw new Exception("C\x6fu\x6cd \x6e\x6ft\x20\x72e\x6e\x65\x77\x20b\x65ca\x75s\x65 i\x74 h\x61\x73\x20\x65x\x70\x69r\x65\x64.");}if(${${"\x47L\x4fB\x41\x4c\x53"}["\x71\x78\x74\x73\x76q\x78\x76\x6a\x77"]}<${$vvdibuit}){Log::add("Ren\x65w\x20\x63er\x74i\x66\x69cate",$this->fqdn);if($this->regist($this->config)==true){throw new Exception("M\x65ssa\x67e","Re\x6eewa\x6c \x61p\x70lic\x61t\x69on com\x70\x6c\x65\x74ed.");}}else{Log::add("M\x65s\x73a\x67e","The\x72\x65 \x69\x73 n\x6f\x20up\x64\x61te \x64\x61t\x61.");}}}else{Log::add("Ch\x65ck is\x73ue \x63\x65\x72t\x69\x66i\x63a\x74e",$this->fqdn);if($this->inprocess($this->config)==true){Log::add("\x4d\x65ss\x61g\x65","Ex\x65c\x75tion \x63o\x6d\x70le\x74ed\x20n\x6fr\x6dally\x2e");return;}}}throw new Exception("N\x6f\x20\x70\x72\x6f\x63\x65ssi\x6eg\x2e");}private function configure(){$qhvrjy="con\x76";$lfyiweqi="\x63on\x76";${${"\x47\x4cO\x42A\x4c\x53"}["\x76r\x73b\x6bma\x6co\x6aq"]}=Config::YAMLLoad($this->conf);$xpssssyi="con\x76";$this->config=${$xpssssyi}["\x63on\x66ig"];$this->req=new Request();$this->req->configure(array("ap\x70\x69\x64"=>${$qhvrjy}["c\x6fnfig"]["\x61p\x70id"],"ord\x69\x64"=>${$lfyiweqi}["co\x6efi\x67"]["\x6frd\x69\x64"],));return true;}private function regist($config){${"GL\x4f\x42ALS"}["\x71o\x77\x75\x6d\x6c\x6bi"]="s\x74\x61t\x75\x73";${"\x47L\x4f\x42\x41\x4cS"}["\x74a\x70ii\x6e\x75"]="\x63\x6f\x6e\x66\x69\x67";${"\x47\x4cO\x42A\x4cS"}["n\x72\x69\x64\x68\x73kqt"]="\x72es\x70on\x73\x65";$frmhpxyydjal="\x73\x74\x61tu\x73";${"\x47L\x4f\x42\x41L\x53"}["\x69\x6er\x64\x78\x68\x76\x68\x71jw"]="\x72e\x73p\x6fn\x73\x65";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6fa\x64s\x68g\x6a"]="\x72\x65s\x70\x6f\x6e\x73\x65";$oxmgevkx="\x72\x65sp\x6f\x6e\x73\x65";${"\x47\x4cOB\x41\x4c\x53"}["\x72\x69d\x62\x6f\x78s"]="\x63\x6f\x6e\x66\x69g";$lkdkidultez="co\x6e\x66\x69\x67";$jnflewyglsdx="\x63on\x66\x69\x67";if($this->cache->isPending()==true){${"G\x4cO\x42\x41LS"}["\x70ni\x73\x6cwjuj\x76"]="\x63o\x6e\x66\x69g";throw new Exception("\x43ert\x69f\x69ca\x74e registra\x74\x69o\x6e\x20\x70\x72\x6f\x63\x65\x64u\x72e \x69s \x64upl\x69\x63\x61ted\x2e".${${"\x47\x4cO\x42A\x4c\x53"}["\x70n\x69\x73\x6cw\x6a\x75\x6a\x76"]}["\x66q\x64\x6e"]."");}${"G\x4cO\x42\x41LS"}["r\x76b\x70\x6d\x63\x63u"]="\x73ta\x74u\x73";${${"\x47\x4cO\x42\x41\x4cS"}["ox\x79\x78\x77\x7a\x71\x68\x75\x79\x75s"]}=$this->req->valid_urls(array("\x61\x70pid"=>${${"\x47\x4c\x4f\x42A\x4c\x53"}["qh\x66\x6d\x6fq\x73\x76"]}["\x61\x70p\x69d"],"or\x64id"=>${$jnflewyglsdx}["o\x72di\x64"],"fqd\x6e"=>${${"G\x4cOB\x41\x4c\x53"}["\x71h\x66m\x6f\x71\x73\x76"]}["\x66q\x64n"],));$eekelrwngxcf="co\x6e\x66ig";$funyqvzbwxl="\x63o\x6e\x66\x69\x67";Log::add("\x41ppr\x6fva\x6c te\x73\x74 \x75r\x6c",${${"\x47LOBA\x4c\x53"}["\x69\x6erdxh\x76\x68\x71\x6a\x77"]});${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73\x6b\x72\x61\x79\x75\x62o"]="co\x6ef\x69\x67";$fjxvwewhmbs="c\x6f\x6e\x66\x69\x67";if($response->status=="er\x72\x6fr"){throw new Exception("\x45\x72r\x6fr (".$response->errors->code.")\x20".$response->errors->message);}${$frmhpxyydjal}=$this->buildAuthenticateFile(array("\x64ocu\x6dent\x5f\x72oo\x74"=>!empty(${${"G\x4c\x4fB\x41\x4cS"}["\x73k\x72\x61yu\x62\x6f"]}["d\x6fc\x75\x6de\x6et\x5f\x72\x6fo\x74"])?${${"\x47LOBA\x4c\x53"}["\x71\x68fm\x6fqs\x76"]}["\x64oc\x75\x6d\x65n\x74_ro\x6f\x74"]:false,"\x64ocu\x6den\x74\x5fr\x6fo\x74\x73"=>!empty(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x69\x64b\x6fx\x73"]}["do\x63\x75m\x65n\x74_r\x6f\x6f\x74\x73"])?${$eekelrwngxcf}["\x64\x6f\x63u\x6d\x65nt\x5f\x72o\x6f\x74\x73"]:false,"u\x72l\x73"=>$response->data,"ch\x65c\x6b"=>$response->check,));if(${${"\x47\x4cO\x42\x41L\x53"}["\x71o\x77\x75m\x6c\x6b\x69"]}==false)return false;${${"G\x4cO\x42A\x4cS"}["\x6f\x61\x64\x73hg\x6a"]}=$this->req->challenge(array("\x61ppid"=>${${"\x47\x4c\x4f\x42\x41L\x53"}["qh\x66m\x6fqs\x76"]}["\x61\x70p\x69d"],"\x75\x72l\x73"=>$response->data,));Log::add("\x43heck a\x70\x70\x72\x6fva\x6c\x20te\x73\x74\x20f\x69\x6c\x65",${${"GLO\x42A\x4cS"}["\x6e\x72\x69d\x68s\x6b\x71\x74"]});if($response->status=="\x65\x72ro\x72"){${"G\x4c\x4f\x42\x41LS"}["\x70\x76\x78h\x75\x6b\x65"]="\x65rr\x6f\x72\x73";${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x70\x76x\x68u\x6be"]}=$response->errors;throw new Exception(" (".$errors->code.") ".$errors->message);}${${"\x47L\x4fBA\x4cS"}["roi\x79\x75a\x61\x63\x70"]}=Openssl::generateCsrKey(${$lkdkidultez}["fqdn"]);$ykgkoxuccc="\x64a\x74\x61";${${"G\x4cO\x42\x41\x4cS"}["\x6f\x78y\x78\x77zq\x68\x75yu\x73"]}=$this->req->order(array("\x61\x70\x70i\x64"=>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71\x68\x66\x6d\x6fq\x73\x76"]}["a\x70pi\x64"],"or\x64id"=>${$funyqvzbwxl}["or\x64\x69\x64"],"f\x71dn"=>${${"\x47\x4c\x4fB\x41L\x53"}["\x71h\x66\x6d\x6f\x71\x73\x76"]}["f\x71\x64\x6e"],"\x63\x73\x72"=>${${"G\x4c\x4f\x42\x41\x4cS"}["\x72\x6fi\x79u\x61\x61\x63\x70"]}["csr"],"t\x79\x70e"=>$this->cmd=="\x72e\x67ist"?"ne\x77":"re\x6e\x65w",));${"\x47\x4c\x4fB\x41\x4c\x53"}["\x79r\x65koqq"]="a\x74\x74r";Log::add("\x4f\x72de\x72\x20\x63e\x72\x74\x69f\x69\x63a\x74e",${$oxmgevkx});if($response->status=="\x65\x72\x72or"){$tmcjnydq="\x65rr\x6f\x72\x73";${$tmcjnydq}=$response->errors;if($errors->code=="\x4571\x30\x30"){$this->cache->setPending(true);}throw new Exception(" (".$errors->code.") ".$errors->message);}${${"G\x4c\x4f\x42\x41\x4cS"}["\x72v\x62\x70mcc\x75"]}=$this->buildAuthenticateFile(array("documen\x74\x5f\x72o\x6ft"=>!empty(${${"\x47\x4c\x4fB\x41\x4cS"}["\x71h\x66\x6d\x6fq\x73\x76"]}["\x64oc\x75\x6d\x65\x6e\x74\x5froo\x74"])?${${"G\x4c\x4f\x42ALS"}["q\x68f\x6do\x71s\x76"]}["do\x63um\x65\x6e\x74_r\x6f\x6f\x74"]:false,"\x64\x6f\x63\x75\x6de\x6e\x74_\x72\x6f\x6fts"=>!empty(${${"\x47LO\x42AL\x53"}["\x71\x68f\x6d\x6f\x71\x73\x76"]}["doc\x75\x6de\x6e\x74\x5froo\x74s"])?${$fjxvwewhmbs}["\x64\x6f\x63u\x6d\x65n\x74\x5f\x72\x6fot\x73"]:false,"urls"=>$response->data->validation_urls,"\x63hec\x6b"=>$response->data->validation_code,),true);if(${${"G\x4c\x4f\x42A\x4cS"}["\x79\x65i\x73\x63v\x62m\x76\x64"]}==false){throw new Exception("A\x75tho\x72\x69za\x74\x69o\x6e \x66ile\x20\x63\x72eati\x6fn \x66aile\x64\x2e");}else{echo"C\x72\x65\x61te ".${${"\x47L\x4fB\x41\x4cS"}["\x79\x65\x69\x73c\x76\x62m\x76d"]}." \x66\x69\x6ce."."\n";}$pivnqgbd="c\x6f\x6e\x66ig";foreach(array("\x63\x65r\x74i\x66\x69c\x61\x74\x65","\x63\x61_\x62undl\x65")as${${"GL\x4fB\x41\x4c\x53"}["\x6c\x62\x61j\x68gb\x6b"]}){${"\x47LO\x42\x41LS"}["\x63\x7a\x76\x71p\x65wbi\x72\x6c"]="\x70\x61\x74\x68";${"\x47\x4c\x4fB\x41\x4c\x53"}["h\x71\x71b\x74\x73f\x77\x78\x72\x62"]="\x63\x6fn\x66\x69\x67";if(empty(${${"\x47\x4cO\x42\x41\x4cS"}["\x68\x71\x71\x62t\x73\x66w\x78r\x62"]}[${${"\x47L\x4f\x42A\x4cS"}["cz\x76\x71p\x65\x77\x62i\x72\x6c"]}]))continue;${${"\x47\x4cO\x42\x41L\x53"}["\x68\x77l\x72\x67\x63\x78"]}=explode("/",${${"\x47L\x4f\x42\x41\x4c\x53"}["\x71\x68\x66\x6d\x6f\x71\x73\x76"]}[${${"GL\x4fB\x41LS"}["\x6c\x62\x61\x6ah\x67\x62\x6b"]}]);$tqqimvws="\x70\x61\x74\x68_a\x72r\x61\x79";$wkwxvhjwxsx="\x70\x61t\x68\x5f\x73\x74\x72\x69\x6eg";${$wkwxvhjwxsx}=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71h\x66\x6d\x6f\x71s\x76"]}["back\x75p\x5fd\x69r"]."/".end(${$tqqimvws});if(file_exists(${${"GL\x4fB\x41\x4c\x53"}["x\x71\x62\x72\x71m\x64k\x66e"]})){$huboiwd="\x70\x61\x74\x68\x5fstr\x69\x6eg";if(Fhandle::remove(${$huboiwd})!=true){${"\x47\x4cO\x42\x41\x4c\x53"}["\x73\x78\x77\x6a\x63f\x66"]="p\x61t\x68_st\x72\x69\x6e\x67";throw new Exception("\x46\x61i\x6ce\x64\x20\x74o del\x65t\x65\x20t\x68\x65\x20\x66i\x6c\x65.\x20(".${${"\x47\x4c\x4fBAL\x53"}["s\x78wjcff"]}.")");}}}$zxjttyytnp="\x63on\x66i\x67";$vegjncsdf="a\x74\x74\x72";${$vegjncsdf}=explode("/",${$zxjttyytnp}["\x70ri\x76a\x74\x65\x5f\x6be\x79"]);Fhandle::createFile(${$pivnqgbd}["\x62a\x63\x6bu\x70\x5fd\x69\x72"]."/".end(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x79\x72\x65\x6b\x6fq\x71"]}),${$ykgkoxuccc}["k\x65y"]);echo"Crea\x74\x65\x20".${${"\x47\x4c\x4f\x42\x41L\x53"}["\x74\x61\x70\x69\x69n\x75"]}["ba\x63ku\x70\x5fd\x69r"]."/".end(${${"\x47L\x4f\x42A\x4c\x53"}["smn\x6f\x70\x65cw\x68nu"]})."\x20\x66\x69\x6ce\x2e"."\n";$this->cache->setPending(true);if($this->cmd=="reg\x69\x73\x74"){echo"\x54\x68\x65\x20\x63\x65r\x74\x69\x66\x69c\x61te\x20registed\x20\x77as s\x75\x63\x63\x65ssful\x2e"."\n";echo"\x52\x65gi\x73te\x72 th\x65 f\x6f\x6cl\x6f\x77in\x67 com\x6d\x61\x6ed \x69n c\x72\x6f\x6e:"."\n";echo"/u\x73r/bin/p\x68p ".SSLSTORE_ROOT."/\x62i\x6e/s\x73l\x73\x74or\x65-\x63l\x69en\x74\x20a\x75t\x6fr\x65new -\x63\x20".$this->fqdn." -\x66 ".$this->conf."\n";}return true;}private function inprocess($config){${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6b\x68\x6bjp\x7ay\x77\x72"]="\x63o\x6efi\x67";${"G\x4c\x4f\x42A\x4cS"}["\x70\x72\x6e\x6fnt\x7azxl"]="key";$nnhvpkiwi="\x63on\x66\x69\x67";${${"\x47\x4c\x4f\x42\x41L\x53"}["\x6f\x78\x79\x78\x77\x7aq\x68\x75y\x75\x73"]}=$this->req->certificates(array("\x61\x70p\x69d"=>${$nnhvpkiwi}["\x61\x70\x70id"],"o\x72\x64i\x64"=>${${"\x47L\x4fB\x41LS"}["q\x68f\x6do\x71sv"]}["or\x64\x69d"],"\x66\x71\x64\x6e"=>${${"\x47L\x4f\x42\x41LS"}["\x6bh\x6b\x6a\x70zywr"]}["\x66\x71\x64n"]));${"GLO\x42\x41LS"}["\x69p\x64\x6e\x69\x63\x6c"]="con\x66\x69g";$gkzwkeo="\x63\x6fn\x66ig";${"\x47\x4cO\x42\x41\x4cS"}["x\x76p\x70\x62c\x6f\x64x\x69\x6a"]="\x72\x65\x73\x70o\x6e\x73e";$fklndr="r\x65\x73pon\x73\x65";Log::add("\x43he\x63\x6b \x69ss\x75e c\x65rt\x69fica\x74\x65",${${"\x47\x4c\x4f\x42AL\x53"}["\x78\x76\x70p\x62c\x6fd\x78\x69\x6a"]});if($response->status=="e\x72\x72or"){throw new Exception("\x45r\x72or (".$response->errors->code.") ".$response->errors->message);}${"\x47LO\x42\x41\x4c\x53"}["bw\x70xwjn"]="\x6b\x65\x79";${"G\x4cO\x42\x41\x4cS"}["\x75\x73xtg\x73jhd"]="\x76a\x6c\x75\x65";${${"\x47\x4c\x4f\x42\x41\x4cS"}["r\x6f\x69\x79u\x61\x61\x63p"]}=$response->data;${"\x47\x4c\x4fBA\x4cS"}["\x77\x7ah\x78\x62c\x70z\x6e"]="\x63on\x66\x69g";${"G\x4c\x4fB\x41\x4c\x53"}["\x71p\x67\x69\x63l\x62\x76e\x79ti"]="da\x74\x61";$umeilwuruojj="\x69ssues";if(${${"G\x4c\x4fB\x41\x4c\x53"}["q\x70\x67\x69\x63\x6cbv\x65\x79\x74\x69"]}==false){Log::add("R\x65su\x6c\x74","\x53\x6b\x69\x70 \x64\x75\x65 to pen\x64\x69\x6eg\x2e");return false;}if(isset(${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x69\x70\x64\x6ei\x63\x6c"]}["c\x61\x5fbun\x64l\x65"])&&${${"GL\x4f\x42\x41L\x53"}["\x77\x7a\x68x\x62\x63\x70\x7an"]}["\x63\x61_\x62un\x64\x6ce"]!=""){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["t\x64\x70\x6bb\x63\x6e\x69\x68\x71"]="\x69ssu\x65s";${${"\x47L\x4f\x42\x41\x4cS"}["t\x64\x70\x6b\x62\x63n\x69\x68\x71"]}=array("\x63ert\x69\x66ica\x74\x65"=>$data->certificate,"\x63a_\x62u\x6e\x64l\x65"=>$data->ca_bundle,);}else{$amibwv="\x69\x73\x73u\x65\x73";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["h\x62sqi\x77\x78\x68\x74vd"]}=$data->certificate."\n".$data->ca_bundle;${$amibwv}=array("\x63\x65rti\x66ic\x61\x74e"=>${${"G\x4c\x4f\x42\x41\x4cS"}["\x68b\x73\x71\x69\x77\x78\x68\x74v\x64"]},);}${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x77\x69\x73\x6fi\x70\x67\x69"]}=array();foreach(${$umeilwuruojj} as${${"G\x4c\x4fB\x41\x4cS"}["\x70r\x6eontzzx\x6c"]}=>${${"\x47L\x4f\x42\x41\x4c\x53"}["us\x78\x74\x67\x73\x6a\x68\x64"]}){$hsokbgehhjg="key";${"\x47\x4cO\x42\x41LS"}["f\x79\x7a\x6b\x6b\x67\x63"]="\x63\x6f\x6e\x66\x69\x67";${${"GL\x4f\x42\x41\x4c\x53"}["\x73\x6d\x6e\x6f\x70\x65\x63\x77\x68n\x75"]}=explode("/",${${"\x47L\x4f\x42AL\x53"}["f\x79\x7a\x6b\x6bgc"]}[${$hsokbgehhjg}]);${"\x47\x4c\x4fB\x41\x4cS"}["me\x61i\x6c\x74t\x6bqtjc"]="\x63\x6fpy\x66\x69\x6c\x65\x73";Fhandle::createFile(${${"\x47L\x4fB\x41\x4cS"}["q\x68\x66\x6d\x6f\x71\x73\x76"]}["b\x61c\x6bup_dir"]."/".end(${${"\x47L\x4f\x42\x41LS"}["s\x6d\x6eo\x70\x65cwh\x6eu"]}),${${"\x47\x4c\x4f\x42\x41L\x53"}["\x76v\x70cnf\x6c"]}."\n");${${"\x47\x4cO\x42\x41L\x53"}["m\x65a\x69l\x74\x74\x6b\x71\x74j\x63"]}[]=${${"G\x4c\x4f\x42\x41\x4c\x53"}["yl\x65\x66mn\x63\x6a\x70\x76\x70"]};}${${"\x47LOBA\x4c\x53"}["\x77\x69\x73\x6f\x69p\x67i"]}[]="p\x72i\x76\x61te_ke\x79";foreach(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x77i\x73\x6f\x69p\x67\x69"]} as${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x79\x6c\x65f\x6dn\x63j\x70v\x70"]}){$fkcvqgvlqtv="\x6be\x79";${"\x47\x4c\x4fBA\x4cS"}["\x67o\x6f\x78cc\x66\x67"]="\x63onfig";if(file_exists(${${"\x47L\x4fBA\x4cS"}["g\x6f\x6f\x78ccf\x67"]}[${$fkcvqgvlqtv}])){${"\x47L\x4f\x42A\x4cS"}["\x6d\x64\x62\x68\x6fgl\x72rf"]="\x6b\x65y";$dauooeevr="\x63o\x6efi\x67";${${"\x47L\x4fB\x41LS"}["s\x6d\x6eo\x70\x65\x63w\x68nu"]}=explode("/",${$dauooeevr}[${${"\x47\x4cOB\x41L\x53"}["\x6d\x64\x62\x68o\x67\x6crrf"]}]);$gwmubxacqi="\x61\x74tr";Fhandle::backup(${${"GL\x4fB\x41\x4c\x53"}["\x71\x68\x66\x6d\x6fq\x73\x76"]}[${${"\x47\x4c\x4f\x42AL\x53"}["\x79\x6ce\x66\x6d\x6e\x63jp\x76p"]}],${${"\x47LOB\x41\x4cS"}["qh\x66m\x6fq\x73\x76"]}["\x62\x61\x63\x6bup\x5f\x64\x69\x72"]."/".end(${$gwmubxacqi}));}}foreach(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x77iso\x69\x70g\x69"]} as${${"G\x4c\x4f\x42AL\x53"}["b\x77px\x77\x6a\x6e"]}){${"\x47\x4c\x4f\x42A\x4c\x53"}["v\x66\x6ac\x63j\x6c"]="\x63o\x6e\x66i\x67";${"\x47\x4cO\x42\x41\x4cS"}["xl\x6e\x71b\x65\x62\x6akkh"]="\x61t\x74r";$mlpvmhrkbi="\x6be\x79";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x74i\x64tb\x66xh\x73o\x71\x6d"]="key";$wldpyvj="\x63\x6f\x6e\x66\x69\x67";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x73\x6d\x6eo\x70\x65\x63w\x68n\x75"]}=explode("/",${${"G\x4c\x4fB\x41\x4c\x53"}["\x76\x66j\x63c\x6a\x6c"]}[${$mlpvmhrkbi}]);Fhandle::copy(${$wldpyvj}["\x62\x61c\x6bu\x70_dir"]."/".end(${${"\x47LO\x42\x41L\x53"}["\x78\x6cn\x71\x62\x65\x62jk\x6b\x68"]}),${${"\x47L\x4f\x42ALS"}["\x71\x68f\x6d\x6f\x71\x73\x76"]}[${${"GLOBA\x4cS"}["\x74\x69\x64\x74\x62\x66x\x68so\x71\x6d"]}]);}if($this->cache->setExpire($data->validity_to_dt)!=true){throw new Exception("F\x61\x69l\x65d\x20to\x20u\x70da\x74\x65\x20the\x20cach\x65 \x66il\x65.");}${$fklndr}=$this->req->processed(array("ap\x70id"=>${${"\x47LO\x42\x41\x4c\x53"}["\x71hfmo\x71sv"]}["a\x70p\x69d"],"\x6f\x72\x64id"=>${$gkzwkeo}["\x6frdid"],"fqd\x6e"=>${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x71h\x66\x6d\x6fq\x73\x76"]}["\x66qd\x6e"]));if($response->status=="\x65r\x72or"){throw new Exception("Er\x72\x6f\x72 (".$response->errors->code.")\x20".$response->errors->message);}if($this->cache->setPending(false)!=true){throw new Exception("Fa\x69\x6ced \x74o \x75p\x64a\x74\x65 \x74he\x20ca\x63he\x20\x66\x69l\x65\x2e");}Log::add("\x4de\x73\x73age","Is\x73ua\x6e\x63e \x63\x6f\x6efi\x72m\x61\x74i\x6f\x6e\x20\x63o\x6dp\x6ce\x74ed\x2e");return true;}private function buildAuthenticateFile($attributes=array(),$return_path=false){${"G\x4c\x4fB\x41\x4c\x53"}["\x63\x78rdh\x64e\x76\x6d\x65\x68"]="\x64\x6f\x63\x75m\x65\x6e\x74\x5f\x72\x6fot\x73";${"GL\x4f\x42A\x4c\x53"}["v\x73\x75\x76\x63\x76"]="\x61t\x74\x72i\x62\x75\x74\x65\x73";$yqmifufssf="\x61\x74\x74\x72\x69\x62u\x74e\x73";$naxutjr="\x75\x72\x6c";${${"\x47\x4cO\x42ALS"}["\x63\x78\x72\x64hd\x65v\x6d\x65h"]}=(empty(${${"\x47\x4c\x4fBA\x4c\x53"}["v\x70\x6d\x67\x66v\x77"]}["\x64\x6f\x63u\x6d\x65\x6et\x5f\x72\x6fot"])||${$yqmifufssf}["d\x6f\x63u\x6d\x65nt\x5fr\x6f\x6ft"]=="")?${${"G\x4c\x4fB\x41L\x53"}["v\x70\x6dg\x66\x76\x77"]}["\x64o\x63\x75me\x6e\x74_\x72oo\x74\x73"]:array(${${"\x47\x4cO\x42\x41LS"}["\x76p\x6d\x67f\x76\x77"]}["\x64o\x63\x75m\x65\x6e\x74\x5f\x72o\x6f\x74"]);foreach(${${"\x47L\x4fB\x41\x4cS"}["\x76s\x75\x76\x63\x76"]}["urls"]as${$naxutjr}){${"\x47\x4c\x4f\x42A\x4c\x53"}["g\x72o\x66\x62\x7a"]="\x69";${"\x47\x4c\x4fB\x41\x4cS"}["fj\x6c\x7a\x71\x63w\x77\x77l"]="\x69";${"\x47\x4c\x4f\x42ALS"}["qw\x64yv\x6b"]="i";${"\x47\x4c\x4f\x42\x41LS"}["\x6e\x6c\x6f\x6eeo"]="ur\x6c_\x61\x74\x74\x72ibut\x65\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x6d\x6a\x76xy\x6f\x6bh\x71\x78"]="\x64\x6f\x63ume\x6et_r\x6fo\x74\x73";${${"\x47\x4cOB\x41\x4c\x53"}["s\x7arx\x6c\x70\x6ep"]}=array();${${"\x47L\x4f\x42\x41LS"}["\x67\x7a\x6dv\x6e\x6ad\x6c\x67"]}=explode("/",${${"\x47\x4c\x4fBAL\x53"}["q\x77wpr\x62\x64\x76\x62"]});for(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x71w\x64\x79\x76\x6b"]}=1;${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x66\x6al\x7a\x71\x63\x77w\x77\x6c"]}<count(${${"\x47\x4c\x4fB\x41\x4cS"}["n\x6c\x6f\x6ee\x6f"]});${${"\x47L\x4f\x42A\x4cS"}["gr\x6ff\x62\x7a"]}++){${${"\x47\x4c\x4f\x42AL\x53"}["s\x7a\x72\x78\x6cp\x6ep"]}[]=${${"GL\x4f\x42\x41\x4c\x53"}["\x67\x7a\x6d\x76\x6e\x6a\x64\x6c\x67"]}[${${"G\x4cO\x42A\x4c\x53"}["\x6e\x68\x68\x71c\x72"]}];}foreach(${${"\x47L\x4f\x42\x41L\x53"}["x\x6d\x6a\x76\x78y\x6fk\x68\x71\x78"]} as$document_root){$sycbimthpgi="a\x75\x74h\x5fpat\x68";${"\x47LOB\x41L\x53"}["\x6ajx\x6e\x75\x79y"]="\x6e\x61me";${$sycbimthpgi}=$document_root;foreach(${${"\x47L\x4fB\x41\x4cS"}["\x73\x7a\x72x\x6c\x70\x6e\x70"]} as${${"\x47LO\x42\x41\x4c\x53"}["\x6a\x6axn\x75y\x79"]}){${${"GLO\x42\x41\x4c\x53"}["\x79\x71\x71s\x67i\x65v"]}.="/".${${"\x47\x4cOB\x41\x4c\x53"}["dr\x74\x70\x6dy\x76m"]};$iazidxwqiuio="n\x61\x6d\x65s";${"\x47LO\x42\x41\x4cS"}["\x77\x78e\x6c\x68\x75\x6d\x65v\x76"]="na\x6d\x65";if(${${"G\x4c\x4f\x42\x41\x4c\x53"}["w\x78\x65lh\x75\x6d\x65\x76\x76"]}!=end(${$iazidxwqiuio})){$exczleq="\x61\x75\x74\x68\x5fpa\x74\x68";if(!is_dir(${$exczleq})){if(file_exists(${${"\x47LO\x42ALS"}["\x79\x71\x71\x73\x67\x69\x65\x76"]})){throw new Exception("\x46a\x69led\x20\x74o cr\x65\x61\x74e a \x64\x69\x72ector\x79\x20\x62ec\x61use\x20\x61\x20fi\x6c\x65 wi\x74\x68\x20th\x65\x20s\x61\x6de\x20\x6e\x61m\x65\x20\x65x\x69s\x74\x73.\x20(".${${"\x47L\x4f\x42AL\x53"}["\x79\x71\x71\x73\x67i\x65v"]}.")");}mkdir(${${"\x47LOBAL\x53"}["y\x71qs\x67\x69\x65\x76"]});Log::add("C\x72e\x61\x74e\x20\x64i\x72\x65c\x74ory",${${"G\x4c\x4fB\x41LS"}["\x79\x71\x71sg\x69e\x76"]});}}else{$jwvxdnrutjd="\x61\x74t\x72i\x62\x75\x74\x65\x73";$ttonnttmexv="\x61\x75t\x68_p\x61t\x68";Fhandle::createFile(${${"G\x4cO\x42\x41\x4c\x53"}["\x79\x71q\x73\x67\x69\x65\x76"]},${$jwvxdnrutjd}["ch\x65ck"]."\n",true);chmod(${$ttonnttmexv},0744);}}}}if(${${"G\x4c\x4f\x42\x41L\x53"}["x\x79r\x71\x64\x6b\x70"]}==true){${"G\x4cO\x42\x41\x4cS"}["\x6a\x71\x6b\x72dw\x79\x62\x63\x6f\x6b\x71"]="\x61\x75\x74h\x5fp\x61t\x68";return${${"GL\x4f\x42\x41\x4cS"}["\x6aq\x6b\x72\x64\x77\x79bc\x6fk\x71"]};}return true;}}

Function Calls

None

Variables

None

Stats

MD5 f4b6d77c35b89aae8b3e06d6a204e6ae
Eval Count 0
Decode Time 172 ms