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 aplVerifyEnvatoPurchase($LICENSE_CODE = null) { $notifications_array = array(..

Decoded Output download

<?  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 oFgJ8; 
  } 
  $notifications_array["notification_case"] = "notification_no_connection"; 
  $notifications_array["notification_text"] = APL_NOTIFICATION_NO_CONNECTION; 
  goto Mn1rm; 
  oFgJ8: 
  if (!($content_array["body"] != "<verify_envato_purchase>OK</verify_envato_purchase>")) { 
    goto wQVXW; 
  } 
  $notifications_array["notification_case"] = "notification_invalid_response"; 
  $notifications_array["notification_text"] = APL_NOTIFICATION_INVALID_RESPONSE; 
  wQVXW: 
  Mn1rm: 
  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 S1v2G; 
  } 
  $notifications_array["notification_case"] = "notification_script_corrupted"; 
  $notifications_array["notification_text"] = implode("; ", $apl_core_notifications); 
  goto yWKPc; 
  S1v2G: 
  if (!empty(aplGetLicenseData($MYSQLI_LINK)) && is_array(aplGetLicenseData($MYSQLI_LINK))) { 
    goto YwrmE; 
  } 
  $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 X2_5f; 
  } 
  $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 QJXyD; 
  } 
  $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 U0FR4; 
  } 
  $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)); 
  U0FR4: 
  QJXyD: 
  if (!(APL_STORAGE == "FILE")) { 
    goto X1on_; 
  } 
  $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 KZ9KG; 
  } 
  echo APL_NOTIFICATION_LICENSE_FILE_WRITE_ERROR; 
  exit; 
  KZ9KG: 
  @fclose($handle); 
  X1on_: 
  X2_5f: 
  goto Hk7vN; 
  YwrmE: 
  $notifications_array["notification_case"] = "notification_already_installed"; 
  $notifications_array["notification_text"] = APL_NOTIFICATION_SCRIPT_ALREADY_INSTALLED; 
  Hk7vN: 
  yWKPc: 
  return $notifications_array; 
} 
function preparePackageInstallation($installable) 
{ 
  $notifications_array = array(); 
  $apl_core_notifications = aplCheckSettings(); 
  if (!empty($apl_core_notifications)) { 
    goto RBXPG; 
  } 
  $MYSQLI_LINK = getMysqliConnection(); 
  $core_license = aplGetLicenseData($MYSQLI_LINK); 
  if (!(empty($core_license) || !is_array($core_license))) { 
    goto v3hSx; 
  } 
  throw new \Exception("Core script license " . "validation" . " failed! Please contact" . " support for help."); 
  v3hSx: 
  $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 UkffT; 
  } 
  if (empty($notifications_array["notification_text"])) { 
    goto mivgu; 
  } 
  throw new \Exception("License " . "validation" . " failed! " . $notifications_array["notification_text"]); 
  mivgu: 
  goto MOiL2; 
  UkffT: 
  $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 BTAa3; 
  } 
  return ["installation_key" => $INSTALLATION_KEY, "installation_hash" => $INSTALLATION_HASH, "lcd" => $LCD, "lrd" => $LRD]; 
  BTAa3: 
  MOiL2: 
  RBXPG: 
  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 nd3m8; 
  } 
  $notifications_array["notification_case"] = "notification_script_corrupted"; 
  $notifications_array["notification_text"] = implode("; ", $apl_core_notifications); 
  goto dwffm; 
  nd3m8: 
  if (aplCheckData($MYSQLI_LINK)) { 
    goto MiOzq; 
  } 
  $notifications_array["notification_case"] = "notification_license_corrupted"; 
  $notifications_array["notification_text"] = APL_NOTIFICATION_LICENSE_CORRUPTED; 
  goto PH7h3; 
  MiOzq: 
  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 RvBed; 
  } 
  $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 WWXdm; 
  } 
  $update_lcd_value = 1; 
  WWXdm: 
  if (!($notifications_array["notification_case"] == "notification_license_cancelled" && APL_DELETE_CANCELLED == "YES")) { 
    goto nlNwv; 
  } 
  aplDeleteData($MYSQLI_LINK); 
  nlNwv: 
  goto JxvST; 
  RvBed: 
  $notifications_array["notification_case"] = "notification_license_ok"; 
  $notifications_array["notification_text"] = APL_NOTIFICATION_BYPASS_VERIFICATION; 
  JxvST: 
  if (!(aplCustomDecrypt($LRD, APL_SALT . $INSTALLATION_KEY) < date("Y-m-d"))) { 
    goto l26qN; 
  } 
  $update_lrd_value = 1; 
  l26qN: 
  if (!($update_lrd_value == 1 || $update_lcd_value == 1)) { 
    goto tNbQZ; 
  } 
  if ($update_lcd_value == 1) { 
    goto GIJmE; 
  } 
  $LCD = aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY); 
  goto KhRaL; 
  GIJmE: 
  $LCD = date("Y-m-d"); 
  KhRaL: 
  $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 T9fgM; 
  } 
  $stmt = mysqli_prepare($MYSQLI_LINK, "UPDATE " . APL_DATABASE_TABLE . " SET LCD=?, LRD=?, INSTALLATION_KEY=?"); 
  if (!$stmt) { 
    goto z5Eyd; 
  } 
  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 zf36s; 
  } 
  $updated_records = $updated_records + $affected_rows; 
  zf36s: 
  mysqli_stmt_close($stmt); 
  z5Eyd: 
  if (!($updated_records < 1)) { 
    goto gzJ1m; 
  } 
  echo APL_NOTIFICATION_DATABASE_WRITE_ERROR; 
  exit; 
  gzJ1m: 
  T9fgM: 
  if (!(APL_STORAGE == "FILE")) { 
    goto R5MG3; 
  } 
  $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 yyzGB; 
  } 
  echo APL_NOTIFICATION_LICENSE_FILE_WRITE_ERROR; 
  exit; 
  yyzGB: 
  @fclose($handle); 
  R5MG3: 
  tNbQZ: 
  PH7h3: 
  dwffm: 
  if (!($notifications_array["notification_case"] != "notification_license_ok")) { 
    goto OSPpT; 
  } 
  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; 
  OSPpT: 
  return $notifications_array; 
} ?>

