/* Decoded by unphp.net */ ob_start(); session_start(); define("START", true); include "install/_init.php"; $errors = array(); $success = array(); $info = array(); if (!(!checkInternetConnection() || !checkValidationServerConnection() || !checkEnvatoServerConnection())) { goto bAX5s; } if (is_ajax()) { goto aaiis; } $errors["internet_connection"] = "Need internet connection!"; goto rioCd; aaiis: $json["redirect"] = root_url() . "/install/index.php"; echo json_encode($json); exit; rioCd: bAX5s: if (!(revalidate_pcode() == "ok")) { goto PyBmb; } if (is_ajax()) { goto EHwzJ; } header("Location: index.php"); goto prBC9; EHwzJ: $json["redirect"] = root_url() . "/index.php"; echo json_encode($json); exit; prBC9: PyBmb: $ecnesil_path = DIR_INCLUDE . "config/purchase.php"; $config_path = ROOT . "/config.php"; function purchase_code_validation() { global $request, $ecnesil_path, $config_path, $errors, $success, $info; if (!empty($request->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