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 namespace App\Controllers;${"GLOBALS"}["dosqkvy"]="file";${"GLOBALS"}["bjeycfhozjn"]..

Decoded Output download

<?php namespace App\Controllers;${"GLOBALS"}["dosqkvy"]="file";${"GLOBALS"}["bjeycfhozjn"]="i";${"GLOBALS"}["dctryqddc"]="handle";${"GLOBALS"}["pikwnfp"]="key_data";${"GLOBALS"}["pdrvfd"]="filename";${"GLOBALS"}["mjuqofnwogo"]="saldoReduced";${"GLOBALS"}["qcfxiinx"]="price";${"GLOBALS"}["iabxyxuip"]="other_response";${"GLOBALS"}["vmtanhebx"]="drtn";${"GLOBALS"}["uodwjoi"]="key_name";${"GLOBALS"}["agpllrv"]="keys_data";${"GLOBALS"}["xcbyhl"]="user_key";${"GLOBALS"}["ybbdylrvbe"]="license_suffix";${"GLOBALS"}["lnemxbbjmx"]="manual_key_name";${"GLOBALS"}["rsrewzfr"]="reduceCheck";${"GLOBALS"}["kqdnmvaoirp"]="custom_name";${"GLOBALS"}["bbvqykkyth"]="count";${"GLOBALS"}["bxmwix"]="maxd";${"GLOBALS"}["uyjsppkd"]="game";${"GLOBALS"}["iiremsnq"]="form_rules";${"GLOBALS"}["mgolboiu"]="data_saves";${"GLOBALS"}["vffekqnbf"]="form_reseller";${"GLOBALS"}["ppxegwjs"]="devices";${"GLOBALS"}["jvwwbdankgcp"]="max_devices";${"GLOBALS"}["gasdrexcgf"]="form_admin";${"GLOBALS"}["seuwduwif"]="key";${"GLOBALS"}["wwfybeeqzua"]="msgDanger";${"GLOBALS"}["yhoshnbwoisu"]="user";${"GLOBALS"}["bwstexfhht"]="real_response";${"GLOBALS"}["ednzfwvq"]="data";${"GLOBALS"}["thaqjlwjw"]="reset";${"GLOBALS"}["snbdvlq"]="db_key";${"GLOBALS"}["tniuibhuonf"]="rules";${"GLOBALS"}["opqsrzbtggj"]="model";${"GLOBALS"}["demrwlwgfji"]="keys";use App\Models\HistoryModel;use App\Models\KeysModel;use App\Models\UserModel;use Config\Services;class Keys extends BaseController{protected$userModel,$model,$user;public function __construct(){$this->userModel=new UserModel();$this->user=$this->userModel->getUser();$this->model=new KeysModel();$this->time=new\CodeIgniter\I18n\Time;$this->game_list=["PUBG"=>"PUBG Mobile", "MLBB" => "MOBILE LEGENDS", "CODM" => "CALL OF DUTY MOBILE"];$this->duration=[1=>"1 Days &mdash; Rp.5000 / Device",3=>"3 Days &mdash; Rp.8000 / Device",7=>"7 Days &mdash; Rp.14.000 / Device",14=>"14 Days &mdash; Rp.28.000 / Device",30=>"30 Days &mdash; Rp.49.000 / Device",60=>"60 Days &mdash; Rp.90.000/Device",120=>"120 Days &mdash; Rp.130.000 / Device"];$this->price=[1=>5000,3=>8000,7=>14000,14=>28000,30=>49000,60=>90000,120=>130000];}public function index(){$orgdhnc="model";${"GLOBALS"}["gqbetosu"]="data";${$orgdhnc}=$this->model;${"GLOBALS"}["eookoybw"]="user";${"GLOBALS"}["pmontwi"]="data";$wqdcbhcivv="user";${${"GLOBALS"}["eookoybw"]}=$this->user;if($user->level!=1){$ycthiemwo="keys";${$ycthiemwo}=$model->where("registrator",$user->username)->findAll();}else{${${"GLOBALS"}["demrwlwgfji"]}=$model->findAll();}${${"GLOBALS"}["gqbetosu"]}=["title"=>"Keys","user"=>${$wqdcbhcivv},"keylist"=>${${"GLOBALS"}["demrwlwgfji"]},"time"=>$this->time,];return view("Keys/list",${${"GLOBALS"}["pmontwi"]});}public function api_get_keys(){${${"GLOBALS"}["opqsrzbtggj"]}=$this->model;return$model->API_getKeys();}public function api_key_reset(){$yuphncrt="keys";${"GLOBALS"}["isoauspiysq"]="reset";${"GLOBALS"}["vkwiyomelmq"]="model";$uczmku="keys";${"GLOBALS"}["wnuglfmp"]="rules";$obwpfetsxywc="db_key";sleep(1);${${"GLOBALS"}["vkwiyomelmq"]}=$this->model;${$yuphncrt}=$this->request->getGet("userkey");${${"GLOBALS"}["isoauspiysq"]}=$this->request->getGet("reset");${$obwpfetsxywc}=$model->getKeys(${$uczmku});${${"GLOBALS"}["tniuibhuonf"]}=[];${"GLOBALS"}["sprysgi"]="data";if(${${"GLOBALS"}["snbdvlq"]}){${"GLOBALS"}["sqbfqsp"]="total";${"GLOBALS"}["nxmxqfa"]="user";$cphzqmqjsz="total";${$cphzqmqjsz}=$db_key->devices?explode(",",$db_key->devices):[];${${"GLOBALS"}["tniuibhuonf"]}=["devices_total"=>count(${${"GLOBALS"}["sqbfqsp"]}),"devices_max"=>(int)$db_key->max_devices];${${"GLOBALS"}["nxmxqfa"]}=$this->user;if($db_key->devices and${${"GLOBALS"}["thaqjlwjw"]}){if($user->level==1 or$db_key->registrator==$user->username){${"GLOBALS"}["wuijettcqlw"]="keys";$model->set("devices",NULL)->where("user_key",${${"GLOBALS"}["wuijettcqlw"]})->update();${${"GLOBALS"}["tniuibhuonf"]}=["reset"=>true,"devices_total"=>0,"devices_max"=>$db_key->max_devices];}}else{};}${${"GLOBALS"}["ednzfwvq"]}=["registered"=>${${"GLOBALS"}["snbdvlq"]}?true:false,"keys"=>${${"GLOBALS"}["demrwlwgfji"]},];${${"GLOBALS"}["bwstexfhht"]}=array_merge(${${"GLOBALS"}["sprysgi"]},${${"GLOBALS"}["wnuglfmp"]});return$this->response->setJSON(${${"GLOBALS"}["bwstexfhht"]});}public function api_key_delete(){sleep(1);${"GLOBALS"}["zgbchlxxtce"]="data";$dhdekrcose="rules";$pykycenxu="keys";${"GLOBALS"}["xwxgnwil"]="keys";$pyxgyzfc="db_key";${"GLOBALS"}["vwiomlng"]="model";${"GLOBALS"}["xnamcvakxq"]="delete";$msrfwsqqg="delete";$taegcmwe="real_response";${${"GLOBALS"}["vwiomlng"]}=$this->model;${$pykycenxu}=$this->request->getGet("userkey");${${"GLOBALS"}["xnamcvakxq"]}=$this->request->getGet("delete");${${"GLOBALS"}["snbdvlq"]}=$model->getKeys(${${"GLOBALS"}["demrwlwgfji"]});${$dhdekrcose}=[];${${"GLOBALS"}["yhoshnbwoisu"]}=$this->user;if(${$msrfwsqqg}){if($user->level==1){${"GLOBALS"}["cthudfifhv"]="keys";$model->where("user_key",${${"GLOBALS"}["cthudfifhv"]})->delete();${${"GLOBALS"}["tniuibhuonf"]}=["delete"=>true];}else{};}${${"GLOBALS"}["zgbchlxxtce"]}=["registered"=>${$pyxgyzfc}?true:false,"keys"=>${${"GLOBALS"}["xwxgnwil"]},];${$taegcmwe}=array_merge(${${"GLOBALS"}["ednzfwvq"]},${${"GLOBALS"}["tniuibhuonf"]});return$this->response->setJSON(${${"GLOBALS"}["bwstexfhht"]});}public function edit_key($key=false){${"GLOBALS"}["mydpabkev"]="msgDanger";if($this->request->getMethod()==="post"){return$this->edit_key_action();}${${"GLOBALS"}["wwfybeeqzua"]}="The user key no longer exists.";if(${${"GLOBALS"}["seuwduwif"]}){${"GLOBALS"}["skhpjwuc"]="dKey";$eaqthlistuh="key";$dlonbjy="dKey";${${"GLOBALS"}["skhpjwuc"]}=$this->model->getKeys(${$eaqthlistuh},"id_keys");${${"GLOBALS"}["yhoshnbwoisu"]}=$this->user;if(${$dlonbjy}){if($user->level==1||$dKey->registrator==$user->username){${"GLOBALS"}["ynjfczq"]="validation";${"GLOBALS"}["wnwdcjyhrhv"]="data";${"GLOBALS"}["sdzsjdeg"]="data";$druwhxun="validation";${"GLOBALS"}["gncptev"]="dKey";${${"GLOBALS"}["ynjfczq"]}=Services::validation();${${"GLOBALS"}["wnwdcjyhrhv"]}=["title"=>"Key","user"=>${${"GLOBALS"}["yhoshnbwoisu"]},"key"=>${${"GLOBALS"}["gncptev"]},"game_list"=>$this->game_list,"time"=>$this->time,"key_info"=>getDevice($dKey->devices),"messages"=>setMessage("Please carefully edit information"),"validation"=>${$druwhxun},];return view("Keys/key_edit",${${"GLOBALS"}["sdzsjdeg"]});}else{${"GLOBALS"}["suvxaxx"]="msgDanger";${${"GLOBALS"}["suvxaxx"]}="Restricted to this user key.";}}}return redirect()->to("keys")->with("msgDanger",${${"GLOBALS"}["mydpabkev"]});}private function edit_key_action(){${"GLOBALS"}["vfmzekor"]="user";${"GLOBALS"}["xwbnlgmgryiy"]="dKey";${"GLOBALS"}["ipuuoiir"]="game";$kpxohoobddi="dKey";${${"GLOBALS"}["demrwlwgfji"]}=$this->request->getPost("id_keys");${${"GLOBALS"}["vfmzekor"]}=$this->user;${${"GLOBALS"}["xwbnlgmgryiy"]}=$this->model->getKeys(${${"GLOBALS"}["demrwlwgfji"]},"id_keys");${${"GLOBALS"}["ipuuoiir"]}=implode(",",array_keys($this->game_list));if(!${$kpxohoobddi}){${${"GLOBALS"}["wwfybeeqzua"]}="The user key no longer exists~";}else{if($user->level==1||$dKey->registrator==$user->username){${"GLOBALS"}["nhuyguehs"]="form_reseller";${${"GLOBALS"}["nhuyguehs"]}=["status"=>["label"=>"status","rules"=>"required|integer|in_list[0,1]","errors"=>["integer"=>"Invalid {field}.","in_list"=>"Choose between list."]]];${${"GLOBALS"}["gasdrexcgf"]}=["id_keys"=>["label"=>"keys","rules"=>"required|is_not_unique[keys_code.id_keys]|numeric","errors"=>["is_not_unique"=>"Invalid keys."],],"game"=>["label"=>"Games","rules"=>"required|alpha_numeric_space|in_list[$game]","errors"=>["alpha_numeric_space"=>"Invalid characters."],],"user_key"=>["label"=>"User keys","rules"=>"required|is_unique[keys_code.user_key,user_key,$dKey->user_key]|alpha_numeric","errors"=>["is_unique"=>"{field} has been taken."],],"duration"=>["label"=>"duration","rules"=>"required|numeric|greater_than_equal_to[1]","errors"=>["greater_than_equal_to"=>"Minimum {field} is invalid.","numeric"=>"Invalid day {field}."]],"max_devices"=>["label"=>"devices","rules"=>"required|numeric|greater_than_equal_to[1]","errors"=>["greater_than_equal_to"=>"Minimum {field} is invalid.","numeric"=>"Invalid max of {field}."]],"registrator"=>["label"=>"registrator","rules"=>"permit_empty|alpha_numeric_space|min_length[4]"],"expired_date"=>["label"=>"expired","rules"=>"permit_empty|valid_date[Y-m-d H:i:s]","errors"=>["valid_date"=>"Invalid {field} date.",]],"devices"=>["label"=>"device list","rules"=>"permit_empty"]];if($user->level==1){${"GLOBALS"}["slwbfeh"]="devices";$needpgp="form_rules";$qpmecndjy="data_saves";${"GLOBALS"}["dyhofxcmneg"]="max_devices";$gpipgnjum="form_admin";$gusyfu="form_reseller";${$needpgp}=array_merge(${$gusyfu},${$gpipgnjum});${${"GLOBALS"}["slwbfeh"]}=$this->request->getPost("devices");${${"GLOBALS"}["jvwwbdankgcp"]}=$this->request->getPost("max_devices");${$qpmecndjy}=["game"=>$this->request->getPost("game"),"user_key"=>$this->request->getPost("user_key"),"duration"=>$this->request->getPost("duration"),"max_devices"=>${${"GLOBALS"}["dyhofxcmneg"]},"status"=>$this->request->getPost("status"),"registrator"=>$this->request->getPost("registrator"),"expired_date"=>$this->request->getPost("expired_date")?:NULL,"devices"=>setDevice(${${"GLOBALS"}["ppxegwjs"]},${${"GLOBALS"}["jvwwbdankgcp"]}),];}else{$pxiqyql="form_rules";${$pxiqyql}=${${"GLOBALS"}["vffekqnbf"]};${${"GLOBALS"}["mgolboiu"]}=["status"=>$this->request->getPost("status")];}if(!$this->validate(${${"GLOBALS"}["iiremsnq"]})){return redirect()->back()->withInput()->with("msgDanger","Failed! Please check the error");}else{$this->model->update($dKey->id_keys,${${"GLOBALS"}["mgolboiu"]});return redirect()->back()->with("msgSuccess","User key successfully updated!");}}else{${${"GLOBALS"}["wwfybeeqzua"]}="Restricted to this user key~";}}return redirect()->to("keys")->with("msgDanger",${${"GLOBALS"}["wwfybeeqzua"]});}public function generate(){${"GLOBALS"}["sjewstrg"]="data";${"GLOBALS"}["frlimujm"]="message";$vfmphdhlaxoy="validation";if($this->request->getPost())return$this->generate_action();${"GLOBALS"}["yokfloxgqbw"]="user";${"GLOBALS"}["csmiqjabu"]="data";${${"GLOBALS"}["yokfloxgqbw"]}=$this->user;$mxodwcx="message";$fzggmbjpufr="validation";${$vfmphdhlaxoy}=Services::validation();${${"GLOBALS"}["frlimujm"]}=setMessage("<i class='bi bi-wallet'></i> Total Saldo \$$user->saldo");if($user->saldo<=0){$igmlwlidtkdl="message";${$igmlwlidtkdl}=setMessage("Please top up to your beloved admin.","warning");}${${"GLOBALS"}["csmiqjabu"]}=["title"=>"Generate","user"=>${${"GLOBALS"}["yhoshnbwoisu"]},"time"=>$this->time,"game"=>$this->game_list,"duration"=>$this->duration,"price"=>json_encode($this->price),"messages"=>${$mxodwcx},"validation"=>${$fzggmbjpufr},];return view("Keys/generate",${${"GLOBALS"}["sjewstrg"]});}private function generate_action(){${"GLOBALS"}["kkyxnrbdvhnp"]="user";${"GLOBALS"}["ctgscdbhhgen"]="game_list";${"GLOBALS"}["yqlgvjpv"]="price";${${"GLOBALS"}["kkyxnrbdvhnp"]}=$this->user;${${"GLOBALS"}["uyjsppkd"]}=$this->request->getPost("game");$feisdqxsdy="drtn";${"GLOBALS"}["fqlpxqkoo"]="form_rules";$lqgasrxdluq="custom_name";${"GLOBALS"}["xigvwwyip"]="price";${"GLOBALS"}["llfoaugr"]="validation";${${"GLOBALS"}["bxmwix"]}=$this->request->getPost("max_devices");${$feisdqxsdy}=$this->request->getPost("duration");${${"GLOBALS"}["yqlgvjpv"]}=$this->price;${${"GLOBALS"}["bbvqykkyth"]}=$this->request->getPost("count");${"GLOBALS"}["tvddzkrb"]="count";${${"GLOBALS"}["kqdnmvaoirp"]}=$this->request->getPost("custom_name");$iriaucy="reduceCheck";${${"GLOBALS"}["ctgscdbhhgen"]}=implode(",",array_keys($this->game_list));${${"GLOBALS"}["fqlpxqkoo"]}=["game"=>["label"=>"Games","rules"=>"required|alpha_numeric_space|in_list[$game_list]","errors"=>["alpha_numeric_space"=>"Invalid characters."],],"duration"=>["label"=>"duration","rules"=>"required|numeric|greater_than_equal_to[1]","errors"=>["greater_than_equal_to"=>"Minimum {field} is invalid.","numeric"=>"Invalid hours {field}."]],"max_devices"=>["label"=>"devices","rules"=>"required|numeric|greater_than_equal_to[1]","errors"=>["greater_than_equal_to"=>"Minimum {field} is invalid.","numeric"=>"Invalid max of {field}."]],"count"=>["label"=>"number of keys","rules"=>"required|numeric|greater_than[0]|less_than_equal_to[10]","errors"=>["greater_than"=>"Please enter number of keys to generate.","less_than_equal_to"=>"You cannot generate more than 10 keys at once."]],];$fwwgdrbufcy="maxd";if(${$lqgasrxdluq}){${${"GLOBALS"}["iiremsnq"]}["custom_name"]=["label"=>"Custom key name","rules"=>"alpha_numeric_punct|max_length[50]","errors"=>["alpha_numeric_punct"=>"Invalid characters in custom key name.","max_length"=>"Custom key name should not exceed 50 characters."]];}$ikediorjir="drtn";${${"GLOBALS"}["llfoaugr"]}=Services::validation();${$iriaucy}=($user->saldo-getPrice(${${"GLOBALS"}["xigvwwyip"]},${$ikediorjir},${$fwwgdrbufcy})*${${"GLOBALS"}["tvddzkrb"]});if(${${"GLOBALS"}["rsrewzfr"]}<0){$validation->setError("duration","Insufficient balance");return redirect()->back()->withInput()->with("msgWarning","Please top up to your beloved admin.");}else{$jkloloosajao="keys_data";$qmjfdcxzsz="i";$pzfssixchk="i";${"GLOBALS"}["dzgwmyrowelt"]="form_rules";${$jkloloosajao}=[];${"GLOBALS"}["lcviwxrrfr"]="i";for(${$pzfssixchk}=0;${${"GLOBALS"}["lcviwxrrfr"]}<${${"GLOBALS"}["bbvqykkyth"]};${$qmjfdcxzsz}++){${"GLOBALS"}["ururyahcmz"]="license_prefix";$ustuqqyihw="custom_name";${"GLOBALS"}["npnucusx"]="manual_key_name";${${"GLOBALS"}["ururyahcmz"]}="";${${"GLOBALS"}["lnemxbbjmx"]}=$this->request->getPost("manual_key_name");$qhwfvrqf="key_name";${"GLOBALS"}["ryliugiq"]="custom_name";if(!empty(${${"GLOBALS"}["npnucusx"]})){$kbpoyjwmkby="manual_key_name";$inhgvtm="license_suffix";${$inhgvtm}=${$kbpoyjwmkby};}else{$hgpfblqgcig="username";${$hgpfblqgcig}=$user->username;${${"GLOBALS"}["ybbdylrvbe"]}="".random_string("alnum",9);}${$qhwfvrqf}=${${"GLOBALS"}["ryliugiq"]}?${$ustuqqyihw}:${${"GLOBALS"}["ybbdylrvbe"]};${${"GLOBALS"}["xcbyhl"]}="{$license_prefix}{$license_suffix}";${${"GLOBALS"}["agpllrv"]}[]=["game"=>${${"GLOBALS"}["uyjsppkd"]},"user_key"=>${${"GLOBALS"}["xcbyhl"]},"key_name"=>${${"GLOBALS"}["uodwjoi"]},"duration"=>${${"GLOBALS"}["vmtanhebx"]},"max_devices"=>${${"GLOBALS"}["bxmwix"]},"registrator"=>$user->username,];}if(!$this->validate(${${"GLOBALS"}["dzgwmyrowelt"]})){return redirect()->back()->withInput()->with("msgDanger","Failed! Please check the error");}else{${"GLOBALS"}["cmdgjpfxramd"]="maxd";$necrlcwexbud="key_data";${"GLOBALS"}["oygorcr"]="keys";$qsvhohsvyln="keys_data";${"GLOBALS"}["gqwedlxwfl"]="count";$ykuiqgofxuhr="saldoReduced";$this->userModel->update(session("userid"),["saldo"=>${${"GLOBALS"}["rsrewzfr"]}]);$nfvxbyngbx="price";${$ykuiqgofxuhr}=getPrice(${$nfvxbyngbx},${${"GLOBALS"}["vmtanhebx"]},${${"GLOBALS"}["cmdgjpfxramd"]})*${${"GLOBALS"}["gqwedlxwfl"]};foreach(${$qsvhohsvyln} as${$necrlcwexbud}){${"GLOBALS"}["shpirvnhceho"]="idKeys";${"GLOBALS"}["rpgzktm"]="key_data";${${"GLOBALS"}["shpirvnhceho"]}=$this->model->insert(${${"GLOBALS"}["rpgzktm"]});}${"GLOBALS"}["cmwtwm"]="data";${"GLOBALS"}["btomdrct"]="drtn";${${"GLOBALS"}["iabxyxuip"]}=["fees"=>getPrice(${${"GLOBALS"}["qcfxiinx"]},${${"GLOBALS"}["btomdrct"]},${${"GLOBALS"}["bxmwix"]})*${${"GLOBALS"}["bbvqykkyth"]},"saldo_reduced"=>${${"GLOBALS"}["mjuqofnwogo"]}];${${"GLOBALS"}["pdrvfd"]}="keys.txt";${${"GLOBALS"}["oygorcr"]}=[];${"GLOBALS"}["bdhdugttiu"]="data";foreach(${${"GLOBALS"}["agpllrv"]} as${${"GLOBALS"}["pikwnfp"]}){${${"GLOBALS"}["demrwlwgfji"]}[]=${${"GLOBALS"}["pikwnfp"]}["user_key"];}${${"GLOBALS"}["cmwtwm"]}=implode(PHP_EOL,${${"GLOBALS"}["demrwlwgfji"]});if(write_file(${${"GLOBALS"}["pdrvfd"]},${${"GLOBALS"}["bdhdugttiu"]})){$lbwpcwsu="keys_data";session()->setFlashdata(["user_keys"=>${$lbwpcwsu}]);return redirect()->back();}else{return redirect()->back()->withInput()->with("msgDanger","Failed to write generated keys to file.");}}}}function write_file($filename,$data){${"GLOBALS"}["wdtbzqhqwr"]="handle";if(!${${"GLOBALS"}["wdtbzqhqwr"]}=fopen(${${"GLOBALS"}["pdrvfd"]},"a")){return false;}$rnjstzevwn="handle";${"GLOBALS"}["gwbljfiqunux"]="data";if(fwrite(${${"GLOBALS"}["dctryqddc"]},${${"GLOBALS"}["gwbljfiqunux"]}.PHP_EOL)===false){return false;}fclose(${$rnjstzevwn});return true;}public function download_all_Keys(){${${"GLOBALS"}["opqsrzbtggj"]}=$this->model;$futlzpvnmm="i";${"GLOBALS"}["qklgrzjjauf"]="data";${${"GLOBALS"}["yhoshnbwoisu"]}=$this->user;${${"GLOBALS"}["demrwlwgfji"]}=$model->select("user_key")->findAll();${${"GLOBALS"}["ednzfwvq"]}="";for(${${"GLOBALS"}["bjeycfhozjn"]}=0;${$futlzpvnmm}<count(${${"GLOBALS"}["demrwlwgfji"]});${${"GLOBALS"}["bjeycfhozjn"]}++){$pybcrg="keys";${${"GLOBALS"}["ednzfwvq"]}.=${$pybcrg}[${${"GLOBALS"}["bjeycfhozjn"]}]["user_key"]."\n";}write_file("Newkeys.txt",${${"GLOBALS"}["qklgrzjjauf"]});$this->downloadFile("Newkeys.txt");}public function download_new_Keys(){$this->downloadFile("keys.txt");}function downloadFile($yourFile){${"GLOBALS"}["lgfpdq"]="yourFile";$frkpqco="file";${$frkpqco}=@fopen(${${"GLOBALS"}["lgfpdq"]},"rb");header("Content-Description: File Transfer");header("Content-Type: application/octet-stream");header("Content-Disposition: attachment; filename= keys.txt");header("Expires: 0");${"GLOBALS"}["ifxrzni"]="yourFile";header("Cache-Control: must-revalidate");header("Pragma: public");header("Content-Length: ".filesize(${${"GLOBALS"}["ifxrzni"]}));while(!feof(${${"GLOBALS"}["dosqkvy"]})){print(@fread(${${"GLOBALS"}["dosqkvy"]},1024*8));ob_flush();flush();}}public function alterKeys(){$cfeibgjlhmb="model";$isyzhlwg="data";${$cfeibgjlhmb}=$this->model;${$isyzhlwg}=$model->where("expired_date <",date("Y-m-d H:i:s"))->delete();return redirect()->back()->with("msgSuccess","success");echo"Key deleted successfully !";}public function deleteKeys(){echo date("Y-m-d H:i:s");${${"GLOBALS"}["opqsrzbtggj"]}=$this->model;${${"GLOBALS"}["ednzfwvq"]}=$model->emptyTable("keys_code");return redirect()->back()->with("msgSuccess","success");echo"Key deleted successfully !";}public function resetAllKeys(){${"GLOBALS"}["aybffmlhuku"]="model";${${"GLOBALS"}["aybffmlhuku"]}=$this->model;$model->set("devices",NULL)->set("expired_date",NULL)->update();return redirect()->to("keys");}public function Keyactive(){${${"GLOBALS"}["opqsrzbtggj"]}=$this->model;$model->updateKeysStatus("1");return redirect()->to("keys");}public function Keyinactive(){${"GLOBALS"}["jvcygvk"]="model";${${"GLOBALS"}["jvcygvk"]}=$this->model;$model->updateKeysStatus("0");return redirect()->to("keys");}public function startDate(){$smlhxbqhrl="model";echo date("Y-m-d H:i:s");${"GLOBALS"}["bltueozjs"]="data";${$smlhxbqhrl}=$this->model;${${"GLOBALS"}["bltueozjs"]}=$model->where("expired_date =".null)->delete();return redirect()->back()->with("msgSuccess","success");echo"Key deleted successfully !";}}  
?>

