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

Signing you up...

Thank you for signing up!

PHP Decode

function preparePackageInstallation($installable) { $notifications_array = array(); ..

Decoded Output download

<?  function preparePackageInstallation($installable) 
{ 
    $notifications_array = array(); 
    $apl_core_notifications = aplCheckSettings(); 
    if (!empty($apl_core_notifications)) { 
        goto W4nHY; 
    } 
    $MYSQLI_LINK = getMysqliConnection(); 
    $core_license = aplGetLicenseData($MYSQLI_LINK); 
    if (!(empty($core_license) || !is_array($core_license))) { 
        goto rm0IT; 
    } 
    throw new \Exception("Core script license " . "validation" . " failed! Please contact" . " support for help."); 
    rm0IT: 
    $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 XkdB7; 
    } 
    if (empty($notifications_array["notification_text"])) { 
        goto hb8X3; 
    } 
    throw new \Exception("License " . "validation" . " failed! " . $notifications_array["notification_text"]); 
    hb8X3: 
    goto O7bkd; 
    XkdB7: 
    $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 doUx3; 
    } 
    return ["installation_key" => $INSTALLATION_KEY, "installation_hash" => $INSTALLATION_HASH, "lcd" => $LCD, "lrd" => $LRD]; 
    doUx3: O7bkd: W4nHY: 
    throw new \Exception("License " . "validation" . " failed! Please contact" . " support for help."); 
} ?>

Did this file decode correctly?

Original Code

function preparePackageInstallation($installable)
{
    $notifications_array = array();
    $apl_core_notifications = aplCheckSettings();
    if (!empty($apl_core_notifications)) {
        goto W4nHY;
    }
    $MYSQLI_LINK = getMysqliConnection();
    $core_license = aplGetLicenseData($MYSQLI_LINK);
    if (!(empty($core_license) || !is_array($core_license))) {
        goto rm0IT;
    }
    throw new \Exception("\x43\x6f\x72\145\x20\x73\143\162\x69\x70\x74\x20\x6c\151\x63\x65\x6e\x73\x65\x20" . "\166\141\x6c\151\144\x61\x74\x69\157\x6e" . "\x20\146\141\151\x6c\145\144\41\40\x50\154\145\141\163\145\x20\x63\x6f\x6e\x74\x61\x63\164" . "\x20\x73\x75\x70\160\157\x72\164\x20\146\157\162\40\x68\145\154\x70\x2e");
    rm0IT:
    $CLIENT_EMAIL = $core_license["\x43\114\111\105\116\x54\x5f\x45\115\x41\111\114"];
    $LICENSE_CODE = $installable["\x6c\x69\x63\x65\x6e\x73\145\x5f\153\145\171"];
    $ROOT_URL = config("\x61\x70\x70\56\165\x72\x6c");
    $INSTALLATION_HASH = hash("\163\x68\141\x32\x35\x36", $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE);
    $post_info = "\x70\x72\x6f\x64\165\143\164\x5f\x69\x64\x3d" . rawurlencode($installable["\x69\144"]) . "\46\x63\154\x69\145\x6e\164\137\x65\x6d\141\x69\x6c\x3d" . rawurlencode($CLIENT_EMAIL) . "\46\154\x69\143\145\x6e\163\x65\137\143\157\x64\145\x3d" . rawurlencode($LICENSE_CODE) . "\46\x72\157\157\164\x5f\x75\162\x6c\x3d" . rawurlencode($ROOT_URL) . "\x26\x69\x6e\x73\164\141\x6c\154\x61\164\151\x6f\x6e\x5f\x68\x61\163\x68\75" . rawurlencode($INSTALLATION_HASH) . "\46\154\151\143\145\x6e\x73\145\x5f\163\151\x67\x6e\141\x74\165\x72\145\x3d" . rawurlencode(aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $installable["\151\x64"]));
    $content_array = aplCustomPost(APL_ROOT_URL . "\x2f\x61\x70\x6c\x5f\143\141\154\154\x62\x61\143\153\x73\x2f\x6c\x69\143\145\x6e\163\x65\137\151\156\x73\164\x61\154\154\x2e\160\x68\x70", $post_info, $ROOT_URL);
    $notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $installable["\x69\x64"]);
    if ($notifications_array["\x6e\157\x74\151\x66\151\x63\x61\164\151\x6f\156\x5f\143\x61\163\145"] == "\156\157\x74\x69\x66\x69\143\x61\164\151\157\x6e\137\x6c\x69\x63\x65\156\163\145\x5f\x6f\x6b") {
        goto XkdB7;
    }
    if (empty($notifications_array["\156\x6f\164\x69\146\151\143\x61\164\x69\157\x6e\x5f\164\145\170\x74"])) {
        goto hb8X3;
    }
    throw new \Exception("\x4c\151\143\145\x6e\163\145\40" . "\x76\x61\154\x69\x64\x61\x74\151\x6f\x6e" . "\x20\146\141\x69\154\145\144\41\x20" . $notifications_array["\156\x6f\x74\151\x66\151\x63\x61\164\151\157\x6e\x5f\164\145\x78\164"]);
    hb8X3:
    goto O7bkd;
    XkdB7:
    $INSTALLATION_KEY = aplCustomEncrypt(password_hash(date("\131\x2d\155\55\144"), PASSWORD_DEFAULT), APL_SALT . $ROOT_URL);
    $LCD = aplCustomEncrypt(date("\131\55\x6d\x2d\144", strtotime("\x2d" . APL_DAYS . "\40\x64\x61\171\163")), APL_SALT . $INSTALLATION_KEY);
    $LRD = aplCustomEncrypt(date("\131\x2d\155\x2d\144"), APL_SALT . $INSTALLATION_KEY);
    $content_array = aplCustomPost(APL_ROOT_URL . "\57\141\x70\154\137\143\x61\x6c\154\x62\x61\143\153\163\x2f\154\x69\x63\145\156\x73\x65\x5f\163\x63\150\145\x6d\x65\56\x70\150\x70", $post_info, $ROOT_URL);
    $notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $installable["\x69\144"]);
    if (!(!empty($notifications_array["\x6e\157\164\151\146\x69\x63\141\x74\x69\x6f\156\x5f\x64\x61\164\141"]) && !empty($notifications_array["\156\157\x74\151\x66\151\143\141\x74\x69\157\x6e\x5f\x64\141\164\x61"]["\163\143\150\145\x6d\145\137\x71\x75\x65\x72\171"]))) {
        goto doUx3;
    }
    return ["\151\x6e\x73\x74\141\154\154\x61\164\x69\157\156\137\x6b\145\171" => $INSTALLATION_KEY, "\x69\156\x73\x74\141\154\x6c\x61\x74\x69\x6f\x6e\x5f\x68\141\163\150" => $INSTALLATION_HASH, "\x6c\143\144" => $LCD, "\x6c\162\144" => $LRD];
    doUx3: O7bkd: W4nHY:
    throw new \Exception("\114\x69\143\145\156\x73\145\40" . "\x76\x61\x6c\x69\x64\141\164\x69\x6f\156" . "\40\146\141\151\x6c\145\x64\41\40\120\x6c\145\141\163\x65\x20\x63\157\x6e\x74\x61\143\x74" . "\40\x73\x75\160\160\157\x72\164\x20\x66\157\162\40\150\145\x6c\x70\x2e");
}

Function Calls

None

Variables

None

Stats

MD5 d36177a3e22e15db8c04670a7470277a
Eval Count 0
Decode Time 50 ms