/* Decoded by unphp.net */ post["purchase_username"])) { goto KONTx; } $errors["purchase_username"] = "Purchase username is required"; return false; KONTx: if (!empty($request->post["purchase_code"])) { goto rzN11; } $errors["purchase_code"] = "Purchase code is required"; return false; rzN11: $file = DIR_INCLUDE . "config/purchase.php"; if (!(is_writable($config_path) === false)) { goto ToQ8H; } $errors["config_error"] = "config.php is not writable!"; return false; ToQ8H: if (!(is_writable($ecnesil_path) === false)) { goto TtvMJ; } $errors["config_error"] = "Some file unable to write!"; return false; TtvMJ: $info["username"] = trim($request->post["purchase_username"]); $info["purchase_code"] = trim($request->post["purchase_code"]); $info["domain"] = ROOT_URL; $info["action"] = "validation"; $apiCall = apiCall($info); if (is_object($apiCall)) { goto i9Qi2; } $errors["internet_connection"] = "Validation failed!"; return false; i9Qi2: if ($apiCall->status == "error") { goto uMPnN; } if (!generate_ecnesil($request->post["purchase_username"], $request->post["purchase_code"], $ecnesil_path)) { goto w95F5; } return true; w95F5: $errors["preparation"] = "Problem while generating license!"; return false; goto ehD13; uMPnN: $errors["purchase_code"] = $apiCall->message; return false; ehD13: } function done() { global $session, $errors, $success, $info; $info["username"] = trim(get_pusername()); $info["purchase_code"] = trim(get_pcode()); $info["domain"] = ROOT_URL; $info["app_id"] = APPID; $info["ip"] = get_real_ip(); $info["mac"] = json_encode(getMAC()); $info["version"] = "3.0"; $info["action"] = "forceToRevalidate"; $apiCall = apiCall($info); if (is_object($apiCall)) { goto C5iSo; } $session->data["error"] = "Validation failed!"; return false; C5iSo: if ($apiCall->status == "error") { goto CNyeZ; } return true; goto E1RNA; CNyeZ: $session->data["error"] = $apiCall->message; return false; E1RNA: } if (!($request->server["REQUEST_METHOD"] == "GET" && isset($request->get["action_type"]) && $request->get["action_type"] == "DONE")) { goto AOZz6; } $json = array(); if (check_pcode()) { goto xXork; } $session->data["error"] = "Purchase code is not valid."; xXork: done(); if (isset($session->data["error"])) { goto HKrN1; } redirect(root_url() . "/index.php"); HKrN1: redirect(root_url() . "/revalidate.php"); exit; AOZz6: if (!($request->server["REQUEST_METHOD"] == "POST")) { goto LbO9C; } if (checkInternetConnection()) { goto B95VK; } $errors["internet_connection"] = "Internet connection problem!"; B95VK: if (!empty($request->post["purchase_code"])) { goto PbVej; } $errors["purchase_code"] = "Purchase code is not valid."; PbVej: if (!empty($request->post["purchase_username"])) { goto fn8dN; } $errors["purchase_code"] = "Purchase username is not valid."; fn8dN: purchase_code_validation(); if (empty($errors)) { goto om5xK; } $json = array_filter($errors); goto PXev5; om5xK: $json["redirect"] = root_url() . "/revalidate.php?action_type=DONE"; PXev5: echo json_encode($json); exit; LbO9C: echo " \xa \xa \xa Revalidation » "; echo APPNAME; echo "\xa \xa \xa \xa \xa \xa \xa \xa \xa \xa \xa \xa \xa\xa
\xa ...\xa
\xa\xa
\xa \xa \xa \xa \xa \xa \xa \xa \xa \xa \xa \xa
\xa
\xa
\xa
\xa
\xa
\xa

Purcahse Code Revalidation

\xa
\xa
\xa
\xa"; ?>