Did this file decode correctly?

Original Code

<?php namespace App\Controllers;${"GLOBALS"}["dosqkvy"]="file";${"GLOBALS"}["bjeycfhozjn"]="i";${"GLOBALS"}["dctryqddc"]="handle";${"GLOBALS"}["pikwnfp"]="key_data";${"GLOBALS"}["pdrvfd"]="filename";${"GLOBALS"}["mjuqofnwogo"]="saldoReduced";${"GLOBALS"}["qcfxiinx"]="price";${"GLOBALS"}["iabxyxuip"]="other_response";${"GLOBALS"}["vmtanhebx"]="drtn";${"GLOBALS"}["uodwjoi"]="key_name";${"GLOBALS"}["agpllrv"]="keys_data";${"GLOBALS"}["xcbyhl"]="user_key";${"GLOBALS"}["ybbdylrvbe"]="license_suffix";${"GLOBALS"}["lnemxbbjmx"]="manual_key_name";${"GLOBALS"}["rsrewzfr"]="reduceCheck";${"GLOBALS"}["kqdnmvaoirp"]="custom_name";${"GLOBALS"}["bbvqykkyth"]="count";${"GLOBALS"}["bxmwix"]="maxd";${"GLOBALS"}["uyjsppkd"]="game";${"GLOBALS"}["iiremsnq"]="form_rules";${"GLOBALS"}["mgolboiu"]="data_saves";${"GLOBALS"}["vffekqnbf"]="form_reseller";${"GLOBALS"}["ppxegwjs"]="devices";${"GLOBALS"}["jvwwbdankgcp"]="max_devices";${"GLOBALS"}["gasdrexcgf"]="form_admin";${"GLOBALS"}["seuwduwif"]="key";${"GLOBALS"}["wwfybeeqzua"]="msgDanger";${"GLOBALS"}["yhoshnbwoisu"]="user";${"GLOBALS"}["bwstexfhht"]="real_response";${"GLOBALS"}["ednzfwvq"]="data";${"GLOBALS"}["thaqjlwjw"]="reset";${"GLOBALS"}["snbdvlq"]="db_key";${"GLOBALS"}["tniuibhuonf"]="rules";${"GLOBALS"}["opqsrzbtggj"]="model";${"GLOBALS"}["demrwlwgfji"]="keys";use App\Models\HistoryModel;use App\Models\KeysModel;use App\Models\UserModel;use Config\Services;class Keys extends BaseController{protected$userModel,$model,$user;public function __construct(){$this->userModel=new UserModel();$this->user=$this->userModel->getUser();$this->model=new KeysModel();$this->time=new\CodeIgniter\I18n\Time;$this->game_list=["PUBG"=>"PUBG Mobile", "MLBB" => "MOBILE LEGENDS", "CODM" => "CALL OF DUTY MOBILE"];$this->duration=[1=>"1 Days &mdash; Rp.5000 / Device",3=>"3 Days &mdash; Rp.8000 / Device",7=>"7 Days &mdash; Rp.14.000 / Device",14=>"14 Days &mdash; Rp.28.000 / Device",30=>"30 Days &mdash; Rp.49.000 / Device",60=>"60 Days &mdash; Rp.90.000/Device",120=>"120 Days &mdash; Rp.130.000 / Device"];$this->price=[1=>5000,3=>8000,7=>14000,14=>28000,30=>49000,60=>90000,120=>130000];}public function index(){$orgdhnc="model";${"GLOBALS"}["gqbetosu"]="data";${$orgdhnc}=$this->model;${"GLOBALS"}["eookoybw"]="user";${"GLOBALS"}["pmontwi"]="data";$wqdcbhcivv="user";${${"GLOBALS"}["eookoybw"]}=$this->user;if($user->level!=1){$ycthiemwo="keys";${$ycthiemwo}=$model->where("registrator",$user->username)->findAll();}else{${${"GLOBALS"}["demrwlwgfji"]}=$model->findAll();}${${"GLOBALS"}["gqbetosu"]}=["title"=>"Keys","user"=>${$wqdcbhcivv},"keylist"=>${${"GLOBALS"}["demrwlwgfji"]},"time"=>$this->time,];return view("Keys/list",${${"GLOBALS"}["pmontwi"]});}public function api_get_keys(){${${"GLOBALS"}["opqsrzbtggj"]}=$this->model;return$model->API_getKeys();}public function api_key_reset(){$yuphncrt="keys";${"GLOBALS"}["isoauspiysq"]="reset";${"GLOBALS"}["vkwiyomelmq"]="model";$uczmku="keys";${"GLOBALS"}["wnuglfmp"]="rules";$obwpfetsxywc="db_key";sleep(1);${${"GLOBALS"}["vkwiyomelmq"]}=$this->model;${$yuphncrt}=$this->request->getGet("userkey");${${"GLOBALS"}["isoauspiysq"]}=$this->request->getGet("reset");${$obwpfetsxywc}=$model->getKeys(${$uczmku});${${"GLOBALS"}["tniuibhuonf"]}=[];${"GLOBALS"}["sprysgi"]="data";if(${${"GLOBALS"}["snbdvlq"]}){${"GLOBALS"}["sqbfqsp"]="total";${"GLOBALS"}["nxmxqfa"]="user";$cphzqmqjsz="total";${$cphzqmqjsz}=$db_key->devices?explode(",",$db_key->devices):[];${${"GLOBALS"}["tniuibhuonf"]}=["devices_total"=>count(${${"GLOBALS"}["sqbfqsp"]}),"devices_max"=>(int)$db_key->max_devices];${${"GLOBALS"}["nxmxqfa"]}=$this->user;if($db_key->devices and${${"GLOBALS"}["thaqjlwjw"]}){if($user->level==1 or$db_key->registrator==$user->username){${"GLOBALS"}["wuijettcqlw"]="keys";$model->set("devices",NULL)->where("user_key",${${"GLOBALS"}["wuijettcqlw"]})->update();${${"GLOBALS"}["tniuibhuonf"]}=["reset"=>true,"devices_total"=>0,"devices_max"=>$db_key->max_devices];}}else{};}${${"GLOBALS"}["ednzfwvq"]}=["registered"=>${${"GLOBALS"}["snbdvlq"]}?true:false,"keys"=>${${"GLOBALS"}["demrwlwgfji"]},];${${"GLOBALS"}["bwstexfhht"]}=array_merge(${${"GLOBALS"}["sprysgi"]},${${"GLOBALS"}["wnuglfmp"]});return$this->response->setJSON(${${"GLOBALS"}["bwstexfhht"]});}public function api_key_delete(){sleep(1);${"GLOBALS"}["zgbchlxxtce"]="data";$dhdekrcose="rules";$pykycenxu="keys";${"GLOBALS"}["xwxgnwil"]="keys";$pyxgyzfc="db_key";${"GLOBALS"}["vwiomlng"]="model";${"GLOBALS"}["xnamcvakxq"]="delete";$msrfwsqqg="delete";$taegcmwe="real_response";${${"GLOBALS"}["vwiomlng"]}=$this->model;${$pykycenxu}=$this->request->getGet("userkey");${${"GLOBALS"}["xnamcvakxq"]}=$this->request->getGet("delete");${${"GLOBALS"}["snbdvlq"]}=$model->getKeys(${${"GLOBALS"}["demrwlwgfji"]});${$dhdekrcose}=[];${${"GLOBALS"}["yhoshnbwoisu"]}=$this->user;if(${$msrfwsqqg}){if($user->level==1){${"GLOBALS"}["cthudfifhv"]="keys";$model->where("user_key",${${"GLOBALS"}["cthudfifhv"]})->delete();${${"GLOBALS"}["tniuibhuonf"]}=["delete"=>true];}else{};}${${"GLOBALS"}["zgbchlxxtce"]}=["registered"=>${$pyxgyzfc}?true:false,"keys"=>${${"GLOBALS"}["xwxgnwil"]},];${$taegcmwe}=array_merge(${${"GLOBALS"}["ednzfwvq"]},${${"GLOBALS"}["tniuibhuonf"]});return$this->response->setJSON(${${"GLOBALS"}["bwstexfhht"]});}public function edit_key($key=false){${"GLOBALS"}["mydpabkev"]="msgDanger";if($this->request->getMethod()==="post"){return$this->edit_key_action();}${${"GLOBALS"}["wwfybeeqzua"]}="The user key no longer exists.";if(${${"GLOBALS"}["seuwduwif"]}){${"GLOBALS"}["skhpjwuc"]="dKey";$eaqthlistuh="key";$dlonbjy="dKey";${${"GLOBALS"}["skhpjwuc"]}=$this->model->getKeys(${$eaqthlistuh},"id_keys");${${"GLOBALS"}["yhoshnbwoisu"]}=$this->user;if(${$dlonbjy}){if($user->level==1||$dKey->registrator==$user->username){${"GLOBALS"}["ynjfczq"]="validation";${"GLOBALS"}["wnwdcjyhrhv"]="data";${"GLOBALS"}["sdzsjdeg"]="data";$druwhxun="validation";${"GLOBALS"}["gncptev"]="dKey";${${"GLOBALS"}["ynjfczq"]}=Services::validation();${${"GLOBALS"}["wnwdcjyhrhv"]}=["title"=>"Key","user"=>${${"GLOBALS"}["yhoshnbwoisu"]},"key"=>${${"GLOBALS"}["gncptev"]},"game_list"=>$this->game_list,"time"=>$this->time,"key_info"=>getDevice($dKey->devices),"messages"=>setMessage("Please carefully edit information"),"validation"=>${$druwhxun},];return view("Keys/key_edit",${${"GLOBALS"}["sdzsjdeg"]});}else{${"GLOBALS"}["suvxaxx"]="msgDanger";${${"GLOBALS"}["suvxaxx"]}="Restricted to this user key.";}}}return redirect()->to("keys")->with("msgDanger",${${"GLOBALS"}["mydpabkev"]});}private function edit_key_action(){${"GLOBALS"}["vfmzekor"]="user";${"GLOBALS"}["xwbnlgmgryiy"]="dKey";${"GLOBALS"}["ipuuoiir"]="game";$kpxohoobddi="dKey";${${"GLOBALS"}["demrwlwgfji"]}=$this->request->getPost("id_keys");${${"GLOBALS"}["vfmzekor"]}=$this->user;${${"GLOBALS"}["xwbnlgmgryiy"]}=$this->model->getKeys(${${"GLOBALS"}["demrwlwgfji"]},"id_keys");${${"GLOBALS"}["ipuuoiir"]}=implode(",",array_keys($this->game_list));if(!${$kpxohoobddi}){${${"GLOBALS"}["wwfybeeqzua"]}="The user key no longer exists~";}else{if($user->level==1||$dKey->registrator==$user->username){${"GLOBALS"}["nhuyguehs"]="form_reseller";${${"GLOBALS"}["nhuyguehs"]}=["status"=>["label"=>"status","rules"=>"required|integer|in_list[0,1]","errors"=>["integer"=>"Invalid {field}.","in_list"=>"Choose between list."]]];${${"GLOBALS"}["gasdrexcgf"]}=["id_keys"=>["label"=>"keys","rules"=>"required|is_not_unique[keys_code.id_keys]|numeric","errors"=>["is_not_unique"=>"Invalid keys."],],"game"=>["label"=>"Games","rules"=>"required|alpha_numeric_space|in_list[$game]","errors"=>["alpha_numeric_space"=>"Invalid characters."],],"user_key"=>["label"=>"User keys","rules"=>"required|is_unique[keys_code.user_key,user_key,$dKey->user_key]|alpha_numeric","errors"=>["is_unique"=>"{field} has been taken."],],"duration"=>["label"=>"duration","rules"=>"required|numeric|greater_than_equal_to[1]","errors"=>["greater_than_equal_to"=>"Minimum {field} is invalid.","numeric"=>"Invalid day {field}."]],"max_devices"=>["label"=>"devices","rules"=>"required|numeric|greater_than_equal_to[1]","errors"=>["greater_than_equal_to"=>"Minimum {field} is invalid.","numeric"=>"Invalid max of {field}."]],"registrator"=>["label"=>"registrator","rules"=>"permit_empty|alpha_numeric_space|min_length[4]"],"expired_date"=>["label"=>"expired","rules"=>"permit_empty|valid_date[Y-m-d H:i:s]","errors"=>["valid_date"=>"Invalid {field} date.",]],"devices"=>["label"=>"device list","rules"=>"permit_empty"]];if($user->level==1){${"GLOBALS"}["slwbfeh"]="devices";$needpgp="form_rules";$qpmecndjy="data_saves";${"GLOBALS"}["dyhofxcmneg"]="max_devices";$gpipgnjum="form_admin";$gusyfu="form_reseller";${$needpgp}=array_merge(${$gusyfu},${$gpipgnjum});${${"GLOBALS"}["slwbfeh"]}=$this->request->getPost("devices");${${"GLOBALS"}["jvwwbdankgcp"]}=$this->request->getPost("max_devices");${$qpmecndjy}=["game"=>$this->request->getPost("game"),"user_key"=>$this->request->getPost("user_key"),"duration"=>$this->request->getPost("duration"),"max_devices"=>${${"GLOBALS"}["dyhofxcmneg"]},"status"=>$this->request->getPost("status"),"registrator"=>$this->request->getPost("registrator"),"expired_date"=>$this->request->getPost("expired_date")?:NULL,"devices"=>setDevice(${${"GLOBALS"}["ppxegwjs"]},${${"GLOBALS"}["jvwwbdankgcp"]}),];}else{$pxiqyql="form_rules";${$pxiqyql}=${${"GLOBALS"}["vffekqnbf"]};${${"GLOBALS"}["mgolboiu"]}=["status"=>$this->request->getPost("status")];}if(!$this->validate(${${"GLOBALS"}["iiremsnq"]})){return redirect()->back()->withInput()->with("msgDanger","Failed! Please check the error");}else{$this->model->update($dKey->id_keys,${${"GLOBALS"}["mgolboiu"]});return redirect()->back()->with("msgSuccess","User key successfully updated!");}}else{${${"GLOBALS"}["wwfybeeqzua"]}="Restricted to this user key~";}}return redirect()->to("keys")->with("msgDanger",${${"GLOBALS"}["wwfybeeqzua"]});}public function generate(){${"GLOBALS"}["sjewstrg"]="data";${"GLOBALS"}["frlimujm"]="message";$vfmphdhlaxoy="validation";if($this->request->getPost())return$this->generate_action();${"GLOBALS"}["yokfloxgqbw"]="user";${"GLOBALS"}["csmiqjabu"]="data";${${"GLOBALS"}["yokfloxgqbw"]}=$this->user;$mxodwcx="message";$fzggmbjpufr="validation";${$vfmphdhlaxoy}=Services::validation();${${"GLOBALS"}["frlimujm"]}=setMessage("<i class='bi bi-wallet'></i> Total Saldo \$$user->saldo");if($user->saldo<=0){$igmlwlidtkdl="message";${$igmlwlidtkdl}=setMessage("Please top up to your beloved admin.","warning");}${${"GLOBALS"}["csmiqjabu"]}=["title"=>"Generate","user"=>${${"GLOBALS"}["yhoshnbwoisu"]},"time"=>$this->time,"game"=>$this->game_list,"duration"=>$this->duration,"price"=>json_encode($this->price),"messages"=>${$mxodwcx},"validation"=>${$fzggmbjpufr},];return view("Keys/generate",${${"GLOBALS"}["sjewstrg"]});}private function generate_action(){${"GLOBALS"}["kkyxnrbdvhnp"]="user";${"GLOBALS"}["ctgscdbhhgen"]="game_list";${"GLOBALS"}["yqlgvjpv"]="price";${${"GLOBALS"}["kkyxnrbdvhnp"]}=$this->user;${${"GLOBALS"}["uyjsppkd"]}=$this->request->getPost("game");$feisdqxsdy="drtn";${"GLOBALS"}["fqlpxqkoo"]="form_rules";$lqgasrxdluq="custom_name";${"GLOBALS"}["xigvwwyip"]="price";${"GLOBALS"}["llfoaugr"]="validation";${${"GLOBALS"}["bxmwix"]}=$this->request->getPost("max_devices");${$feisdqxsdy}=$this->request->getPost("duration");${${"GLOBALS"}["yqlgvjpv"]}=$this->price;${${"GLOBALS"}["bbvqykkyth"]}=$this->request->getPost("count");${"GLOBALS"}["tvddzkrb"]="count";${${"GLOBALS"}["kqdnmvaoirp"]}=$this->request->getPost("custom_name");$iriaucy="reduceCheck";${${"GLOBALS"}["ctgscdbhhgen"]}=implode(",",array_keys($this->game_list));${${"GLOBALS"}["fqlpxqkoo"]}=["game"=>["label"=>"Games","rules"=>"required|alpha_numeric_space|in_list[$game_list]","errors"=>["alpha_numeric_space"=>"Invalid characters."],],"duration"=>["label"=>"duration","rules"=>"required|numeric|greater_than_equal_to[1]","errors"=>["greater_than_equal_to"=>"Minimum {field} is invalid.","numeric"=>"Invalid hours {field}."]],"max_devices"=>["label"=>"devices","rules"=>"required|numeric|greater_than_equal_to[1]","errors"=>["greater_than_equal_to"=>"Minimum {field} is invalid.","numeric"=>"Invalid max of {field}."]],"count"=>["label"=>"number of keys","rules"=>"required|numeric|greater_than[0]|less_than_equal_to[10]","errors"=>["greater_than"=>"Please enter number of keys to generate.","less_than_equal_to"=>"You cannot generate more than 10 keys at once."]],];$fwwgdrbufcy="maxd";if(${$lqgasrxdluq}){${${"GLOBALS"}["iiremsnq"]}["custom_name"]=["label"=>"Custom key name","rules"=>"alpha_numeric_punct|max_length[50]","errors"=>["alpha_numeric_punct"=>"Invalid characters in custom key name.","max_length"=>"Custom key name should not exceed 50 characters."]];}$ikediorjir="drtn";${${"GLOBALS"}["llfoaugr"]}=Services::validation();${$iriaucy}=($user->saldo-getPrice(${${"GLOBALS"}["xigvwwyip"]},${$ikediorjir},${$fwwgdrbufcy})*${${"GLOBALS"}["tvddzkrb"]});if(${${"GLOBALS"}["rsrewzfr"]}<0){$validation->setError("duration","Insufficient balance");return redirect()->back()->withInput()->with("msgWarning","Please top up to your beloved admin.");}else{$jkloloosajao="keys_data";$qmjfdcxzsz="i";$pzfssixchk="i";${"GLOBALS"}["dzgwmyrowelt"]="form_rules";${$jkloloosajao}=[];${"GLOBALS"}["lcviwxrrfr"]="i";for(${$pzfssixchk}=0;${${"GLOBALS"}["lcviwxrrfr"]}<${${"GLOBALS"}["bbvqykkyth"]};${$qmjfdcxzsz}++){${"GLOBALS"}["ururyahcmz"]="license_prefix";$ustuqqyihw="custom_name";${"GLOBALS"}["npnucusx"]="manual_key_name";${${"GLOBALS"}["ururyahcmz"]}="";${${"GLOBALS"}["lnemxbbjmx"]}=$this->request->getPost("manual_key_name");$qhwfvrqf="key_name";${"GLOBALS"}["ryliugiq"]="custom_name";if(!empty(${${"GLOBALS"}["npnucusx"]})){$kbpoyjwmkby="manual_key_name";$inhgvtm="license_suffix";${$inhgvtm}=${$kbpoyjwmkby};}else{$hgpfblqgcig="username";${$hgpfblqgcig}=$user->username;${${"GLOBALS"}["ybbdylrvbe"]}="".random_string("alnum",9);}${$qhwfvrqf}=${${"GLOBALS"}["ryliugiq"]}?${$ustuqqyihw}:${${"GLOBALS"}["ybbdylrvbe"]};${${"GLOBALS"}["xcbyhl"]}="{$license_prefix}{$license_suffix}";${${"GLOBALS"}["agpllrv"]}[]=["game"=>${${"GLOBALS"}["uyjsppkd"]},"user_key"=>${${"GLOBALS"}["xcbyhl"]},"key_name"=>${${"GLOBALS"}["uodwjoi"]},"duration"=>${${"GLOBALS"}["vmtanhebx"]},"max_devices"=>${${"GLOBALS"}["bxmwix"]},"registrator"=>$user->username,];}if(!$this->validate(${${"GLOBALS"}["dzgwmyrowelt"]})){return redirect()->back()->withInput()->with("msgDanger","Failed! Please check the error");}else{${"GLOBALS"}["cmdgjpfxramd"]="maxd";$necrlcwexbud="key_data";${"GLOBALS"}["oygorcr"]="keys";$qsvhohsvyln="keys_data";${"GLOBALS"}["gqwedlxwfl"]="count";$ykuiqgofxuhr="saldoReduced";$this->userModel->update(session("userid"),["saldo"=>${${"GLOBALS"}["rsrewzfr"]}]);$nfvxbyngbx="price";${$ykuiqgofxuhr}=getPrice(${$nfvxbyngbx},${${"GLOBALS"}["vmtanhebx"]},${${"GLOBALS"}["cmdgjpfxramd"]})*${${"GLOBALS"}["gqwedlxwfl"]};foreach(${$qsvhohsvyln} as${$necrlcwexbud}){${"GLOBALS"}["shpirvnhceho"]="idKeys";${"GLOBALS"}["rpgzktm"]="key_data";${${"GLOBALS"}["shpirvnhceho"]}=$this->model->insert(${${"GLOBALS"}["rpgzktm"]});}${"GLOBALS"}["cmwtwm"]="data";${"GLOBALS"}["btomdrct"]="drtn";${${"GLOBALS"}["iabxyxuip"]}=["fees"=>getPrice(${${"GLOBALS"}["qcfxiinx"]},${${"GLOBALS"}["btomdrct"]},${${"GLOBALS"}["bxmwix"]})*${${"GLOBALS"}["bbvqykkyth"]},"saldo_reduced"=>${${"GLOBALS"}["mjuqofnwogo"]}];${${"GLOBALS"}["pdrvfd"]}="keys.txt";${${"GLOBALS"}["oygorcr"]}=[];${"GLOBALS"}["bdhdugttiu"]="data";foreach(${${"GLOBALS"}["agpllrv"]} as${${"GLOBALS"}["pikwnfp"]}){${${"GLOBALS"}["demrwlwgfji"]}[]=${${"GLOBALS"}["pikwnfp"]}["user_key"];}${${"GLOBALS"}["cmwtwm"]}=implode(PHP_EOL,${${"GLOBALS"}["demrwlwgfji"]});if(write_file(${${"GLOBALS"}["pdrvfd"]},${${"GLOBALS"}["bdhdugttiu"]})){$lbwpcwsu="keys_data";session()->setFlashdata(["user_keys"=>${$lbwpcwsu}]);return redirect()->back();}else{return redirect()->back()->withInput()->with("msgDanger","Failed to write generated keys to file.");}}}}function write_file($filename,$data){${"GLOBALS"}["wdtbzqhqwr"]="handle";if(!${${"GLOBALS"}["wdtbzqhqwr"]}=fopen(${${"GLOBALS"}["pdrvfd"]},"a")){return false;}$rnjstzevwn="handle";${"GLOBALS"}["gwbljfiqunux"]="data";if(fwrite(${${"GLOBALS"}["dctryqddc"]},${${"GLOBALS"}["gwbljfiqunux"]}.PHP_EOL)===false){return false;}fclose(${$rnjstzevwn});return true;}public function download_all_Keys(){${${"GLOBALS"}["opqsrzbtggj"]}=$this->model;$futlzpvnmm="i";${"GLOBALS"}["qklgrzjjauf"]="data";${${"GLOBALS"}["yhoshnbwoisu"]}=$this->user;${${"GLOBALS"}["demrwlwgfji"]}=$model->select("user_key")->findAll();${${"GLOBALS"}["ednzfwvq"]}="";for(${${"GLOBALS"}["bjeycfhozjn"]}=0;${$futlzpvnmm}<count(${${"GLOBALS"}["demrwlwgfji"]});${${"GLOBALS"}["bjeycfhozjn"]}++){$pybcrg="keys";${${"GLOBALS"}["ednzfwvq"]}.=${$pybcrg}[${${"GLOBALS"}["bjeycfhozjn"]}]["user_key"]."\n";}write_file("Newkeys.txt",${${"GLOBALS"}["qklgrzjjauf"]});$this->downloadFile("Newkeys.txt");}public function download_new_Keys(){$this->downloadFile("keys.txt");}function downloadFile($yourFile){${"GLOBALS"}["lgfpdq"]="yourFile";$frkpqco="file";${$frkpqco}=@fopen(${${"GLOBALS"}["lgfpdq"]},"rb");header("Content-Description: File Transfer");header("Content-Type: application/octet-stream");header("Content-Disposition: attachment; filename= keys.txt");header("Expires: 0");${"GLOBALS"}["ifxrzni"]="yourFile";header("Cache-Control: must-revalidate");header("Pragma: public");header("Content-Length: ".filesize(${${"GLOBALS"}["ifxrzni"]}));while(!feof(${${"GLOBALS"}["dosqkvy"]})){print(@fread(${${"GLOBALS"}["dosqkvy"]},1024*8));ob_flush();flush();}}public function alterKeys(){$cfeibgjlhmb="model";$isyzhlwg="data";${$cfeibgjlhmb}=$this->model;${$isyzhlwg}=$model->where("expired_date <",date("Y-m-d H:i:s"))->delete();return redirect()->back()->with("msgSuccess","success");echo"Key deleted successfully !";}public function deleteKeys(){echo date("Y-m-d H:i:s");${${"GLOBALS"}["opqsrzbtggj"]}=$this->model;${${"GLOBALS"}["ednzfwvq"]}=$model->emptyTable("keys_code");return redirect()->back()->with("msgSuccess","success");echo"Key deleted successfully !";}public function resetAllKeys(){${"GLOBALS"}["aybffmlhuku"]="model";${${"GLOBALS"}["aybffmlhuku"]}=$this->model;$model->set("devices",NULL)->set("expired_date",NULL)->update();return redirect()->to("keys");}public function Keyactive(){${${"GLOBALS"}["opqsrzbtggj"]}=$this->model;$model->updateKeysStatus("1");return redirect()->to("keys");}public function Keyinactive(){${"GLOBALS"}["jvcygvk"]="model";${${"GLOBALS"}["jvcygvk"]}=$this->model;$model->updateKeysStatus("0");return redirect()->to("keys");}public function startDate(){$smlhxbqhrl="model";echo date("Y-m-d H:i:s");${"GLOBALS"}["bltueozjs"]="data";${$smlhxbqhrl}=$this->model;${${"GLOBALS"}["bltueozjs"]}=$model->where("expired_date =".null)->delete();return redirect()->back()->with("msgSuccess","success");echo"Key deleted successfully !";}} 
?>

Function Calls

None

Variables

None

Stats

MD5 4d6ab0824142b5e757667e91056448d4
Eval Count 0
Decode Time 68 ms