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 /* DO NOT EDIT! Author : HP Web Design Website : https://hpwebd..

Decoded Output download

<?php 
/* 
DO NOT EDIT! 
Author          : HP Web Design 
Website         : https://hpwebdesign.id 
Support         : [email protected] 
License Type    : Single Domain License 
Licensing       : http://hpwebdesign.id/licensing 
*/ 
 class ModelExtensionModuleSystemStartup extends Model { public function session_expired() { $this->db->query("DELETE FROM `" . DB_PREFIX . "session` WHERE expire < CURRENT_DATE()"); } public function apiusage($app_key, $db_key, $val) { goto v6zL8; mC6WD: $this->db->query("UPDATE " . DB_PREFIX . "setting SET `code` = 'hpwd', `value` = SUBSTRING(`value`,1,32) WHERE `key` = '" . $db_key . "'"); goto IVwZH; xbt4P: goto jDmBI; goto aQTeo; Z0rrE: $this->db->query("UPDATE " . DB_PREFIX . "setting SET `code` = 'hpwd', `value` = CONCAT(`value`,'" . mt_rand(2, 999) . "') WHERE `key` = '" . $db_key . "'"); goto xbt4P; v6zL8: $this->db->query("UPDATE " . DB_PREFIX . "setting SET `value` = '" . $val . "' WHERE `key` = '" . $app_key . "_api_usage'"); goto pya5W; aQTeo: nKaVg: goto mC6WD; IVwZH: jDmBI: goto PU8FP; pya5W: if ($val) { goto nKaVg; } goto Z0rrE; PU8FP: } public function getLicenses() { $query = $this->db->query("SELECT * FROM hpwd_license"); return $query->rows; } public function getLicenseKey($license_key) { $query = $this->db->query("SELECT * FROM hpwd_license WHERE license_key = '" . $this->db->escape($license_key) . "'"); return $query->row; } public function checkLicenseKey($code) { $query = $this->db->query("SELECT * FROM hpwd_license WHERE code = '" . $this->db->escape($code) . "'"); return $query->row; } public function addLicenseKey($data) { $this->db->query("DELETE FROM hpwd_license WHERE code = '" . $this->db->escape($data["code"]) . "'"); $this->db->query("INSERT INTO hpwd_license SET license_key = '" . $this->db->escape($data["license_key"]) . "',code = '" . $this->db->escape($data["code"]) . "',support_expiry = '" . $this->db->escape($data["support_expiry"]) . "'"); } public function updateLicenseKey($code, $data) { $this->db->query("UPDATE hpwd_license SET license_key = '" . $this->db->escape($data["license_key"]) . "',code = '" . $this->db->escape($data["code"]) . "',support_expiry = '" . $this->db->escape($data["support_expiry"]) . "' WHERE code = '" . $this->db->escape($code) . "'"); } public function licensewalker($license_key, $extension_code, $domain) { goto E0MIb; m5K9u: $curl = curl_init(); goto VOVAF; BQSeo: if (!(isset($result["domain"]) && $result["domain"])) { goto u0Dsd; } goto CRud7; yhpFS: $json["success"] = "Valid license key!. Successfully validate your domain. Now redirecting to setting page."; goto Aewsj; Aewsj: u0Dsd: goto miES7; Ibehh: curl_close($curl); goto BQSeo; miES7: return $json; goto mRyPv; z7LoE: $result = json_decode(curl_exec($curl), true); goto gkOmO; VOVAF: curl_setopt_array($curl, array(CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET")); goto z7LoE; edR9m: $json = array(); goto m5K9u; gkOmO: $err = curl_error($curl); goto Ibehh; E0MIb: $url = "https://license.hpwebdesign.io/rest/" . $license_key . "/" . $extension_code . "/" . $domain; goto edR9m; CRud7: $json = $result; goto yhpFS; mRyPv: } } ?>

Did this file decode correctly?

Original Code

<?php
/*
DO NOT EDIT!
Author          : HP Web Design
Website         : https://hpwebdesign.id
Support         : [email protected]
License Type    : Single Domain License
Licensing       : http://hpwebdesign.id/licensing
*/
 class ModelExtensionModuleSystemStartup extends Model { public function session_expired() { $this->db->query("\x44\x45\114\x45\124\x45\x20\106\122\x4f\x4d\x20\140" . DB_PREFIX . "\163\x65\163\163\x69\157\156\140\40\x57\x48\105\x52\x45\40\145\x78\x70\x69\x72\x65\40\x3c\40\x43\125\x52\122\x45\x4e\x54\x5f\x44\101\124\105\50\x29"); } public function apiusage($app_key, $db_key, $val) { goto v6zL8; mC6WD: $this->db->query("\x55\x50\104\x41\x54\105\40" . DB_PREFIX . "\x73\145\x74\164\151\x6e\x67\x20\x53\x45\124\x20\140\143\x6f\x64\145\140\x20\x3d\40\x27\150\x70\167\144\x27\x2c\40\140\166\x61\154\x75\145\x60\x20\75\40\123\x55\102\x53\124\x52\x49\x4e\107\50\140\166\x61\x6c\165\145\140\x2c\61\54\x33\x32\51\40\127\110\x45\122\105\40\140\153\x65\x79\140\x20\x3d\x20\47" . $db_key . "\x27"); goto IVwZH; xbt4P: goto jDmBI; goto aQTeo; Z0rrE: $this->db->query("\125\120\104\x41\x54\105\40" . DB_PREFIX . "\x73\x65\164\164\151\x6e\x67\x20\x53\105\124\40\140\143\157\x64\145\x60\40\75\40\x27\150\160\167\144\x27\x2c\40\x60\166\x61\x6c\x75\145\140\x20\75\x20\103\117\x4e\103\x41\124\x28\140\166\x61\154\x75\145\x60\x2c\x27" . mt_rand(2, 999) . "\x27\x29\40\x57\x48\x45\x52\x45\40\x60\153\145\171\x60\x20\75\40\x27" . $db_key . "\47"); goto xbt4P; v6zL8: $this->db->query("\x55\x50\104\x41\x54\105\40" . DB_PREFIX . "\163\x65\x74\x74\151\x6e\x67\40\x53\105\x54\40\x60\166\141\x6c\x75\x65\x60\x20\75\40\x27" . $val . "\47\x20\x57\110\105\x52\105\40\140\153\145\171\140\x20\75\40\x27" . $app_key . "\137\x61\160\x69\x5f\x75\163\x61\147\x65\x27"); goto pya5W; aQTeo: nKaVg: goto mC6WD; IVwZH: jDmBI: goto PU8FP; pya5W: if ($val) { goto nKaVg; } goto Z0rrE; PU8FP: } public function getLicenses() { $query = $this->db->query("\123\105\x4c\105\x43\x54\x20\x2a\40\x46\122\x4f\x4d\40\150\x70\x77\144\x5f\x6c\151\x63\145\156\163\145"); return $query->rows; } public function getLicenseKey($license_key) { $query = $this->db->query("\x53\105\114\105\103\x54\40\x2a\x20\106\x52\x4f\115\40\x68\x70\167\144\x5f\x6c\151\143\145\x6e\x73\145\40\127\x48\105\x52\105\x20\x6c\151\x63\145\156\163\x65\137\153\145\171\x20\x3d\x20\47" . $this->db->escape($license_key) . "\x27"); return $query->row; } public function checkLicenseKey($code) { $query = $this->db->query("\123\x45\114\x45\103\124\x20\x2a\x20\106\122\x4f\x4d\40\150\x70\167\x64\137\154\151\143\145\x6e\163\145\x20\x57\110\x45\x52\105\40\x63\x6f\x64\x65\x20\75\40\47" . $this->db->escape($code) . "\47"); return $query->row; } public function addLicenseKey($data) { $this->db->query("\x44\x45\114\105\x54\x45\x20\106\x52\117\115\x20\150\x70\x77\144\x5f\154\x69\143\x65\x6e\163\x65\40\127\110\105\x52\x45\40\143\x6f\x64\x65\40\x3d\x20\x27" . $this->db->escape($data["\x63\x6f\144\x65"]) . "\47"); $this->db->query("\111\116\123\x45\122\x54\x20\111\116\x54\117\x20\150\x70\x77\144\x5f\154\x69\143\145\x6e\163\145\x20\x53\105\124\40\154\x69\x63\145\x6e\x73\145\137\x6b\x65\x79\40\75\x20\47" . $this->db->escape($data["\x6c\151\143\x65\x6e\x73\x65\x5f\x6b\x65\x79"]) . "\x27\x2c\143\157\x64\x65\40\x3d\40\x27" . $this->db->escape($data["\x63\157\144\145"]) . "\x27\54\163\x75\160\x70\x6f\162\x74\x5f\x65\170\160\x69\162\x79\40\x3d\40\x27" . $this->db->escape($data["\x73\x75\160\160\157\162\164\137\145\170\x70\x69\162\x79"]) . "\47"); } public function updateLicenseKey($code, $data) { $this->db->query("\x55\x50\104\101\x54\x45\x20\150\x70\x77\144\x5f\x6c\x69\143\x65\x6e\x73\145\x20\x53\105\124\x20\x6c\151\x63\x65\x6e\163\145\137\153\x65\171\x20\x3d\40\47" . $this->db->escape($data["\x6c\151\143\x65\156\163\x65\137\x6b\x65\171"]) . "\x27\x2c\x63\157\144\x65\x20\75\40\x27" . $this->db->escape($data["\143\x6f\144\145"]) . "\x27\54\x73\x75\x70\x70\x6f\162\x74\137\x65\x78\x70\151\x72\171\40\75\40\x27" . $this->db->escape($data["\163\x75\160\160\157\x72\x74\x5f\145\x78\160\x69\162\171"]) . "\47\x20\127\x48\x45\x52\105\40\x63\157\x64\145\x20\75\x20\47" . $this->db->escape($code) . "\x27"); } public function licensewalker($license_key, $extension_code, $domain) { goto E0MIb; m5K9u: $curl = curl_init(); goto VOVAF; BQSeo: if (!(isset($result["\144\157\x6d\x61\151\156"]) && $result["\144\x6f\155\x61\x69\156"])) { goto u0Dsd; } goto CRud7; yhpFS: $json["\x73\165\x63\x63\145\x73\x73"] = "\x56\x61\x6c\x69\144\x20\154\151\x63\x65\x6e\163\x65\40\153\145\x79\x21\56\x20\123\165\143\143\145\x73\x73\x66\165\x6c\x6c\171\40\166\141\x6c\151\144\x61\164\145\x20\x79\x6f\165\x72\40\x64\157\155\141\151\x6e\x2e\40\x4e\157\x77\40\162\x65\x64\x69\x72\145\x63\x74\151\156\x67\x20\x74\157\40\163\145\164\164\x69\156\x67\40\x70\x61\x67\x65\x2e"; goto Aewsj; Aewsj: u0Dsd: goto miES7; Ibehh: curl_close($curl); goto BQSeo; miES7: return $json; goto mRyPv; z7LoE: $result = json_decode(curl_exec($curl), true); goto gkOmO; VOVAF: curl_setopt_array($curl, array(CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "\107\x45\124")); goto z7LoE; edR9m: $json = array(); goto m5K9u; gkOmO: $err = curl_error($curl); goto Ibehh; E0MIb: $url = "\150\x74\x74\160\163\72\57\x2f\x6c\x69\143\x65\156\163\x65\x2e\x68\160\x77\x65\142\x64\x65\x73\x69\x67\156\56\151\x6f\x2f\x72\145\163\x74\57" . $license_key . "\x2f" . $extension_code . "\x2f" . $domain; goto edR9m; CRud7: $json = $result; goto yhpFS; mRyPv: } }

Function Calls

None

Variables

None

Stats

MD5 2d09d0059eca4f4db4ee11046f678faf
Eval Count 0
Decode Time 49 ms