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 aplParseLicenseFile() { $license_data_array = array(); if (!@is_readable(A..

Decoded Output download

<?  function aplParseLicenseFile() 
{ 
  $license_data_array = array(); 
  if (!@is_readable(APL_DIRECTORY . "/" . APL_LICENSE_FILE_LOCATION)) { 
    goto qQai2; 
  } 
  $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 KZQZr; 
  } 
  foreach ($matches as $value) { 
    if (!(!empty($value[1]) && $value[1] == $value[3])) { 
      goto XF_xr; 
    } 
    $license_data_array[$value[1]] = $value[2]; 
    XF_xr: 
    KQGC7: 
  } 
  H0ivj: 
  KZQZr: 
  qQai2: 
  return $license_data_array; 
} 
function aplGetLicenseData($MYSQLI_LINK = null) 
{ 
  $settings_row = array(); 
  if (!(APL_STORAGE == "DATABASE")) { 
    goto d3AAF; 
  } 
  $table_exist = @mysqli_query($MYSQLI_LINK, "SHOW TABLES LIKE '" . APL_DATABASE_TABLE . "'"); 
  if (!@mysqli_fetch_assoc($table_exist)) { 
    goto fD_lZ; 
  } 
  $settings_results = @mysqli_query($MYSQLI_LINK, "SELECT * FROM " . APL_DATABASE_TABLE); 
  $settings_row = @mysqli_fetch_assoc($settings_results); 
  fD_lZ: 
  d3AAF: 
  if (!(APL_STORAGE == "FILE")) { 
    goto DwJ8N; 
  } 
  $settings_row = aplParseLicenseFile(); 
  DwJ8N: 
  return $settings_row; 
} 
function aplCheckConnection() 
{ 
  $notifications_array = 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 l6J3M; 
  } 
  $notifications_array["notification_case"] = "notification_no_connection"; 
  $notifications_array["notification_text"] = APL_NOTIFICATION_NO_CONNECTION; 
  goto K5zav; 
  l6J3M: 
  if (!($content_array["body"] != "<connection_test>OK</connection_test>")) { 
    goto QaCzJ; 
  } 
  $notifications_array["notification_case"] = "notification_invalid_response"; 
  $notifications_array["notification_text"] = APL_NOTIFICATION_INVALID_RESPONSE; 
  QaCzJ: 
  K5zav: 
  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 EPdLR; 
  } 
  $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 RG8Zs; 
  } 
  $error_detected = 1; 
  RG8Zs: 
  if (!(filter_var(aplGetCurrentUrl(), FILTER_VALIDATE_URL) && stristr(aplGetRootUrl(aplGetCurrentUrl(), 1, 1, 0, 1), aplGetRootUrl("{$ROOT_URL}/", 1, 1, 0, 1)) === false)) { 
    goto FbR1y; 
  } 
  $error_detected = 1; 
  FbR1y: 
  if (!(empty($INSTALLATION_HASH) || $INSTALLATION_HASH != hash("sha256", $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE))) { 
    goto sPEgP; 
  } 
  $error_detected = 1; 
  sPEgP: 
  if (!(empty($INSTALLATION_KEY) || !password_verify($LRD, aplCustomDecrypt($INSTALLATION_KEY, APL_SALT . $ROOT_URL)))) { 
    goto JSCqm; 
  } 
  $error_detected = 1; 
  JSCqm: 
  if (aplVerifyDateTime($LCD, "Y-m-d")) { 
    goto c1ygI; 
  } 
  $error_detected = 1; 
  c1ygI: 
  if (aplVerifyDateTime($LRD, "Y-m-d")) { 
    goto IMr2T; 
  } 
  $error_detected = 1; 
  IMr2T: 
  if (!(aplVerifyDateTime($LCD, "Y-m-d") && $LCD > date("Y-m-d", strtotime("+1 day")))) { 
    goto n17U3; 
  } 
  $error_detected = 1; 
  $cracking_detected = 1; 
  n17U3: 
  if (!(aplVerifyDateTime($LRD, "Y-m-d") && $LRD > date("Y-m-d", strtotime("+1 day")))) { 
    goto HPhFx; 
  } 
  $error_detected = 1; 
  $cracking_detected = 1; 
  HPhFx: 
  if (!(aplVerifyDateTime($LCD, "Y-m-d") && aplVerifyDateTime($LRD, "Y-m-d") && $LCD > $LRD)) { 
    goto IOsWf; 
  } 
  $error_detected = 1; 
  $cracking_detected = 1; 
  IOsWf: 
  if (!($cracking_detected == 1 && APL_DELETE_CRACKED == "YES")) { 
    goto q2EuV; 
  } 
  aplDeleteData($MYSQLI_LINK); 
  q2EuV: 
  if (!($error_detected != 1 && $cracking_detected != 1)) { 
    goto maZIO; 
  } 
  $data_check_result = true; 
  maZIO: 
  EPdLR: 
  return $data_check_result; 
} ?>

