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

Signing you up...

Thank you for signing up!

PHP Decode

function aplCustomEncrypt($string, $key) { $encrypted_string = null; if (!(!empty($string)..

Decoded Output download

<?  function aplCustomEncrypt($string, $key) { $encrypted_string = null; if (!(!empty($string) && !empty($key))) { goto Euxmb; } $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length("aes-256-cbc")); $encrypted_string = openssl_encrypt($string, "aes-256-cbc", $key, 0, $iv); $encrypted_string = base64_encode($encrypted_string . "::" . $iv); Euxmb: return $encrypted_string; } function aplCustomDecrypt($string, $key) { $decrypted_string = null; if (!(!empty($string) && !empty($key))) { goto o3Gy6; } $string = base64_decode($string); if (!stristr($string, "::")) { goto qpO3v; } $string_iv_array = explode("::", $string, 2); if (!(!empty($string_iv_array) && count($string_iv_array) == 2)) { goto AXGkS; } list($encrypted_string, $iv) = $string_iv_array; $decrypted_string = openssl_decrypt($encrypted_string, "aes-256-cbc", $key, 0, $iv); AXGkS: qpO3v: o3Gy6: return $decrypted_string; } function aplValidateIntegerValue($number, $min_value = 0, $max_value = INF) { $result = false; if (!(!is_float($number) && filter_var($number, FILTER_VALIDATE_INT, array("options" => array("min_range" => $min_value, "max_range" => $max_value))) !== false)) { goto iZI8N; } $result = true; iZI8N: return $result; } function aplValidateRawDomain($url) { $result = false; if (empty($url)) { goto IbB2n; } if (preg_match("/^[a-z0-9-.]+\.[a-z\.]{2,7}$/", strtolower($url))) { goto EQGJn; } $result = false; goto zfr4U; EQGJn: $result = true; zfr4U: IbB2n: return $result; } function aplGetCurrentUrl($remove_last_slash = null) { $protocol = "http"; $host = null; $script = null; $params = null; $current_url = null; if (!(isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" || isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"] == "https")) { goto IzctO; } $protocol = "https"; IzctO: if (!isset($_SERVER["HTTP_HOST"])) { goto FC5xH; } $host = $_SERVER["HTTP_HOST"]; FC5xH: if (!isset($_SERVER["SCRIPT_NAME"])) { goto c1txh; } $script = $_SERVER["SCRIPT_NAME"]; c1txh: if (!isset($_SERVER["QUERY_STRING"])) { goto JEBMc; } $params = $_SERVER["QUERY_STRING"]; JEBMc: if (!(!empty($protocol) && !empty($host) && !empty($script))) { goto JEd2C; } $current_url = $protocol . "://" . $host . $script; if (empty($params)) { goto VZD0G; } $current_url .= "?" . $params; VZD0G: if (!($remove_last_slash == 1)) { goto IHOHE; } AuDHY: if (!(substr($current_url, -1) == "/")) { goto d4Foo; } $current_url = substr($current_url, 0, -1); goto AuDHY; d4Foo: IHOHE: JEd2C: return $current_url; } function aplGetRawDomain($url) { $raw_domain = null; if (empty($url)) { goto CWRAq; } $url_array = parse_url($url); if (!empty($url_array["scheme"])) { goto tZQ84; } $url = "http://" . $url; $url_array = parse_url($url); tZQ84: if (empty($url_array["host"])) { goto jM1d9; } $raw_domain = $url_array["host"]; $raw_domain = trim(str_ireplace("www.", '', filter_var($raw_domain, FILTER_SANITIZE_URL))); jM1d9: CWRAq: return $raw_domain; } function aplGetRootUrl($url, $remove_scheme, $remove_www, $remove_path, $remove_last_slash) { if (!filter_var($url, FILTER_VALIDATE_URL)) { goto aKpiY; } $url_array = parse_url($url); $url = str_ireplace($url_array["scheme"] . "://", '', $url); if ($remove_path == 1) { goto GIT6Z; } $last_slash_position = strripos($url, "/"); if (!($last_slash_position > 0)) { goto qSWf0; } $url = substr($url, 0, $last_slash_position + 1); qSWf0: goto z2ial; GIT6Z: $first_slash_position = stripos($url, "/"); if (!($first_slash_position > 0)) { goto U7MHs; } $url = substr($url, 0, $first_slash_position + 1); U7MHs: z2ial: if (!($remove_scheme != 1)) { goto NiXO5; } $url = $url_array["scheme"] . "://" . $url; NiXO5: if (!($remove_www == 1)) { goto R5RQl; } $url = str_ireplace("www.", '', $url); R5RQl: if (!($remove_last_slash == 1)) { goto wHwZK; } oUoKv: if (!(substr($url, -1) == "/")) { goto mm_vD; } $url = substr($url, 0, -1); goto oUoKv; mm_vD: wHwZK: aKpiY: return trim($url); } function aplCustomPost($url, $post_info = null, $refer = null) { $user_agent = "phpmillion cURL"; $connect_timeout = 10; $server_response_array = array(); $formatted_headers_array = array(); if (!(filter_var($url, FILTER_VALIDATE_URL) && !empty($post_info))) { goto Slh74; } if (!(empty($refer) || !filter_var($refer, FILTER_VALIDATE_URL))) { goto R8PcX; } $refer = $url; R8PcX: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $connect_timeout); curl_setopt($ch, CURLOPT_TIMEOUT, $connect_timeout); curl_setopt($ch, CURLOPT_REFERER, $refer); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_info); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_MAXREDIRS, 10); curl_setopt($ch, CURLOPT_HEADERFUNCTION, function ($curl, $header) use(&$formatted_headers_array) { $len = strlen($header); $header = explode(":", $header, 2); if (!(count($header) < 2)) { goto if1yK; } return $len; if1yK: $name = strtolower(trim($header[0])); $formatted_headers_array[$name] = trim($header[1]); return $len; }); $result = curl_exec($ch); $curl_error = curl_error($ch); curl_close($ch); $server_response_array["headers"] = $formatted_headers_array; $server_response_array["error"] = $curl_error; $server_response_array["body"] = $result; Slh74: return $server_response_array; } function aplVerifyDateTime($datetime, $format) { $result = false; if (!(!empty($datetime) && !empty($format))) { goto xdk2s; } $datetime = DateTime::createFromFormat($format, $datetime); $errors = DateTime::getLastErrors(); if (!($datetime && empty($errors["warning_count"]))) { goto jCEaV; } $result = true; jCEaV: xdk2s: return $result; } function aplGetDaysBetweenDates($date_from, $date_to) { $number_of_days = 0; if (!(aplVerifyDateTime($date_from, "Y-m-d") && aplVerifyDateTime($date_to, "Y-m-d"))) { goto o2gvv; } $date_to = new DateTime($date_to); $date_from = new DateTime($date_from); $number_of_days = $date_from->diff($date_to)->format("%a"); o2gvv: return $number_of_days; } function aplParseXmlTags($content, $tag_name) { $parsed_value = null; if (!(!empty($content) && !empty($tag_name))) { goto SP8np; } preg_match_all("/<" . preg_quote($tag_name, "/") . ">(.*?)<\/" . preg_quote($tag_name, "/") . ">/ims", $content, $output_array, PREG_SET_ORDER); if (empty($output_array[0][1])) { goto iOpwC; } $parsed_value = trim($output_array[0][1]); iOpwC: SP8np: return $parsed_value; } function aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $product = Null) { $notifications_array = array(); if (!empty($content_array)) { goto ngQ57; } $notifications_array["notification_case"] = "notification_no_connection"; $notifications_array["notification_text"] = APL_NOTIFICATION_NO_CONNECTION; goto i1qx8; ngQ57: if (!empty($content_array["headers"]["notification_server_signature"]) && aplVerifyServerSignature($content_array["headers"]["notification_server_signature"], $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $product)) { goto dUs3X; } $notifications_array["notification_case"] = "notification_invalid_response"; $notifications_array["notification_text"] = APL_NOTIFICATION_INVALID_RESPONSE; goto LGRn7; dUs3X: $notifications_array["notification_case"] = $content_array["headers"]["notification_case"]; $notifications_array["notification_text"] = $content_array["headers"]["notification_text"]; if (empty($content_array["headers"]["notification_data"])) { goto iW47I; } $notifications_array["notification_data"] = json_decode($content_array["headers"]["notification_data"], true); iW47I: LGRn7: i1qx8: return $notifications_array; } function aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $product = Null) { $script_signature = null; $root_ips_array = gethostbynamel(aplGetRawDomain(APL_ROOT_URL)); $product = $product == Null ? APL_PRODUCT_ID : $product; if (!(!empty($ROOT_URL) && isset($CLIENT_EMAIL) && isset($LICENSE_CODE) && !empty($root_ips_array))) { goto PhbST; } $script_signature = hash("sha256", gmdate("Y-m-d") . $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE . $product . implode('', $root_ips_array)); PhbST: return $script_signature; } function aplVerifyServerSignature($notification_server_signature, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $product = Null) { $result = false; $root_ips_array = gethostbynamel(aplGetRawDomain(APL_ROOT_URL)); $product = $product == Null ? APL_PRODUCT_ID : $product; if (!(!empty($notification_server_signature) && !empty($ROOT_URL) && isset($CLIENT_EMAIL) && isset($LICENSE_CODE) && !empty($root_ips_array))) { goto caRA0; } if (!(hash("sha256", implode('', $root_ips_array) . $product . $LICENSE_CODE . $CLIENT_EMAIL . $ROOT_URL . gmdate("Y-m-d")) == $notification_server_signature)) { goto MVnVp; } $result = true; MVnVp: caRA0: return $result; } function aplCheckSettings() { $notifications_array = array(); if (!(empty(APL_SALT) || APL_SALT == "some_random_text")) { goto A00jz; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_SALT; A00jz: if (!(!filter_var(APL_ROOT_URL, FILTER_VALIDATE_URL) || !ctype_alnum(substr(APL_ROOT_URL, -1)))) { goto Rj570; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_ROOT_URL; Rj570: if (filter_var(APL_PRODUCT_ID, FILTER_VALIDATE_INT)) { goto pi01C; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_PRODUCT_ID; pi01C: if (aplValidateIntegerValue(APL_DAYS, 1, 365)) { goto aYQw7; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_VERIFICATION_PERIOD; aYQw7: if (!(APL_STORAGE != "DATABASE" && APL_STORAGE != "FILE")) { goto lr92V; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_STORAGE; lr92V: if (!(APL_STORAGE == "DATABASE" && !ctype_alnum(str_ireplace(array("_"), '', APL_DATABASE_TABLE)))) { goto uQz0y; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_TABLE; uQz0y: if (!(APL_STORAGE == "FILE" && !@is_writable(APL_DIRECTORY . "/" . APL_LICENSE_FILE_LOCATION))) { goto kWlQc; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_LICENSE_FILE; kWlQc: if (!(!empty(APL_ROOT_IP) && !filter_var(APL_ROOT_IP, FILTER_VALIDATE_IP))) { goto EOyWS; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_ROOT_IP; EOyWS: if (!(!empty(APL_ROOT_IP) && !in_array(APL_ROOT_IP, gethostbynamel(aplGetRawDomain(APL_ROOT_URL))))) { goto YTfDl; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_DNS; YTfDl: if (!(defined("APL_ROOT_NAMESERVERS") && !empty(APL_ROOT_NAMESERVERS))) { goto jMcyU; } foreach (APL_ROOT_NAMESERVERS as $nameserver) { if (aplValidateRawDomain($nameserver)) { goto goGTv; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_ROOT_NAMESERVERS; goto hZsGl; goGTv: zsLRa: } hZsGl: jMcyU: if (!(defined("APL_ROOT_NAMESERVERS") && !empty(APL_ROOT_NAMESERVERS))) { goto g9Bs3; } $apl_root_nameservers_array = APL_ROOT_NAMESERVERS; $fetched_nameservers_array = array(); $dns_records_array = dns_get_record(aplGetRawDomain(APL_ROOT_URL), DNS_NS); foreach ($dns_records_array as $record) { $fetched_nameservers_array[] = $record["target"]; P2EPo: } Ec6E1: $apl_root_nameservers_array = array_map("strtolower", $apl_root_nameservers_array); $fetched_nameservers_array = array_map("strtolower", $fetched_nameservers_array); sort($apl_root_nameservers_array); sort($fetched_nameservers_array); if (!($apl_root_nameservers_array != $fetched_nameservers_array)) { goto g3TfK; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_DNS; g3TfK: g9Bs3: return $notifications_array; }  ?>

Did this file decode correctly?

Original Code

function aplCustomEncrypt($string, $key) { $encrypted_string = null; if (!(!empty($string) && !empty($key))) { goto Euxmb; } $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length("\141\145\163\55\x32\65\66\55\143\142\x63")); $encrypted_string = openssl_encrypt($string, "\141\x65\x73\55\x32\65\66\55\143\x62\143", $key, 0, $iv); $encrypted_string = base64_encode($encrypted_string . "\x3a\72" . $iv); Euxmb: return $encrypted_string; } function aplCustomDecrypt($string, $key) { $decrypted_string = null; if (!(!empty($string) && !empty($key))) { goto o3Gy6; } $string = base64_decode($string); if (!stristr($string, "\72\72")) { goto qpO3v; } $string_iv_array = explode("\x3a\72", $string, 2); if (!(!empty($string_iv_array) && count($string_iv_array) == 2)) { goto AXGkS; } list($encrypted_string, $iv) = $string_iv_array; $decrypted_string = openssl_decrypt($encrypted_string, "\141\145\x73\55\62\x35\x36\x2d\x63\142\143", $key, 0, $iv); AXGkS: qpO3v: o3Gy6: return $decrypted_string; } function aplValidateIntegerValue($number, $min_value = 0, $max_value = INF) { $result = false; if (!(!is_float($number) && filter_var($number, FILTER_VALIDATE_INT, array("\157\160\164\151\157\156\x73" => array("\x6d\x69\x6e\x5f\162\x61\156\x67\x65" => $min_value, "\155\141\x78\137\x72\141\x6e\x67\145" => $max_value))) !== false)) { goto iZI8N; } $result = true; iZI8N: return $result; } function aplValidateRawDomain($url) { $result = false; if (empty($url)) { goto IbB2n; } if (preg_match("\57\x5e\x5b\141\x2d\172\60\55\71\x2d\x2e\135\x2b\x5c\x2e\x5b\141\x2d\172\x5c\x2e\135\173\62\54\x37\x7d\44\x2f", strtolower($url))) { goto EQGJn; } $result = false; goto zfr4U; EQGJn: $result = true; zfr4U: IbB2n: return $result; } function aplGetCurrentUrl($remove_last_slash = null) { $protocol = "\150\x74\164\x70"; $host = null; $script = null; $params = null; $current_url = null; if (!(isset($_SERVER["\x48\x54\124\120\123"]) && $_SERVER["\x48\124\x54\120\123"] !== "\x6f\x66\x66" || isset($_SERVER["\x48\124\124\120\137\130\x5f\106\x4f\x52\x57\101\122\104\x45\104\x5f\120\x52\117\124\x4f"]) && $_SERVER["\x48\x54\124\120\137\130\137\106\117\x52\x57\x41\122\x44\105\x44\137\x50\122\117\124\117"] == "\150\164\164\x70\x73")) { goto IzctO; } $protocol = "\150\x74\x74\160\x73"; IzctO: if (!isset($_SERVER["\110\x54\x54\x50\137\x48\x4f\123\x54"])) { goto FC5xH; } $host = $_SERVER["\110\124\x54\x50\137\x48\117\123\x54"]; FC5xH: if (!isset($_SERVER["\x53\x43\122\x49\x50\124\x5f\x4e\101\115\x45"])) { goto c1txh; } $script = $_SERVER["\x53\x43\x52\x49\x50\x54\x5f\116\101\115\105"]; c1txh: if (!isset($_SERVER["\x51\x55\105\122\x59\x5f\x53\x54\122\111\116\x47"])) { goto JEBMc; } $params = $_SERVER["\121\x55\105\122\x59\137\123\x54\122\x49\116\107"]; JEBMc: if (!(!empty($protocol) && !empty($host) && !empty($script))) { goto JEd2C; } $current_url = $protocol . "\72\x2f\57" . $host . $script; if (empty($params)) { goto VZD0G; } $current_url .= "\x3f" . $params; VZD0G: if (!($remove_last_slash == 1)) { goto IHOHE; } AuDHY: if (!(substr($current_url, -1) == "\57")) { goto d4Foo; } $current_url = substr($current_url, 0, -1); goto AuDHY; d4Foo: IHOHE: JEd2C: return $current_url; } function aplGetRawDomain($url) { $raw_domain = null; if (empty($url)) { goto CWRAq; } $url_array = parse_url($url); if (!empty($url_array["\x73\x63\x68\145\155\145"])) { goto tZQ84; } $url = "\x68\164\164\160\72\x2f\57" . $url; $url_array = parse_url($url); tZQ84: if (empty($url_array["\x68\157\x73\164"])) { goto jM1d9; } $raw_domain = $url_array["\x68\x6f\x73\x74"]; $raw_domain = trim(str_ireplace("\x77\167\x77\56", '', filter_var($raw_domain, FILTER_SANITIZE_URL))); jM1d9: CWRAq: return $raw_domain; } function aplGetRootUrl($url, $remove_scheme, $remove_www, $remove_path, $remove_last_slash) { if (!filter_var($url, FILTER_VALIDATE_URL)) { goto aKpiY; } $url_array = parse_url($url); $url = str_ireplace($url_array["\x73\x63\x68\145\x6d\x65"] . "\72\57\x2f", '', $url); if ($remove_path == 1) { goto GIT6Z; } $last_slash_position = strripos($url, "\57"); if (!($last_slash_position > 0)) { goto qSWf0; } $url = substr($url, 0, $last_slash_position + 1); qSWf0: goto z2ial; GIT6Z: $first_slash_position = stripos($url, "\57"); if (!($first_slash_position > 0)) { goto U7MHs; } $url = substr($url, 0, $first_slash_position + 1); U7MHs: z2ial: if (!($remove_scheme != 1)) { goto NiXO5; } $url = $url_array["\163\143\x68\145\155\x65"] . "\72\x2f\57" . $url; NiXO5: if (!($remove_www == 1)) { goto R5RQl; } $url = str_ireplace("\167\167\167\x2e", '', $url); R5RQl: if (!($remove_last_slash == 1)) { goto wHwZK; } oUoKv: if (!(substr($url, -1) == "\57")) { goto mm_vD; } $url = substr($url, 0, -1); goto oUoKv; mm_vD: wHwZK: aKpiY: return trim($url); } function aplCustomPost($url, $post_info = null, $refer = null) { $user_agent = "\x70\x68\x70\155\x69\x6c\154\x69\157\156\40\x63\125\x52\114"; $connect_timeout = 10; $server_response_array = array(); $formatted_headers_array = array(); if (!(filter_var($url, FILTER_VALIDATE_URL) && !empty($post_info))) { goto Slh74; } if (!(empty($refer) || !filter_var($refer, FILTER_VALIDATE_URL))) { goto R8PcX; } $refer = $url; R8PcX: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $connect_timeout); curl_setopt($ch, CURLOPT_TIMEOUT, $connect_timeout); curl_setopt($ch, CURLOPT_REFERER, $refer); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_info); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_MAXREDIRS, 10); curl_setopt($ch, CURLOPT_HEADERFUNCTION, function ($curl, $header) use(&$formatted_headers_array) { $len = strlen($header); $header = explode("\x3a", $header, 2); if (!(count($header) < 2)) { goto if1yK; } return $len; if1yK: $name = strtolower(trim($header[0])); $formatted_headers_array[$name] = trim($header[1]); return $len; }); $result = curl_exec($ch); $curl_error = curl_error($ch); curl_close($ch); $server_response_array["\150\x65\141\144\x65\x72\x73"] = $formatted_headers_array; $server_response_array["\x65\162\162\x6f\162"] = $curl_error; $server_response_array["\142\x6f\x64\x79"] = $result; Slh74: return $server_response_array; } function aplVerifyDateTime($datetime, $format) { $result = false; if (!(!empty($datetime) && !empty($format))) { goto xdk2s; } $datetime = DateTime::createFromFormat($format, $datetime); $errors = DateTime::getLastErrors(); if (!($datetime && empty($errors["\167\x61\162\156\x69\156\147\x5f\143\x6f\x75\x6e\164"]))) { goto jCEaV; } $result = true; jCEaV: xdk2s: return $result; } function aplGetDaysBetweenDates($date_from, $date_to) { $number_of_days = 0; if (!(aplVerifyDateTime($date_from, "\x59\x2d\x6d\55\x64") && aplVerifyDateTime($date_to, "\131\x2d\155\55\x64"))) { goto o2gvv; } $date_to = new DateTime($date_to); $date_from = new DateTime($date_from); $number_of_days = $date_from->diff($date_to)->format("\45\141"); o2gvv: return $number_of_days; } function aplParseXmlTags($content, $tag_name) { $parsed_value = null; if (!(!empty($content) && !empty($tag_name))) { goto SP8np; } preg_match_all("\57\x3c" . preg_quote($tag_name, "\57") . "\76\50\56\x2a\x3f\51\74\134\57" . preg_quote($tag_name, "\x2f") . "\x3e\57\x69\x6d\163", $content, $output_array, PREG_SET_ORDER); if (empty($output_array[0][1])) { goto iOpwC; } $parsed_value = trim($output_array[0][1]); iOpwC: SP8np: return $parsed_value; } function aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $product = Null) { $notifications_array = array(); if (!empty($content_array)) { goto ngQ57; } $notifications_array["\x6e\157\164\x69\146\151\x63\141\164\x69\x6f\156\137\x63\141\x73\145"] = "\x6e\x6f\164\151\x66\151\x63\x61\164\x69\x6f\x6e\x5f\156\x6f\x5f\143\157\156\x6e\145\x63\x74\151\x6f\x6e"; $notifications_array["\156\x6f\164\x69\x66\x69\143\141\x74\x69\157\156\x5f\164\x65\170\164"] = APL_NOTIFICATION_NO_CONNECTION; goto i1qx8; ngQ57: if (!empty($content_array["\150\145\141\144\x65\162\163"]["\156\x6f\164\x69\x66\151\x63\x61\164\x69\157\156\137\x73\x65\x72\166\x65\162\x5f\x73\151\147\156\141\164\165\162\145"]) && aplVerifyServerSignature($content_array["\150\x65\141\x64\x65\x72\163"]["\x6e\157\164\x69\146\x69\143\141\164\x69\157\156\137\163\x65\162\x76\x65\162\137\x73\151\147\156\141\164\x75\162\145"], $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $product)) { goto dUs3X; } $notifications_array["\156\x6f\x74\x69\x66\x69\143\x61\x74\x69\157\x6e\x5f\x63\x61\163\x65"] = "\156\157\164\x69\x66\x69\143\x61\x74\x69\157\x6e\137\x69\x6e\166\141\154\151\x64\x5f\162\x65\163\160\157\156\163\x65"; $notifications_array["\156\x6f\x74\x69\x66\151\x63\x61\x74\151\x6f\x6e\137\x74\145\170\x74"] = APL_NOTIFICATION_INVALID_RESPONSE; goto LGRn7; dUs3X: $notifications_array["\156\x6f\164\x69\x66\151\x63\x61\x74\x69\157\x6e\x5f\143\x61\163\145"] = $content_array["\150\145\141\144\x65\162\x73"]["\156\157\x74\151\146\151\x63\141\x74\x69\x6f\x6e\x5f\143\141\x73\145"]; $notifications_array["\156\157\164\x69\146\151\143\x61\x74\151\x6f\x6e\137\x74\145\170\164"] = $content_array["\150\x65\x61\x64\x65\x72\x73"]["\156\x6f\164\151\146\x69\x63\141\x74\151\157\156\137\164\145\170\x74"]; if (empty($content_array["\x68\x65\x61\x64\145\x72\163"]["\x6e\x6f\x74\151\x66\151\x63\x61\x74\x69\157\156\x5f\144\x61\x74\x61"])) { goto iW47I; } $notifications_array["\156\x6f\x74\151\146\x69\x63\141\164\151\157\x6e\x5f\x64\x61\x74\x61"] = json_decode($content_array["\150\x65\141\144\145\162\163"]["\x6e\157\x74\151\146\x69\x63\x61\x74\x69\157\156\x5f\144\141\x74\x61"], true); iW47I: LGRn7: i1qx8: return $notifications_array; } function aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $product = Null) { $script_signature = null; $root_ips_array = gethostbynamel(aplGetRawDomain(APL_ROOT_URL)); $product = $product == Null ? APL_PRODUCT_ID : $product; if (!(!empty($ROOT_URL) && isset($CLIENT_EMAIL) && isset($LICENSE_CODE) && !empty($root_ips_array))) { goto PhbST; } $script_signature = hash("\163\150\x61\x32\x35\66", gmdate("\131\x2d\155\x2d\x64") . $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE . $product . implode('', $root_ips_array)); PhbST: return $script_signature; } function aplVerifyServerSignature($notification_server_signature, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $product = Null) { $result = false; $root_ips_array = gethostbynamel(aplGetRawDomain(APL_ROOT_URL)); $product = $product == Null ? APL_PRODUCT_ID : $product; if (!(!empty($notification_server_signature) && !empty($ROOT_URL) && isset($CLIENT_EMAIL) && isset($LICENSE_CODE) && !empty($root_ips_array))) { goto caRA0; } if (!(hash("\163\x68\x61\62\x35\66", implode('', $root_ips_array) . $product . $LICENSE_CODE . $CLIENT_EMAIL . $ROOT_URL . gmdate("\x59\55\155\55\x64")) == $notification_server_signature)) { goto MVnVp; } $result = true; MVnVp: caRA0: return $result; } function aplCheckSettings() { $notifications_array = array(); if (!(empty(APL_SALT) || APL_SALT == "\163\157\155\x65\x5f\162\x61\x6e\144\157\155\x5f\164\x65\170\164")) { goto A00jz; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_SALT; A00jz: if (!(!filter_var(APL_ROOT_URL, FILTER_VALIDATE_URL) || !ctype_alnum(substr(APL_ROOT_URL, -1)))) { goto Rj570; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_ROOT_URL; Rj570: if (filter_var(APL_PRODUCT_ID, FILTER_VALIDATE_INT)) { goto pi01C; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_PRODUCT_ID; pi01C: if (aplValidateIntegerValue(APL_DAYS, 1, 365)) { goto aYQw7; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_VERIFICATION_PERIOD; aYQw7: if (!(APL_STORAGE != "\x44\x41\x54\x41\102\x41\123\105" && APL_STORAGE != "\106\111\x4c\x45")) { goto lr92V; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_STORAGE; lr92V: if (!(APL_STORAGE == "\x44\x41\x54\x41\102\x41\x53\105" && !ctype_alnum(str_ireplace(array("\x5f"), '', APL_DATABASE_TABLE)))) { goto uQz0y; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_TABLE; uQz0y: if (!(APL_STORAGE == "\106\x49\114\105" && !@is_writable(APL_DIRECTORY . "\x2f" . APL_LICENSE_FILE_LOCATION))) { goto kWlQc; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_LICENSE_FILE; kWlQc: if (!(!empty(APL_ROOT_IP) && !filter_var(APL_ROOT_IP, FILTER_VALIDATE_IP))) { goto EOyWS; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_ROOT_IP; EOyWS: if (!(!empty(APL_ROOT_IP) && !in_array(APL_ROOT_IP, gethostbynamel(aplGetRawDomain(APL_ROOT_URL))))) { goto YTfDl; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_DNS; YTfDl: if (!(defined("\101\120\114\x5f\x52\117\117\124\137\116\x41\115\105\x53\x45\x52\x56\x45\x52\x53") && !empty(APL_ROOT_NAMESERVERS))) { goto jMcyU; } foreach (APL_ROOT_NAMESERVERS as $nameserver) { if (aplValidateRawDomain($nameserver)) { goto goGTv; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_ROOT_NAMESERVERS; goto hZsGl; goGTv: zsLRa: } hZsGl: jMcyU: if (!(defined("\x41\120\x4c\137\122\117\117\124\x5f\116\101\115\105\123\x45\122\x56\105\122\123") && !empty(APL_ROOT_NAMESERVERS))) { goto g9Bs3; } $apl_root_nameservers_array = APL_ROOT_NAMESERVERS; $fetched_nameservers_array = array(); $dns_records_array = dns_get_record(aplGetRawDomain(APL_ROOT_URL), DNS_NS); foreach ($dns_records_array as $record) { $fetched_nameservers_array[] = $record["\x74\x61\x72\147\145\164"]; P2EPo: } Ec6E1: $apl_root_nameservers_array = array_map("\x73\x74\x72\x74\157\x6c\x6f\x77\x65\162", $apl_root_nameservers_array); $fetched_nameservers_array = array_map("\163\164\162\164\157\154\157\x77\x65\162", $fetched_nameservers_array); sort($apl_root_nameservers_array); sort($fetched_nameservers_array); if (!($apl_root_nameservers_array != $fetched_nameservers_array)) { goto g3TfK; } $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_DNS; g3TfK: g9Bs3: return $notifications_array; } 

Function Calls

None

Variables

None

Stats

MD5 1251ca7a025aa122fb5f6071f942cc9a
Eval Count 0
Decode Time 53 ms