/* Decoded by unphp.net */ MineXON - License Error
MineXON - Brand Logo

" . $title . "


Why am I getting this error?

" . $text . "

If you think the reason is not one of them, please contact us.


Contact us

www.minexon.net

"; } if (cURLInstalledControl()) { $incLicenseDomain = $_SERVER["HTTP_HOST"]; $incLicenseDomain = str_replace("www.", '', $incLicenseDomain); $licensesDomains = array("default.minexon.net", "south.minexon.net", "sitary.minexon.net", "darken.minexon.net", "vita.minexon.net", "lighten.minexon.net", "deluxe.minexon.net", "team.minexon.net", "demo.minexon.net", "adalances.com", "kafalarmc.com", "avenor.xyz", "atomcraft.pw", "minerfirst.com", "gamerway.online", "trcoldnetwork.net", "dunyamc.com", "mc.treas.network", "mc.projects.gg", "mavibugday.com", "taklacraft.com", "tkszcraft.network", "mysterise.com", "justrises.com", "lapexnw.com.tr", "cragenetwork.com", "craftlime.net", "elmasoyuncu.me", "kasabamc.com", "soulcraft.network", "gordioncraft.com", "oyuncuhanedani.com", "cesurnetwork.com", "karluknw.com", "store.aesirmc.com", "epiklava.com", "atlantikmc.com", "legendcrafttr.com", "tekblok.com"); if (!in_array($incLicenseDomain, $licensesDomains)) { if (!isset($_SESSION["incLicenseControl"])) { $licenseControlUrl = "https://api.minexon.net/apps/controller/license-control.php?domain=" . $incLicenseDomain; $licenseControlFields = array("domain" => $incLicenseDomain, "serverIP" => $_SERVER["SERVER_ADDR"], "userIP" => GetIP()); $licenseControl = curl_init($licenseControlUrl); curl_setopt($licenseControl, CURLOPT_RETURNTRANSFER, true); curl_setopt($licenseControl, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($licenseControl, CURLOPT_POSTFIELDS, http_build_query($licenseControlFields)); curl_setopt($licenseControl, CURLOPT_REFERER, (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "https" : "http") . "://" . $_SERVER["SERVER_NAME"]); curl_setopt($licenseControl, CURLOPT_USERAGENT, "MINELAB-REGULAR"); $licenseControlResult = curl_exec($licenseControl); $licenseControlError = curl_error($licenseControl); $licenseControlErrno = curl_errno($licenseControl); $licenseControlInfo = curl_getinfo($licenseControl); if (is_resource($licenseControl)) { curl_close($licenseControl); } if ($licenseControlErrno === 0) { $licenseControlResponse = json_decode($licenseControlResult, true); if ($licenseControlResponse["status"] == "__TRUE__" && $licenseControlResponse["reason"] == $incLicenseDomain) { $_SESSION["incLicenseControl"] == "XCDS-782"; } else { if ($licenseControlResponse["status"] == "__FALSE__" && $licenseControlResponse["reason"] == "notLicense") { echo licenseErrorPage("LICENSE NOT FOUND", ""); die; } else { if ($licenseControlResponse["status"] == "__FALSE__" && $licenseControlResponse["reason"] == "notLicenseSuspend") { echo licenseErrorPage("LICENSE ERROR", ""); die; } else { if ($licenseControlResponse["status"] == "__FALSE__" && $licenseControlResponse["reason"] == "licenseExpired") { echo licenseErrorPage("PAYMENT ERROR", ""); die; } else { echo licenseErrorPage("TECHNICAL PROBLEM", ""); die; } } } } } else { echo licenseErrorPage("SERVER ERROR", ""); die; } } } } else { die("Install the cURL function."); } define("__DR__", $_SERVER["DOCUMENT_ROOT"]); require_once __DR__ . "/main/includes/php/app.php"; if ($_CONFIG["INSTALLATION_STATUS"] == false) { header("Location: /install"); die; } else { require_once __DR__ . "/main/includes/php/config.php"; } $searchThemes = $db->prepare("SELECT * FROM themes WHERE status = ?"); $searchThemes->execute(array(1)); if ($searchThemes->rowCount() > 0) { $readThemes = $searchThemes->fetch(); $themePathSlug = $readThemes["fileSlug"]; } else { $themePathSlug = "south"; } $searchSettings = $db->query("SELECT * FROM settings ORDER BY id ASC LIMIT 1"); $rSettings = $searchSettings->fetch(); date_default_timezone_set($rSettings["defaultTimezone"]); if (isset($_GET["currency"])) { $searchCurrencyControl = $db->prepare("SELECT * FROM currencies WHERE currency = ?"); $searchCurrencyControl->execute(array($_GET["currency"])); if ($searchCurrencyControl->rowCount() > 0) { $_SESSION["currency"]["user"] = $_GET["currency"]; header("Location: " . $_GET["ref"]); die; } } $_SESSION["currency"]["default"] = $rSettings["currency"]; $isNull = json_encode(json_decode(exchange($_SESSION["currency"]["default"]), true)["rates"]); if ($isNull == "null") { $searchCurrency = $db->prepare("SELECT * FROM currencies WHERE currency = ?"); $searchCurrency->execute(array($_SESSION["currency"]["default"])); $readCurrency = $searchCurrency->fetch(); $_SESSION["currency"]["default-exchangerate"]["rates"] = json_decode($readCurrency["rates"], true); } else { $updateCurrencies = $db->prepare("UPDATE currencies SET rates = ? WHERE currency = ?"); $updateCurrencies->execute(array(json_encode(json_decode(exchange($_SESSION["currency"]["default"]), true)["rates"]), $_SESSION["currency"]["default"])); $_SESSION["currency"]["default-exchangerate"] = json_decode(exchange($_SESSION["currency"]["default"]), 2); } if (!isset($_SESSION["currency"]["user"])) { $_SESSION["currency"]["user"] = $_SESSION["currency"]["default"]; $_SESSION["currency"]["user-exchangerate"] = $_SESSION["currency"]["default-exchangerate"]; } else { if (!isset($_SESSION["currency"]["user-exchangerate"])) { $isNull = json_encode(json_decode(exchange($_SESSION["currency"]["user"]), true)["rates"]); if ($isNull == "null") { $searchCurrency = $db->prepare("SELECT * FROM currencies WHERE currency = ?"); $searchCurrency->execute(array($_SESSION["currency"]["user"])); $readCurrency = $searchCurrency->fetch(); $_SESSION["currency"]["user-exchangerate"]["rates"] = json_decode($readCurrency["rates"], true); } else { $updateCurrencies = $db->prepare("UPDATE currencies SET rates = ? WHERE currency = ?"); $updateCurrencies->execute(array(json_encode(json_decode(exchange($_SESSION["currency"]["user"]), true)["rates"]), $_SESSION["currency"]["user"])); $_SESSION["currency"]["user-exchangerate"] = json_decode(exchange($_SESSION["currency"]["user"]), 2); } } } $searchCurrency = $db->prepare("SELECT * FROM currencies WHERE currency = ?"); $searchCurrency->execute(array($_SESSION["currency"]["user"])); $readCurrency = $searchCurrency->fetch(); require_once __DR__ . "/main/language/connects.php"; $languages = array(); $searchLanguages = $db->query("SELECT * FROM languages ORDER BY id ASC"); foreach ($searchLanguages as $readLanguages) { $languageCode = $readLanguages["code"]; $languages[$languageCode] = json_decode(str_replace(array("¤cyIcon", "¤cy", "&creditIcon", "&creditName"), array($readCurrency["symbol"], $readCurrency["currency"], $rSettings["creditIcon"], $rSettings["creditName"]), file_get_contents(__DR__ . "/main/language/messages/" . $languageCode . ".json")), true); } function languageVariables($text, $category, $language) { global $languages; $languageVariables = $languages[$language]; return $languageVariables[$category][$text]; } function urlConverter($url, $language) { global $links; $language = $language == "tr" ? "tr" : "en"; $urlVariables = $links[$language]; return $urlVariables[$url]; } if (isset($_SESSION["myLanguage"])) { $languageType = $_SESSION["myLanguage"]; } else { $languageType = $rSettings["defaultLanguage"]; } if (isset($_GET["language"])) { $searchLanguageControl = $db->prepare("SELECT * FROM languages WHERE code = ?"); $searchLanguageControl->execute(array($_GET["language"])); if ($searchLanguageControl->rowCount() > 0) { $_SESSION["myLanguage"] = $_GET["language"]; $languageType = $_GET["language"]; header("Location: " . $_GET["ref"]); die; } } $searchLang = $db->prepare("SELECT * FROM languages WHERE code = ?"); $searchLang->execute(array($languageType)); $readLang = $searchLang->rowCount(); $searchMedia = $db->query("SELECT * FROM media ORDER BY id ASC LIMIT 1"); $rMedia = $searchMedia->fetch(); if (isset($_COOKIE["rememberToken"]) && $_COOKIE["rememberToken"] !== '') { $_SESSION["incAccountLogin"] = $_COOKIE["rememberToken"]; } if (isset($_SESSION["incAccountLogin"])) { $searchAccountSessions = $db->prepare("SELECT * FROM accountLoginSessions WHERE sessionToken = ?"); $searchAccountSessions->execute(array($_SESSION["incAccountLogin"])); if ($searchAccountSessions->rowCount() > 0) { $readAccountSessions = $searchAccountSessions->fetch(); $searchAccount = $db->prepare("SELECT * FROM accounts WHERE id = ?"); $searchAccount->execute(array($readAccountSessions["accountID"])); if ($searchAccount->rowCount() > 0) { $readAccount = $searchAccount->fetch(); $updateLoginSessions = $db->prepare("UPDATE accountLoginSessions SET time = ? WHERE id = ?"); $updateLoginSessions->execute(array(time(), $readAccountSessions["id"])); $searchAccountPermission = $db->prepare("SELECT * FROM accountsPermission WHERE id = ?"); $searchAccountPermission->execute(array($readAccount["permission"])); $readAccountPermission = $searchAccountPermission->fetch(); $readAccountPermissionVariables = json_decode($readAccountPermission["variables"], true); $searchBannedWeb = $db->prepare("SELECT * FROM banned WHERE username = ? AND type = ? AND (bannedDate > ? OR bannedDate = ?)"); $searchBannedWeb->execute(array($readAccount["username"], "login", date("Y-m-d H:i:s"), "1000-01-01 00:00:00")); if ($searchBannedWeb->rowCount() > 0) { session_destroy(); setcookie("rememberToken", '', time() - 86400 * 999, "/"); go("/login"); } } else { $removeAccountSessions = $db->prepare("SELECT * FROM accountLoginSessions WHERE id = ?"); $removeAccountSessions->execute(array($readAccountSessions["id"])); session_destroy(); setcookie("rememberToken", '', time() - 86400 * 999, "/"); go($_SERVER["REQUEST_URI"]); } } else { session_destroy(); setcookie("rememberToken", '', time() - 86400 * 999, "/"); go($_SERVER["REQUEST_URI"]); } } $searchModule = $db->query("SELECT * FROM module ORDER BY id ASC LIMIT 1"); $readModule = $searchModule->fetch(); $searchWebhooks = $db->query("SELECT * FROM webhooks ORDER BY id ASC LIMIT 1"); $readWebhooks = $searchWebhooks->fetch(); $searchTheme = $db->query("SELECT * FROM theme ORDER BY id ASC LIMIT 1"); $readTheme = $searchTheme->fetch(); $metaKeyword = $rSettings["metaKeyword"]; $metaDescription = $rSettings["metaDescription"]; if ($rSettings["SSLModeStatus"] == 1 && (!isset($_SERVER["HTTPS"]) || $_SERVER["SERVER_PORT"] == 80)) { $sslURL = "https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]; go($sslURL); } $siteURL = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "https" : "http") . "://" . $_SERVER["SERVER_NAME"]; function go($url) { header("Location: " . $url); die; } function goMeta($url, $wait = 0) { return ""; } function sqll($sql) { global $db; $is = $db->prepare($sql); $is->execute(); return $is; } function usernameControl($username) { return preg_match("/[^a-zA-Z0-9_]/", $username); } function post($parameter) { return htmlspecialchars(trim(strip_tags($_POST[$parameter]))); } function GetIP() { if (getenv("HTTP_CLIENT_IP")) { $ip = getenv("HTTP_CLIENT_IP"); } else { if (getenv("HTTP_X_FORWARDED_FOR")) { $ip = getenv("HTTP_X_FORWARDED_FOR"); if (strstr($ip, ",")) { $tmp = explode(",", $ip); $ip = trim($tmp[0]); } } else { $ip = getenv("REMOTE_ADDR"); } } return $ip; } function get($parameter) { return strip_tags(trim(addslashes($_GET[$parameter]))); } function createSalt($length) { $characters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, strlen($characters) - 1)]; } return $randomString; } function generateSHA256($password) { global $db, $rSettings; if ($rSettings["passwordHash"] == "0") { $salt = createSalt(16); $hash = "$SHA$" . $salt . "$" . hash("sha256", hash("sha256", $password) . $salt); return $hash; } else { if ($rSettings["passwordHash"] == "1") { return md5($password); } else { if ($rSettings["passwordHash"] == "2") { return password_hash($password, PASSWORD_DEFAULT); } } } } function controlSHA256($password, $realPassword) { global $db, $rSettings; if ($rSettings["passwordHash"] == "0") { $parts = explode("$", $realPassword); $salt = $parts[2]; $hash = hash("sha256", hash("sha256", $password) . $salt); $hash = "$SHA$" . $salt . "$" . $hash; return $hash == $realPassword ? "OK" : "NO"; } else { if ($rSettings["passwordHash"] == "1") { $md5Password = md5($password); if ($realPassword == $md5Password) { return "OK"; } else { return "NO"; } } else { if ($rSettings["passwordHash"] == "2") { if (password_verify($password, $realPassword)) { return "OK"; } else { return "NO"; } } } } } function createSlug($text) { if ($text !== '') { $blackList = array("\xc3\x87", "\xc5\x9e", "\304\236", "\303\x9c", "\304\xb0", "\303\x96", "\303\247", "\xc5\x9f", "\xc4\x9f", "\xc3\xbc", "\xc3\xb6", "\304\xb1", "-"); $whiteList = array("c", "s", "g", "u", "i", "o", "c", "s", "g", "u", "o", "i", " "); $link = strtolower(str_replace($blackList, $whiteList, $text)); $link = preg_replace("@[^A-Za-z0-9\-_]@i", " ", $link); $link = trim(preg_replace("/\s+/", " ", $link)); $link = str_replace(" ", "-", $link); if ($link !== '') { return $link; } else { return "none"; } } else { return "none"; } } function contentShort($content, $limit = 0) { $newsContentLength = strlen($content); if ($limit < $newsContentLength) { return mb_substr($content, 0, $limit, "utf-8") . "..."; } return $content; } function checkTime($time, $type = 0, $minute = false) { global $languages, $languageType; $time = strtotime($time); if ($type === 0) { $timeDifference = time() - $time; $second = $timeDifference; $minute = round($timeDifference / 60); $hour = round($timeDifference / 3600); $day = round($timeDifference / 86400); $week = round($timeDifference / 604800); $month = round($timeDifference / 2419200); $year = round($timeDifference / 29030400); if ($second < 60) { if ($second === 0) { return $languages[$languageType]["date"]["justNow"]; } return str_replace("&date", $second, $languages[$languageType]["date"]["secondsAgo"]); } if ($minute < 60) { return str_replace("&date", $minute, $languages[$languageType]["date"]["minutesAgo"]); } if ($hour < 24) { return str_replace("&date", $hour, $languages[$languageType]["date"]["hoursAgo"]); } if ($day < 7) { return str_replace("&date", $day, $languages[$languageType]["date"]["daysAgo"]); } if ($week < 4) { return str_replace("&date", $week, $languages[$languageType]["date"]["weeksAgo"]); } if ($month < 12) { return str_replace("&date", $month, $languages[$languageType]["date"]["monthsAgo"]); } return str_replace("&date", $year, $languages[$languageType]["date"]["yearsAgo"]); } if ($type === 1) { if ($minute === true) { return date("d.m.Y H:i", $time); } return date("d.m.Y", $time); } if ($type === 2) { if ($minute === true) { $date = date("d.m.Y H:i", $time); } else { $date = date("d.m.Y", $time); } $date = explode(".", $date); list($day, $month, $year) = $date; if ($month === "01") { $month = $languages[$languageType]["date"]["month01"]; } if ($month === "02") { $month = $languages[$languageType]["date"]["month02"]; } if ($month === "03") { $month = $languages[$languageType]["date"]["month03"]; } if ($month === "04") { $month = $languages[$languageType]["date"]["month04"]; } if ($month === "05") { $month = $languages[$languageType]["date"]["month05"]; } if ($month === "06") { $month = $languages[$languageType]["date"]["month06"]; } if ($month === "07") { $month = $languages[$languageType]["date"]["month07"]; } if ($month === "08") { $month = $languages[$languageType]["date"]["month08"]; } if ($month === "09") { $month = $languages[$languageType]["date"]["month09"]; } if ($month === "10") { $month = $languages[$languageType]["date"]["month10"]; } if ($month === "11") { $month = $languages[$languageType]["date"]["month11"]; } if ($month === "12") { $month = $languages[$languageType]["date"]["month12"]; } if ($minute === true) { $clock = explode(":", explode(" ", $year)[1]); list($minute, $second) = $clock; return sprintf("%02d %s %04d %02d:%02d", $day, $month, $year, $minute, $second); } return sprintf("%02d %s %04d", $day, $month, $year); } return false; } function createHistory($username, $description, $type) { global $db; if (getenv("HTTP_CLIENT_IP")) { $historyIP = getenv("HTTP_CLIENT_IP"); } else { if (getenv("HTTP_X_FORWARDED_FOR")) { $historyIP = getenv("HTTP_X_FORWARDED_FOR"); if (strstr($historyIP, ",")) { $tmp = explode(",", $historyIP); $historyIP = trim($tmp[0]); } } else { $historyIP = getenv("REMOTE_ADDR"); } } $historyDate = date("d.m.Y H:i"); $createHistory = $db->prepare("INSERT INTO history (username, description, ip, date, type) VALUES (?, ?, ?, ?, ?)"); $createHistory->execute(array($username, $description, $historyIP, $historyDate, $type)); $searchMedia = $db->prepare("SELECT * FROM media WHERE id = ?"); $searchMedia->execute(array(0)); $readMedia = $searchMedia->fetch(); $newAlertRow = $readMedia["alerts"] + 1; $alertCheck = $db->prepare("UPDATE media SET alerts = ? WHERE id = ?"); $alertCheck->execute(array($newAlertRow, 0)); return $createHistory; } function inventoryAddItem($userID, $type, $variables, $date) { global $db, $readModule; $modules = json_decode($readModule["modules"], true); $readVariables = json_decode($variables, true); if ($modules["inventory"] == "TRUE") { $insertInventory = $db->prepare("INSERT INTO accountsInventory SET userID = ?, type = ?, variables = ?, date = ?"); $insertInventory->execute(array($userID, $type, $variables, $date)); return $insertInventory; } else { $searchAccount = $db->prepare("SELECT * FROM accounts WHERE id = ?"); $searchAccount->execute(array($userID)); if ($searchAccount->rowCount() > 0) { $readAccount = $searchAccount->fetch(); if ($type == "1") { $updateAccount = $db->prepare("UPDATE accounts SET credit = credit + ? WHERE id = ?"); $updateAccount->execute(array($readVariables["credit"], $readAccount["id"])); } else { if ($type == "2") { $insertChest = $db->prepare("INSERT INTO userChest (`userID`, `productID`, `status`, `date`) VALUES (?, ?, ?, ?)"); $insertChest->execute(array($readAccount["id"], $readVariables["productID"], 0, date("d.m.Y H:i:s"))); } } } else { return false; } } } function inventoryItemCount($userID, $count) { global $db, $readModule; $modules = json_decode($readModule["modules"], true); if ($modules["inventory"] == "TRUE") { $searchAccount = $db->prepare("SELECT * FROM accounts WHERE id = ?"); $searchAccount->execute(array($userID)); if ($searchAccount->rowCount() > 0) { $readAccount = $searchAccount->fetch(); $countItem = $db->prepare("SELECT * FROM accountsInventory WHERE userID = ?"); $countItem->execute(array($readAccount["id"])); if ($readAccount["inventorySlot"] > $countItem->rowCount()) { $over = $readAccount["inventorySlot"] - $countItem->rowCount(); if ($over >= $count) { return true; } else { return false; } } else { return false; } } else { return false; } } else { return true; } } function AccountPermControl($userID, $permission) { global $db; $searchAccount = $db->prepare("SELECT * FROM accounts WHERE id = ?"); $searchAccount->execute(array($userID)); if ($searchAccount->rowCount() > 0) { $readAccount = $searchAccount->fetch(); $searchPermission = $db->prepare("SELECT * FROM accountsPermission WHERE id = ?"); $searchPermission->execute(array($readAccount["permission"])); if ($searchPermission->rowCount() > 0) { $readPermission = $searchPermission->fetch(); $readPermissionVariables = json_decode($readPermission["variables"], true); if ($readPermissionVariables["administrator"] == "TRUE") { return "AUTHOR\304\260ZAT\xc4\xb0ON_APPROVED"; } else { if ($readPermissionVariables[$permission] == "TRUE") { return "AUTHOR\xc4\xb0ZAT\304\xb0ON_APPROVED"; } else { return "PERMISSION_NOT_FOUND"; } } } else { return "PERMISSION_NOT_FOUND"; } } else { return "PERMISSION_NOT_FOUND"; } } function AccountLoginControl($status) { if ($status == true) { if (isset($_SESSION["incAccountLogin"])) { return go(urlConverter("profile", $languageType)); } else { return false; } } else { if ($status == false) { if (!isset($_SESSION["incAccountLogin"])) { return go(urlConverter("login", $languageType) . "?return=" . $_SERVER["REQUEST_URI"]); } else { return false; } } else { return go("/404"); } } } function arghMessage($message) { $arghList = array("amk", "orospu", "pezevenk", "gavat", "serefsiz", "orospu \xc3\xa7ocu\304\x9fu", "siktir", "hassiktir", "sikerim", "am\xc4\261na"); $turnedArgh = array("a**", "o*****", "p*******", "g****", "s*******", "o***** \xc3\247*****", "s*****", "s*****", "h********", "s******", "am\xc4\xb1na"); return str_replace($arghList, $turnedArgh, $message); } function generateCurl($curlUrl, $fields) { $curl = curl_init(); curl_setopt_array($curl, array(CURLOPT_URL => $curlUrl, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => http_build_query($fields))); $response = curl_exec($curl); return $response; } function avatarAPI($username, $size) { global $rSettings; $avatarAPIType = $rSettings["avatarAPI"]; if ($avatarAPIType == "1") { return "https://minotar.net/avatar/" . $username . "/" . $size . ".png"; } else { if ($avatarAPIType == "2") { return "https://cravatar.eu/avatar/" . $username . "/" . $size . ".png"; } else { $generateValue = array($username, $size); $textValue = array("[username]", "[size]"); $avatarAPIUrl = str_replace($textValue, $generateValue, $rSettings["avatarAPI"]); return $avatarAPIUrl; } } } function rand_color() { return "#" . str_pad(dechex(mt_rand(0, 16777215)), 6, "0", STR_PAD_LEFT); } function webhooks($api, $hookObject) { $ch = curl_init(); curl_setopt_array($ch, array(CURLOPT_URL => $api, CURLOPT_POST => true, CURLOPT_POSTFIELDS => $hookObject, CURLOPT_HTTPHEADER => array("Content-Type: application/json"))); $response = curl_exec($ch); $status = curl_errno($ch); if (is_resource($ch)) { curl_close($ch); } if ($status == "0") { return true; } else { return false; } } function generateCookie($name = null, $value = null, $duration = 0, $systemSSLStatus = false) { setcookie($name, $value, time() + 86400 * $duration, "/", '', $systemSSLStatus, true); return true; } function deleteCookie($name = null) { if (isset($_COOKIE[$name])) { setcookie($name, '', time() - 86400 * 999, "/"); return true; } else { return false; } } function forbiddenWordControl($data, $list) { if (!in_array($data, $list)) { $controlStatus = "TRUE"; foreach ($list as $readList) { if (strstr($data, $readList)) { $controlStatus = "FALSE"; } } if ($controlStatus == "TRUE") { return "OK"; } } else { return "NO"; } } function metaTitle() { global $rSettings, $languageType; if ($_GET["page"] == "home") { $metaTitle = $rSettings["metaTitle"]; } else { if ($_GET["page"] == "404") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("notFound", "words", $languageType); } else { if ($_GET["page"] == "abouts") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("abouts", "words", $languageType); } else { if ($_GET["page"] == "bans") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("bans", "words", $languageType); } else { if ($_GET["page"] == "blog") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("blog", "words", $languageType); } else { if ($_GET["page"] == "card") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("cardGame", "words", $languageType); } else { if ($_GET["page"] == "chest") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("chest", "words", $languageType); } else { if ($_GET["page"] == "coupon") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("giftCoupon", "words", $languageType); } else { if ($_GET["page"] == "credit") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("creditTrans", "words", $languageType); } else { if ($_GET["page"] == "discord") { $metaTitle = $rSettings["serverName"] . " - Discord"; } else { if ($_GET["page"] == "exit") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("logout", "words", $languageType); } else { if ($_GET["page"] == "inventory") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("inventory", "words", $languageType); } else { if ($_GET["page"] == "login") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("login", "words", $languageType); } else { if ($_GET["page"] == "maintance") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("maintance", "words", $languageType); } else { if ($_GET["page"] == "news") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("news", "words", $languageType); } else { if ($_GET["page"] == "pages") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("page", "words", $languageType); } else { if ($_GET["page"] == "player") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("player", "words", $languageType); } else { if ($_GET["page"] == "privacy") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("privacy", "words", $languageType); } else { if ($_GET["page"] == "profile") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("myProfile", "words", $languageType); } else { if ($_GET["page"] == "recovery") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("passwordForgot", "words", $languageType); } else { if ($_GET["page"] == "register") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("register", "words", $languageType); } else { if ($_GET["page"] == "rules") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("rules", "words", $languageType); } else { if ($_GET["page"] == "shopping-cart") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("cart", "words", $languageType); } else { if ($_GET["page"] == "store") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("store", "words", $languageType); } else { if ($_GET["page"] == "support") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("support", "words", $languageType); } else { if ($_GET["page"] == "vote") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("vote", "words", $languageType); } else { if ($_GET["page"] == "help-center") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("helpCenter", "words", $languageType); } else { if ($_GET["page"] == "forum") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("forum", "words", $languageType); } else { if ($_GET["page"] == "lottery") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("lottery", "words", $languageType); } else { if ($_GET["page"] == "applications") { $metaTitle = $rSettings["serverName"] . " - " . languageVariables("application", "words", $languageType); } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } return $metaTitle; } function colorConvert($color, $opacity = 1) { if (strstr($color, "#")) { list($r, $g, $b) = sscanf($color, "#%02x%02x%02x"); return sprintf("%s %s %s", $r, $g, $b); } else { if (strstr($color, "rgba")) { $colorRgb = str_replace(array("rgba(", ")"), array('', ''), $color); $colorData = explode(",", $colorRgb); return $colorData[0] . " " . $colorData[1] . " " . $colorData[2]; } } } function checkModule($name) { global $readModule; $modules = json_decode($readModule["modules"], true); if ($modules[$name] == "TRUE") { return "OK"; } else { return "NO"; } } function exchange($currency) { global $rSettings; if ($rSettings["exchangerateAPI"] == "2") { $APIUrl = "https://api.exchangerate.host/latest?base=" . $currency; } else { $APIUrl = "https://api.frankfurter.app/latest?from=" . $currency; } $cURLExchange = curl_init($APIUrl); curl_setopt($cURLExchange, CURLOPT_URL, $APIUrl); curl_setopt($cURLExchange, CURLOPT_RETURNTRANSFER, true); $cURLExchangeResponse = curl_exec($cURLExchange); curl_close($cURLExchange); return $cURLExchangeResponse; } function money($price) { $exchangerate = $_SESSION["currency"]["default-exchangerate"]; $convertCurrency = $_SESSION["currency"]["user"]; if ($_SESSION["currency"]["user"] == $_SESSION["currency"]["default"]) { $convertedPrice = number_format($price * 1, 2, ".", false); } else { $convertedPrice = number_format($price * $exchangerate["rates"][$convertCurrency], 2, ".", false); } return $convertedPrice; } $smtp = array("host" => $rSettings["smtpServer"], "port" => $rSettings["smtpPort"], "secure" => $rSettings["smtpSecure"], "username" => $rSettings["smtpUsername"], "password" => $rSettings["smtpPassword"], "name" => $rSettings["serverName"] . " - Notification"); use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; goto Z4w82; Z4w82: function sendMail($title, $content, $email, $fullname, $smtp) { global $languageType; define("SMTP_SECURE", $smtp["secure"]); define("SMTP_HOST", $smtp["host"]); define("SMTP_PORT", $smtp["port"]); define("SMTP_USERNAME", $smtp["username"]); define("SMTP_PASSWORD", $smtp["password"]); define("SMTP_NAME", $smtp["name"]); $smtpSecure = SMTP_SECURE; $languageType = $languageType == "tr" ? "tr" : "en"; require_once __DR__ . "/main/includes/packages/class/phpmailer/exception.php"; require_once __DR__ . "/main/includes/packages/class/phpmailer/phpmailer.php"; require_once __DR__ . "/main/includes/packages/class/phpmailer/smtp.php"; $phpMailer = new PHPMailer(true); try { $phpMailer->IsSMTP(); $phpMailer->setLanguage($languageType, __DR__ . "/main/includes/packages/class/phpmailer/lang/"); $phpMailer->SMTPAuth = true; $phpMailer->Host = SMTP_HOST; $phpMailer->Port = SMTP_PORT; if ($smtpSecure == 2) { $phpMailer->SMTPOptions = array("ssl" => array("verify_peer" => false, "verify_peer_name" => false, "allow_self_signed" => true)); } else { $phpMailer->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; } $phpMailer->Username = SMTP_USERNAME; $phpMailer->Password = SMTP_PASSWORD; $phpMailer->SetFrom(SMTP_USERNAME, SMTP_NAME); $phpMailer->AddAddress($email, $fullname); $phpMailer->isHTML(true); $phpMailer->CharSet = "UTF-8"; $phpMailer->Subject = $title; $phpMailer->Body = $content; $phpMailer->send(); return "SUCCESS"; } catch (Exception $ex) { return "Error : " . $ex->errorMessage(); } } goto VTZEE; FHhNc: function discordAPI($type, $variables) { global $db; $INTEGRATION_STATUS = false; $searchIntegration = $db->prepare("SELECT * FROM integrations WHERE integration = ? ORDER BY id ASC"); $searchIntegration->execute(array("DISCORD_BOT")); if ($searchIntegration->rowCount() > 0) { $readIntegration = $searchIntegration->fetch(); if ($readIntegration["status"] == "1") { $integrationVariables = json_decode($readIntegration["variables"], true); $INTEGRATION_STATUS = true; } } if ($INTEGRATION_STATUS == true) { $searchDiscordAccount = $db->prepare("SELECT * FROM accounts WHERE discordID != ? AND id = ?"); $searchDiscordAccount->execute(array("0", $variables["userID"])); if ($searchDiscordAccount->rowCount() > 0) { $readDiscordAccount = $searchDiscordAccount->fetch(); $discordAccountID = $readDiscordAccount["discordID"]; $discordBOTToken = $integrationVariables["token"]; $guildID = $integrationVariables["guildID"]; if ($type == "message") { $discordAPIUrl = "https://discord.com/api/users/@me/channels"; $data = array("recipient_id" => $discordAccountID); $options = array("http" => array("header" => "Authorization: Bot " . $discordBOTToken . "\xd Content-Type: application/json ", "method" => "POST", "content" => json_encode($data))); $context = stream_context_create($options); $result = file_get_contents($discordAPIUrl, false, $context); $channel = json_decode($result, true); $discordAPIUrl = "https://discord.com/api/channels/" . $channel["id"] . "/messages"; $data = array("content" => $variables["message"]); $options = array("http" => array("header" => "Authorization: Bot " . $discordBOTToken . " \xaContent-Type: application/json \xa", "method" => "POST", "content" => json_encode($data))); $context = stream_context_create($options); $result = file_get_contents($discordAPIUrl, false, $context); if ($result) { return "OK"; } } else { if ($type == "role") { $discordAPIUrl = "https://discord.com/api/guilds/" . $guildID . "/members/" . $discordAccountID . "/roles/" . $variables["roleID"]; $data = array(); $options = array("http" => array("header" => "Authorization: Bot " . $discordBOTToken . " \xaContent-Type: application/json\xd ", "method" => "PUT", "content" => json_encode($data))); $context = stream_context_create($options); $result = file_get_contents($discordAPIUrl, false, $context); if ($result) { return "OK"; } } else { if ($type == "change-username") { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://discord.com/api/v9/guilds/" . $guildID . "/members/" . $discordAccountID); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH"); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(array("nick" => $variables["username"]))); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bot " . $discordBOTToken)); $response = curl_exec($ch); curl_close($ch); if ($response) { return "OK"; } } } } } } } goto nH6Mx; VTZEE: function integrations($integration) { global $db; $INTEGRATION_STATUS = false; $searchIntegration = $db->prepare("SELECT * FROM integrations WHERE integration = ? ORDER BY id ASC"); $searchIntegration->execute(array($integration)); if ($searchIntegration->rowCount() > 0) { $readIntegration = $searchIntegration->fetch(); if ($readIntegration["status"] == "1") { $integrationVariables = json_decode($readIntegration["variables"], true); $INTEGRATION_STATUS = true; } } if ($INTEGRATION_STATUS == true) { return $integrationVariables; } else { return "FALSE"; } } goto FHhNc; nH6Mx: function parasutAPI($type, $variables) { if ($type == "access_token") { $url = "https://api.parasut.com/oauth/token"; $data = array("client_id" => $variables["clientID"], "client_secret" => $variables["clientSecret"], "username" => $variables["username"], "password" => $variables["password"], "grant_type" => "password", "redirect_uri" => $variables["callback"], "company_id" => $variables["companyID"]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded", "X-Company-Id: " . $variables["companyID"])); $response = curl_exec($ch); curl_close($ch); $responseData = json_decode($response, true); if (isset($responseData["access_token"])) { return array("status" => "true", "access_token" => $responseData["access_token"]); } else { return array("status" => "false", "error" => $response); } } else { if ($type == "contact") { $turkiyeCities = "[{"il":"Adana","plaka":1,"ilceleri":["Alada\xc4\x9f","Ceyhan","\303\x87ukurova","Feke","\xc4\260mamo\304\x9flu","Karaisal\304\261","Karata\xc5\237","Kozan","Pozant\xc4\xb1","Saimbeyli","Sar\304\261\303\247am","Seyhan","Tufanbeyli","Yumurtal\304\xb1k","Y\303\xbcre\xc4\237ir"]},{"il":"Ad\304\xb1yaman","plaka":2,"ilceleri":["Besni","\xc3\207elikhan","Gerger","G\303\xb6lba\xc5\x9f\304\xb1","Kahta","Merkez","Samsat","Sincik","Tut"]},{"il":"Afyonkarahisar","plaka":3,"ilceleri":["Ba\305\x9fmak\xc3\xa7\xc4\xb1","Bayat","Bolvadin","\303\207ay","\xc3\x87obanlar","Dazk\304\261r\304\xb1","Dinar","Emirda\304\237","Evciler","Hocalar","\304\260hsaniye","\304\260scehisar","K\xc4\261z\xc4\261l\303\266ren","Merkez","Sand\xc4\261kl\xc4\xb1","Sinanpa\305\237a","Sultanda\304\x9f\304\261","\xc5\x9euhut"]},{"il":"A\304\237r\304\261","plaka":4,"ilceleri":["Diyadin","Do\xc4\x9fubayaz\xc4\261t","Ele\305\237kirt","Hamur","Merkez","Patnos","Ta\305\x9fl\304\261\303\xa7ay","Tutak"]},{"il":"Amasya","plaka":5,"ilceleri":["G\303\xb6yn\303\274cek","G\xc3\274m\xc3\xbc\305\x9fhac\xc4\xb1k\xc3\xb6y","Hamam\xc3\xb6z\303\xbc","Merkez","Merzifon","Suluova","Ta\xc5\237ova"]},{"il":"Ankara","plaka":6,"ilceleri":["Alt\xc4\261nda\304\237","Aya\xc5\237","Bala","Beypazar\xc4\261","\xc3\207aml\304\261dere","\303\x87ankaya","\xc3\x87ubuk","Elmada\304\237","G\303\xbcd\303\xbcl","Haymana","Kalecik","K\304\261z\304\xb1lcahamam","Nall\xc4\xb1han","Polatl\xc4\xb1","\xc5\x9eerefliko\303\247hisar","Yenimahalle","G\xc3\266lba\305\237\xc4\xb1","Ke\xc3\247i\303\266ren","Mamak","Sincan","Kazan","Akyurt","Etimesgut","Evren","Pursaklar"]},{"il":"Antalya","plaka":7,"ilceleri":["Akseki","Alanya","Elmal\xc4\261","Finike","Gazipa\xc5\x9fa","G\xc3\xbcndo\xc4\237mu\305\237","Ka\305\x9f","Korkuteli","Kumluca","Manavgat","Serik","Demre","\304\xb0brad\xc4\xb1","Kemer","Aksu","D\xc3\xb6\305\237emealt\xc4\261","Kepez","Konyaalt\304\xb1","Muratpa\xc5\237a"]},{"il":"Artvin","plaka":8,"ilceleri":["Ardanu\xc3\247","Arhavi","Merkez","Bor\303\xa7ka","Hopa","\305\236av\305\237at","Yusufeli","Murgul"]},{"il":"Ayd\xc4\261n","plaka":9,"ilceleri":["Merkez","Bozdo\304\x9fan","Efeler","\xc3\207ine","Germencik","Karacasu","Ko\xc3\247arl\304\261","Ku\xc5\x9fadas\xc4\261","Kuyucak","Nazilli","S\xc3\xb6ke","Sultanhisar","Yenipazar","Buharkent","\304\xb0ncirliova","Karpuzlu","K\303\xb6\305\x9fk","Didim"]},{"il":"Bal\304\xb1kesir","plaka":10,"ilceleri":["Alt\xc4\261eyl\xc3\xbcl","Ayval\xc4\xb1k","Merkez","Balya","Band\304\261rma","Bigadi\xc3\xa7","Burhaniye","Dursunbey","Edremit","Erdek","G\xc3\xb6nen","Havran","\304\xb0vrindi","Karesi","Kepsut","Manyas","Sava\305\x9ftepe","S\xc4\261nd\304\261rg\xc4\xb1","G\xc3\xb6me\xc3\247","Susurluk","Marmara"]},{"il":"Bilecik","plaka":11,"ilceleri":["Merkez","Boz\xc3\xbcy\303\274k","G\xc3\266lpazar\304\xb1","Osmaneli","Pazaryeri","S\xc3\xb6\304\x9f\xc3\274t","Yenipazar","\304\260nhisar"]},{"il":"Bing\303\xb6l","plaka":12,"ilceleri":["Merkez","Gen\xc3\247","Karl\304\261ova","Ki\xc4\237\304\261","Solhan","Adakl\304\261","Yayladere","Yedisu"]},{"il":"Bitlis","plaka":13,"ilceleri":["Adilcevaz","Ahlat","Merkez","Hizan","Mutki","Tatvan","G\xc3\274roymak"]},{"il":"Bolu","plaka":14,"ilceleri":["Merkez","Gerede","G\303\xb6yn\xc3\274k","K\304\xb1br\xc4\xb1sc\xc4\261k","Mengen","Mudurnu","Seben","D\303\xb6rtdivan","Yeni\303\xa7a\xc4\x9fa"]},{"il":"Burdur","plaka":15,"ilceleri":["A\304\x9flasun","Bucak","Merkez","G\303\xb6lhisar","Tefenni","Ye\305\237ilova","Karamanl\304\xb1","Kemer","Alt\xc4\xb1nyayla","\xc3\207avd\xc4\261r","\303\207eltik\303\xa7i"]},{"il":"Bursa","plaka":16,"ilceleri":["Gemlik","\304\260neg\xc3\266l","\304\xb0znik","Karacabey","Keles","Mudanya","Mustafakemalpa\xc5\x9fa","Orhaneli","Orhangazi","Yeni\305\x9fehir","B\303\274y\xc3\274korhan","Harmanc\304\261k","Nil\xc3\xbcfer","Osmangazi","Y\304\261ld\xc4\xb1r\304\xb1m","G\303\xbcrsu","Kestel"]},{"il":"\303\x87anakkale","plaka":17,"ilceleri":["Ayvac\xc4\261k","Bayrami\xc3\xa7","Biga","Bozcaada","\xc3\207an","Merkez","Eceabat","Ezine","Gelibolu","G\xc3\266k\303\xa7eada","Lapseki","Yenice"]},{"il":"\303\207ank\304\261r\xc4\xb1","plaka":18,"ilceleri":["Merkez","\xc3\207erke\305\237","Eldivan","Ilgaz","Kur\xc5\237unlu","Orta","\305\x9eaban\303\xb6z\xc3\274","Yaprakl\xc4\261","Atkaracalar","K\xc4\261z\xc4\xb1l\304\261rmak","Bayram\303\266ren","Korgun"]},{"il":"\303\x87orum","plaka":19,"ilceleri":["Alaca","Bayat","Merkez","\xc4\260skilip","Karg\304\261","Mecit\303\266z\xc3\xbc","Ortak\xc3\xb6y","Osmanc\xc4\xb1k","Sungurlu","Bo\304\x9fazkale","U\304\x9furluda\xc4\x9f","Dodurga","La\303\247in","O\304\237uzlar"]},{"il":"Denizli","plaka":20,"ilceleri":["Ac\xc4\xb1payam","Buldan","\303\207al","\xc3\207ameli","\303\x87ardak","\303\x87ivril","Merkez","Merkezefendi","Pamukkale","G\303\274ney","Kale","Sarayk\xc3\266y","Tavas","Babada\xc4\x9f","Bekilli","Honaz","Serinhisar","Baklan","Beya\304\x9fa\xc3\xa7","Bozkurt"]},{"il":"Diyarbak\xc4\261r","plaka":21,"ilceleri":["Kocak\303\xb6y","\303\207ermik","\303\x87\xc4\xb1nar","\303\207\303\274ng\xc3\xbc\305\237","Dicle","Ergani","Hani","Hazro","Kulp","Lice","Silvan","E\304\x9fil","Ba\304\237lar","Kayap\304\261nar","Sur","Yeni\305\x9fehir","Bismil"]},{"il":"Edirne","plaka":22,"ilceleri":["Merkez","Enez","Havsa","\304\xb0psala","Ke\xc5\237an","Lalapa\305\x9fa","Meri\303\xa7","Uzunk\xc3\266pr\xc3\274","S\xc3\xbclo\304\237lu"]},{"il":"Elaz\304\261\304\237","plaka":23,"ilceleri":["A\xc4\x9f\xc4\261n","Baskil","Merkez","Karako\303\247an","Keban","Maden","Palu","Sivrice","Ar\304\xb1cak","Kovanc\304\261lar","Alacakaya"]},{"il":"Erzincan","plaka":24,"ilceleri":["\xc3\207ay\304\xb1rl\304\xb1","Merkez","\xc4\xb0li\303\xa7","Kemah","Kemaliye","Refahiye","Tercan","\303\234z\303\274ml\xc3\274","Otlukbeli"]},{"il":"Erzurum","plaka":25,"ilceleri":["A\305\237kale","\xc3\x87at","H\304\xb1n\304\xb1s","Horasan","\304\260spir","Karayaz\304\261","Narman","Oltu","Olur","Pasinler","\xc5\x9eenkaya","Tekman","Tortum","Kara\303\xa7oban","Uzundere","Pazaryolu","K\xc3\266pr\303\274k\303\xb6y","Paland\303\266ken","Yakutiye","Aziziye"]},{"il":"Eski\xc5\237ehir","plaka":26,"ilceleri":["\xc3\207ifteler","Mahmudiye","Mihal\xc4\xb1\303\247\xc3\xa7\304\xb1k","Sar\xc4\261cakaya","Seyitgazi","Sivrihisar","Alpu","Beylikova","\304\260n\xc3\266n\xc3\274","G\303\274ny\303\274z\303\274","Han","Mihalgazi","Odunpazar\304\261","Tepeba\xc5\x9f\304\xb1"]},{"il":"Gaziantep","plaka":27,"ilceleri":["Araban","\304\260slahiye","Nizip","O\304\237uzeli","Yavuzeli","\xc5\x9eahinbey","\305\x9eehitkamil","Karkam\304\261\305\237","Nurda\xc4\237\xc4\xb1"]},{"il":"Giresun","plaka":28,"ilceleri":["Alucra","Bulancak","Dereli","Espiye","Eynesil","Merkez","G\303\266rele","Ke\305\x9fap","\xc5\236ebinkarahisar","Tirebolu","Piraziz","Ya\304\237l\xc4\xb1dere","\xc3\x87amoluk","\303\x87anak\303\247\xc4\xb1","Do\304\x9fankent","G\xc3\274ce"]},{"il":"G\303\274m\xc3\274\305\x9fhane","plaka":29,"ilceleri":["Merkez","Kelkit","\xc5\x9eiran","Torul","K\xc3\266se","K\xc3\xbcrt\xc3\xbcn"]},{"il":"Hakkari","plaka":30,"ilceleri":["\303\x87ukurca","Merkez","\xc5\x9eemdinli","Y\303\xbcksekova"]},{"il":"Hatay","plaka":31,"ilceleri":["Alt\304\261n\xc3\266z\xc3\274","Arsuz","Defne","D\xc3\xb6rtyol","Hassa","Antakya","\xc4\xb0skenderun","K\xc4\261r\xc4\261khan","Payas","Reyhanl\xc4\xb1","Samanda\xc4\237","Yaylada\xc4\x9f\xc4\261","Erzin","Belen","Kumlu"]},{"il":"Isparta","plaka":32,"ilceleri":["Atabey","E\xc4\237irdir","Gelendost","Merkez","Ke\xc3\247iborlu","Senirkent","S\303\xbct\xc3\247\303\274ler","\305\x9earkikaraa\xc4\x9fa\303\247","Uluborlu","Yalva\303\xa7","Aksu","G\303\266nen","Yeni\305\237arbademli"]},{"il":"Mersin","plaka":33,"ilceleri":["Anamur","Erdemli","G\303\274lnar","Mut","Silifke","Tarsus","Ayd\304\xb1nc\xc4\xb1k","Bozyaz\xc4\xb1","\xc3\207aml\xc4\xb1yayla","Akdeniz","Mezitli","Toroslar","Yeni\305\x9fehir"]},{"il":"\xc4\260stanbul","plaka":34,"ilceleri":["Adalar","Bak\304\261rk\xc3\266y","Be\xc5\237ikta\xc5\x9f","Beykoz","Beyo\304\237lu","\xc3\207atalca","Ey\303\274p","Fatih","Gaziosmanpa\xc5\x9fa","Kad\xc4\261k\303\266y","Kartal","Sar\xc4\xb1yer","Silivri","\xc5\236ile","\xc5\x9ei\305\x9fli","\xc3\x9csk\303\xbcdar","Zeytinburnu","B\303\274y\xc3\274k\xc3\xa7ekmece","Ka\304\237\xc4\xb1thane","K\xc3\274\303\xa7\xc3\xbck\303\xa7ekmece","Pendik","\xc3\234mraniye","Bayrampa\xc5\x9fa","Avc\xc4\xb1lar","Ba\304\x9fc\304\xb1lar","Bah\303\xa7elievler","G\xc3\274ng\303\266ren","Maltepe","Sultanbeyli","Tuzla","Esenler","Arnavutk\303\xb6y","Ata\305\237ehir","Ba\305\237ak\xc5\x9fehir","Beylikd\303\xbcz\303\274","\xc3\207ekmek\303\xb6y","Esenyurt","Sancaktepe","Sultangazi"]},{"il":"\304\260zmir","plaka":35,"ilceleri":["Alia\304\x9fa","Bay\xc4\261nd\304\261r","Bergama","Bornova","\303\207e\xc5\x9fme","Dikili","Fo\303\xa7a","Karaburun","Kar\305\x9f\xc4\261yaka","Kemalpa\305\237a","K\304\xb1n\xc4\261k","Kiraz","Menemen","\xc3\226demi\xc5\x9f","Seferihisar","Sel\xc3\247uk","Tire","Torbal\xc4\261","Urla","Beyda\304\x9f","Buca","Konak","Menderes","Bal\303\247ova","\xc3\x87i\xc4\x9fli","Gaziemir","Narl\304\261dere","G\303\xbczelbah\303\xa7e","Bayrakl\xc4\261","Karaba\xc4\x9flar"]},{"il":"Kars","plaka":36,"ilceleri":["Arpa\xc3\247ay","Digor","Ka\xc4\x9f\xc4\261zman","Merkez","Sar\xc4\261kam\xc4\261\xc5\237","Selim","Susuz","Akyaka"]},{"il":"Kastamonu","plaka":37,"ilceleri":["Abana","Ara\303\247","Azdavay","Bozkurt","Cide","\xc3\207atalzeytin","Daday","Devrekani","\304\xb0nebolu","Merkez","K\303\274re","Ta\xc5\x9fk\303\xb6pr\303\274","Tosya","\304\260hsangazi","P\304\261narba\305\x9f\304\261","\xc5\x9eenpazar","A\xc4\237l\304\261","Do\xc4\x9fanyurt","Han\303\266n\xc3\xbc","Seydiler"]},{"il":"Kayseri","plaka":38,"ilceleri":["B\303\xbcnyan","Develi","Felahiye","\304\260ncesu","P\xc4\xb1narba\xc5\x9f\304\xb1","Sar\304\xb1o\xc4\x9flan","Sar\304\xb1z","Tomarza","Yahyal\xc4\xb1","Ye\305\x9filhisar","Akk\xc4\xb1\305\x9fla","Talas","Kocasinan","Melikgazi","Hac\304\261lar","\xc3\226zvatan"]},{"il":"K\304\xb1rklareli","plaka":39,"ilceleri":["Babaeski","Demirk\303\xb6y","Merkez","Kof\303\247az","L\303\274leburgaz","Pehlivank\xc3\266y","P\xc4\xb1narhisar","Vize"]},{"il":"K\304\xb1r\305\x9fehir","plaka":40,"ilceleri":["\303\207i\xc3\247ekda\xc4\x9f\xc4\261","Kaman","Merkez","Mucur","Akp\xc4\xb1nar","Ak\xc3\247akent","Boztepe"]},{"il":"Kocaeli","plaka":41,"ilceleri":["Gebze","G\xc3\266lc\303\xbck","Kand\xc4\xb1ra","Karam\xc3\xbcrsel","K\303\xb6rfez","Derince","Ba\xc5\x9fiskele","\xc3\x87ay\304\261rova","Dar\304\261ca","Dilovas\304\261","\xc4\260zmit","Kartepe"]},{"il":"Konya","plaka":42,"ilceleri":["Ak\305\x9fehir","Bey\xc5\237ehir","Bozk\xc4\xb1r","Cihanbeyli","\xc3\x87umra","Do\304\237anhisar","Ere\304\x9fli","Hadim","Ilg\xc4\xb1n","Kad\xc4\261nhan\xc4\261","Karap\xc4\261nar","Kulu","Saray\303\xb6n\xc3\274","Seydi\305\x9fehir","Yunak","Ak\xc3\266ren","Alt\xc4\xb1nekin","Derebucak","H\303\xbcy\303\274k","Karatay","Meram","Sel\xc3\xa7uklu","Ta\xc5\237kent","Ah\304\261rl\304\261","\xc3\x87eltik","Derbent","Emirgazi","G\303\xbcneys\xc4\xb1n\xc4\xb1r","Halkap\xc4\261nar","Tuzluk\xc3\xa7u","Yal\xc4\xb1h\xc3\xbcy\303\274k"]},{"il":"K\xc3\xbctahya","plaka":43,"ilceleri":["Alt\304\261nta\305\237","Domani\303\247","Emet","Gediz","Merkez","Simav","Tav\305\237anl\xc4\xb1","Aslanapa","Dumlup\xc4\xb1nar","Hisarc\304\xb1k","\xc5\x9eaphane","\xc3\x87avdarhisar","Pazarlar"]},{"il":"Malatya","plaka":44,"ilceleri":["Ak\xc3\247ada\304\237","Arapgir","Arguvan","Darende","Do\xc4\x9fan\xc5\237ehir","Hekimhan","Merkez","P\xc3\xbct\303\xbcrge","Ye\305\237ilyurt","Battalgazi","Do\xc4\x9fanyol","Kale","Kuluncak","Yaz\xc4\261han"]},{"il":"Manisa","plaka":45,"ilceleri":["Akhisar","Ala\xc5\237ehir","Demirci","G\303\266rdes","K\xc4\xb1rka\xc4\x9fa\303\xa7","Kula","Merkez","Salihli","Sar\304\xb1g\xc3\266l","Saruhanl\304\261","Selendi","Soma","\xc5\236ehzadeler","Yunusemre","Turgutlu","Ahmetli","G\303\266lmarmara","K\303\xb6pr\303\274ba\305\x9f\304\261"]},{"il":"Kahramanmara\xc5\237","plaka":46,"ilceleri":["Af\xc5\x9fin","And\xc4\261r\xc4\xb1n","Dulkadiro\xc4\237lu","Oniki\xc5\237ubat","Elbistan","G\xc3\xb6ksun","Merkez","Pazarc\xc4\xb1k","T\xc3\xbcrko\xc4\x9flu","\303\207a\304\x9flayancerit","Ekin\303\xb6z\xc3\xbc","Nurhak"]},{"il":"Mardin","plaka":47,"ilceleri":["Derik","K\xc4\261z\304\xb1ltepe","Artuklu","Merkez","Maz\304\xb1da\304\x9f\xc4\261","Midyat","Nusaybin","\303\226merli","Savur","Darge\303\247it","Ye\xc5\237illi"]},{"il":"Mu\304\237la","plaka":48,"ilceleri":["Bodrum","Dat\xc3\247a","Fethiye","K\303\xb6yce\304\x9fiz","Marmaris","Mente\305\237e","Milas","Ula","Yata\304\237an","Dalaman","Seydikemer","Ortaca","Kavakl\304\261dere"]},{"il":"Mu\305\237","plaka":49,"ilceleri":["Bulan\xc4\261k","Malazgirt","Merkez","Varto","Hask\303\266y","Korkut"]},{"il":"Nev\xc5\x9fehir","plaka":50,"ilceleri":["Avanos","Derinkuyu","G\xc3\xbcl\xc5\237ehir","Hac\xc4\261bekta\305\x9f","Kozakl\304\xb1","Merkez","\xc3\234rg\xc3\274p","Ac\304\261g\xc3\xb6l"]},{"il":"Ni\304\237de","plaka":51,"ilceleri":["Bor","\303\207amard\304\261","Merkez","Uluk\304\261\xc5\237la","Altunhisar","\xc3\207iftlik"]},{"il":"Ordu","plaka":52,"ilceleri":["Akku\xc5\x9f","Alt\304\xb1nordu","Aybast\xc4\xb1","Fatsa","G\303\xb6lk\xc3\266y","Korgan","Kumru","Mesudiye","Per\xc5\237embe","Ulubey","\303\x9cnye","G\303\274lyal\304\xb1","G\xc3\274rgentepe","\303\207ama\xc5\x9f","\xc3\207atalp\304\261nar","\xc3\x87ayba\xc5\x9f\304\xb1","\xc4\xb0kizce","Kabad\xc3\xbcz","Kabata\xc5\x9f"]},{"il":"Rize","plaka":53,"ilceleri":["Arde\xc5\237en","\303\x87aml\304\261hem\xc5\x9fin","\303\207ayeli","F\xc4\xb1nd\xc4\xb1kl\304\261","\304\260kizdere","Kalkandere","Pazar","Merkez","G\303\xbcneysu","Derepazar\xc4\261","Hem\xc5\x9fin","\xc4\xb0yidere"]},{"il":"Sakarya","plaka":54,"ilceleri":["Akyaz\xc4\xb1","Geyve","Hendek","Karasu","Kaynarca","Sapanca","Kocaali","Pamukova","Tarakl\xc4\xb1","Ferizli","Karap\303\xbcr\xc3\247ek","S\xc3\xb6\xc4\x9f\303\274tl\303\xbc","Adapazar\xc4\xb1","Arifiye","Erenler","Serdivan"]},{"il":"Samsun","plaka":55,"ilceleri":["Ala\303\247am","Bafra","\303\x87ar\305\x9famba","Havza","Kavak","Ladik","Terme","Vezirk\303\266pr\xc3\xbc","Asarc\304\xb1k","Ondokuzmay\xc4\xb1s","Sal\304\xb1pazar\304\261","Tekkek\xc3\xb6y","Ayvac\304\xb1k","Yakakent","Atakum","Canik","\xc4\260lkad\xc4\xb1m"]},{"il":"Siirt","plaka":56,"ilceleri":["Baykan","Eruh","Kurtalan","Pervari","Merkez","\305\x9eirvan","Tillo"]},{"il":"Sinop","plaka":57,"ilceleri":["Ayanc\304\xb1k","Boyabat","Dura\304\x9fan","Erfelek","Gerze","Merkez","T\303\274rkeli","Dikmen","Sarayd\303\274z\303\274"]},{"il":"Sivas","plaka":58,"ilceleri":["Divri\xc4\x9fi","Gemerek","G\303\274r\303\xbcn","Hafik","\304\xb0mranl\xc4\xb1","Kangal","Koyulhisar","Merkez","Su\xc5\237ehri","\xc5\x9eark\304\xb1\xc5\237la","Y\304\xb1ld\xc4\261zeli","Zara","Ak\304\261nc\xc4\261lar","Alt\304\xb1nyayla","Do\xc4\x9fan\305\237ar","G\303\266lova","Ula\305\x9f"]},{"il":"Tekirda\304\237","plaka":59,"ilceleri":["\xc3\207erkezk\xc3\xb6y","\xc3\207orlu","Ergene","Hayrabolu","Malkara","Muratl\304\xb1","Saray","S\303\274leymanpa\305\x9fa","Kapakl\304\xb1","\xc5\236ark\303\xb6y","Marmaraere\304\237lisi"]},{"il":"Tokat","plaka":60,"ilceleri":["Almus","Artova","Erbaa","Niksar","Re\xc5\x9fadiye","Merkez","Turhal","Zile","Pazar","Ye\xc5\x9filyurt","Ba\xc5\237\303\xa7iftlik","Sulusaray"]},{"il":"Trabzon","plaka":61,"ilceleri":["Ak\xc3\247aabat","Arakl\304\xb1","Arsin","\303\x87aykara","Ma\303\xa7ka","Of","Ortahisar","S\303\274rmene","Tonya","Vakf\xc4\261kebir","Yomra","Be\305\237ikd\303\xbcz\xc3\274","\305\x9ealpazar\xc4\261","\303\x87ar\xc5\x9f\xc4\261ba\xc5\x9f\304\xb1","Dernekpazar\304\xb1","D\303\xbczk\303\266y","Hayrat","K\303\xb6pr\xc3\274ba\305\237\304\xb1"]},{"il":"Tunceli","plaka":62,"ilceleri":["\303\207emi\305\237gezek","Hozat","Mazgirt","Naz\xc4\xb1miye","Ovac\304\261k","Pertek","P\xc3\xbcl\xc3\xbcm\xc3\xbcr","Merkez"]},{"il":"\305\x9eanl\xc4\261urfa","plaka":63,"ilceleri":["Ak\303\xa7akale","Birecik","Bozova","Ceylanp\xc4\261nar","Eyy\303\274biye","Halfeti","Haliliye","Hilvan","Karak\xc3\xb6pr\303\xbc","Siverek","Suru\303\xa7","Viran\305\x9fehir","Harran"]},{"il":"U\xc5\x9fak","plaka":64,"ilceleri":["Banaz","E\305\237me","Karahall\xc4\261","Sivasl\xc4\261","Ulubey","Merkez"]},{"il":"Van","plaka":65,"ilceleri":["Ba\xc5\x9fkale","\303\207atak","Erci\xc5\x9f","Geva\xc5\237","G\xc3\xbcrp\xc4\261nar","\xc4\xb0pekyolu","Muradiye","\303\x96zalp","Tu\305\237ba","Bah\xc3\xa7esaray","\xc3\x87ald\xc4\xb1ran","Edremit","Saray"]},{"il":"Yozgat","plaka":66,"ilceleri":["Akda\xc4\x9fmadeni","Bo\304\x9fazl\304\261yan","\xc3\207ay\304\xb1ralan","\303\207ekerek","Sar\304\xb1kaya","Sorgun","\305\x9eefaatli","Yerk\303\266y","Merkez","Ayd\xc4\xb1nc\304\261k","\xc3\207and\304\261r","Kad\304\xb1\305\237ehri","Saraykent","Yenifak\304\261l\304\xb1"]},{"il":"Zonguldak","plaka":67,"ilceleri":["\303\207aycuma","Devrek","Ere\304\x9fli","Merkez","Alapl\xc4\xb1","G\303\266k\xc3\xa7ebey"]},{"il":"Aksaray","plaka":68,"ilceleri":["A\xc4\237a\303\247\303\xb6ren","Eskil","G\xc3\xbcla\304\x9fa\xc3\xa7","G\xc3\xbczelyurt","Merkez","Ortak\303\266y","Sar\304\261yah\xc5\237i"]},{"il":"Bayburt","plaka":69,"ilceleri":["Merkez","Ayd\304\xb1ntepe","Demir\xc3\266z\xc3\274"]},{"il":"Karaman","plaka":70,"ilceleri":["Ermenek","Merkez","Ayranc\304\261","Kaz\xc4\xb1mkarabekir","Ba\305\x9fyayla","Sar\xc4\xb1veliler"]},{"il":"K\304\xb1r\xc4\xb1kkale","plaka":71,"ilceleri":["Delice","Keskin","Merkez","Sulakyurt","Bah\305\237ili","Bal\xc4\261\305\237eyh","\xc3\x87elebi","Karake\303\247ili","Yah\xc5\x9fihan"]},{"il":"Batman","plaka":72,"ilceleri":["Merkez","Be\305\x9firi","Gerc\303\274\xc5\x9f","Kozluk","Sason","Hasankeyf"]},{"il":"\305\x9e\304\xb1rnak","plaka":73,"ilceleri":["Beyt\303\274\305\237\305\237ebap","Cizre","\304\xb0dil","Silopi","Merkez","Uludere","G\303\xbc\303\xa7l\xc3\xbckonak"]},{"il":"Bart\xc4\xb1n","plaka":74,"ilceleri":["Merkez","Kuruca\305\x9file","Ulus","Amasra"]},{"il":"Ardahan","plaka":75,"ilceleri":["Merkez","\303\207\xc4\261ld\xc4\xb1r","G\303\266le","Hanak","Posof","Damal"]},{"il":"I\304\237d\304\261r","plaka":76,"ilceleri":["Aral\xc4\xb1k","Merkez","Tuzluca","Karakoyunlu"]},{"il":"Yalova","plaka":77,"ilceleri":["Merkez","Alt\xc4\xb1nova","Armutlu","\xc3\x87\304\261narc\xc4\xb1k","\303\207iftlikk\303\266y","Termal"]},{"il":"Karab\xc3\274k","plaka":78,"ilceleri":["Eflani","Eskipazar","Merkez","Ovac\304\xb1k","Safranbolu","Yenice"]},{"il":"Kilis","plaka":79,"ilceleri":["Merkez","Elbeyli","Musabeyli","Polateli"]},{"il":"Osmaniye","plaka":80,"ilceleri":["Bah\303\xa7e","Kadirli","Merkez","D\303\274zi\303\247i","Hasanbeyli","Sumbas","Toprakkale"]},{"il":"D\xc3\xbczce","plaka":81,"ilceleri":["Ak\303\xa7akoca","Merkez","Y\xc4\261\xc4\237\xc4\261lca","Cumayeri","G\xc3\xb6lyaka","\303\207ilimli","G\303\274m\xc3\xbc\xc5\237ova","Kayna\305\x9fl\304\261"]}]"; $dataArray = json_decode($turkiyeCities, true); $randomCityIndex = array_rand($dataArray); $randomCity = $dataArray[$randomCityIndex]; $randomDistrictIndex = array_rand($randomCity["ilceleri"]); $randomDistrict = $randomCity["ilceleri"][$randomDistrictIndex]; $accessToken = $variables["access_token"]; $companyId = $variables["companyID"]; $url = "https://api.parasut.com/v4/" . $companyId . "/contacts"; $data = array("data" => array("type" => "contacts", "attributes" => array("email" => $variables["customer"]["email"], "name" => $variables["customer"]["fullname"], "phone" => $variables["customer"]["phone"], "tax_number" => "11111111111", "city" => $randomCity["il"], "district" => $randomDistrict, "account_type" => "customer"))); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . $accessToken, "X-Company-Id: " . $companyId)); $response = curl_exec($ch); curl_close($ch); $responseData = json_decode($response, true); if (isset($responseData["data"]["id"])) { return array("status" => "true", "id" => $responseData["data"]["id"]); } else { return array("status" => "false", "error" => $response); } } else { if ($type == "product") { $accessToken = $variables["access_token"]; $companyId = $variables["companyID"]; $url = "https://api.parasut.com/v4/" . $companyId . "/products"; $data = array("data" => array("type" => "products", "attributes" => array("name" => $variables["product"]["name"], "sales_price" => $variables["product"]["price"]))); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . $accessToken, "X-Company-Id: " . $companyId)); $response = curl_exec($ch); curl_close($ch); $responseData = json_decode($response, true); if (isset($responseData["data"]["id"])) { return array("status" => "true", "id" => $responseData["data"]["id"]); } else { return array("status" => "false", "error" => $response); } } else { if ($type == "invoice") { $accessToken = $variables["access_token"]; $companyId = $variables["companyID"]; $url = "https://api.parasut.com/v4/" . $companyId . "/sales_invoices"; $data = array("data" => array("type" => "sales_invoices", "attributes" => array("item_type" => "invoice", "description" => $variables["invoice"]["description"], "issue_date" => date("Y-m-d"), "due_date" => date("Y-m-d"), "invoice_series" => "ORDER", "invoice_id" => $variables["invoice"]["id"], "currency" => "TRL", "shipment_included" => false), "relationships" => array("details" => array("data" => array(0 => array("type" => "sales_invoice_details", "attributes" => array("quantity" => 1, "unit_price" => $variables["product"]["price"], "vat_rate" => $variables["product"]["vat"]), "relationships" => array("product" => array("data" => array("id" => $variables["product"]["id"], "type" => "products")))))), "contact" => array("data" => array("id" => $variables["contact"]["id"], "type" => "contacts"))))); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . $accessToken, "X-Company-Id: " . $companyId)); $response = curl_exec($ch); curl_close($ch); $responseData = json_decode($response, true); if (isset($responseData["data"]["id"])) { return array("status" => "true", "id" => $responseData["data"]["id"]); } else { return array("status" => "false", "error" => $response); } } else { if ($type == "payments") { $accessToken = $variables["access_token"]; $companyId = $variables["companyID"]; $invoiceId = $variables["invoiceID"]; $url = "https://api.parasut.com/v4/" . $companyId . "/sales_invoices/" . $invoiceId . "/payments"; $data = array("data" => array("type" => "payments", "attributes" => array("account_id" => $variables["accountID"], "amount" => $variables["totalAmount"], "date" => date("Y-m-d"), "description" => $variables["description"]))); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . $accessToken, "X-Company-Id: " . $companyId)); $response = curl_exec($ch); curl_close($ch); $responseData = json_decode($response, true); if (isset($responseData["data"])) { return array("status" => "true"); } else { return array("status" => "false", "error" => $response); } } else { if ($type == "e-archive") { $accessToken = $variables["access_token"]; $companyId = $variables["companyID"]; $invoiceId = $variables["invoiceID"]; $url = "https://api.parasut.com/v4/" . $companyId . "/e_archives"; $data = array("data" => array("type" => "e_archives", "attributes" => array("internet_sale" => array("url" => $variables["siteURL"], "payment_type" => "KREDIKARTI/BANKAKARTI", "payment_platform" => $variables["paymentTool"], "payment_date" => date("Y-m-d"))), "relationships" => array("sales_invoice" => array("data" => array("id" => $invoiceId, "type" => "sales_invoices"))))); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json", "Authorization: Bearer " . $accessToken, "X-Company-Id: " . $companyId)); $response = curl_exec($ch); curl_close($ch); $responseData = json_decode($response, true); if (isset($responseData["data"]["id"])) { return array("status" => "true", "id" => $responseData["data"]["id"]); } else { return array("status" => "false", "error" => $response); } } } } } } } } goto Bwfx9; Bwfx9: ?>