Did this file decode correctly?

Original Code

function aplParseLicenseFile()
{
  $license_data_array = array();
  if (!@is_readable(APL_DIRECTORY . "\57" . APL_LICENSE_FILE_LOCATION)) {
    goto qQai2;
  }
  $file_content = file_get_contents(APL_DIRECTORY . "\x2f" . APL_LICENSE_FILE_LOCATION);
  preg_match_all("\x2f\74\50\133\101\55\x5a\x5f\135\x2b\x29\x3e\50\56\x2a\77\x29\x3c\134\57\x28\133\101\55\132\x5f\135\53\x29\76\57", $file_content, $matches, PREG_SET_ORDER);
  if (empty($matches)) {
    goto KZQZr;
  }
  foreach ($matches as $value) {
    if (!(!empty($value[1]) && $value[1] == $value[3])) {
      goto XF_xr;
    }
    $license_data_array[$value[1]] = $value[2];
    XF_xr:
    KQGC7:
  }
  H0ivj:
  KZQZr:
  qQai2:
  return $license_data_array;
}
function aplGetLicenseData($MYSQLI_LINK = null)
{
  $settings_row = array();
  if (!(APL_STORAGE == "\104\x41\x54\101\102\101\123\105")) {
    goto d3AAF;
  }
  $table_exist = @mysqli_query($MYSQLI_LINK, "\123\x48\117\x57\40\x54\101\x42\x4c\105\123\40\x4c\111\113\x45\x20\x27" . APL_DATABASE_TABLE . "\x27");
  if (!@mysqli_fetch_assoc($table_exist)) {
    goto fD_lZ;
  }
  $settings_results = @mysqli_query($MYSQLI_LINK, "\x53\105\114\x45\x43\124\40\52\x20\x46\x52\117\x4d\40" . APL_DATABASE_TABLE);
  $settings_row = @mysqli_fetch_assoc($settings_results);
  fD_lZ:
  d3AAF:
  if (!(APL_STORAGE == "\x46\x49\114\x45")) {
    goto DwJ8N;
  }
  $settings_row = aplParseLicenseFile();
  DwJ8N:
  return $settings_row;
}
function aplCheckConnection()
{
  $notifications_array = array();
  $content_array = aplCustomPost(APL_ROOT_URL . "\x2f\141\x70\154\x5f\x63\x61\154\x6c\142\x61\143\153\x73\x2f\143\x6f\x6e\156\145\143\164\151\157\156\137\x74\145\163\x74\56\160\x68\160", "\160\162\157\144\x75\143\164\137\x69\x64\x3d" . rawurlencode(APL_PRODUCT_ID) . "\x26\x63\x6f\x6e\x6e\145\143\x74\151\157\156\x5f\x68\141\163\150\75" . rawurlencode(hash("\163\150\x61\62\x35\66", "\x63\x6f\x6e\156\145\143\x74\151\157\156\137\x74\145\x73\164")));
  if (!empty($content_array)) {
    goto l6J3M;
  }
  $notifications_array["\x6e\x6f\164\x69\146\x69\x63\141\164\x69\x6f\156\137\x63\141\163\145"] = "\x6e\x6f\164\x69\146\151\143\x61\164\x69\x6f\x6e\x5f\x6e\x6f\x5f\143\x6f\x6e\x6e\x65\x63\x74\151\x6f\156";
  $notifications_array["\x6e\x6f\164\151\x66\x69\x63\x61\164\x69\x6f\156\137\x74\145\170\x74"] = APL_NOTIFICATION_NO_CONNECTION;
  goto K5zav;
  l6J3M:
  if (!($content_array["\142\x6f\144\171"] != "\74\x63\157\156\156\x65\143\164\151\x6f\x6e\137\164\x65\163\164\76\117\113\74\57\x63\157\156\x6e\x65\143\164\x69\157\x6e\137\164\x65\163\164\x3e")) {
    goto QaCzJ;
  }
  $notifications_array["\156\x6f\164\151\x66\x69\x63\x61\164\x69\x6f\x6e\137\x63\x61\x73\x65"] = "\x6e\157\164\x69\x66\x69\143\x61\x74\151\157\156\137\151\156\166\x61\x6c\151\x64\137\162\x65\163\x70\157\156\x73\145";
  $notifications_array["\156\157\164\151\146\x69\143\141\164\151\x6f\156\x5f\x74\145\170\x74"] = APL_NOTIFICATION_INVALID_RESPONSE;
  QaCzJ:
  K5zav:
  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 EPdLR;
  }
  $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 RG8Zs;
  }
  $error_detected = 1;
  RG8Zs:
  if (!(filter_var(aplGetCurrentUrl(), FILTER_VALIDATE_URL) && stristr(aplGetRootUrl(aplGetCurrentUrl(), 1, 1, 0, 1), aplGetRootUrl("{$ROOT_URL}\57", 1, 1, 0, 1)) === false)) {
    goto FbR1y;
  }
  $error_detected = 1;
  FbR1y:
  if (!(empty($INSTALLATION_HASH) || $INSTALLATION_HASH != hash("\163\x68\141\x32\65\x36", $ROOT_URL . $CLIENT_EMAIL . $LICENSE_CODE))) {
    goto sPEgP;
  }
  $error_detected = 1;
  sPEgP:
  if (!(empty($INSTALLATION_KEY) || !password_verify($LRD, aplCustomDecrypt($INSTALLATION_KEY, APL_SALT . $ROOT_URL)))) {
    goto JSCqm;
  }
  $error_detected = 1;
  JSCqm:
  if (aplVerifyDateTime($LCD, "\x59\x2d\x6d\x2d\x64")) {
    goto c1ygI;
  }
  $error_detected = 1;
  c1ygI:
  if (aplVerifyDateTime($LRD, "\131\x2d\x6d\55\x64")) {
    goto IMr2T;
  }
  $error_detected = 1;
  IMr2T:
  if (!(aplVerifyDateTime($LCD, "\131\55\155\55\144") && $LCD > date("\131\x2d\155\55\144", strtotime("\x2b\61\x20\144\141\x79")))) {
    goto n17U3;
  }
  $error_detected = 1;
  $cracking_detected = 1;
  n17U3:
  if (!(aplVerifyDateTime($LRD, "\131\55\x6d\x2d\144") && $LRD > date("\131\55\x6d\x2d\144", strtotime("\x2b\x31\x20\144\x61\x79")))) {
    goto HPhFx;
  }
  $error_detected = 1;
  $cracking_detected = 1;
  HPhFx:
  if (!(aplVerifyDateTime($LCD, "\131\55\155\55\x64") && aplVerifyDateTime($LRD, "\x59\55\155\x2d\x64") && $LCD > $LRD)) {
    goto IOsWf;
  }
  $error_detected = 1;
  $cracking_detected = 1;
  IOsWf:
  if (!($cracking_detected == 1 && APL_DELETE_CRACKED == "\131\x45\123")) {
    goto q2EuV;
  }
  aplDeleteData($MYSQLI_LINK);
  q2EuV:
  if (!($error_detected != 1 && $cracking_detected != 1)) {
    goto maZIO;
  }
  $data_check_result = true;
  maZIO:
  EPdLR:
  return $data_check_result;
}

Function Calls

None

Variables

None

Stats

MD5 9a1bc83fe8e9516e06227ce6f20487f4
Eval Count 0
Decode Time 35 ms