Did this file decode correctly?

Original Code

function aplVerifyEnvatoPurchase($LICENSE_CODE = null)
{
  $notifications_array = array();
  $content_array = aplCustomPost(APL_ROOT_URL . "\x2f\141\x70\x6c\x5f\x63\141\x6c\154\x62\x61\x63\153\x73\57\166\x65\162\x69\146\171\x5f\x65\x6e\x76\141\x74\157\x5f\x70\165\162\x63\x68\141\163\x65\56\160\150\160", "\160\x72\157\x64\x75\x63\164\137\x69\x64\75" . rawurlencode(APL_PRODUCT_ID) . "\x26\x6c\x69\143\145\x6e\x73\x65\x5f\143\x6f\x64\x65\x3d" . rawurlencode($LICENSE_CODE) . "\x26\x63\x6f\x6e\156\x65\x63\x74\151\157\156\137\x68\141\163\x68\75" . rawurlencode(hash("\163\150\x61\62\x35\66", "\x76\x65\162\x69\146\x79\137\x65\156\x76\x61\164\x6f\137\x70\x75\x72\143\x68\x61\x73\145")));
  if (!empty($content_array)) {
    goto oFgJ8;
  }
  $notifications_array["\156\157\x74\x69\146\151\x63\x61\x74\151\x6f\x6e\x5f\143\141\x73\145"] = "\156\157\x74\151\146\x69\143\141\164\151\x6f\156\137\156\x6f\137\143\157\156\x6e\145\x63\164\151\x6f\156";
  $notifications_array["\156\x6f\x74\x69\x66\x69\x63\x61\164\x69\157\156\x5f\x74\x65\x78\x74"] = APL_NOTIFICATION_NO_CONNECTION;
  goto Mn1rm;
  oFgJ8:
  if (!($content_array["\x62\157\x64\171"] != "\74\166\x65\162\151\x66\x79\137\145\156\166\141\x74\x6f\137\160\x75\162\143\x68\x61\x73\x65\76\117\113\x3c\57\x76\x65\x72\x69\146\x79\x5f\x65\156\166\x61\x74\157\x5f\x70\x75\162\143\150\x61\x73\145\76")) {
    goto wQVXW;
  }
  $notifications_array["\x6e\157\x74\151\146\x69\143\x61\x74\x69\157\156\137\143\x61\x73\145"] = "\x6e\x6f\164\151\146\x69\x63\x61\x74\151\x6f\x6e\137\x69\156\166\x61\x6c\151\144\x5f\x72\x65\163\x70\x6f\x6e\x73\145";
  $notifications_array["\156\157\164\x69\x66\x69\143\x61\x74\151\157\156\137\x74\x65\170\164"] = APL_NOTIFICATION_INVALID_RESPONSE;
  wQVXW:
  Mn1rm:
  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 S1v2G;
  }
  $notifications_array["\156\157\x74\x69\x66\151\143\x61\164\151\157\156\x5f\143\x61\x73\145"] = "\156\157\164\x69\146\151\143\141\x74\x69\157\x6e\137\163\x63\x72\x69\x70\164\x5f\x63\157\162\x72\165\x70\164\x65\144";
  $notifications_array["\156\x6f\164\151\146\x69\143\141\164\151\157\156\x5f\x74\x65\x78\x74"] = implode("\x3b\40", $apl_core_notifications);
  goto yWKPc;
  S1v2G:
  if (!empty(aplGetLicenseData($MYSQLI_LINK)) && is_array(aplGetLicenseData($MYSQLI_LINK))) {
    goto YwrmE;
  }
  $INSTALLATION_HASH = hash("\163\x68\x61\62\65\66", $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE);
  $post_info = "\x70\x72\x6f\144\165\143\164\x5f\x69\144\x3d" . rawurlencode(APL_PRODUCT_ID) . "\x26\143\x6c\x69\x65\156\164\137\x65\155\141\151\x6c\75" . rawurlencode($CLIENT_EMAIL) . "\46\x6c\151\143\x65\156\163\x65\137\143\x6f\144\x65\x3d" . rawurlencode($LICENSE_CODE) . "\x26\x72\157\x6f\164\137\165\162\154\75" . rawurlencode($ROOT_URL) . "\x26\x69\156\163\164\141\154\x6c\141\x74\151\x6f\156\x5f\150\141\163\x68\75" . rawurlencode($INSTALLATION_HASH) . "\46\154\151\x63\x65\x6e\x73\x65\x5f\163\x69\147\156\x61\164\165\x72\x65\75" . rawurlencode(aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE));
  $content_array = aplCustomPost(APL_ROOT_URL . "\x2f\x61\x70\x6c\137\x63\x61\x6c\x6c\142\141\143\153\163\x2f\x6c\151\143\x65\x6e\x73\x65\x5f\x69\156\x73\164\141\x6c\x6c\56\x70\x68\160", $post_info, $ROOT_URL);
  $notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE);
  if (!($notifications_array["\156\157\x74\151\x66\x69\143\141\164\151\x6f\x6e\x5f\143\141\163\x65"] == "\x6e\x6f\164\x69\x66\x69\143\141\164\151\x6f\x6e\137\154\x69\x63\145\x6e\x73\145\137\x6f\x6b")) {
    goto X2_5f;
  }
  $INSTALLATION_KEY = aplCustomEncrypt(password_hash(date("\x59\x2d\x6d\55\x64"), PASSWORD_DEFAULT), APL_SALT . $ROOT_URL);
  $LCD = aplCustomEncrypt(date("\131\x2d\x6d\x2d\144", strtotime("\x2d" . APL_DAYS . "\x20\144\x61\x79\163")), APL_SALT . $INSTALLATION_KEY);
  $LRD = aplCustomEncrypt(date("\x59\x2d\155\55\x64"), APL_SALT . $INSTALLATION_KEY);
  if (!(APL_STORAGE == "\x44\101\x54\x41\102\x41\123\x45")) {
    goto QJXyD;
  }
  $content_array = aplCustomPost(APL_ROOT_URL . "\x2f\141\x70\154\137\x63\x61\154\x6c\x62\x61\143\x6b\163\57\x6c\x69\143\145\156\x73\x65\x5f\163\143\150\x65\155\145\x2e\x70\x68\160", $post_info, $ROOT_URL);
  $notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE);
  if (!(!empty($notifications_array["\x6e\x6f\164\151\x66\x69\143\x61\x74\151\x6f\156\137\144\x61\164\141"]) && !empty($notifications_array["\156\x6f\164\151\x66\x69\143\141\x74\151\157\156\x5f\144\x61\164\141"]["\x73\x63\x68\x65\x6d\x65\x5f\x71\165\x65\162\x79"]))) {
    goto U0FR4;
  }
  $mysql_bad_array = array("\45\101\120\x4c\137\104\101\124\x41\102\x41\123\x45\137\x54\x41\102\114\x45\x25", "\x25\122\117\x4f\124\x5f\x55\x52\114\x25", "\x25\103\114\x49\105\x4e\x54\137\105\x4d\101\x49\114\45", "\45\x4c\111\103\x45\x4e\x53\105\137\x43\117\104\x45\x25", "\x25\114\103\104\x25", "\x25\114\x52\104\45", "\45\111\116\123\124\x41\114\x4c\x41\x54\111\x4f\116\x5f\113\x45\131\x25", "\x25\x49\x4e\x53\124\x41\114\114\101\x54\x49\117\116\x5f\x48\x41\x53\110\x25");
  $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\x66\x69\x63\x61\x74\x69\157\x6e\x5f\x64\141\x74\141"]["\x73\143\150\145\x6d\x65\x5f\x71\x75\145\x72\x79"]);
  mysqli_multi_query($MYSQLI_LINK, $license_scheme) or die(mysqli_error($MYSQLI_LINK));
  U0FR4:
  QJXyD:
  if (!(APL_STORAGE == "\x46\111\114\105")) {
    goto X1on_;
  }
  $handle = @fopen(APL_DIRECTORY . "\x2f" . APL_LICENSE_FILE_LOCATION, "\167\x2b");
  $fwrite = @fwrite($handle, "\x3c\122\x4f\117\x54\x5f\125\x52\114\x3e{$ROOT_URL}\74\x2f\122\x4f\117\124\137\125\x52\x4c\76\74\x43\114\111\x45\116\x54\137\x45\115\x41\x49\114\x3e{$CLIENT_EMAIL}\x3c\57\x43\114\x49\105\x4e\x54\x5f\x45\115\x41\x49\114\76\74\114\111\x43\105\116\x53\x45\137\103\x4f\104\105\76{$LICENSE_CODE}\74\x2f\x4c\111\103\105\116\x53\105\x5f\103\117\104\105\76\x3c\114\103\x44\x3e{$LCD}\74\x2f\114\103\104\x3e\74\114\122\x44\76{$LRD}\x3c\x2f\x4c\x52\104\76\x3c\x49\116\123\124\x41\x4c\114\101\124\111\117\116\137\113\105\x59\76{$INSTALLATION_KEY}\x3c\x2f\111\116\123\x54\x41\x4c\x4c\101\x54\x49\x4f\x4e\137\113\105\x59\76\74\111\116\x53\124\101\x4c\x4c\101\x54\111\117\x4e\137\110\x41\123\x48\x3e{$INSTALLATION_HASH}\x3c\x2f\x49\116\x53\x54\x41\x4c\x4c\101\124\111\x4f\x4e\137\x48\101\x53\110\76");
  if (!($fwrite === false)) {
    goto KZ9KG;
  }
  echo APL_NOTIFICATION_LICENSE_FILE_WRITE_ERROR;
  exit;
  KZ9KG:
  @fclose($handle);
  X1on_:
  X2_5f:
  goto Hk7vN;
  YwrmE:
  $notifications_array["\156\x6f\x74\151\x66\x69\143\141\x74\x69\157\156\137\x63\x61\x73\145"] = "\156\x6f\x74\151\146\151\143\141\x74\x69\157\156\x5f\141\x6c\162\x65\141\x64\x79\x5f\151\156\x73\x74\x61\x6c\154\145\144";
  $notifications_array["\156\157\x74\151\x66\x69\x63\141\164\x69\157\x6e\x5f\x74\x65\170\x74"] = APL_NOTIFICATION_SCRIPT_ALREADY_INSTALLED;
  Hk7vN:
  yWKPc:
  return $notifications_array;
}
function preparePackageInstallation($installable)
{
  $notifications_array = array();
  $apl_core_notifications = aplCheckSettings();
  if (!empty($apl_core_notifications)) {
    goto RBXPG;
  }
  $MYSQLI_LINK = getMysqliConnection();
  $core_license = aplGetLicenseData($MYSQLI_LINK);
  if (!(empty($core_license) || !is_array($core_license))) {
    goto v3hSx;
  }
  throw new \Exception("\x43\x6f\x72\145\x20\163\x63\162\x69\160\x74\x20\154\x69\x63\145\x6e\x73\145\x20" . "\x76\141\x6c\151\x64\141\x74\x69\x6f\156" . "\x20\146\x61\x69\154\145\x64\x21\40\120\x6c\x65\x61\x73\x65\40\143\x6f\156\164\x61\x63\164" . "\40\x73\165\x70\160\157\162\164\40\146\x6f\x72\x20\150\x65\154\160\x2e");
  v3hSx:
  $CLIENT_EMAIL = $core_license["\x43\114\x49\105\x4e\124\137\105\115\101\111\x4c"];
  $LICENSE_CODE = $installable["\x6c\151\x63\145\156\163\x65\137\153\145\171"];
  $ROOT_URL = config("\x61\x70\160\56\165\162\154");
  $INSTALLATION_HASH = hash("\163\x68\x61\62\65\66", $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE);
  $post_info = "\160\x72\157\144\x75\x63\164\x5f\x69\144\x3d" . rawurlencode($installable["\x69\144"]) . "\x26\x63\x6c\151\145\x6e\x74\137\x65\155\141\151\154\x3d" . rawurlencode($CLIENT_EMAIL) . "\46\x6c\x69\x63\x65\x6e\163\145\x5f\x63\157\x64\145\75" . rawurlencode($LICENSE_CODE) . "\46\x72\x6f\x6f\x74\137\165\162\154\75" . rawurlencode($ROOT_URL) . "\46\x69\156\163\164\x61\154\x6c\141\164\151\x6f\x6e\x5f\150\x61\163\x68\x3d" . rawurlencode($INSTALLATION_HASH) . "\46\x6c\151\x63\x65\x6e\x73\x65\x5f\163\x69\x67\x6e\141\164\165\x72\145\x3d" . rawurlencode(aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $installable["\151\x64"]));
  $content_array = aplCustomPost(APL_ROOT_URL . "\57\141\160\154\137\x63\x61\154\154\x62\x61\x63\153\163\x2f\x6c\151\143\x65\156\x73\x65\x5f\151\x6e\163\x74\x61\x6c\x6c\x2e\x70\x68\x70", $post_info, $ROOT_URL);
  $notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $installable["\x69\144"]);
  if ($notifications_array["\156\x6f\164\x69\146\151\x63\141\164\151\x6f\156\137\x63\x61\x73\145"] == "\x6e\157\164\x69\146\151\x63\141\x74\x69\157\156\137\x6c\x69\143\x65\156\x73\x65\137\x6f\153") {
    goto UkffT;
  }
  if (empty($notifications_array["\x6e\x6f\164\151\x66\151\x63\141\164\x69\x6f\x6e\137\x74\145\x78\x74"])) {
    goto mivgu;
  }
  throw new \Exception("\114\x69\143\x65\156\x73\145\40" . "\x76\141\x6c\151\x64\141\x74\x69\157\x6e" . "\40\x66\141\151\154\145\144\41\x20" . $notifications_array["\156\157\x74\x69\x66\151\x63\x61\164\x69\x6f\156\x5f\x74\145\x78\x74"]);
  mivgu:
  goto MOiL2;
  UkffT:
  $INSTALLATION_KEY = aplCustomEncrypt(password_hash(date("\x59\x2d\155\55\x64"), PASSWORD_DEFAULT), APL_SALT . $ROOT_URL);
  $LCD = aplCustomEncrypt(date("\131\x2d\155\x2d\144", strtotime("\55" . APL_DAYS . "\40\144\x61\171\x73")), APL_SALT . $INSTALLATION_KEY);
  $LRD = aplCustomEncrypt(date("\x59\55\x6d\x2d\144"), APL_SALT . $INSTALLATION_KEY);
  $content_array = aplCustomPost(APL_ROOT_URL . "\57\x61\160\x6c\x5f\143\141\154\154\x62\x61\143\153\x73\x2f\154\x69\x63\x65\156\163\145\137\x73\143\x68\145\x6d\x65\56\x70\150\160", $post_info, $ROOT_URL);
  $notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE, $installable["\x69\x64"]);
  if (!(!empty($notifications_array["\156\157\x74\151\x66\151\143\x61\x74\151\157\x6e\x5f\144\141\164\141"]) && !empty($notifications_array["\156\157\x74\x69\146\x69\x63\141\164\151\x6f\x6e\x5f\x64\x61\x74\x61"]["\163\x63\x68\145\155\x65\137\161\x75\145\x72\171"]))) {
    goto BTAa3;
  }
  return ["\151\156\x73\x74\x61\154\154\141\x74\x69\157\x6e\x5f\x6b\145\171" => $INSTALLATION_KEY, "\151\156\x73\x74\141\x6c\154\141\x74\151\157\156\x5f\x68\x61\163\x68" => $INSTALLATION_HASH, "\x6c\x63\144" => $LCD, "\154\x72\144" => $LRD];
  BTAa3:
  MOiL2:
  RBXPG:
  throw new \Exception("\114\151\x63\145\x6e\x73\x65\x20" . "\166\141\x6c\x69\144\x61\164\x69\157\x6e" . "\40\146\x61\151\x6c\145\144\x21\40\x50\154\145\x61\163\x65\x20\x63\157\x6e\164\141\x63\x74" . "\40\163\165\160\160\157\162\x74\40\x66\x6f\x72\40\x68\145\x6c\160\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 nd3m8;
  }
  $notifications_array["\156\157\164\151\x66\151\x63\x61\x74\x69\x6f\156\x5f\x63\141\x73\145"] = "\156\x6f\164\x69\x66\151\x63\x61\x74\x69\157\156\137\163\143\x72\x69\x70\164\137\143\x6f\162\162\165\x70\164\x65\x64";
  $notifications_array["\156\x6f\x74\x69\x66\x69\143\x61\164\151\157\x6e\x5f\164\x65\170\x74"] = implode("\x3b\40", $apl_core_notifications);
  goto dwffm;
  nd3m8:
  if (aplCheckData($MYSQLI_LINK)) {
    goto MiOzq;
  }
  $notifications_array["\x6e\x6f\164\x69\x66\151\x63\141\164\x69\157\x6e\137\x63\141\163\x65"] = "\x6e\157\x74\151\x66\151\x63\x61\x74\151\x6f\x6e\137\154\151\x63\145\x6e\163\x65\x5f\x63\157\x72\x72\x75\160\164\x65\144";
  $notifications_array["\x6e\x6f\x74\x69\146\151\143\141\164\x69\157\x6e\x5f\x74\145\170\x74"] = APL_NOTIFICATION_LICENSE_CORRUPTED;
  goto PH7h3;
  MiOzq:
  extract(aplGetLicenseData($MYSQLI_LINK));
  if (aplGetDaysBetweenDates(aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY), date("\131\x2d\x6d\55\144")) < APL_DAYS && aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY) <= date("\131\55\155\x2d\x64") && aplCustomDecrypt($LRD, APL_SALT . $INSTALLATION_KEY) <= date("\x59\x2d\155\55\x64") && $FORCE_VERIFICATION === 0) {
    goto RvBed;
  }
  $post_info = "\x70\x72\x6f\144\165\143\x74\137\151\x64\75" . rawurlencode(APL_PRODUCT_ID) . "\x26\x63\x6c\x69\145\156\164\137\145\155\x61\151\x6c\x3d" . rawurlencode($CLIENT_EMAIL) . "\x26\154\x69\143\145\x6e\163\x65\137\x63\x6f\144\145\75" . rawurlencode($LICENSE_CODE) . "\46\x72\x6f\x6f\164\x5f\x75\162\154\75" . rawurlencode($ROOT_URL) . "\46\151\156\x73\164\141\x6c\154\x61\164\151\157\156\137\150\141\x73\x68\75" . rawurlencode($INSTALLATION_HASH) . "\x26\154\x69\x63\145\x6e\163\x65\x5f\x73\151\147\156\141\164\165\162\x65\x3d" . rawurlencode(aplGenerateScriptSignature($ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE));
  $content_array = aplCustomPost(APL_ROOT_URL . "\57\141\x70\154\137\x63\x61\154\x6c\142\141\x63\x6b\163\x2f\154\x69\x63\x65\156\163\145\137\166\x65\162\x69\146\171\56\160\150\x70", $post_info, $ROOT_URL);
  $notifications_array = aplParseServerNotifications($content_array, $ROOT_URL, $CLIENT_EMAIL, $LICENSE_CODE);
  if (!($notifications_array["\x6e\x6f\x74\151\x66\x69\x63\141\x74\151\157\x6e\x5f\x63\141\x73\x65"] == "\x6e\x6f\x74\151\x66\x69\143\x61\164\151\157\x6e\x5f\x6c\151\x63\x65\x6e\163\x65\x5f\157\x6b")) {
    goto WWXdm;
  }
  $update_lcd_value = 1;
  WWXdm:
  if (!($notifications_array["\156\x6f\164\151\146\x69\143\x61\x74\x69\157\x6e\x5f\143\141\163\x65"] == "\156\x6f\x74\x69\146\x69\x63\141\x74\x69\x6f\x6e\137\154\x69\143\145\156\x73\x65\x5f\143\141\156\143\145\154\x6c\145\x64" && APL_DELETE_CANCELLED == "\131\x45\123")) {
    goto nlNwv;
  }
  aplDeleteData($MYSQLI_LINK);
  nlNwv:
  goto JxvST;
  RvBed:
  $notifications_array["\x6e\x6f\x74\x69\146\x69\143\x61\x74\151\157\x6e\137\x63\x61\x73\x65"] = "\156\157\x74\151\x66\151\x63\141\x74\x69\157\x6e\x5f\x6c\x69\x63\x65\156\163\145\137\x6f\153";
  $notifications_array["\156\157\x74\151\146\151\143\x61\x74\151\x6f\x6e\137\x74\x65\x78\x74"] = APL_NOTIFICATION_BYPASS_VERIFICATION;
  JxvST:
  if (!(aplCustomDecrypt($LRD, APL_SALT . $INSTALLATION_KEY) < date("\x59\55\x6d\x2d\x64"))) {
    goto l26qN;
  }
  $update_lrd_value = 1;
  l26qN:
  if (!($update_lrd_value == 1 || $update_lcd_value == 1)) {
    goto tNbQZ;
  }
  if ($update_lcd_value == 1) {
    goto GIJmE;
  }
  $LCD = aplCustomDecrypt($LCD, APL_SALT . $INSTALLATION_KEY);
  goto KhRaL;
  GIJmE:
  $LCD = date("\x59\x2d\155\55\x64");
  KhRaL:
  $INSTALLATION_KEY = aplCustomEncrypt(password_hash(date("\x59\55\155\x2d\144"), PASSWORD_DEFAULT), APL_SALT . $ROOT_URL);
  $LCD = aplCustomEncrypt($LCD, APL_SALT . $INSTALLATION_KEY);
  $LRD = aplCustomEncrypt(date("\x59\x2d\155\55\x64"), APL_SALT . $INSTALLATION_KEY);
  if (!(APL_STORAGE == "\104\101\124\x41\102\101\123\x45")) {
    goto T9fgM;
  }
  $stmt = mysqli_prepare($MYSQLI_LINK, "\x55\120\104\101\124\x45\40" . APL_DATABASE_TABLE . "\40\x53\105\x54\40\114\103\104\75\77\54\x20\x4c\x52\104\x3d\x3f\x2c\40\x49\116\123\x54\x41\x4c\x4c\x41\124\111\117\116\x5f\x4b\x45\x59\x3d\77");
  if (!$stmt) {
    goto z5Eyd;
  }
  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 zf36s;
  }
  $updated_records = $updated_records + $affected_rows;
  zf36s:
  mysqli_stmt_close($stmt);
  z5Eyd:
  if (!($updated_records < 1)) {
    goto gzJ1m;
  }
  echo APL_NOTIFICATION_DATABASE_WRITE_ERROR;
  exit;
  gzJ1m:
  T9fgM:
  if (!(APL_STORAGE == "\x46\111\x4c\x45")) {
    goto R5MG3;
  }
  $handle = @fopen(APL_DIRECTORY . "\x2f" . APL_LICENSE_FILE_LOCATION, "\x77\x2b");
  $fwrite = @fwrite($handle, "\x3c\x52\x4f\117\x54\137\x55\122\x4c\x3e{$ROOT_URL}\x3c\57\x52\x4f\117\x54\137\x55\122\114\76\x3c\103\x4c\111\105\x4e\124\137\105\x4d\101\x49\x4c\76{$CLIENT_EMAIL}\x3c\57\x43\114\x49\x45\116\124\x5f\105\x4d\x41\111\114\76\74\x4c\111\x43\105\116\123\x45\137\x43\117\x44\x45\76{$LICENSE_CODE}\x3c\57\x4c\111\x43\105\x4e\x53\x45\137\x43\117\104\105\x3e\x3c\x4c\103\104\x3e{$LCD}\x3c\x2f\x4c\103\x44\76\74\114\122\104\76{$LRD}\x3c\57\x4c\x52\x44\76\x3c\111\116\x53\124\101\114\x4c\x41\124\111\117\x4e\x5f\113\105\x59\x3e{$INSTALLATION_KEY}\x3c\57\111\116\123\124\101\x4c\x4c\101\124\x49\117\116\137\113\x45\131\76\74\x49\116\123\x54\101\114\x4c\101\x54\111\x4f\x4e\137\110\x41\123\110\76{$INSTALLATION_HASH}\x3c\x2f\111\116\x53\124\x41\x4c\114\x41\x54\111\117\x4e\x5f\x48\x41\x53\x48\x3e");
  if (!($fwrite === false)) {
    goto yyzGB;
  }
  echo APL_NOTIFICATION_LICENSE_FILE_WRITE_ERROR;
  exit;
  yyzGB:
  @fclose($handle);
  R5MG3:
  tNbQZ:
  PH7h3:
  dwffm:
  if (!($notifications_array["\156\157\164\x69\146\x69\x63\x61\164\x69\157\156\x5f\143\x61\163\x65"] != "\x6e\x6f\x74\151\146\151\x63\141\164\151\x6f\156\x5f\x6c\151\143\x65\x6e\163\x65\137\157\153")) {
    goto OSPpT;
  }
  echo "\x3c\142\x72\57\76\x3c\142\162\57\76";
  echo "\x4c\151\143\x65\x6e\163\x65\40\x69\163\x20\x6e\157\x74" . "\x20\x69\156\163\x74\x61\154\x6c\x65\x64\40\x79\x65\x74" . "\40\x6f\x72\x20\143\157\x72\x72\165\160\164\145\x64\56\40\x50\154\x65\x61\163\145" . "\40\x63\157\156\164\x61\143\x74" . "\40\x73\165\160\160\x6f\x72\164\x20" . "\164\145\141\x6d\40";
  echo "\x20\x3c\141\40\x68\x72\145\146\75\x22" . get_license_reset_url() . "\42\x3e" . trans("\x61\160\160\x2e\165\160\144\141\164\x65\x5f\141\160\160\137\x6c\151\x63\x65\156\163\x65") . "\x3c\57\x61\76";
  exit;
  OSPpT:
  return $notifications_array;
}

Function Calls

None

Variables

None

Stats

MD5 bca45780b23cc115f7584984b0ff02b2
Eval Count 0
Decode Time 53 ms