Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php require "\166\x65\156\144\x6f\162\57\x61\165\164\157\x6c\157\141\144\56\x70\150\16..

Decoded Output download

<?php 
 require "vendor/autoload.php"; use Slim\Http\Request; use Slim\Http\Response; use Firebase\JWT\JWT; goto ixfpZ; KYJpR: $app->get("/clearRead", function ($request, $response, $args) { $q = "update titikbaca_trx_baca set sts='0' \xa    where timestampdiff(SECOND,tgl_selesai_baca,now())>45 and sts='1'"; $stmt = $this->db->prepare($q); $stmt->execute(); $result["code"] = CODE_SUCCESS; $result["msg"] = "Ok"; return echoResponse($response, $result, 200); }); goto OAAsk; DBflr: function deleteToken($obj, $token) { $q = "delete from titikbaca_jwt where jwt=:token"; $stmt = $obj->db->prepare($q); $stmt->bindParam(":token", $token); $stmt->execute(); $q = "delete from titikbaca_jwt where tgl_kadaluwarsa>now()"; $stmt = $obj->db->prepare($q); $stmt->execute(); } goto eZSDc; GcZ1i: Header("Access-Control-Allow-Credentials: true"); goto fyRYD; k0F1k: header("Access-Control-Max-Age: 1000"); goto e3RUL; FQ_5w: $app->get("/titikBacaThemes/{token}", function ($request, $response, $args) { $token = $args["token"]; $result = array(); if ($token != "null") { $q = "SELECT id, id_mitra \xa	\x9FROM titikbaca_mitra_lokasi where \xa\x9\x9alias=:alias"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->execute(); if ($stmt->rowCount() > 0) { $row = $stmt->fetch(); $id_lokasi = $row["id"]; $id_mitra = $row["id_mitra"]; $q = "select 
\x9\x9\x9color warna, dark_color dark, img_head head, img_splash splash, text_color text\xa	\x9\x9from titikbaca_themes \xa\x9\x9\x9WHERE \xa\x9\x9\x9id_mitra = {$id_mitra} and id_mitra_lokasi={$id_lokasi}"; $stmt = $this->db->prepare($q); $stmt->execute(); $result = $stmt->fetch(); if ($stmt->rowCount() == 0) { $q = "select \xa	\x9	\x9color warna, dark_color dark, img_head head, img_splash splash, text_color text
\x9	\x9\x9from titikbaca_themes 
		\x9\x9WHERE \xa		\x9\x9id_mitra = {$id_mitra} and id_mitra_lokasi=0"; $stmt = $this->db->prepare($q); $stmt->execute(); $result = $stmt->fetch(); if ($stmt->rowCount() == 0) { $result["warna"] = ''; $result["dark"] = ''; $result["head"] = ''; $result["text"] = ''; $result["splash"] = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOdAAADnQBaySz1gAAABh0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzT7MfTgAAABZ0RVh0Q3JlYXRpb24gVGltZQAxMS8zMC8yMu+YlTQAAAANSURBVAiZY/j//z8DAAj8Av6Fzas0AAAAAElFTkSuQmCC"; } } $result["code"] = CODE_SUCCESS; } else { $result["code"] = CODE_EMPTY; } } else { $result["warna"] = ''; $result["dark"] = ''; $result["head"] = ''; $result["text"] = ''; $result["splash"] = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOdAAADnQBaySz1gAAABh0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzT7MfTgAAABZ0RVh0Q3JlYXRpb24gVGltZQAxMS8zMC8yMu+YlTQAAAANSURBVAiZY/j//z8DAAj8Av6Fzas0AAAAAElFTkSuQmCC"; $result["code"] = CODE_SUCCESS; } return echoResponse($response, $result, 200); }); goto bCmD7; iy7_b: define("CODE_EMPTY", 400); goto j7QJb; gBjzz: function checkToken($obj, $token) { $q = "select id from titikbaca_jwt where jwt=:token"; $stmt = $obj->db->prepare($q); $stmt->bindParam(":token", $token); $stmt->execute(); if ($stmt->rowCount() > 0) { return true; } return false; } goto DBflr; j7QJb: define("CODE_ERROR", 500); goto To5rl; IOMv1: $app->get("/titikBacaAll", function ($request, $response, $args) { $q = "select alias FROM titikbaca_mitra_lokasi
\x9where id in (SELECT id_mitra_lokasi FROM titikbaca_mitra_lokasi_konten where sts=1)"; $stmt = $this->db->prepare($q); $stmt->execute(); if ($stmt->rowCount() > 0) { $result["code"] = 200; $result["data"] = $stmt->fetchAll(); } else { $result["code"] = CODE_EMPTY; } return echoResponse($response, $result, 200); }); goto FQ_5w; k7V8u: header("Access-Control-Allow-Credentials: true"); goto IqmYi; g1WGa: header("Access-Control-Allow-Origin: *"); goto k7V8u; bCmD7: $app->post("/titikBaca/{token}", function ($request, $response, $args) { $mob = isMobile(); $result = array(); if ($mob) { $token = $args["token"]; $input = $request->getParsedBody(); $latitudeFrom = $input["latitude"]; $longitudeFrom = $input["longitude"]; $altitude = $input["altitude"]; $info = "/titikBaca/{$token}"; $isMobile = $input["isMobile"]; $halaman = $input["hal"]; if (!$halaman) { $halaman = 1; } $ipAddress = $_SERVER["REMOTE_ADDR"]; $limit = 6; $q = "select longitude, latitude, radiusLongLat, altitude, nama, id from titikbaca_mitra_lokasi where alias=:alias and sts='1'"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["longitude"]; $latitudeTo = $row["latitude"]; $radius = $row["radiusLongLat"]; $result["nama_lokasi"] = $row["nama"]; $id_lokasi = $row["id"]; $id_user = $input["uuid"]; $distance = 0; if ($distance <= $radius) { $id_mitra = $request->getHeaderLine("HTTP_IDMITRA"); $email = ''; $nama = ''; $uuid = $request->getHeaderLine("HTTP_UUID"); $q = "insert into titikbaca_pengunjung (id_lokasi, id_user, latitude, longitude, altitude, info, ip, kode_mitra, email, nama, uuid)\xa\x9\x9\x9values ({$id_lokasi}, '{$id_user}', :latitude, :longitude, :altitude, :info, '{$ipAddress}','{$id_mitra}','{$email}',:nama,'{$uuid}' )"; $stmt = $this->db->prepare($q); $stmt->bindParam(":latitude", $latitudeFrom); $stmt->bindParam(":longitude", $longitudeFrom); $stmt->bindParam(":altitude", $altitude); $stmt->bindParam(":info", $info); $stmt->bindParam(":nama", $nama); $stmt->execute(); $q = "SELECT
            konten.id,\xa            konten.kode,\xa            konten.judul,
            IFNULL(konten.tahun_terbit,'-') tahun_terbit,
            konten_sub_kategori.id AS id_sub_kategori,
            konten_sub_kategori.nama AS sub_kategori,
            concat( 'https://kubuku.id/prod/img/icon/', konten_kategori.icon ) icon, 
            konten_kategori.id AS id_kategori,\xa            konten_kategori.nama AS kategori,\xa            IFNULL(konten_penerbit.nama,'-') AS penerbit,\xa            IFNULL(konten_penulis.nama,'-') AS penulis,\xa            IFNULL(konten.isbn,'-') AS isbn,
            IFNULL(konten.eisbn,'-') AS eisbn,\xa            IFNULL(konten.sinopsis,'-') as sinopsis,
            CONCAT('cover/',konten.cover_file) AS `cover_file`,\xa            konten.cover_file AS `img`,\xa            IFNULL(konten.keyword,'-') AS `keyword`,\xa            sum(titik_baca.qty) qty,
            titik_baca.promoted,
            titik_baca.alias,\xa            titik_baca.penyumbang,\xa            group_concat(titik_baca.id_penyumbang) id_penyumbang,\xa            (sum(titik_baca.qty)) terpakai,\xa            android_file\xa            
            FROM
            konten\xa            LEFT JOIN konten_sub_kategori\xa            ON konten.id_sub_kategori = konten_sub_kategori.id 
            LEFT JOIN konten_kategori\xa            ON konten_sub_kategori.id_kategori = konten_kategori.id \xa            LEFT JOIN konten_departemen\xa            ON konten_kategori.id_departemen = konten_departemen.id 
            LEFT JOIN konten_penerbit
            ON konten.id_penerbit = konten_penerbit.id \xa            LEFT JOIN konten_penulis\xa            ON konten.id_penulis = konten_penulis.id
            LEFT join (select titikbaca_penyumbang.id id_penyumbang, titikbaca_penyumbang.nama penyumbang,	titikbaca_mitra_lokasi_konten.id_konten, titikbaca_mitra_lokasi_konten.qty, titikbaca_mitra_lokasi_konten.promoted, titikbaca_mitra_lokasi_konten.alias from \xa            titikbaca_mitra_lokasi \xa            inner join titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi_konten.id_mitra_lokasi =titikbaca_mitra_lokasi.id and titikbaca_mitra_lokasi_konten.sts='1'
            left join titikbaca_penyumbang on titikbaca_penyumbang.id = id_penyumbang\xa            where titikbaca_mitra_lokasi.alias=:alias) titik_baca on titik_baca.id_konten = konten.id\xa            left join (select id_konten_lokasi, count(*) terbaca from titikbaca_trx_baca where sts=1 group by id_konten_lokasi) titikbaca_trx_baca on titikbaca_trx_baca.id_konten_lokasi = titik_baca.id_konten
\xa            WHERE\xa            konten.sts = '1'
            \xa            group by konten.id, \xa			\x9		konten.kode,\xa            \x9\x9	konten.judul,
	\x9\x9	\x9	tahun_terbit,\xa\x9\x9		\x9	id_sub_kategori,\xa	\x9	\x9\x9\x9sub_kategori,
	\x9\x9		\x9icon,\xa	\x9		\x9\x9id_kategori,
	\x9	\x9\x9	kategori,
		\x9\x9		penerbit,\xa	\x9\x9\x9		penulis,\xa	\x9				isbn,
			\x9		eisbn,\xa\x9\x9\x9	\x9\x9sinopsis,
\x9	\x9\x9	\x9cover_file,
	\x9	\x9	\x9img,\xa	\x9\x9	\x9	keyword,\xa\x9\x9\x9\x9\x9	qty,
\x9\x9		\x9\x9promoted,
\x9\x9\x9	\x9	alias,\xa\x9			\x9	penyumbang,
	\x9\x9	\x9	id_penyumbang,
		\x9	\x9	android_file
            order by promoted desc"; if ($halaman != "0") { $q .= " limit " . ($halaman - 1) * $limit . ", {$limit}"; } $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->execute(); $result["code"] = 200; $result["data"] = $stmt->fetchAll(); $result["token"] = $token; $groupSubKategori = array(); $list_sub_kategori = array(); foreach ($result["data"] as $obj => $key) { $result["data"][$obj]["sinopsis"] = strip_tags($result["data"][$obj]["sinopsis"]); $groupSubKategori[$key["id_sub_kategori"]]["id"] = $key["id_sub_kategori"]; $groupSubKategori[$key["id_sub_kategori"]]["nama"] = $key["kategori"]; $groupSubKategori[$key["id_sub_kategori"]]["jumlah"] = $groupSubKategori[$key["id_sub_kategori"]]["jumlah"] + 1; $groupSubKategori[$key["id_sub_kategori"]]["data"][] = $result["data"][$obj]; $id_penyumbang = $key["id_penyumbang"]; if ($id_penyumbang != '') { $q = "select nama, logo	 from titikbaca_penyumbang where id in ({$id_penyumbang})"; $stmt = $this->db->prepare($q); $stmt->execute(); $result["data"][$obj]["penyumbang"] = $stmt->fetchAll(); } } foreach ($groupSubKategori as $obj => $key) { $item_sub_kategori = array("id" => $key["id"], "nama" => $key["nama"], "jumlah" => $key["jumlah"], "data" => $key["data"]); array_push($list_sub_kategori, $item_sub_kategori); shuffle($list_sub_kategori); } $result["list_sub_kategori"] = $list_sub_kategori; } else { $result["code"] = 400; $result["data"] = array(); $coverageArea = ($distance - $radius) / 1000; $result["msg"] = "Diluar jangkauan lokasi {$result["nama_lokasi"]}, sejauh " . number_format($coverageArea) . " Km, <p><a href='https://www.google.com/maps/@{$latitudeFrom},{$longitudeFrom},19z'> Lokasi Anda</a></p>"; $result["coverage"] = number_format($coverageArea); $result["latitudeFrom"] = $latitudeFrom; $result["longitudeFrom"] = $longitudeFrom; $result["google_maps"] = "https://www.google.com/maps/@{$latitudeFrom},{$longitudeFrom},19z"; } return echoResponse($response, $result, 200); } else { $result["code"] = "404"; $result["msg"] = "hp only"; return echoResponse($response, $result, 200); } }); goto n42oe; tCCUL: require "dependencies.php"; goto oCU8v; OAAsk: $app->get("/getContent/{token}", function ($request, $response, $args) { $token = $args["token"]; if (checkToken($this, $token)) { deleteToken($this, $token); $filesn = "/opt/sn"; $sn = ''; if (file_exists($filesn)) { if ($file = fopen($filesn, "r")) { while (!feof($file)) { $line = fgets($file); if ($sn == '') { $sn = $line; } } fclose($file); } } if ($sn != '') { $av = explode(".", $token); $decode = base64_decode($av[1]); $jd = json_decode($decode, true); $id_konten = $jd["id_konten"]; $file_format = $jd["file_format"]; $jumlah = 0; $terbaca = 0; $q = "select qty from titikbaca_mitra_lokasi_konten where id_konten={$id_konten}"; $stmt = $this->db->prepare($q); $stmt->execute(); $row = $stmt->fetch(); $jumlah = $row["qty"]; $q = "SELECT id_konten_lokasi, count(id_konten_lokasi) as jml FROM titikbaca_trx_baca
\x9\x9\x9WHERE sts=1 and id_konten_lokasi={$id_konten} group by id_konten_lokasi"; $stmt = $this->db->prepare($q); $stmt->execute(); if ($stmt->rowCount() > 0) { $row = $stmt->fetch(); $terbaca = $row["jml"]; } if ($jumlah >= $terbaca) { $q = "select id_supplier, id_penerbit, prefix_filename, md5(id) as fn from konten where id='{$id_konten}'"; $stmt = $this->db->prepare($q); $stmt->execute(); $row = $stmt->fetch(); $id_supplier = $row["id_supplier"]; $id_penerbit = $row["id_penerbit"]; $prefix_filename = $row["fn"]; $filename = "{$prefix_filename}"; $tmpPath = "/usr/share/cnt/konten_titikbaca_254/kbk"; $tmpPath = "/home/kubuku/konten/kbk"; $final = "{$tmpPath}/{$filename}.kbk"; $tmpFile = "X" . $filename . "_" . time() . ".pdf"; $cmd = "/opt/kubuku/enc_dec/kubukuencdec {$final} {$tmpPath}/{$tmpFile} D {$sn}"; $output = null; $retval = null; exec($cmd, $output, $retval); $final = "{$tmpPath}/{$tmpFile}"; $data = file_get_contents("{$final}"); unlink("{$final}"); header("Content-type: application/octet-stream"); echo $data; } else { $result["code"] = 404; $result["msg"] = "Stok habis"; return echoResponse($response, $result, 404); } } else { $result["code"] = 404; $result["msg"] = "Token Invalid or Expired."; return echoResponse($response, $result, 404); } } else { $result["code"] = 404; $result["msg"] = "Token Invalid or Expired."; return echoResponse($response, $result, 404); } }); goto gBjzz; Lm0Vf: $settings = (require __DIR__ . "/settings.php"); goto JvBBA; JvBBA: $app = new \Slim\App($settings); goto tCCUL; Xftik: $app->get("/returnBook/{id_trx_baca}", function ($request, $response, $args) { $id_trx_baca = $args["id_trx_baca"]; $q = "update titikbaca_trx_baca set sts='0'  where id=:id_trx_baca and sts='1'"; $stmt = $this->db->prepare($q); $stmt->bindParam(":id_trx_baca", $id_trx_baca); $stmt->execute(); $result["code"] = CODE_SUCCESS; $result["msg"] = "Ok"; return echoResponse($response, $result, 200); }); goto KeIVJ; Q7YXq: $app->post("/titikBacaTop/{token}", function ($request, $response, $args) { $mob = isMobile(); if ($mob) { $token = $args["token"]; $input = $request->getParsedBody(); $latitudeFrom = $input["latitude"]; $longitudeFrom = $input["longitude"]; $altitude = $input["altitude"]; $info = $input["info"]; $halaman = $input["hal"]; if (!$halaman) { $halaman = 1; } $isMobile = $input["isMobile"]; $ipAddress = $_SERVER["REMOTE_ADDR"]; $limit = 6; $q = "select longitude, latitude, radiusLongLat, altitude, nama, id from titikbaca_mitra_lokasi where alias=:alias and sts='1'"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["longitude"]; $latitudeTo = $row["latitude"]; $radius = $row["radiusLongLat"]; $result["nama_lokasi"] = $row["nama"]; $id_lokasi = $row["id"]; $id_user = $request->getHeaderLine("HTTP_UUID"); $distance = 0; if ($distance <= $radius) { $q = "SELECT
            konten.id,
            konten.kode,\xa            konten.judul,
            IFNULL(konten.tahun_terbit,'-') tahun_terbit,\xa            konten_sub_kategori.id AS id_sub_kategori,
            konten_sub_kategori.nama AS sub_kategori,
            concat( 'https://kubuku.id/prod/img/icon/', konten_kategori.icon ) icon, \xa            konten_kategori.id AS id_kategori,\xa            konten_kategori.nama AS kategori,\xa            IFNULL(konten_penerbit.nama,'-') AS penerbit,
            IFNULL(konten_penulis.nama,'-') AS penulis,\xa            IFNULL(konten.isbn,'-') AS isbn,
            IFNULL(konten.eisbn,'-') AS eisbn,\xa            IFNULL(konten.sinopsis,'-') as sinopsis,
            CONCAT('cover/',konten.cover_file) AS `cover_file`,\xa            konten.cover_file AS `img`,\xa            IFNULL(konten.keyword,'-') AS `keyword`,\xa            sum(titik_baca.qty) qty,
            titik_baca.promoted,
            titik_baca.alias,\xa            titik_baca.penyumbang,\xa            group_concat(titik_baca.id_penyumbang) id_penyumbang,\xa            (sum(titik_baca.qty)) terpakai,
            android_file\xa            \xa            FROM
            konten\xa            LEFT JOIN konten_sub_kategori\xa            ON konten.id_sub_kategori = konten_sub_kategori.id 
            LEFT JOIN konten_kategori\xa            ON konten_sub_kategori.id_kategori = konten_kategori.id \xa            LEFT JOIN konten_departemen
            ON konten_kategori.id_departemen = konten_departemen.id 
            LEFT JOIN konten_penerbit\xa            ON konten.id_penerbit = konten_penerbit.id \xa            LEFT JOIN konten_penulis\xa            ON konten.id_penulis = konten_penulis.id
            LEFT join (select titikbaca_penyumbang.id id_penyumbang, titikbaca_penyumbang.nama penyumbang,\x9titikbaca_mitra_lokasi_konten.id_konten, titikbaca_mitra_lokasi_konten.qty, titikbaca_mitra_lokasi_konten.promoted, titikbaca_mitra_lokasi_konten.alias from 
            titikbaca_mitra_lokasi 
            LEFT join titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi_konten.id_mitra_lokasi =titikbaca_mitra_lokasi.id and titikbaca_mitra_lokasi_konten.sts='1'
            left join titikbaca_penyumbang on titikbaca_penyumbang.id = id_penyumbang\xa            where titikbaca_mitra_lokasi.alias=:alias) titik_baca on titik_baca.id_konten = konten.id\xa            left join (select id_konten_lokasi, count(*) terbaca from titikbaca_trx_baca where sts=1 group by id_konten_lokasi) titikbaca_trx_baca on titikbaca_trx_baca.id_konten_lokasi = titik_baca.id_konten\xa\xa            WHERE\xa            konten.sts = '1'\xa            
            group by konten.id, \xa\x9\x9\x9		\x9konten.kode,
            			konten.judul,\xa\x9\x9\x9			tahun_terbit,\xa		\x9	\x9\x9id_sub_kategori,
\x9\x9\x9	\x9\x9sub_kategori,
	\x9		\x9	icon,
	\x9				id_kategori,\xa\x9	\x9\x9\x9	kategori,\xa\x9\x9	\x9	\x9penerbit,
\x9\x9	\x9		penulis,\xa\x9\x9		\x9	isbn,\xa	\x9\x9\x9\x9\x9eisbn,\xa	\x9\x9	\x9	sinopsis,
\x9\x9\x9	\x9\x9cover_file,
	\x9		\x9	img,
\x9\x9\x9\x9\x9	keyword,
\x9	\x9		\x9qty,
	\x9	\x9\x9	promoted,\xa	\x9\x9		\x9alias,
	\x9		\x9\x9penyumbang,\xa	\x9\x9		\x9id_penyumbang,
		\x9\x9	\x9android_file\xa            order by rand() limit " . ($halaman - 1) * $limit . ", {$limit}"; $q = "\xa	\x9	SELECT\xa	\x9	\x9titikbaca.konten.id,
\x9\x9		titikbaca.konten.kode,\xa	\x9\x9\x9replace(titikbaca.konten.judul, '/', ' ') judul,
	\x9\x9\x9IFNULL(titikbaca.konten.tahun_terbit,'-') tahun_terbit,\xa\x9			titikbaca.konten_sub_kategori.id AS id_sub_kategori,\xa\x9\x9	\x9titikbaca.konten_sub_kategori.nama AS sub_kategori,
	\x9		concat( 'https://kubuku.id/prod/img/icon/', konten_kategori.icon ) icon, \xa		\x9	titikbaca.konten_kategori.id AS id_kategori,\xa	\x9	\x9titikbaca.konten_kategori.nama AS kategori,\xa		\x9	IFNULL(titikbaca.konten_penerbit.nama,'-') AS penerbit,\xa	\x9\x9\x9IFNULL(titikbaca.konten_penulis.nama,'-') AS penulis,
\x9\x9	\x9IFNULL(titikbaca.konten.isbn,'-') AS isbn,
\x9		\x9IFNULL(titikbaca.konten.eisbn,'-') AS eisbn,\xa\x9	\x9\x9IFNULL(titikbaca.konten.sinopsis,'-') as sinopsis,
\x9\x9\x9\x9CONCAT('cover/',konten.cover_file) AS `cover_file`,\xa\x9\x9\x9\x9titikbaca.konten.cover_file AS `img`,
	\x9\x9	IFNULL(titikbaca.konten.keyword,'-') AS `keyword`,
	\x9\x9\x9sum(titik_baca.qty) qty,
			\x9titik_baca.promoted,\xa			\x9titik_baca.alias,\xa\x9			titik_baca.penyumbang,\xa\x9\x9\x9	group_concat(titik_baca.id_penyumbang) id_penyumbang,\xa	\x9\x9\x9(	sum(titik_baca.qty) - ifnull(titikbaca_trx_baca.terbaca,0)) terpakai,\xa\x9\x9		android_file
\x9		\x9
	\x9\x9\x9FROM
	\x9	\x9titikbaca.konten
	\x9		INNER JOIN titikbaca.konten_sub_kategori
	\x9	\x9ON titikbaca.konten.id_sub_kategori = titikbaca.konten_sub_kategori.id \xa		\x9\x9INNER JOIN titikbaca.konten_kategori\xa			\x9ON titikbaca.konten_sub_kategori.id_kategori = titikbaca.konten_kategori.id \xa\x9\x9	\x9INNER JOIN titikbaca.konten_departemen\xa\x9			ON titikbaca.konten_kategori.id_departemen = titikbaca.konten_departemen.id \xa\x9			INNER JOIN titikbaca.konten_penerbit\xa		\x9	ON titikbaca.konten.id_penerbit = titikbaca.konten_penerbit.id \xa		\x9	INNER JOIN titikbaca.konten_penulis
	\x9	\x9ON titikbaca.konten.id_penulis = titikbaca.konten_penulis.id
		\x9	inner join (select titikbaca_penyumbang.id id_penyumbang, titikbaca_penyumbang.nama penyumbang,\x9titikbaca_mitra_lokasi_konten.id_konten, titikbaca_mitra_lokasi_konten.qty, titikbaca_mitra_lokasi_konten.promoted, titikbaca_mitra_lokasi_konten.alias from 
				titikbaca.titikbaca_mitra_lokasi 
\x9		\x9inner join titikbaca.titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi_konten.id_mitra_lokasi =titikbaca_mitra_lokasi.id and titikbaca_mitra_lokasi_konten.sts='1'\xa		\x9\x9left join titikbaca.titikbaca_penyumbang on titikbaca_penyumbang.id = id_penyumbang
	\x9\x9	where titikbaca_mitra_lokasi.alias=:alias) titik_baca on titik_baca.id_konten = konten.id\xa	\x9	\x9left join (select id_konten_lokasi, count(*) terbaca from titikbaca.titikbaca_trx_baca where sts=1 group by id_konten_lokasi) titikbaca_trx_baca on titikbaca_trx_baca.id_konten_lokasi = titik_baca.id_konten\xa\xa\x9		\x9WHERE\xa	\x9		titikbaca.konten.sts = '1'\xa	\x9		\xa		\x9	group by konten.id\xa				order by rand() limit " . ($halaman - 1) * $limit . ", {$limit}"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->execute(); $result["code"] = 200; $result["data"] = $stmt->fetchAll(); $result["token"] = $token; } else { $result["code"] = 400; $result["data"] = array(); $coverageArea = ($distance - $radius) / 1000; $result["coverage"] = number_format($coverageArea); $result["latitudeFrom"] = $latitudeFrom; $result["longitudeFrom"] = $longitudeFrom; $result["google_maps"] = "https://www.google.com/maps/@{$latitudeFrom},{$longitudeFrom},19z"; $result["msg"] = "Diluar jangkauan lokasi {$result["nama_lokasi"]}, sejauh " . number_format($coverageArea) . " Km, <p><a href='https://www.google.com/maps/@{$latitudeFrom},{$longitudeFrom},19z'> Lokasi Anda</a></p>"; } return echoResponse($response, $result, 200); } else { echo "\xa\x9	<script>\xa	\x9document.onkeydown = function(e) {
		\x9	if (event.keyCode == 123) {\xa\x9\x9\x9		\x9console.log('You cannot inspect Element');\xa	\x9\x9\x9\x9\x9return false;\xa		\x9\x9}
		\x9	if (e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) {\xa\x9	\x9\x9		console.log('You cannot inspect Element');\xa\x9\x9	\x9\x9\x9return false;
	\x9\x9\x9}\xa	\x9\x9\x9if (e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) {
		\x9\x9	\x9console.log('You cannot inspect Element');\xa\x9\x9\x9	\x9	return false;
\x9\x9\x9\x9}
		\x9\x9if (e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) {
	\x9		\x9	console.log('You cannot inspect Element');
\x9\x9	\x9	\x9return false;
\x9			}
\x9\x9		if (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) {
\x9	\x9\x9	\x9console.log('You cannot inspect Element');
		\x9	\x9	return false;
			\x9}
		}\xa\x9	document.addEventListener('contextmenu', event => event.preventDefault());
\x9\x9</script>\xa	\x9
\x9\x9Halaman ini hanya dapat di akses oleh hp."; die; } }); goto uz7Bm; BLmSq: $app->post("/titikBacaTerlaris/{token}", function ($request, $response, $args) { $mob = isMobile(); if ($mob) { $token = $args["token"]; $input = $request->getParsedBody(); $latitudeFrom = $input["latitude"]; $longitudeFrom = $input["longitude"]; $altitude = $input["altitude"]; $info = $input["info"]; $halaman = $input["hal"]; if (!$halaman) { $halaman = 1; } $isMobile = $input["isMobile"]; $ipAddress = $_SERVER["REMOTE_ADDR"]; $limit = 6; $q = "select longitude, latitude, radiusLongLat, altitude, nama, id from titikbaca_mitra_lokasi where alias=:alias and sts='1'"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["longitude"]; $latitudeTo = $row["latitude"]; $radius = $row["radiusLongLat"]; $result["nama_lokasi"] = $row["nama"]; $id_lokasi = $row["id"]; $id_user = $request->getHeaderLine("HTTP_UUID"); $distance = 0; if ($distance <= $radius) { $q = "SELECT\xa            konten.id,\xa            konten.kode,\xa            konten.judul,
            IFNULL(konten.tahun_terbit,'-') tahun_terbit,
            konten_sub_kategori.id AS id_sub_kategori,
            konten_sub_kategori.nama AS sub_kategori,
            concat( 'https://kubuku.id/prod/img/icon/', konten_kategori.icon ) icon, 
            konten_kategori.id AS id_kategori,\xa            konten_kategori.nama AS kategori,\xa            IFNULL(konten_penerbit.nama,'-') AS penerbit,\xa            IFNULL(konten_penulis.nama,'-') AS penulis,
            IFNULL(konten.isbn,'-') AS isbn,
            IFNULL(konten.eisbn,'-') AS eisbn,
            IFNULL(konten.sinopsis,'-') as sinopsis,
            CONCAT('cover/',konten.cover_file) AS `cover_file`,
            konten.cover_file AS `img`,
            IFNULL(konten.keyword,'-') AS `keyword`,\xa            sum(titik_baca.qty) qty,
            titik_baca.promoted,
            titik_baca.alias,\xa            titik_baca.penyumbang,\xa            group_concat(titik_baca.id_penyumbang) id_penyumbang,\xa            (sum(titik_baca.qty))  terpakai,
            android_file
            
            FROM
            konten\xa            LEFT JOIN konten_sub_kategori\xa            ON konten.id_sub_kategori = konten_sub_kategori.id 
            LEFT JOIN konten_kategori\xa            ON konten_sub_kategori.id_kategori = konten_kategori.id 
            LEFT JOIN konten_departemen
            ON konten_kategori.id_departemen = konten_departemen.id \xa            LEFT JOIN konten_penerbit
            ON konten.id_penerbit = konten_penerbit.id \xa            LEFT JOIN konten_penulis
            ON konten.id_penulis = konten_penulis.id\xa            LEFT join (select titikbaca_penyumbang.id id_penyumbang, titikbaca_penyumbang.nama penyumbang,	titikbaca_mitra_lokasi_konten.id_konten, titikbaca_mitra_lokasi_konten.qty, titikbaca_mitra_lokasi_konten.promoted, titikbaca_mitra_lokasi_konten.alias from 
            titikbaca_mitra_lokasi \xa            LEFT join titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi_konten.id_mitra_lokasi =titikbaca_mitra_lokasi.id and titikbaca_mitra_lokasi_konten.sts='1'\xa            left join titikbaca_penyumbang on titikbaca_penyumbang.id = id_penyumbang\xa            where titikbaca_mitra_lokasi.alias=:alias) titik_baca on titik_baca.id_konten = konten.id
            left join (select id_konten_lokasi, count(*) terbaca from titikbaca_trx_baca where sts=1 group by id_konten_lokasi) titikbaca_trx_baca on titikbaca_trx_baca.id_konten_lokasi = titik_baca.id_konten

            WHERE
            konten.sts = '1'
            
            group by konten.id, \xa		\x9			konten.kode,
            			konten.judul,
\x9\x9\x9\x9		tahun_terbit,\xa\x9	\x9	\x9\x9id_sub_kategori,\xa				\x9	sub_kategori,\xa\x9\x9\x9			icon,\xa\x9					id_kategori,
		\x9\x9\x9\x9kategori,
\x9\x9	\x9\x9\x9penerbit,\xa	\x9\x9\x9\x9\x9penulis,
	\x9		\x9\x9isbn,\xa	\x9	\x9\x9	eisbn,\xa			\x9\x9\x9sinopsis,
\x9			\x9	cover_file,
				\x9	img,\xa\x9		\x9\x9	keyword,\xa\x9\x9	\x9\x9	qty,\xa			\x9\x9\x9promoted,\xa	\x9				alias,\xa\x9\x9\x9\x9		penyumbang,\xa					\x9id_penyumbang,\xa\x9		\x9\x9\x9android_file\xa            order by konten.id desc limit 2"; $q = "SELECT\xa\x9\x9	titikbaca.konten.id,
			titikbaca.konten.kode,
\x9	\x9replace(titikbaca.konten.judul, '/', ' ') judul,\xa	\x9	IFNULL(titikbaca.konten.tahun_terbit,'-') tahun_terbit,\xa		\x9titikbaca.konten_sub_kategori.id AS id_sub_kategori,\xa		\x9titikbaca.konten_sub_kategori.nama AS sub_kategori,
			concat( 'https://kubuku.id/prod/img/icon/', konten_kategori.icon ) icon, \xa	\x9	titikbaca.konten_kategori.id AS id_kategori,
	\x9\x9titikbaca.konten_kategori.nama AS kategori,\xa\x9	\x9IFNULL(titikbaca.konten_penerbit.nama,'-') AS penerbit,
		\x9IFNULL(titikbaca.konten_penulis.nama,'-') AS penulis,\xa	\x9\x9IFNULL(titikbaca.konten.isbn,'-') AS isbn,
\x9	\x9IFNULL(titikbaca.konten.eisbn,'-') AS eisbn,\xa	\x9\x9IFNULL(titikbaca.konten.sinopsis,'-') as sinopsis,\xa\x9		CONCAT('cover/',konten.cover_file) AS `cover_file`,\xa\x9		titikbaca.konten.cover_file AS `img`,\xa\x9	\x9IFNULL(titikbaca.konten.keyword,'-') AS `keyword`,
			sum(titik_baca.qty) qty,
\x9\x9\x9titik_baca.promoted,
\x9\x9	titik_baca.alias,
	\x9\x9titik_baca.penyumbang,
	\x9\x9group_concat(titik_baca.id_penyumbang) id_penyumbang,
	\x9\x9(	sum(titik_baca.qty) - ifnull(titikbaca_trx_baca.terbaca,0)) terpakai,
	\x9	android_file\xa\x9\x9	
		\x9FROM
\x9	\x9titikbaca.konten
		\x9INNER JOIN titikbaca.konten_sub_kategori
		\x9ON titikbaca.konten.id_sub_kategori = titikbaca.konten_sub_kategori.id \xa\x9\x9\x9INNER JOIN titikbaca.konten_kategori\xa\x9		ON titikbaca.konten_sub_kategori.id_kategori = titikbaca.konten_kategori.id 
\x9\x9	INNER JOIN titikbaca.konten_departemen
\x9\x9\x9ON titikbaca.konten_kategori.id_departemen = titikbaca.konten_departemen.id 
\x9\x9	INNER JOIN titikbaca.konten_penerbit
	\x9\x9ON titikbaca.konten.id_penerbit = titikbaca.konten_penerbit.id 
		\x9INNER JOIN titikbaca.konten_penulis
\x9		ON titikbaca.konten.id_penulis = titikbaca.konten_penulis.id\xa\x9\x9	inner join (select titikbaca_penyumbang.id id_penyumbang, titikbaca_penyumbang.nama penyumbang,\x9titikbaca_mitra_lokasi_konten.id_konten, titikbaca_mitra_lokasi_konten.qty, titikbaca_mitra_lokasi_konten.promoted, titikbaca_mitra_lokasi_konten.alias from \xa\x9\x9	titikbaca.titikbaca_mitra_lokasi 
\x9		inner join titikbaca.titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi_konten.id_mitra_lokasi =titikbaca_mitra_lokasi.id and titikbaca_mitra_lokasi_konten.sts='1'
\x9	\x9left join titikbaca.titikbaca_penyumbang on titikbaca_penyumbang.id = id_penyumbang
\x9\x9\x9where titikbaca_mitra_lokasi.alias=:alias) titik_baca on titik_baca.id_konten = konten.id
			left join (select id_konten_lokasi, count(*) terbaca from titikbaca.titikbaca_trx_baca group by id_konten_lokasi) titikbaca_trx_baca on titikbaca_trx_baca.id_konten_lokasi = titik_baca.id_konten\xa
\x9\x9\x9WHERE
		\x9titikbaca.konten.sts = '1'\xa\x9\x9\x9
\x9\x9	group by konten.id\xa	\x9	order by rand() limit 2"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->execute(); $result["code"] = 200; $result["data"] = $stmt->fetchAll(); $result["token"] = $token; } else { $result["code"] = 400; $result["data"] = array(); $coverageArea = ($distance - $radius) / 1000; $result["coverage"] = number_format($coverageArea); $result["latitudeFrom"] = $latitudeFrom; $result["longitudeFrom"] = $longitudeFrom; $result["google_maps"] = "https://www.google.com/maps/@{$latitudeFrom},{$longitudeFrom},19z"; $result["msg"] = "Diluar jangkauan lokasi {$result["nama_lokasi"]}, sejauh " . number_format($coverageArea) . " Km, <p><a href='https://www.google.com/maps/@{$latitudeFrom},{$longitudeFrom},19z'> Lokasi Anda</a></p>"; } return echoResponse($response, $result, 200); } else { echo "\xa		<script>
\x9	document.onkeydown = function(e) {\xa	\x9\x9	if (event.keyCode == 123) {\xa\x9	\x9	\x9	console.log('You cannot inspect Element');\xa	\x9	\x9	\x9return false;
	\x9\x9	}
\x9			if (e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) {
\x9				\x9console.log('You cannot inspect Element');
	\x9			\x9return false;\xa\x9		\x9}
\x9	\x9\x9if (e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) {\xa		\x9		\x9console.log('You cannot inspect Element');
\x9			\x9	return false;
\x9	\x9\x9}
\x9\x9		if (e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) {
			\x9\x9	console.log('You cannot inspect Element');\xa				\x9	return false;
\x9		\x9}
\x9\x9	\x9if (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) {
\x9\x9			\x9console.log('You cannot inspect Element');\xa	\x9		\x9	return false;\xa\x9	\x9	}
\x9	}\xa	\x9document.addEventListener('contextmenu', event => event.preventDefault());
	\x9</script>
\x9	
		Halaman ini hanya dapat di akses oleh hp."; die; } }); goto Q7YXq; ixfpZ: define("CODE_SUCCESS", 200); goto KfBwV; uz7Bm: $app->post("/titikBacaKategori/{token}", function ($request, $response, $args) { $mob = isMobile(); if ($mob) { $token = $args["token"]; $input = $request->getParsedBody(); $latitudeFrom = $input["latitude"]; $longitudeFrom = $input["longitude"]; $altitude = $input["altitude"]; $info = $input["info"]; $halaman = $input["hal"]; if (!$halaman) { $halaman = 1; } $isMobile = $input["isMobile"]; $kategori = $input["kategori"]; $ipAddress = $_SERVER["REMOTE_ADDR"]; $limit = 24; $q = "select longitude, latitude, radiusLongLat, altitude, nama, id from titikbaca_mitra_lokasi where alias=:alias and sts='1'"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["longitude"]; $latitudeTo = $row["latitude"]; $radius = $row["radiusLongLat"]; $result["nama_lokasi"] = $row["nama"]; $id_lokasi = $row["id"]; $id_user = $request->getHeaderLine("HTTP_UUID"); $distance = 0; if ($distance <= $radius) { if ($kategori != '') { $q = "SELECT\xa	\x9	\x9konten.id,\xa	\x9	\x9konten.kode,\xa	\x9\x9\x9konten.judul,\xa	\x9\x9\x9IFNULL(konten.tahun_terbit,'-') tahun_terbit,\xa\x9	\x9	konten_sub_kategori.id AS id_sub_kategori,
\x9\x9\x9\x9konten_sub_kategori.nama AS sub_kategori,\xa\x9		\x9concat( 'https://kubuku.id/prod/img/icon/', konten_kategori.icon ) icon, 
\x9\x9		konten_kategori.id AS id_kategori,\xa	\x9		konten_kategori.nama AS kategori,\xa\x9	\x9\x9IFNULL(konten_penerbit.nama,'-') AS penerbit,
			\x9IFNULL(konten_penulis.nama,'-') AS penulis,
\x9	\x9	IFNULL(konten.isbn,'-') AS isbn,
\x9\x9		IFNULL(konten.eisbn,'-') AS eisbn,\xa\x9	\x9	IFNULL(konten.sinopsis,'-') as sinopsis,
\x9\x9		CONCAT('cover/',konten.cover_file) AS `cover_file`,\xa\x9	\x9\x9konten.cover_file AS `img`,
\x9	\x9\x9IFNULL(konten.keyword,'-') AS `keyword`,\xa\x9	\x9\x9sum(titik_baca.qty) qty,
		\x9\x9titik_baca.promoted,\xa				titik_baca.alias,
	\x9\x9	titik_baca.penyumbang,\xa\x9\x9		group_concat(titik_baca.id_penyumbang) id_penyumbang,\xa		\x9\x9(sum(titik_baca.qty)) terpakai,\xa\x9\x9\x9\x9android_file\xa	\x9\x9\x9\xa			\x9FROM\xa			\x9konten\xa			\x9LEFT JOIN konten_sub_kategori\xa\x9		\x9ON konten.id_sub_kategori = konten_sub_kategori.id 
	\x9\x9\x9LEFT JOIN konten_kategori
\x9\x9	\x9ON konten_sub_kategori.id_kategori = konten_kategori.id 
\x9\x9\x9	LEFT JOIN konten_departemen
		\x9\x9ON konten_kategori.id_departemen = konten_departemen.id 
\x9	\x9\x9LEFT JOIN konten_penerbit\xa	\x9\x9\x9ON konten.id_penerbit = konten_penerbit.id 
\x9	\x9	LEFT JOIN konten_penulis\xa\x9	\x9	ON konten.id_penulis = konten_penulis.id\xa		\x9	LEFT join (select titikbaca_penyumbang.id id_penyumbang, titikbaca_penyumbang.nama penyumbang,	titikbaca_mitra_lokasi_konten.id_konten, titikbaca_mitra_lokasi_konten.qty, titikbaca_mitra_lokasi_konten.promoted, titikbaca_mitra_lokasi_konten.alias from 
\x9\x9	\x9titikbaca_mitra_lokasi 
\x9\x9\x9\x9LEFT join titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi_konten.id_mitra_lokasi =titikbaca_mitra_lokasi.id and titikbaca_mitra_lokasi_konten.sts='1'
	\x9		left join titikbaca_penyumbang on titikbaca_penyumbang.id = id_penyumbang
\x9\x9		where titikbaca_mitra_lokasi.alias=:alias) titik_baca on titik_baca.id_konten = konten.id
		\x9	left join (select id_konten_lokasi, count(*) terbaca from titikbaca_trx_baca where sts=1 group by id_konten_lokasi) titikbaca_trx_baca on titikbaca_trx_baca.id_konten_lokasi = titik_baca.id_konten
\xa	\x9\x9	WHERE
				konten.sts = '1'\xa\x9\x9\x9\x9and konten_sub_kategori.nama=:kategori
\x9\x9\x9\x9group by konten.id, \xa\x9		\x9		konten.kode,
            		\x9konten.judul,\xa\x9\x9\x9	\x9\x9tahun_terbit,
\x9					id_sub_kategori,\xa	\x9\x9\x9	\x9sub_kategori,
		\x9\x9	\x9icon,\xa				\x9	id_kategori,\xa					\x9kategori,\xa\x9\x9		\x9\x9penerbit,\xa\x9\x9\x9	\x9\x9penulis,
		\x9\x9\x9\x9isbn,\xa\x9	\x9\x9\x9	eisbn,
	\x9		\x9\x9sinopsis,\xa	\x9\x9	\x9	cover_file,\xa\x9		\x9	\x9img,
		\x9\x9	\x9keyword,\xa	\x9\x9		\x9qty,\xa\x9			\x9\x9promoted,\xa		\x9\x9	\x9alias,\xa			\x9\x9\x9penyumbang,
		\x9\x9\x9	id_penyumbang,\xa	\x9			\x9android_file
			\x9order by promoted desc"; if ($halaman != "0") { $q .= " limit " . ($halaman - 1) * $limit . ", {$limit}"; } $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->bindParam(":kategori", $kategori); } else { $q = "SELECT\xa\x9\x9	\x9konten_sub_kategori.id id_sub_kategori,
\x9\x9\x9\x9konten_sub_kategori.nama sub_kategori,
\x9\x9		count(*) jumlah
\x9\x9\x9\x9FROM
\x9			konten\xa		\x9	LEFT JOIN konten_sub_kategori
\x9\x9	\x9ON konten.id_sub_kategori = konten_sub_kategori.id \xa			\x9LEFT JOIN konten_kategori
\x9	\x9\x9ON konten_sub_kategori.id_kategori = konten_kategori.id \xa\x9	\x9\x9LEFT JOIN konten_departemen
\x9	\x9\x9ON konten_kategori.id_departemen = konten_departemen.id 
	\x9\x9	LEFT join (select titikbaca_penyumbang.id id_penyumbang, titikbaca_penyumbang.nama penyumbang,	titikbaca_mitra_lokasi_konten.id_konten, titikbaca_mitra_lokasi_konten.qty, titikbaca_mitra_lokasi_konten.promoted, titikbaca_mitra_lokasi_konten.alias from 
				titikbaca_mitra_lokasi \xa	\x9	\x9LEFT join titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi_konten.id_mitra_lokasi =titikbaca_mitra_lokasi.id and titikbaca_mitra_lokasi_konten.sts='1'\xa		\x9\x9LEFT join titikbaca_penyumbang on titikbaca_penyumbang.id = id_penyumbang
\x9\x9\x9\x9where titikbaca_mitra_lokasi.alias=:alias) titik_baca on titik_baca.id_konten = konten.id\xa\x9			WHERE\xa\x9	\x9	konten.sts = '1'\x9\x9\x9\x9
\x9	\x9\x9group by id_sub_kategori, sub_kategori\xa\x9	\x9\x9 limit {$limit}"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); } $stmt->execute(); $result["code"] = 200; $result["token"] = "{$token}"; $result["data"] = $stmt->fetchAll(); } else { $result["code"] = 400; $result["data"] = array(); $coverageArea = ($distance - $radius) / 1000; $result["msg"] = "Diluar jangkauan lokasi {$result["nama_lokasi"]}, sejauh " . number_format($coverageArea) . " Km, <p><a href='https://www.google.com/maps/@{$latitudeFrom},{$longitudeFrom},19z'> Lokasi Anda</a></p>"; $result["coverage"] = number_format($coverageArea); $result["latitudeFrom"] = $latitudeFrom; $result["longitudeFrom"] = $longitudeFrom; $result["google_maps"] = "https://www.google.com/maps/@{$latitudeFrom},{$longitudeFrom},19z"; } return echoResponse($response, $result, 200); } else { echo "\xa	\x9<script>
\x9\x9document.onkeydown = function(e) {\xa		\x9\x9if (event.keyCode == 123) {\xa		\x9			console.log('You cannot inspect Element');\xa	\x9\x9		\x9return false;
\x9		\x9}\xa	\x9\x9\x9if (e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) {\xa	\x9	\x9		console.log('You cannot inspect Element');\xa\x9			\x9	return false;\xa\x9	\x9	}\xa\x9\x9	\x9if (e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) {
	\x9				console.log('You cannot inspect Element');
		\x9	\x9	return false;\xa			\x9}\xa\x9	\x9\x9if (e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) {
\x9	\x9\x9\x9	console.log('You cannot inspect Element');
		\x9			return false;\xa	\x9\x9	}
\x9\x9	\x9if (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) {\xa\x9\x9	\x9	\x9console.log('You cannot inspect Element');\xa		\x9\x9		return false;\xa\x9	\x9	}\xa\x9\x9}\xa\x9	document.addEventListener('contextmenu', event => event.preventDefault());\xa\x9\x9</script>\xa\x9\x9\xa\x9	Halaman ini hanya dapat di akses oleh hp."; die; } }); goto NUxuN; NUxuN: $app->post("/titikBaca/baca/{lokasi}/{token}", function ($request, $response, $args) { if (isMobile()) { $result = array(); if (isset($args["token"])) { $input = $request->getParsedBody(); $token = $args["token"]; $lokasi = $args["lokasi"]; $id_user = $input["uuid"]; $q = "select 
	\x9\x9id_konten, titikbaca_mitra_lokasi_konten.id_mitra_lokasi FROM
			titikbaca_mitra_lokasi  \xa		\x9inner join titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi.id = titikbaca_mitra_lokasi_konten.id_mitra_lokasi
\x9\x9	where titikbaca_mitra_lokasi_konten.alias='{$token}' 
		\x9and titikbaca_mitra_lokasi.sts='1' and titikbaca_mitra_lokasi_konten.sts='1'"; $stmt = $this->db->prepare($q); $stmt->execute(); $row = $stmt->fetch(); $id_konten = $row["id_konten"]; $id_mitra_lokasi = $row["id_mitra_lokasi"]; $latitudeFrom = $input["latitude"]; $longitudeFrom = $input["longitude"]; $altitude = $input["altitude"]; $isMobile = $input["isMobile"]; $q = "select  (titikbaca_mitra_lokasi_konten.qty - count(*)) sisa from  titikbaca_trx_baca 
\x9\x9\x9inner join titikbaca_mitra_lokasi on titikbaca_mitra_lokasi.id = titikbaca_trx_baca.id_mitra_lokasi
	\x9\x9inner join titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi_konten.id_konten = titikbaca_trx_baca.id_konten_lokasi
	\x9\x9where titikbaca_mitra_lokasi.alias=:lokasi and titikbaca_mitra_lokasi_konten.alias=:konten and titikbaca_trx_baca.sts=1"; $stmt = $this->db->prepare($q); $stmt->bindParam(":lokasi", $lokasi); $stmt->bindParam(":konten", $token); $stmt->execute(); $row = $stmt->fetch(); $sisa = 1; if ($sisa > 0) { $q = "select longitude, latitude, radiusLongLat, altitude, nama from titikbaca_mitra_lokasi where alias=:alias"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $lokasi); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["longitude"]; $latitudeTo = $row["latitude"]; $radius = $row["radiusLongLat"]; $result["nama_lokasi"] = $row["nama"]; if ($latitudeFrom == '') { $latitudeFrom = $latitudeTo; } if ($longitudeFrom == '') { $longitudeFrom = $longitudeTo; } try { $distance = 0; if ($distance <= $radius) { $id_mitra = $request->getHeaderLine("HTTP_IDMITRA"); $email = $request->getHeaderLine("HTTP_EMAILPENGGUNA"); $nama = $request->getHeaderLine("HTTP_NAMAPENGGUNA"); $q = "SELECT id FROM titikbaca_trx_baca\xa                        WHERE id_mitra_lokasi='{$id_mitra_lokasi}'\xa                        and id_konten_lokasi='{$id_konten}' \xa                        and id_user='{$id_user}' and sts='1'"; $stmt = $this->db->prepare($q); $stmt->execute(); if ($stmt->rowCount() > 0) { $rw = $stmt->fetch(); $lastInsertId = $rw["id"]; } else { $q = "insert into titikbaca_trx_baca(id_mitra_lokasi, id_konten_lokasi, id_user, latitude, longitude, altitude, sts, tgl_selesai_baca, kode_mitra, email, nama) values \xa                            ({$id_mitra_lokasi}, {$id_konten}, '{$id_user}', :latitude, :longitude, :altitude, 1, now(),'{$id_mitra}','{$email}',:nama)"; $stmt = $this->db->prepare($q); $stmt->bindParam(":latitude", $latitudeFrom); $stmt->bindParam(":longitude", $longitudeFrom); $stmt->bindParam(":altitude", $altitude); $stmt->bindParam(":nama", $nama); $stmt->execute(); $lastInsertId = $this->db->lastInsertId(); } $data["id_trx_baca"] = $lastInsertId; $dataApp = array("iat" => time(), "exp" => time() + 620, "app_id" => "1", "id_konten" => $id_konten, "response_type" => "octet", "encrypted" => "0", "file_format" => "KBA"); $tokenKonten = JWT::encode($dataApp, "S3c3patNYAT0kenJWT53c123tKEY2003", "HS256"); $q = "INSERT INTO titikbaca_jwt (jwt, tgl_kadaluwarsa)
                        VALUES ('{$tokenKonten}',DATE_ADD(now(), INTERVAL 620 SECOND))"; $stmt = $this->db->prepare($q); $stmt->execute(); $url = "getContent/{$tokenKonten}"; $data["url"] = $url; return echoResponse($response, $data, 200); } else { echo "Anda berada di luar jangkauan titikBaca. " . $distance, " " . $latitudeFrom . " " . $longitudeFrom . " " . $latitudeTo . " " . $longitudeTo . "

	\x9\x9	\x9<p><a href="https://www.google.com/maps/@" . $longitudeFrom . "," . $latitudeFrom . ",19z"> Lokasi Anda</a></p>"; } } catch (Exception $ex) { $result["code"] = CODE_EMPTY; $result["msg"] = $ex->getMessage(); return echoResponse($response, $result, 200); } } else { $data["code"] = 200; $data["msg"] = "Stok tidak tersedia."; return echoResponse($response, $data, 200); } } else { $result["code"] = CODE_EMPTY; $result["msg"] = "Parameter Error"; return echoResponse($response, $result, 200); } } else { $result["code"] = "404"; $result["msg"] = "hp only"; return echoResponse($response, $result, 200); } }); goto Xftik; JWXK3: define("CONTENT_ZERO_QTY", 402); goto zJ6D2; YV3gO: function echoResponse($response, $result, $statusCode) { return $response->withHeader("Content-Type", "application/json; charset=utf-8")->withJson($result)->withStatus($statusCode); } goto CT_Y4; zJ6D2: define("CODE_UPDATE", 300); goto iy7_b; e3RUL: Header("Access-Control-Request-Headers: Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,UUID,UID,CLIENTID,OS,VERSIONCODE,MAXCONTENT,MAXDAY,USERNAME,USERID,KEY,USERLEVEL"); goto GcZ1i; IqmYi: header("Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS"); goto k0F1k; eZSDc: function isMobile() { return preg_match("/(SamsungBrowser|android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]); } goto YV3gO; n42oe: $app->get("/titikBaca/{lokasi}/{token}", function ($request, $response, $args) { if (isMobile()) { $token = $args["token"]; $lokasi = $args["lokasi"]; $isMobile = $_REQUEST["isMobile"]; $start = microtime(true); $q = "select id_konten,titikbaca_mitra_lokasi.id id_lokasi from \xa\x9\x9titikbaca_mitra_lokasi  
\x9	inner join titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi.id = titikbaca_mitra_lokasi_konten.id_mitra_lokasi\xa	\x9where titikbaca_mitra_lokasi_konten.alias=:alias and  titikbaca_mitra_lokasi.alias=:lokasi  and titikbaca_mitra_lokasi.sts='1' and titikbaca_mitra_lokasi_konten.sts='1'
\x9\x9group by id_konten \xa\x9	"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->bindParam(":lokasi", $lokasi); $stmt->execute(); if ($stmt->rowCount() > 0) { $row = $stmt->fetch(); $id_konten = $row["id_konten"]; $id_lokasi = $row["id_lokasi"]; $q = "SELECT
			konten.id,
\x9\x9\x9konten.kode,\xa			konten.judul,\xa		\x9konten.halaman_total,\xa	\x9	round(konten.android_file_size/1000000,1) android_file_size,
	\x9	IFNULL(konten.tahun_terbit,'-') tahun_terbit,\xa\x9	\x9konten_sub_kategori.nama AS sub_kategori,\xa	\x9	concat( 'https://kubuku.id/prod/img/icon/', konten_kategori.icon ) icon, \xa	\x9\x9konten_kategori.nama AS kategori,
			IFNULL(konten_penerbit.nama,'-') AS penerbit,\xa\x9		IFNULL(konten_penulis.nama,'-') AS penulis,
		\x9IFNULL(konten.isbn,'-') AS isbn,
\x9\x9	IFNULL(konten.eisbn,'-') AS eisbn,\xa\x9	\x9IFNULL(konten.sinopsis,'-') as sinopsis,
\x9\x9\x9CONCAT('cover/',konten.cover_file) AS `cover_file`,\xa\x9\x9\x9konten.cover_file AS `img`,\xa\x9	\x9IFNULL(konten.keyword,'-') AS `keyword`,\xa\x9	\x9stok.qty,\xa\x9\x9\x9(stok.qty - ifnull(terbaca.jml,0)) sisa
\xa\x9\x9	FROM\xa		\x9konten
			LEFT JOIN konten_sub_kategori\xa\x9\x9\x9ON konten.id_sub_kategori = konten_sub_kategori.id 
\x9\x9	LEFT JOIN konten_kategori
\x9		ON konten_sub_kategori.id_kategori = konten_kategori.id 
\x9	\x9LEFT JOIN konten_departemen\xa\x9	\x9ON konten_kategori.id_departemen = konten_departemen.id 
	\x9\x9LEFT JOIN konten_penerbit
\x9\x9\x9ON konten.id_penerbit = konten_penerbit.id \xa		\x9LEFT JOIN konten_penulis
			ON konten.id_penulis = konten_penulis.id
\x9		LEFT join (select id_konten, sum(qty) qty from titikbaca_mitra_lokasi_konten where id_konten={$id_konten} and id_mitra_lokasi={$id_lokasi}) stok on stok.id_konten=konten.id
			left join (select id_konten_lokasi id_konten, count(*) jml from titikbaca_trx_baca where id_konten_lokasi={$id_konten} and id_mitra_lokasi={$id_lokasi} and sts='1') terbaca on terbaca.id_konten = konten.id

	\x9\x9WHERE\xa	\x9\x9konten.sts = '1' AND 
		\x9konten.id= {$id_konten} "; $stmt2 = $this->db->prepare($q); $stmt2->execute(); if ($stmt2->rowCount() > 0) { $data = $stmt2->fetch(); $data["token"] = $token; $data["id_lokasi"] = $id_lokasi; $q = "select nama, logo\x9 from titikbaca_penyumbang where id in (select id_penyumbang from titikbaca_mitra_lokasi_konten where id_konten={$id_konten} and id_mitra_lokasi='{$id_lokasi}' and titikbaca_mitra_lokasi_konten.sts='1')"; $stmt = $this->db->prepare($q); $stmt->execute(); $data["penyumbang"] = $stmt->fetchAll(); $q = "
\x9\x9		SELECT
	\x9\x9\x9konten.id,
\x9		\x9konten.kode,
\x9			konten.judul,\xa	\x9		IFNULL(konten.tahun_terbit,'-') tahun_terbit,
\x9\x9\x9\x9konten_sub_kategori.nama AS sub_kategori,\xa\x9		\x9concat( 'https://kubuku.id/prod/img/icon/', konten_kategori.icon ) icon, 
			\x9konten_kategori.nama AS kategori,\xa	\x9	\x9IFNULL(konten_penerbit.nama,'-') AS penerbit,\xa\x9			IFNULL(konten_penulis.nama,'-') AS penulis,
	\x9\x9	IFNULL(konten.isbn,'-') AS isbn,
\x9	\x9\x9IFNULL(konten.eisbn,'-') AS eisbn,
	\x9\x9\x9IFNULL(konten.sinopsis,'-') as sinopsis,
		\x9	CONCAT('cover/',konten.cover_file) AS `cover_file`,
	\x9	\x9konten.cover_file AS `img`,
		\x9\x9IFNULL(konten.keyword,'-') AS `keyword`,\xa	\x9		titik_baca.qty qty,
\x9			titik_baca.promoted,
		\x9	titik_baca.alias,
	\x9	\x9(sum(titik_baca.qty)) terpakai,\xa\x9		\x9FROM
\x9			konten\xa		\x9	INNER JOIN konten_sub_kategori
\x9	\x9	ON konten.id_sub_kategori = konten_sub_kategori.id 
\x9		\x9INNER JOIN konten_kategori
\x9\x9	\x9ON konten_sub_kategori.id_kategori = konten_kategori.id \xa\x9\x9\x9\x9INNER JOIN konten_departemen
\x9\x9	\x9ON konten_kategori.id_departemen = konten_departemen.id 
	\x9\x9	INNER JOIN konten_penerbit\xa\x9\x9\x9\x9ON konten.id_penerbit = konten_penerbit.id 
		\x9	INNER JOIN konten_penulis
\x9\x9\x9	ON konten.id_penulis = konten_penulis.id\xa\x9	\x9	inner join (select \x9titikbaca_mitra_lokasi_konten.id_konten, titikbaca_mitra_lokasi_konten.qty, titikbaca_mitra_lokasi_konten.promoted, titikbaca_mitra_lokasi_konten.alias from 
	\x9	\x9titikbaca_mitra_lokasi 
\x9	\x9	left join titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi_konten.id_mitra_lokasi = titikbaca_mitra_lokasi.id\xa		\x9\x9where titikbaca_mitra_lokasi.id={$id_lokasi} and titikbaca_mitra_lokasi_konten.sts='1') titik_baca on titik_baca.id_konten = konten.id\xa\x9\x9	\x9left join (select id_konten_lokasi, count(*) terbaca from titikbaca_trx_baca where sts=1 group by id_konten_lokasi) titikbaca_trx_baca on titikbaca_trx_baca.id_konten_lokasi = titik_baca.id_konten\xa\x9\x9		WHERE\xa\x9\x9\x9	konten.sts = '1' AND \xa\x9\x9\x9	konten.id in\xa\x9\x9\x9	(\xa	\x9			select id_konten \xa		\x9		from titikbaca_mitra_lokasi_konten \xa		\x9\x9\x9where id_mitra_lokasi='{$id_lokasi}' and id_konten !='{$id_konten}' and titikbaca_mitra_lokasi_konten.sts='1'\xa				)
	\x9\x9	order by rand()
\x9			limit 6\xa\x9	\x9\x9"; $data["rekomendasi"] = array(); $stmt->fetchAll(); return echoResponse($response, $data, 200); } } else { $result["code"] = "400"; $result["msg"] = "Judul tidak di temukan."; return echoResponse($response, $result, 200); } } else { $result["code"] = "404"; $result["msg"] = "hp only"; return echoResponse($response, $result, 200); } }); goto IwGbo; KfBwV: define("LOGIN_ERROR", 401); goto JWXK3; uRAj4: $app->post("/titikBacaRekomendasi/{token}", function ($request, $response, $args) { $mob = isMobile(); if ($mob) { $token = $args["token"]; $input = $request->getParsedBody(); $latitudeFrom = $input["latitude"]; $longitudeFrom = $input["longitude"]; $altitude = $input["altitude"]; $info = $input["info"]; $halaman = $input["hal"]; if (!$halaman) { $halaman = 1; } $isMobile = $input["isMobile"]; $ipAddress = $_SERVER["REMOTE_ADDR"]; $limit = 6; $q = "select longitude, latitude, radiusLongLat, altitude, nama, id from titikbaca_mitra_lokasi where alias=:alias and sts='1'"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["longitude"]; $latitudeTo = $row["latitude"]; $radius = $row["radiusLongLat"]; $result["nama_lokasi"] = $row["nama"]; $id_lokasi = $row["id"]; $id_user = $request->getHeaderLine("HTTP_UUID"); $distance = 0; if ($distance <= $radius) { $q = "SELECT
            konten.id,
            konten.kode,\xa            konten.judul,
            IFNULL(konten.tahun_terbit,'-') tahun_terbit,
            konten_sub_kategori.id AS id_sub_kategori,\xa            konten_sub_kategori.nama AS sub_kategori,
            concat( 'https://kubuku.id/prod/img/icon/', konten_kategori.icon ) icon, 
            konten_kategori.id AS id_kategori,
            konten_kategori.nama AS kategori,\xa            IFNULL(konten_penerbit.nama,'-') AS penerbit,
            IFNULL(konten_penulis.nama,'-') AS penulis,\xa            IFNULL(konten.isbn,'-') AS isbn,\xa            IFNULL(konten.eisbn,'-') AS eisbn,\xa            IFNULL(konten.sinopsis,'-') as sinopsis,\xa            CONCAT('cover/',konten.cover_file) AS `cover_file`,\xa            konten.cover_file AS `img`,
            IFNULL(konten.keyword,'-') AS `keyword`,
            sum(titik_baca.qty) qty,
            titik_baca.promoted,\xa            titik_baca.alias,
            titik_baca.penyumbang,
            group_concat(titik_baca.id_penyumbang) id_penyumbang,
            (sum(titik_baca.qty)) terpakai,
            android_file
            
            FROM
            konten\xa            LEFT JOIN konten_sub_kategori\xa            ON konten.id_sub_kategori = konten_sub_kategori.id \xa            LEFT JOIN konten_kategori\xa            ON konten_sub_kategori.id_kategori = konten_kategori.id 
            LEFT JOIN konten_departemen\xa            ON konten_kategori.id_departemen = konten_departemen.id \xa            LEFT JOIN konten_penerbit
            ON konten.id_penerbit = konten_penerbit.id \xa            LEFT JOIN konten_penulis\xa            ON konten.id_penulis = konten_penulis.id
            LEFT join (select titikbaca_penyumbang.id id_penyumbang, titikbaca_penyumbang.nama penyumbang,\x9titikbaca_mitra_lokasi_konten.id_konten, titikbaca_mitra_lokasi_konten.qty, titikbaca_mitra_lokasi_konten.promoted, titikbaca_mitra_lokasi_konten.alias from 
            titikbaca_mitra_lokasi \xa            LEFT join titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi_konten.id_mitra_lokasi =titikbaca_mitra_lokasi.id and titikbaca_mitra_lokasi_konten.sts='1'\xa            left join titikbaca_penyumbang on titikbaca_penyumbang.id = id_penyumbang
            where titikbaca_mitra_lokasi.alias=:alias) titik_baca on titik_baca.id_konten = konten.id
            left join (select id_konten_lokasi, count(*) terbaca from titikbaca_trx_baca where sts=1 group by id_konten_lokasi) titikbaca_trx_baca on titikbaca_trx_baca.id_konten_lokasi = titik_baca.id_konten
\xa            WHERE
            konten.sts = '1'\xa            
            group by konten.id, \xa					\x9konten.kode,\xa            \x9\x9	konten.judul,\xa	\x9\x9\x9	\x9tahun_terbit,
\x9\x9\x9\x9\x9\x9id_sub_kategori,
			\x9		sub_kategori,\xa	\x9		\x9	icon,\xa	\x9\x9\x9		id_kategori,\xa\x9		\x9	\x9kategori,\xa	\x9	\x9\x9	penerbit,
\x9\x9	\x9	\x9penulis,
	\x9\x9\x9	\x9isbn,
\x9\x9\x9		\x9eisbn,\xa	\x9\x9	\x9	sinopsis,
\x9\x9\x9\x9	\x9cover_file,
						img,\xa\x9\x9\x9	\x9\x9keyword,
\x9\x9\x9		\x9qty,\xa	\x9\x9\x9		promoted,
\x9	\x9\x9\x9\x9alias,\xa	\x9	\x9		penyumbang,\xa\x9	\x9\x9		id_penyumbang,
		\x9	\x9\x9android_file\xa            order by promoted desc, rand() limit " . ($halaman - 1) * $limit . ", {$limit}"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->execute(); $result["code"] = 200; $result["data"] = $stmt->fetchAll(); $result["token"] = $token; } else { $result["code"] = 400; $result["data"] = array(); $coverageArea = ($distance - $radius) / 1000; $result["msg"] = "Diluar jangkauan lokasi {$result["nama_lokasi"]}, sejauh " . number_format($coverageArea) . " Km, <p><a href='https://www.google.com/maps/@{$latitudeFrom},{$longitudeFrom},19z'> Lokasi Anda</a></p>"; $result["coverage"] = number_format($coverageArea); $result["latitudeFrom"] = $latitudeFrom; $result["longitudeFrom"] = $longitudeFrom; $result["google_maps"] = "https://www.google.com/maps/@{$latitudeFrom},{$longitudeFrom},19z"; } return echoResponse($response, $result, 200); } else { echo "\xa	\x9<script>\xa\x9	document.onkeydown = function(e) {\xa\x9		\x9if (event.keyCode == 123) {\xa\x9\x9	\x9\x9	console.log('You cannot inspect Element');\xa\x9\x9\x9		\x9return false;
\x9		\x9}
\x9	\x9\x9if (e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) {\xa	\x9\x9\x9\x9	console.log('You cannot inspect Element');\xa\x9	\x9\x9	\x9return false;\xa\x9	\x9\x9}\xa\x9\x9		if (e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) {\xa\x9	\x9	\x9\x9console.log('You cannot inspect Element');
	\x9	\x9\x9\x9return false;
\x9\x9		}\xa		\x9\x9if (e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) {
\x9\x9	\x9	\x9console.log('You cannot inspect Element');\xa\x9\x9\x9\x9		return false;
\x9\x9	\x9}\xa	\x9		if (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) {
\x9\x9	\x9	\x9console.log('You cannot inspect Element');\xa\x9\x9\x9	\x9\x9return false;
\x9	\x9	}\xa		}\xa	\x9document.addEventListener('contextmenu', event => event.preventDefault());\xa\x9\x9</script>\xa\x9\x9\xa		Halaman ini hanya dapat di akses oleh hp."; die; } }); goto BLmSq; IwGbo: $app->post("/titikBaca/{token}/searchingFromIndex", function ($request, $response, $args) { $mob = isMobile(); if ($mob) { $token = $args["token"]; $input = $request->getParsedBody(); $latitudeFrom = $input["latitude"]; $longitudeFrom = $input["longitude"]; $altitude = $input["altitude"]; $info = $input["info"]; $search = $input["search"]; $tipe = $input["tipe"]; $isMobile = $input["isMobile"]; $ipAddress = $_SERVER["REMOTE_ADDR"]; $halaman = $input["hal"]; if (!$halaman) { $halaman = 1; } if ($halaman <= 0) { $halaman = 1; } $limit = 6; $q = "select longitude, latitude, radiusLongLat, altitude, nama, id from titikbaca_mitra_lokasi where alias=:alias and sts='1'"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["longitude"]; $latitudeTo = $row["latitude"]; $radius = $row["radiusLongLat"]; $result["nama_lokasi"] = $row["nama"]; $id_lokasi = $row["id"]; $id_user = $request->getHeaderLine("HTTP_UUID"); $distance = 0; if ($distance <= $radius) { $q = "SELECT\xa	\x9	konten.id,\xa\x9\x9	konten.kode,\xa	\x9	konten.judul,\xa\x9\x9	IFNULL(konten.tahun_terbit,'-') tahun_terbit,
\x9	\x9konten_sub_kategori.id AS id_sub_kategori,\xa			konten_sub_kategori.nama AS sub_kategori,
\x9	\x9concat( 'https://kubuku.id/prod/img/icon/', konten_kategori.icon ) icon, 
			konten_kategori.id AS id_kategori,
			konten_kategori.nama AS kategori,
	\x9	IFNULL(konten_penerbit.nama,'-') AS penerbit,\xa	\x9\x9IFNULL(konten_penulis.nama,'-') AS penulis,
\x9		IFNULL(konten.isbn,'-') AS isbn,
	\x9\x9IFNULL(konten.eisbn,'-') AS eisbn,\xa\x9\x9\x9IFNULL(konten.sinopsis,'-') as sinopsis,\xa\x9\x9	CONCAT('cover/',konten.cover_file) AS `cover_file`,
		\x9konten.cover_file AS `img`,
		\x9IFNULL(konten.keyword,'-') AS `keyword`,\xa\x9\x9	sum(titik_baca.qty) qty,\xa	\x9\x9titik_baca.promoted,\xa		\x9titik_baca.alias,\xa\x9\x9	titik_baca.penyumbang,\xa	\x9\x9group_concat(titik_baca.id_penyumbang) id_penyumbang,
\x9	\x9(\x9sum(titik_baca.qty)) terpakai,\xa		\x9android_file
\x9\x9	\xa		\x9FROM
\x9	\x9konten
	\x9	LEFT JOIN konten_sub_kategori\xa\x9		ON konten.id_sub_kategori = konten_sub_kategori.id 
\x9\x9	LEFT JOIN konten_kategori\xa	\x9\x9ON konten_sub_kategori.id_kategori = konten_kategori.id \xa\x9\x9	LEFT JOIN konten_departemen
\x9\x9	ON konten_kategori.id_departemen = konten_departemen.id 
\x9	\x9LEFT JOIN konten_penerbit\xa	\x9\x9ON konten.id_penerbit = konten_penerbit.id \xa	\x9	LEFT JOIN konten_penulis\xa\x9\x9	ON konten.id_penulis = konten_penulis.id\xa			LEFT join (select titikbaca_penyumbang.id id_penyumbang, titikbaca_penyumbang.nama penyumbang,\x9titikbaca_mitra_lokasi_konten.id_konten, titikbaca_mitra_lokasi_konten.qty, titikbaca_mitra_lokasi_konten.promoted, titikbaca_mitra_lokasi_konten.alias from \xa\x9\x9	titikbaca_mitra_lokasi 
\x9\x9\x9inner join titikbaca_mitra_lokasi_konten on titikbaca_mitra_lokasi_konten.id_mitra_lokasi =titikbaca_mitra_lokasi.id and titikbaca_mitra_lokasi_konten.sts='1'\xa\x9		left join titikbaca_penyumbang on titikbaca_penyumbang.id = id_penyumbang
	\x9\x9where titikbaca_mitra_lokasi.alias=:alias) titik_baca on titik_baca.id_konten = konten.id\xa			left join (select id_konten_lokasi, count(*) terbaca from titikbaca_trx_baca where sts=1 group by id_konten_lokasi) titikbaca_trx_baca on titikbaca_trx_baca.id_konten_lokasi = titik_baca.id_konten

		\x9WHERE\xa\x9		konten.sts = '1'
\x9\x9\x9and (konten.judul like :search or konten_penulis.nama like :search or konten_penerbit.nama like :search)  \xa			group by konten.id, 
			\x9		konten.kode,\xa            \x9\x9	konten.judul,
\x9	\x9	\x9\x9tahun_terbit,
\x9\x9\x9	\x9	id_sub_kategori,
\x9			\x9	sub_kategori,\xa\x9\x9		\x9\x9icon,
	\x9	\x9	\x9id_kategori,\xa	\x9\x9\x9		kategori,
	\x9		\x9	penerbit,
	\x9\x9	\x9	penulis,\xa	\x9		\x9\x9isbn,\xa\x9\x9\x9	\x9	eisbn,\xa\x9\x9				sinopsis,\xa	\x9	\x9		cover_file,
\x9		\x9\x9	img,
	\x9				keyword,\xa\x9\x9\x9\x9	\x9qty,
		\x9\x9		promoted,\xa\x9\x9\x9\x9\x9	alias,
\x9				\x9penyumbang,
	\x9	\x9\x9\x9id_penyumbang,
	\x9	\x9		android_file
		\x9order by promoted desc \xa\x9		limit " . ($halaman - 1) * $limit . ",{$limit}"; $stmt = $this->db->prepare($q); $stmt->bindParam(":alias", $token); $stmt->bindValue(":search", "%" . $search . "%"); $stmt->execute(); $result["code"] = 200; $result["data"] = $stmt->fetchAll(); $result["token"] = $token; } else { $result["code"] = 400; $result["data"] = array(); $coverageArea = ($distance - $radius) / 1000; $result["msg"] = "Diluar jangkauan lokasi {$result["nama_lokasi"]}, sejauh " . number_format($coverageArea) . " Km, <p><a href='https://www.google.com/maps/@{$latitudeFrom},{$longitudeFrom},19z'> Lokasi Anda</a></p>"; $result["coverage"] = number_format($coverageArea); $result["latitudeFrom"] = $latitudeFrom; $result["longitudeFrom"] = $longitudeFrom; $result["google_maps"] = "https://www.google.com/maps/@{$latitudeFrom},{$longitudeFrom},19z"; } return echoResponse($response, $result, 200); } else { $result["code"] = "404"; $result["msg"] = "hp only"; return echoResponse($response, $result, 200); } }); goto uRAj4; fyRYD: if (isset($_SERVER["HTTP_ORIGIN"])) { $http_origin = $_SERVER["HTTP_ORIGIN"]; header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Methods: GET,POST,OPTIONS,PUT,DELETE,PATCH"); header("Access-Control-Allow-Headers: Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,UUID,UID,CLIENTID,OS,VERSIONCODE,MAXCONTENT,MAXDAY,USERNAME,USERID,KEY,USERLEVEL"); Header("Access-Control-Request-Headers: Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,UUID,UID,CLIENTID,OS,VERSIONCODE,MAXCONTENT,MAXDAY,USERNAME,USERID,KEY,USERLEVEL"); Header("Access-Control-Allow-Credentials: true"); } goto Lm0Vf; oCU8v: $app->get("/", function () { echo "Hello World"; }); goto IOMv1; KeIVJ: $app->get("/pingRead/{id_trx_baca}", function ($request, $response, $args) { $id_trx_baca = $args["id_trx_baca"]; $q = "update titikbaca_trx_baca set 
    tgl_selesai_baca=now(), durasi = timestampdiff(SECOND,tgl_mulai_baca,now())
    where id=:id_trx_baca and sts='1'"; $stmt = $this->db->prepare($q); $stmt->bindParam(":id_trx_baca", $id_trx_baca); $stmt->execute(); $result["code"] = CODE_SUCCESS; $result["msg"] = "Ok"; return echoResponse($response, $result, 200); }); goto KYJpR; To5rl: define("COVER_FILE", "cover/"); goto g1WGa; CT_Y4: $app->run(); ?>

Did this file decode correctly?

Original Code

<?php
 require "\166\x65\156\144\x6f\162\57\x61\165\164\157\x6c\157\141\144\56\x70\150\160"; use Slim\Http\Request; use Slim\Http\Response; use Firebase\JWT\JWT; goto ixfpZ; KYJpR: $app->get("\x2f\143\x6c\x65\141\x72\x52\145\141\x64", function ($request, $response, $args) { $q = "\x75\160\144\x61\x74\x65\40\x74\151\x74\x69\153\142\x61\x63\x61\x5f\164\162\x78\x5f\x62\141\143\141\40\163\145\x74\x20\163\164\x73\75\x27\60\x27\40\xa\40\40\40\x20\x77\x68\145\162\145\40\x74\x69\x6d\145\x73\x74\141\x6d\x70\144\x69\146\x66\50\x53\x45\103\x4f\x4e\x44\54\164\x67\x6c\137\163\145\x6c\145\x73\x61\151\x5f\x62\141\x63\141\x2c\x6e\x6f\167\50\51\x29\76\64\65\40\141\x6e\x64\x20\x73\164\163\x3d\x27\x31\x27"; $stmt = $this->db->prepare($q); $stmt->execute(); $result["\143\157\144\145"] = CODE_SUCCESS; $result["\x6d\x73\x67"] = "\117\153"; return echoResponse($response, $result, 200); }); goto OAAsk; DBflr: function deleteToken($obj, $token) { $q = "\x64\x65\x6c\145\x74\145\40\146\x72\x6f\155\x20\164\151\x74\151\153\142\x61\143\141\x5f\x6a\x77\164\40\167\150\145\162\145\40\152\x77\x74\75\x3a\164\x6f\153\145\x6e"; $stmt = $obj->db->prepare($q); $stmt->bindParam("\x3a\164\157\x6b\145\x6e", $token); $stmt->execute(); $q = "\144\x65\x6c\145\164\x65\x20\x66\x72\x6f\x6d\40\164\x69\x74\151\153\142\141\x63\141\x5f\x6a\x77\x74\40\x77\150\x65\162\x65\x20\x74\147\154\x5f\x6b\x61\x64\x61\154\x75\167\141\x72\x73\141\x3e\156\157\167\50\x29"; $stmt = $obj->db->prepare($q); $stmt->execute(); } goto eZSDc; GcZ1i: Header("\x41\x63\143\x65\163\x73\x2d\x43\x6f\156\x74\162\x6f\x6c\55\x41\154\x6c\157\x77\x2d\x43\162\145\x64\x65\x6e\164\x69\x61\x6c\163\x3a\x20\164\162\165\x65"); goto fyRYD; k0F1k: header("\x41\143\x63\145\x73\x73\55\103\x6f\x6e\164\x72\157\x6c\x2d\x4d\x61\x78\55\x41\x67\x65\72\x20\x31\x30\60\x30"); goto e3RUL; FQ_5w: $app->get("\57\x74\x69\x74\x69\x6b\102\141\143\x61\124\x68\145\x6d\145\163\x2f\x7b\x74\157\x6b\x65\156\x7d", function ($request, $response, $args) { $token = $args["\x74\x6f\153\x65\156"]; $result = array(); if ($token != "\156\x75\154\x6c") { $q = "\123\105\x4c\x45\x43\x54\x20\151\144\x2c\40\x69\x64\x5f\155\151\x74\162\141\40\xa\11\x9\106\x52\117\x4d\40\x74\151\164\x69\x6b\142\141\x63\x61\137\x6d\151\164\162\141\x5f\154\157\x6b\x61\x73\151\x20\x77\x68\145\162\145\x20\xa\x9\x9\x61\x6c\x69\x61\163\75\72\141\154\x69\x61\163"; $stmt = $this->db->prepare($q); $stmt->bindParam("\72\141\x6c\151\141\163", $token); $stmt->execute(); if ($stmt->rowCount() > 0) { $row = $stmt->fetch(); $id_lokasi = $row["\x69\x64"]; $id_mitra = $row["\151\x64\x5f\155\x69\x74\x72\x61"]; $q = "\x73\x65\154\x65\x63\x74\40\12\x9\x9\x9\x63\x6f\x6c\x6f\162\40\167\141\162\156\141\x2c\x20\144\141\x72\x6b\137\x63\157\154\x6f\162\x20\x64\141\x72\153\54\40\151\x6d\x67\137\x68\x65\141\x64\x20\x68\145\x61\144\54\40\151\155\x67\137\163\x70\x6c\x61\x73\150\40\x73\160\154\141\x73\150\x2c\x20\x74\x65\x78\164\137\x63\157\154\x6f\162\x20\x74\x65\170\164\xa\11\x9\x9\x66\x72\x6f\155\x20\x74\151\164\x69\153\x62\141\143\141\137\164\150\145\x6d\145\163\40\xa\x9\x9\x9\127\x48\105\x52\x45\x20\xa\x9\x9\x9\x69\144\x5f\x6d\151\164\x72\141\x20\x3d\40{$id_mitra}\40\x61\156\x64\x20\x69\x64\137\x6d\x69\164\162\141\137\154\157\x6b\141\x73\151\75{$id_lokasi}"; $stmt = $this->db->prepare($q); $stmt->execute(); $result = $stmt->fetch(); if ($stmt->rowCount() == 0) { $q = "\163\x65\154\145\143\x74\x20\xa\11\x9\11\x9\143\x6f\x6c\x6f\162\40\x77\141\162\x6e\141\54\40\x64\141\x72\x6b\137\143\x6f\154\x6f\x72\x20\144\141\x72\x6b\x2c\40\x69\x6d\147\x5f\x68\x65\x61\x64\40\150\145\x61\144\x2c\40\151\x6d\147\137\163\160\x6c\x61\163\150\x20\x73\160\154\x61\x73\150\x2c\x20\x74\145\170\164\x5f\x63\x6f\x6c\x6f\162\40\x74\145\x78\x74\12\x9\11\x9\x9\146\162\x6f\155\40\x74\151\x74\x69\x6b\142\141\x63\x61\x5f\164\x68\145\x6d\145\x73\40\12\11\11\x9\x9\127\110\x45\x52\x45\40\xa\11\11\x9\x9\x69\144\x5f\155\151\x74\x72\141\40\75\40{$id_mitra}\40\x61\156\144\40\151\144\137\155\x69\164\x72\141\x5f\x6c\157\153\141\163\x69\75\x30"; $stmt = $this->db->prepare($q); $stmt->execute(); $result = $stmt->fetch(); if ($stmt->rowCount() == 0) { $result["\167\x61\162\x6e\x61"] = ''; $result["\144\141\x72\153"] = ''; $result["\150\x65\141\144"] = ''; $result["\164\x65\x78\164"] = ''; $result["\x73\160\x6c\x61\x73\150"] = "\x64\141\164\141\72\x69\155\141\x67\145\57\x70\x6e\x67\x3b\142\x61\x73\x65\66\x34\54\x69\x56\102\x4f\122\x77\60\113\x47\147\157\101\101\x41\101\116\x53\125\x68\x45\x55\x67\x41\x41\x41\x41\x45\x41\x41\x41\101\x42\x43\x41\x59\x41\x41\x41\101\146\x46\143\123\112\101\101\101\101\x42\110\116\103\123\x56\x51\x49\103\x41\x67\111\146\101\150\153\151\101\101\101\x41\x41\154\x77\x53\x46\154\172\x41\x41\x41\x4f\x64\x41\101\101\104\x6e\x51\102\141\x79\123\172\x31\147\x41\x41\101\102\150\x30\x52\126\150\x30\x55\62\71\x6d\x64\110\144\150\x63\x6d\125\101\x51\127\122\x76\131\x6d\125\147\x52\155\x6c\x79\132\x58\144\x76\x63\155\x74\172\x54\x37\x4d\x66\x54\x67\101\x41\101\x42\x5a\60\x52\126\x68\60\x51\63\112\x6c\x59\130\x52\x70\x62\x32\x34\x67\126\107\154\x74\132\121\x41\x78\115\123\x38\x7a\115\103\70\x79\115\165\53\131\154\124\x51\x41\101\x41\x41\x4e\123\125\122\x42\x56\101\151\x5a\x59\57\152\57\57\172\x38\x44\101\101\x6a\x38\x41\166\66\x46\x7a\x61\x73\60\x41\101\x41\101\x41\105\154\106\x54\153\123\165\121\155\x43\x43"; } } $result["\143\x6f\144\x65"] = CODE_SUCCESS; } else { $result["\x63\157\144\x65"] = CODE_EMPTY; } } else { $result["\x77\141\162\156\x61"] = ''; $result["\144\141\x72\153"] = ''; $result["\x68\x65\x61\x64"] = ''; $result["\164\x65\170\x74"] = ''; $result["\x73\160\154\141\x73\150"] = "\x64\141\164\141\72\x69\x6d\141\x67\x65\57\x70\156\147\x3b\142\x61\x73\145\66\x34\54\151\126\102\117\x52\x77\x30\113\x47\x67\x6f\x41\x41\x41\101\x4e\x53\125\150\105\125\x67\x41\101\101\x41\x45\101\x41\x41\101\x42\103\101\131\101\101\101\101\x66\106\x63\123\x4a\101\101\101\x41\102\x48\116\x43\123\x56\x51\x49\x43\101\147\x49\x66\x41\x68\153\x69\101\101\101\101\101\x6c\x77\x53\106\x6c\x7a\101\x41\101\x4f\144\x41\x41\101\104\156\x51\x42\x61\171\x53\172\61\147\x41\x41\x41\x42\x68\60\x52\x56\x68\x30\125\x32\x39\155\x64\110\x64\150\143\x6d\125\x41\x51\x57\x52\166\131\155\125\x67\122\155\154\x79\x5a\x58\144\166\x63\155\x74\172\124\x37\x4d\x66\x54\x67\x41\101\101\x42\132\60\x52\126\150\x30\121\63\112\x6c\x59\130\x52\x70\x62\62\64\147\x56\107\154\x74\132\121\101\x78\115\123\x38\172\115\103\x38\171\115\x75\x2b\131\x6c\x54\x51\101\x41\101\101\x4e\123\125\x52\102\126\101\151\x5a\131\x2f\152\57\x2f\172\x38\104\101\101\152\x38\101\x76\x36\x46\172\141\x73\60\x41\x41\x41\101\x41\105\154\106\124\x6b\x53\165\x51\155\x43\x43"; $result["\143\x6f\x64\145"] = CODE_SUCCESS; } return echoResponse($response, $result, 200); }); goto bCmD7; iy7_b: define("\x43\117\x44\105\137\x45\115\x50\124\x59", 400); goto j7QJb; gBjzz: function checkToken($obj, $token) { $q = "\x73\145\154\145\143\x74\x20\151\x64\40\x66\162\157\155\40\164\151\x74\x69\x6b\x62\141\x63\x61\x5f\x6a\x77\x74\x20\x77\x68\x65\162\x65\x20\x6a\x77\x74\75\x3a\164\x6f\x6b\x65\156"; $stmt = $obj->db->prepare($q); $stmt->bindParam("\72\164\x6f\153\x65\x6e", $token); $stmt->execute(); if ($stmt->rowCount() > 0) { return true; } return false; } goto DBflr; j7QJb: define("\103\x4f\104\x45\x5f\105\x52\x52\x4f\x52", 500); goto To5rl; IOMv1: $app->get("\x2f\164\151\164\x69\x6b\102\141\143\141\x41\x6c\154", function ($request, $response, $args) { $q = "\163\x65\x6c\145\143\164\x20\141\x6c\x69\141\163\40\x46\122\x4f\x4d\x20\164\151\164\151\153\x62\x61\x63\141\x5f\x6d\151\x74\x72\x61\137\x6c\157\x6b\x61\x73\x69\12\x9\167\x68\145\x72\x65\40\x69\x64\x20\x69\x6e\40\50\123\105\114\105\103\124\40\x69\144\x5f\155\x69\x74\162\x61\137\x6c\x6f\153\x61\x73\151\40\x46\x52\x4f\x4d\40\164\151\x74\x69\x6b\142\x61\143\141\x5f\155\x69\164\x72\x61\137\x6c\x6f\153\x61\163\x69\x5f\153\x6f\x6e\164\145\156\40\x77\150\145\x72\145\40\163\164\163\75\x31\51"; $stmt = $this->db->prepare($q); $stmt->execute(); if ($stmt->rowCount() > 0) { $result["\x63\157\144\x65"] = 200; $result["\144\x61\164\141"] = $stmt->fetchAll(); } else { $result["\143\x6f\x64\145"] = CODE_EMPTY; } return echoResponse($response, $result, 200); }); goto FQ_5w; k7V8u: header("\x41\x63\143\145\x73\x73\x2d\x43\157\156\x74\162\157\x6c\55\101\154\x6c\157\x77\55\x43\162\145\x64\x65\156\164\151\141\154\x73\72\40\164\x72\165\x65"); goto IqmYi; g1WGa: header("\101\x63\x63\x65\x73\x73\x2d\103\157\156\164\162\x6f\x6c\55\x41\x6c\x6c\x6f\x77\55\x4f\162\151\147\x69\x6e\x3a\40\52"); goto k7V8u; bCmD7: $app->post("\57\x74\x69\x74\x69\153\x42\141\x63\x61\57\173\164\x6f\x6b\145\156\175", function ($request, $response, $args) { $mob = isMobile(); $result = array(); if ($mob) { $token = $args["\164\x6f\153\145\156"]; $input = $request->getParsedBody(); $latitudeFrom = $input["\x6c\x61\x74\151\164\165\x64\x65"]; $longitudeFrom = $input["\x6c\157\156\x67\x69\x74\165\x64\145"]; $altitude = $input["\x61\154\x74\151\164\x75\144\x65"]; $info = "\x2f\164\151\164\x69\x6b\102\x61\143\141\x2f{$token}"; $isMobile = $input["\151\163\x4d\x6f\x62\x69\x6c\x65"]; $halaman = $input["\150\141\x6c"]; if (!$halaman) { $halaman = 1; } $ipAddress = $_SERVER["\x52\x45\115\x4f\x54\105\137\x41\104\104\122"]; $limit = 6; $q = "\x73\145\154\x65\x63\x74\40\154\157\156\147\151\x74\x75\x64\145\x2c\40\x6c\x61\164\151\x74\x75\x64\145\54\x20\162\141\144\x69\x75\x73\x4c\157\156\x67\114\x61\164\54\x20\141\x6c\x74\151\164\x75\144\x65\x2c\40\x6e\141\x6d\141\54\x20\x69\x64\40\x66\162\x6f\155\40\164\151\x74\151\x6b\x62\x61\143\x61\x5f\x6d\x69\164\162\x61\x5f\x6c\157\x6b\x61\x73\x69\x20\x77\150\x65\x72\145\x20\141\x6c\151\x61\x73\x3d\x3a\141\x6c\x69\141\x73\40\x61\x6e\x64\40\163\x74\x73\75\x27\x31\x27"; $stmt = $this->db->prepare($q); $stmt->bindParam("\x3a\141\154\151\141\x73", $token); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["\154\x6f\156\x67\151\x74\x75\144\x65"]; $latitudeTo = $row["\x6c\x61\x74\151\x74\x75\x64\145"]; $radius = $row["\162\x61\144\151\165\163\114\x6f\x6e\147\114\x61\164"]; $result["\156\x61\x6d\x61\x5f\x6c\157\153\141\163\x69"] = $row["\x6e\x61\155\141"]; $id_lokasi = $row["\151\144"]; $id_user = $input["\165\165\151\144"]; $distance = 0; if ($distance <= $radius) { $id_mitra = $request->getHeaderLine("\110\124\124\x50\x5f\x49\x44\115\x49\124\122\101"); $email = ''; $nama = ''; $uuid = $request->getHeaderLine("\x48\124\x54\x50\x5f\125\x55\x49\x44"); $q = "\151\x6e\163\x65\x72\x74\40\x69\156\164\157\40\x74\x69\164\151\153\142\x61\143\141\137\x70\145\156\147\165\156\152\x75\156\147\x20\50\x69\x64\137\x6c\x6f\153\141\x73\x69\x2c\40\151\x64\137\165\x73\x65\x72\x2c\x20\154\x61\x74\151\164\165\144\x65\54\40\154\157\x6e\x67\x69\164\165\144\145\54\40\x61\x6c\164\151\164\x75\144\145\x2c\x20\x69\x6e\146\157\54\x20\151\x70\54\40\x6b\157\x64\x65\x5f\x6d\151\x74\162\141\54\40\145\155\x61\151\154\x2c\40\156\141\x6d\141\x2c\x20\165\165\151\x64\x29\xa\x9\x9\x9\x76\141\x6c\165\x65\163\40\50{$id_lokasi}\54\x20\x27{$id_user}\47\x2c\x20\x3a\x6c\x61\164\x69\x74\165\x64\145\x2c\x20\72\154\x6f\156\x67\x69\164\x75\144\145\x2c\40\72\141\x6c\164\151\164\165\144\145\x2c\40\72\x69\156\146\157\x2c\x20\47{$ipAddress}\47\54\x27{$id_mitra}\x27\x2c\x27{$email}\x27\x2c\72\x6e\141\x6d\x61\54\47{$uuid}\x27\40\x29"; $stmt = $this->db->prepare($q); $stmt->bindParam("\x3a\154\x61\164\151\164\x75\x64\145", $latitudeFrom); $stmt->bindParam("\x3a\154\157\x6e\147\x69\164\165\144\145", $longitudeFrom); $stmt->bindParam("\x3a\141\154\164\151\164\x75\x64\145", $altitude); $stmt->bindParam("\72\x69\x6e\x66\x6f", $info); $stmt->bindParam("\72\x6e\x61\x6d\141", $nama); $stmt->execute(); $q = "\123\x45\x4c\x45\103\124\12\40\x20\40\x20\40\40\40\40\x20\x20\x20\40\x6b\157\x6e\164\x65\x6e\56\x69\x64\54\xa\40\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\153\x6f\156\164\145\x6e\56\x6b\157\144\x65\x2c\xa\x20\40\x20\x20\x20\x20\40\40\x20\x20\40\40\x6b\157\x6e\x74\x65\156\56\152\165\x64\x75\x6c\54\12\40\40\x20\40\x20\40\x20\x20\x20\x20\40\40\111\x46\116\x55\114\x4c\x28\x6b\x6f\x6e\x74\x65\156\x2e\164\141\x68\165\x6e\137\x74\x65\x72\x62\151\x74\x2c\47\55\47\x29\40\x74\x61\x68\165\x6e\137\164\x65\162\x62\151\x74\x2c\12\40\40\40\x20\x20\40\40\40\40\x20\40\40\153\157\156\x74\x65\x6e\x5f\163\165\142\137\153\x61\x74\x65\x67\x6f\162\151\56\x69\x64\x20\101\x53\40\151\144\x5f\x73\x75\142\x5f\x6b\141\164\x65\147\157\162\x69\54\12\x20\x20\40\40\40\x20\x20\40\40\40\40\40\153\x6f\x6e\x74\145\156\137\163\x75\142\x5f\x6b\x61\164\x65\147\157\162\x69\56\x6e\x61\155\141\40\x41\123\x20\163\x75\142\137\x6b\x61\x74\x65\x67\x6f\x72\x69\x2c\12\x20\40\40\40\x20\40\x20\x20\x20\x20\x20\40\143\x6f\x6e\143\x61\x74\x28\x20\47\150\x74\x74\160\163\72\x2f\x2f\x6b\x75\142\165\x6b\x75\56\x69\144\57\x70\162\x6f\144\x2f\x69\155\147\57\x69\143\x6f\x6e\57\x27\x2c\x20\x6b\x6f\x6e\x74\x65\x6e\137\153\141\164\x65\147\x6f\162\151\x2e\x69\x63\157\156\40\51\x20\x69\x63\x6f\x6e\x2c\x20\12\40\x20\40\40\x20\x20\40\40\40\40\x20\40\153\x6f\156\164\x65\156\x5f\153\x61\164\145\147\157\x72\x69\56\151\x64\x20\101\x53\x20\151\x64\137\153\x61\164\x65\x67\157\162\151\x2c\xa\x20\40\40\40\x20\x20\40\40\x20\40\40\x20\x6b\x6f\x6e\x74\145\x6e\137\x6b\141\164\x65\147\157\162\151\x2e\x6e\x61\x6d\141\40\101\x53\40\x6b\141\164\x65\x67\157\162\x69\54\xa\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\x20\x49\106\x4e\125\x4c\x4c\x28\x6b\x6f\x6e\164\x65\156\137\x70\x65\156\x65\x72\142\x69\x74\x2e\x6e\x61\x6d\x61\54\x27\55\47\51\40\x41\x53\x20\160\145\156\145\x72\x62\151\x74\x2c\xa\x20\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\111\x46\116\x55\x4c\114\50\153\157\x6e\164\145\156\137\160\x65\x6e\165\154\151\163\56\x6e\141\x6d\x61\x2c\x27\55\47\51\x20\x41\123\x20\160\x65\x6e\165\x6c\151\x73\x2c\xa\x20\40\x20\x20\40\40\40\x20\x20\x20\x20\x20\111\x46\116\125\114\114\50\x6b\157\x6e\164\x65\156\56\x69\163\x62\156\x2c\47\x2d\47\51\40\x41\x53\x20\x69\x73\x62\156\x2c\12\40\x20\x20\40\40\x20\x20\40\40\x20\40\40\x49\x46\116\x55\x4c\x4c\x28\153\x6f\x6e\x74\145\156\56\x65\x69\163\x62\x6e\54\47\x2d\x27\x29\x20\101\123\x20\x65\151\163\142\x6e\54\xa\40\40\x20\40\40\x20\40\40\x20\x20\40\x20\x49\x46\x4e\x55\114\114\50\153\x6f\156\x74\145\x6e\56\x73\151\156\x6f\x70\163\x69\163\54\47\55\x27\x29\x20\x61\x73\40\163\x69\156\x6f\160\x73\x69\x73\x2c\12\40\40\x20\40\40\40\x20\40\40\40\40\40\103\x4f\116\103\x41\124\x28\x27\143\157\x76\x65\162\x2f\47\54\x6b\157\x6e\x74\x65\x6e\56\143\157\x76\x65\x72\x5f\x66\x69\154\145\x29\40\101\x53\40\140\143\x6f\x76\x65\162\x5f\x66\x69\x6c\145\140\x2c\xa\x20\40\x20\x20\40\x20\40\x20\x20\40\40\40\x6b\x6f\156\164\x65\156\x2e\143\x6f\x76\145\x72\x5f\x66\151\x6c\145\40\x41\x53\40\140\x69\x6d\147\140\x2c\xa\40\40\40\x20\x20\x20\x20\40\40\x20\40\40\111\x46\x4e\x55\x4c\114\x28\153\157\156\164\x65\x6e\x2e\x6b\145\x79\167\x6f\162\x64\x2c\x27\55\x27\x29\40\x41\x53\40\140\x6b\145\x79\x77\157\x72\x64\x60\x2c\xa\x20\40\x20\x20\40\x20\40\40\x20\40\40\40\163\165\x6d\x28\164\x69\x74\151\x6b\x5f\x62\x61\143\x61\56\x71\x74\171\51\40\x71\164\171\54\12\40\40\40\x20\40\x20\40\40\x20\x20\x20\x20\x74\x69\x74\x69\153\x5f\x62\x61\x63\x61\x2e\x70\162\x6f\155\x6f\x74\x65\144\54\12\40\40\40\x20\x20\40\x20\40\40\40\40\x20\x74\x69\x74\x69\x6b\x5f\142\141\x63\x61\x2e\x61\154\151\x61\x73\54\xa\40\40\40\x20\40\40\40\40\x20\x20\40\x20\x74\x69\164\151\x6b\x5f\x62\141\x63\141\x2e\160\145\x6e\171\165\x6d\142\141\156\147\54\xa\40\x20\40\x20\x20\40\x20\40\x20\40\40\x20\x67\162\157\165\x70\137\x63\x6f\x6e\143\x61\164\x28\164\151\164\151\x6b\137\142\x61\143\141\56\151\144\137\x70\x65\156\x79\x75\155\x62\x61\x6e\x67\51\x20\151\144\137\x70\145\x6e\x79\x75\155\142\x61\x6e\147\54\xa\40\40\x20\40\40\40\x20\x20\40\x20\40\x20\50\163\x75\x6d\x28\x74\x69\164\151\153\137\142\141\143\x61\56\x71\164\171\x29\51\x20\164\x65\x72\160\141\153\x61\x69\x2c\xa\x20\x20\40\40\x20\x20\40\40\40\x20\40\x20\x61\x6e\144\x72\x6f\x69\x64\137\146\151\x6c\x65\xa\40\x20\40\40\40\40\x20\40\x20\x20\x20\x20\12\x20\40\40\x20\x20\x20\x20\40\40\40\40\x20\106\122\x4f\115\12\40\40\40\x20\40\x20\40\x20\40\40\40\x20\x6b\x6f\156\164\145\156\xa\40\x20\x20\x20\40\40\40\x20\40\40\x20\x20\114\105\106\124\x20\112\117\111\116\x20\x6b\x6f\156\164\145\156\x5f\163\x75\x62\137\153\141\164\145\x67\157\162\151\xa\40\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\117\x4e\40\x6b\x6f\156\164\145\156\56\x69\x64\137\x73\165\x62\137\x6b\x61\164\x65\x67\x6f\x72\151\40\75\40\x6b\x6f\156\164\145\x6e\137\163\x75\x62\137\x6b\x61\x74\x65\147\x6f\162\x69\56\x69\144\40\12\40\40\40\40\40\x20\40\40\40\x20\40\x20\x4c\105\106\x54\40\x4a\117\x49\x4e\x20\153\x6f\x6e\x74\145\156\137\153\141\164\145\147\x6f\x72\151\xa\40\x20\40\x20\40\40\40\40\40\40\40\x20\117\116\40\153\157\x6e\x74\145\x6e\x5f\x73\165\x62\137\153\x61\x74\145\147\157\x72\151\56\x69\144\x5f\153\141\164\145\147\157\x72\x69\x20\75\40\153\x6f\x6e\164\145\x6e\137\x6b\141\164\145\147\157\162\x69\56\151\144\40\xa\x20\40\40\x20\40\x20\x20\40\40\x20\x20\x20\x4c\x45\x46\124\40\x4a\117\x49\116\40\x6b\157\x6e\x74\145\156\137\x64\x65\160\141\x72\x74\x65\155\145\x6e\xa\40\x20\40\x20\40\x20\40\x20\40\40\x20\40\117\116\40\x6b\157\156\x74\x65\156\x5f\x6b\x61\x74\x65\147\x6f\x72\151\x2e\x69\x64\x5f\x64\145\x70\x61\x72\164\x65\155\x65\x6e\40\x3d\40\x6b\x6f\156\x74\x65\x6e\137\x64\145\x70\x61\x72\x74\x65\x6d\145\156\x2e\151\144\x20\12\40\x20\x20\x20\40\40\x20\40\40\40\x20\x20\x4c\x45\106\124\40\112\117\x49\x4e\x20\153\157\156\164\x65\x6e\137\x70\x65\x6e\145\x72\x62\x69\x74\12\40\40\x20\40\40\x20\40\x20\40\40\x20\40\x4f\x4e\x20\x6b\157\x6e\x74\x65\x6e\x2e\x69\x64\x5f\160\145\x6e\x65\x72\142\151\164\x20\75\40\x6b\157\156\x74\145\x6e\137\160\x65\156\x65\162\142\151\164\x2e\151\x64\40\xa\x20\40\x20\40\40\x20\x20\40\x20\40\x20\40\114\x45\x46\124\40\112\117\111\x4e\x20\x6b\157\156\164\x65\x6e\x5f\x70\x65\x6e\165\154\151\x73\xa\40\x20\x20\40\40\x20\40\x20\40\40\40\x20\117\x4e\40\153\x6f\x6e\x74\145\156\x2e\x69\x64\x5f\x70\145\156\165\x6c\151\163\40\75\40\x6b\157\156\x74\145\156\137\160\145\156\x75\x6c\x69\163\56\151\144\12\x20\x20\40\40\40\40\40\40\40\x20\40\x20\x4c\x45\106\x54\x20\152\157\151\x6e\x20\50\x73\x65\x6c\145\x63\164\x20\164\x69\164\151\x6b\142\x61\143\141\x5f\160\145\x6e\x79\165\155\142\x61\156\147\x2e\151\x64\x20\x69\x64\x5f\160\145\x6e\171\x75\155\142\x61\x6e\147\x2c\x20\x74\x69\x74\151\153\x62\141\143\x61\137\160\145\x6e\x79\x75\x6d\x62\141\156\x67\56\x6e\x61\155\141\40\x70\145\156\x79\x75\x6d\x62\141\x6e\x67\54\11\164\x69\164\151\x6b\x62\141\143\x61\137\x6d\151\x74\x72\x61\137\154\157\153\141\x73\151\137\x6b\x6f\156\164\x65\x6e\56\x69\x64\x5f\153\x6f\x6e\164\145\156\x2c\x20\x74\x69\x74\151\x6b\x62\x61\143\x61\x5f\x6d\151\x74\x72\141\x5f\154\x6f\153\x61\x73\151\137\153\157\x6e\164\x65\x6e\x2e\161\164\171\x2c\x20\164\x69\x74\151\x6b\142\141\143\141\x5f\155\x69\164\162\141\137\154\x6f\x6b\141\163\151\x5f\153\x6f\156\x74\145\156\56\160\162\x6f\155\x6f\x74\145\x64\54\40\x74\x69\164\151\153\142\x61\x63\141\x5f\155\x69\164\x72\x61\137\x6c\157\x6b\x61\163\151\x5f\x6b\x6f\156\x74\145\156\56\x61\x6c\151\x61\x73\40\x66\162\157\x6d\40\xa\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\x20\x74\151\x74\151\x6b\142\x61\143\x61\137\155\x69\164\162\x61\137\x6c\x6f\153\x61\x73\151\x20\xa\x20\40\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\x69\x6e\156\x65\x72\40\152\157\151\x6e\40\164\x69\x74\151\x6b\x62\x61\x63\x61\137\155\x69\x74\x72\141\137\x6c\157\x6b\141\x73\151\x5f\153\x6f\156\x74\x65\x6e\40\157\x6e\40\x74\151\164\151\153\142\141\x63\x61\x5f\155\x69\164\162\x61\137\x6c\x6f\153\x61\163\x69\137\153\157\x6e\x74\145\x6e\56\x69\x64\137\155\151\x74\x72\x61\x5f\154\x6f\x6b\x61\x73\151\40\x3d\164\151\x74\x69\x6b\x62\141\143\141\137\155\x69\164\162\x61\x5f\x6c\157\x6b\x61\163\151\56\151\x64\x20\141\x6e\144\40\164\151\x74\151\x6b\142\x61\x63\x61\137\155\151\164\x72\141\137\x6c\157\153\141\163\x69\x5f\x6b\x6f\156\164\145\156\x2e\x73\x74\163\x3d\47\61\47\12\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\40\x6c\145\x66\x74\x20\x6a\x6f\x69\156\40\x74\x69\164\x69\x6b\142\x61\x63\x61\x5f\x70\x65\156\171\165\155\x62\141\x6e\x67\x20\157\156\x20\164\151\164\151\153\142\x61\143\141\137\x70\145\x6e\171\165\155\142\x61\x6e\147\x2e\151\x64\40\75\40\151\144\137\160\145\x6e\x79\165\x6d\x62\x61\156\x67\xa\40\40\x20\40\40\40\40\40\x20\40\40\x20\x77\x68\x65\162\145\x20\x74\151\164\x69\x6b\x62\141\x63\x61\137\155\151\164\162\x61\x5f\154\157\153\x61\163\x69\56\x61\154\151\x61\x73\x3d\72\141\154\151\141\163\x29\x20\164\151\x74\x69\x6b\x5f\142\x61\x63\x61\40\x6f\x6e\x20\x74\x69\164\x69\153\137\142\141\x63\141\x2e\x69\x64\x5f\x6b\x6f\156\x74\x65\156\40\75\x20\153\157\156\x74\145\x6e\x2e\x69\x64\xa\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\x20\154\145\x66\x74\x20\152\157\151\156\40\x28\x73\145\x6c\x65\143\x74\x20\151\x64\x5f\153\157\156\164\145\x6e\137\x6c\157\153\141\163\x69\x2c\40\x63\x6f\x75\156\164\x28\x2a\x29\40\164\x65\x72\142\x61\x63\141\40\146\x72\157\155\40\x74\151\x74\151\x6b\142\x61\x63\141\x5f\x74\x72\x78\137\x62\x61\143\141\x20\167\x68\x65\x72\x65\40\163\164\x73\x3d\61\x20\x67\162\x6f\165\160\x20\x62\x79\x20\151\x64\137\153\157\156\164\x65\x6e\137\x6c\157\153\141\163\151\51\40\x74\x69\164\x69\153\x62\x61\143\x61\x5f\164\x72\170\x5f\142\x61\143\141\40\x6f\156\40\x74\151\164\151\153\142\x61\143\141\137\164\x72\170\137\142\141\x63\141\56\x69\x64\x5f\x6b\157\156\164\145\x6e\137\x6c\157\x6b\x61\x73\151\x20\75\x20\164\151\x74\x69\x6b\x5f\x62\x61\143\141\x2e\151\x64\137\153\157\x6e\164\145\156\12\xa\40\x20\x20\40\40\x20\40\x20\x20\x20\40\40\127\x48\x45\122\x45\xa\x20\40\40\40\x20\40\x20\x20\x20\x20\40\x20\x6b\157\x6e\164\145\x6e\56\163\164\163\x20\75\40\47\61\x27\12\x20\x20\40\x20\40\40\40\40\x20\x20\40\40\xa\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\40\x67\x72\x6f\x75\x70\40\142\x79\x20\153\x6f\156\x74\x65\156\56\x69\144\54\x20\xa\11\11\11\x9\11\11\x6b\157\x6e\164\145\156\56\x6b\157\144\x65\x2c\xa\x20\x20\x20\x20\x20\x20\40\40\x20\x20\40\x20\x9\x9\11\153\x6f\x6e\x74\x65\x6e\56\152\x75\144\165\x6c\x2c\12\11\x9\x9\11\x9\11\x74\141\x68\x75\x6e\137\164\x65\x72\x62\x69\x74\x2c\xa\x9\x9\11\11\x9\11\x69\144\137\163\x75\142\137\x6b\141\x74\x65\147\157\162\x69\54\xa\11\x9\11\x9\x9\x9\163\x75\x62\137\x6b\141\164\145\x67\157\162\x69\x2c\12\11\x9\x9\11\11\x9\151\x63\x6f\156\54\xa\11\x9\11\11\x9\x9\151\x64\137\153\x61\164\x65\147\157\162\x69\x2c\12\11\x9\11\x9\x9\11\x6b\141\x74\145\147\x6f\x72\151\54\12\11\11\x9\x9\11\11\x70\x65\x6e\x65\162\x62\x69\164\x2c\xa\11\x9\x9\x9\11\11\x70\x65\156\x75\x6c\151\x73\54\xa\11\x9\11\11\11\11\151\163\x62\x6e\54\12\11\11\11\x9\11\11\145\151\x73\142\156\54\xa\x9\x9\x9\11\x9\x9\x73\151\x6e\157\160\x73\x69\163\54\12\x9\11\x9\x9\11\x9\143\x6f\x76\x65\x72\x5f\x66\151\x6c\145\x2c\12\11\x9\11\x9\11\x9\x69\155\x67\x2c\xa\11\x9\x9\11\x9\11\x6b\145\171\167\157\162\x64\54\xa\x9\x9\x9\x9\x9\11\x71\x74\x79\x2c\12\x9\x9\11\11\x9\x9\x70\162\x6f\155\157\164\145\x64\x2c\12\x9\x9\x9\11\x9\11\141\154\151\141\x73\x2c\xa\x9\11\11\11\x9\11\x70\145\x6e\x79\x75\x6d\142\x61\156\x67\x2c\12\11\x9\x9\11\x9\11\x69\x64\137\160\x65\x6e\x79\165\x6d\x62\x61\x6e\x67\x2c\12\11\11\x9\11\x9\11\x61\156\x64\162\157\151\x64\137\146\x69\x6c\145\12\x20\x20\40\40\40\40\40\x20\40\x20\x20\40\157\x72\144\x65\162\40\x62\x79\x20\160\x72\157\155\157\164\145\x64\40\x64\145\163\x63"; if ($halaman != "\60") { $q .= "\x20\154\x69\155\x69\164\x20" . ($halaman - 1) * $limit . "\x2c\x20{$limit}"; } $stmt = $this->db->prepare($q); $stmt->bindParam("\x3a\141\x6c\151\141\163", $token); $stmt->execute(); $result["\x63\x6f\x64\145"] = 200; $result["\144\141\164\x61"] = $stmt->fetchAll(); $result["\164\x6f\153\x65\156"] = $token; $groupSubKategori = array(); $list_sub_kategori = array(); foreach ($result["\144\141\164\x61"] as $obj => $key) { $result["\144\x61\x74\141"][$obj]["\x73\151\x6e\x6f\x70\163\x69\x73"] = strip_tags($result["\144\141\164\141"][$obj]["\163\x69\156\x6f\160\163\151\x73"]); $groupSubKategori[$key["\151\x64\x5f\x73\x75\142\x5f\153\x61\164\x65\x67\x6f\162\x69"]]["\x69\144"] = $key["\x69\144\137\163\x75\x62\137\x6b\141\x74\145\147\157\162\x69"]; $groupSubKategori[$key["\x69\144\x5f\163\x75\142\x5f\x6b\x61\x74\145\x67\157\162\x69"]]["\156\141\155\141"] = $key["\x6b\x61\164\x65\147\x6f\x72\151"]; $groupSubKategori[$key["\x69\144\137\x73\x75\x62\x5f\x6b\141\x74\145\147\x6f\162\x69"]]["\x6a\165\x6d\x6c\141\150"] = $groupSubKategori[$key["\151\x64\x5f\163\x75\x62\x5f\x6b\141\x74\145\x67\157\162\x69"]]["\x6a\x75\x6d\x6c\141\150"] + 1; $groupSubKategori[$key["\151\x64\x5f\163\165\142\137\x6b\x61\x74\145\x67\x6f\x72\x69"]]["\144\141\164\x61"][] = $result["\144\x61\164\x61"][$obj]; $id_penyumbang = $key["\151\144\x5f\160\145\156\x79\x75\155\142\141\156\x67"]; if ($id_penyumbang != '') { $q = "\163\145\154\x65\x63\164\40\x6e\x61\155\x61\54\x20\x6c\157\147\157\11\x20\146\x72\157\x6d\40\x74\151\164\x69\153\x62\x61\143\141\137\160\x65\156\171\x75\155\142\x61\156\x67\x20\x77\150\x65\x72\x65\x20\x69\x64\40\x69\x6e\40\x28{$id_penyumbang}\51"; $stmt = $this->db->prepare($q); $stmt->execute(); $result["\144\x61\164\141"][$obj]["\160\145\x6e\x79\165\155\142\x61\x6e\147"] = $stmt->fetchAll(); } } foreach ($groupSubKategori as $obj => $key) { $item_sub_kategori = array("\151\x64" => $key["\x69\144"], "\156\141\x6d\141" => $key["\156\x61\155\x61"], "\152\x75\155\x6c\x61\x68" => $key["\152\x75\x6d\154\x61\x68"], "\144\141\164\x61" => $key["\144\141\164\141"]); array_push($list_sub_kategori, $item_sub_kategori); shuffle($list_sub_kategori); } $result["\x6c\151\163\x74\x5f\x73\165\142\137\153\x61\x74\x65\x67\157\162\151"] = $list_sub_kategori; } else { $result["\143\x6f\x64\145"] = 400; $result["\x64\141\x74\141"] = array(); $coverageArea = ($distance - $radius) / 1000; $result["\155\163\147"] = "\x44\151\x6c\x75\x61\162\40\152\141\156\x67\153\141\x75\141\156\x20\x6c\157\x6b\141\163\151\x20{$result["\x6e\x61\155\141\x5f\x6c\157\x6b\x61\163\151"]}\x2c\x20\x73\145\x6a\x61\x75\150\x20" . number_format($coverageArea) . "\x20\113\x6d\54\x20\74\x70\76\74\141\x20\x68\162\145\x66\x3d\x27\x68\164\164\160\x73\x3a\57\57\x77\167\167\56\147\157\157\x67\x6c\x65\x2e\143\157\x6d\57\x6d\x61\x70\163\57\100{$latitudeFrom}\54{$longitudeFrom}\x2c\61\x39\x7a\x27\x3e\40\x4c\x6f\153\141\163\x69\x20\x41\x6e\144\x61\x3c\57\x61\76\74\x2f\x70\x3e"; $result["\x63\157\x76\145\x72\x61\x67\x65"] = number_format($coverageArea); $result["\x6c\x61\x74\x69\164\x75\144\x65\x46\162\x6f\x6d"] = $latitudeFrom; $result["\x6c\157\x6e\147\151\x74\x75\144\145\106\162\x6f\x6d"] = $longitudeFrom; $result["\147\x6f\x6f\147\x6c\145\137\x6d\x61\x70\163"] = "\150\x74\x74\x70\163\72\57\57\167\x77\x77\x2e\x67\x6f\157\x67\154\145\56\143\x6f\x6d\57\155\141\x70\x73\57\100{$latitudeFrom}\54{$longitudeFrom}\54\61\71\172"; } return echoResponse($response, $result, 200); } else { $result["\143\157\x64\145"] = "\x34\60\64"; $result["\x6d\x73\147"] = "\150\160\x20\157\156\154\x79"; return echoResponse($response, $result, 200); } }); goto n42oe; tCCUL: require "\x64\145\x70\x65\156\x64\145\x6e\143\151\145\163\56\x70\150\x70"; goto oCU8v; OAAsk: $app->get("\57\x67\x65\164\103\157\156\164\x65\156\x74\57\173\164\157\x6b\145\156\175", function ($request, $response, $args) { $token = $args["\x74\157\153\x65\156"]; if (checkToken($this, $token)) { deleteToken($this, $token); $filesn = "\x2f\x6f\x70\164\x2f\163\x6e"; $sn = ''; if (file_exists($filesn)) { if ($file = fopen($filesn, "\162")) { while (!feof($file)) { $line = fgets($file); if ($sn == '') { $sn = $line; } } fclose($file); } } if ($sn != '') { $av = explode("\56", $token); $decode = base64_decode($av[1]); $jd = json_decode($decode, true); $id_konten = $jd["\x69\144\x5f\x6b\x6f\x6e\164\x65\x6e"]; $file_format = $jd["\x66\x69\154\145\137\x66\157\162\155\141\164"]; $jumlah = 0; $terbaca = 0; $q = "\163\x65\154\x65\143\164\x20\161\164\171\40\x66\x72\157\x6d\40\x74\x69\164\151\x6b\x62\141\x63\x61\x5f\x6d\151\164\x72\x61\137\154\157\153\x61\163\151\137\153\157\x6e\164\145\x6e\x20\x77\150\x65\x72\145\x20\151\x64\x5f\153\x6f\x6e\x74\x65\156\75{$id_konten}"; $stmt = $this->db->prepare($q); $stmt->execute(); $row = $stmt->fetch(); $jumlah = $row["\x71\164\x79"]; $q = "\x53\x45\114\105\x43\124\x20\151\144\137\153\x6f\x6e\164\x65\156\137\154\157\x6b\141\x73\x69\x2c\40\x63\x6f\165\x6e\x74\x28\x69\x64\137\x6b\157\156\164\x65\156\x5f\154\157\x6b\141\x73\x69\51\x20\x61\163\40\152\155\154\40\106\122\x4f\x4d\40\164\151\164\x69\153\x62\x61\143\x61\137\164\x72\170\x5f\x62\x61\x63\x61\12\x9\x9\x9\127\110\x45\x52\x45\40\163\x74\163\75\61\40\x61\x6e\x64\x20\x69\144\137\x6b\x6f\x6e\164\145\156\x5f\x6c\157\x6b\141\163\x69\x3d{$id_konten}\40\x67\x72\157\x75\x70\x20\142\171\40\151\x64\x5f\153\x6f\x6e\x74\145\156\x5f\x6c\157\153\141\x73\x69"; $stmt = $this->db->prepare($q); $stmt->execute(); if ($stmt->rowCount() > 0) { $row = $stmt->fetch(); $terbaca = $row["\x6a\x6d\154"]; } if ($jumlah >= $terbaca) { $q = "\163\145\x6c\145\143\x74\x20\x69\x64\137\x73\165\160\160\154\x69\x65\162\x2c\x20\x69\x64\137\x70\145\156\145\162\142\x69\164\x2c\x20\x70\162\x65\x66\x69\170\x5f\x66\x69\154\145\x6e\141\155\x65\54\x20\x6d\144\65\x28\151\x64\x29\x20\141\163\x20\x66\x6e\x20\x66\162\157\x6d\40\x6b\157\156\164\x65\156\40\167\150\x65\162\145\x20\x69\144\x3d\x27{$id_konten}\47"; $stmt = $this->db->prepare($q); $stmt->execute(); $row = $stmt->fetch(); $id_supplier = $row["\x69\144\x5f\163\165\x70\x70\x6c\151\x65\x72"]; $id_penerbit = $row["\151\144\137\160\145\x6e\x65\162\142\151\x74"]; $prefix_filename = $row["\146\x6e"]; $filename = "{$prefix_filename}"; $tmpPath = "\57\x75\163\162\x2f\163\150\141\x72\145\x2f\143\x6e\164\57\153\157\x6e\164\145\156\x5f\164\151\x74\x69\153\142\x61\x63\141\137\62\x35\64\x2f\x6b\142\153"; $tmpPath = "\x2f\x68\x6f\155\145\57\x6b\165\x62\165\x6b\x75\57\153\157\x6e\164\145\156\x2f\x6b\x62\153"; $final = "{$tmpPath}\57{$filename}\56\x6b\x62\x6b"; $tmpFile = "\130" . $filename . "\137" . time() . "\56\160\144\146"; $cmd = "\57\x6f\160\x74\57\x6b\165\x62\165\153\x75\x2f\x65\156\x63\x5f\144\x65\143\57\x6b\x75\142\x75\x6b\165\145\156\143\x64\145\x63\40{$final}\40{$tmpPath}\57{$tmpFile}\x20\x44\40{$sn}"; $output = null; $retval = null; exec($cmd, $output, $retval); $final = "{$tmpPath}\x2f{$tmpFile}"; $data = file_get_contents("{$final}"); unlink("{$final}"); header("\103\x6f\156\x74\145\156\x74\x2d\164\x79\x70\145\72\40\141\160\160\x6c\151\x63\x61\x74\x69\157\x6e\57\x6f\x63\164\x65\164\x2d\163\164\162\145\141\155"); echo $data; } else { $result["\x63\x6f\x64\x65"] = 404; $result["\x6d\163\147"] = "\x53\164\157\153\x20\150\141\142\151\163"; return echoResponse($response, $result, 404); } } else { $result["\143\x6f\144\145"] = 404; $result["\x6d\x73\147"] = "\x54\x6f\153\x65\156\40\x49\x6e\166\x61\154\151\144\40\157\x72\40\x45\170\x70\x69\162\x65\144\x2e"; return echoResponse($response, $result, 404); } } else { $result["\143\x6f\144\145"] = 404; $result["\x6d\x73\147"] = "\124\x6f\x6b\x65\156\x20\x49\x6e\166\x61\154\151\x64\40\x6f\x72\x20\105\170\x70\151\162\145\x64\x2e"; return echoResponse($response, $result, 404); } }); goto gBjzz; Lm0Vf: $settings = (require __DIR__ . "\x2f\163\145\x74\164\x69\156\147\163\x2e\160\x68\x70"); goto JvBBA; JvBBA: $app = new \Slim\App($settings); goto tCCUL; Xftik: $app->get("\57\162\145\164\x75\x72\156\x42\157\157\x6b\57\173\151\144\137\x74\162\170\137\x62\x61\143\x61\x7d", function ($request, $response, $args) { $id_trx_baca = $args["\x69\144\137\164\162\170\x5f\142\141\x63\141"]; $q = "\x75\x70\x64\141\x74\x65\x20\x74\x69\164\x69\153\x62\x61\143\141\x5f\x74\x72\x78\137\x62\x61\x63\141\40\x73\x65\x74\40\x73\164\x73\x3d\47\x30\x27\40\x20\167\150\145\x72\145\x20\151\x64\75\x3a\x69\144\137\164\162\170\137\x62\141\143\x61\x20\141\156\144\x20\163\164\163\x3d\x27\61\x27"; $stmt = $this->db->prepare($q); $stmt->bindParam("\72\x69\x64\137\164\162\170\x5f\x62\x61\143\x61", $id_trx_baca); $stmt->execute(); $result["\x63\x6f\x64\145"] = CODE_SUCCESS; $result["\155\x73\x67"] = "\117\153"; return echoResponse($response, $result, 200); }); goto KeIVJ; Q7YXq: $app->post("\57\164\151\164\151\x6b\x42\x61\143\141\124\157\x70\57\173\164\x6f\x6b\x65\156\x7d", function ($request, $response, $args) { $mob = isMobile(); if ($mob) { $token = $args["\x74\x6f\x6b\145\x6e"]; $input = $request->getParsedBody(); $latitudeFrom = $input["\x6c\x61\x74\x69\164\165\144\145"]; $longitudeFrom = $input["\154\157\156\x67\151\x74\165\144\145"]; $altitude = $input["\141\x6c\164\151\164\165\144\145"]; $info = $input["\x69\156\x66\x6f"]; $halaman = $input["\x68\x61\154"]; if (!$halaman) { $halaman = 1; } $isMobile = $input["\151\163\115\157\142\x69\x6c\x65"]; $ipAddress = $_SERVER["\122\x45\115\x4f\124\105\x5f\x41\104\x44\122"]; $limit = 6; $q = "\x73\x65\154\x65\x63\164\x20\154\x6f\x6e\x67\x69\x74\165\x64\x65\54\x20\x6c\141\164\151\x74\x75\144\145\x2c\40\x72\141\144\x69\165\163\x4c\x6f\156\147\114\x61\164\x2c\x20\x61\x6c\164\x69\x74\x75\x64\145\x2c\40\x6e\x61\x6d\141\x2c\x20\151\144\x20\x66\x72\x6f\x6d\40\164\151\x74\x69\153\x62\141\143\141\x5f\x6d\x69\164\x72\x61\137\x6c\157\153\141\x73\151\40\167\150\x65\x72\x65\x20\x61\154\151\x61\163\75\72\141\154\x69\x61\163\40\141\156\144\40\x73\x74\163\x3d\x27\61\47"; $stmt = $this->db->prepare($q); $stmt->bindParam("\x3a\x61\x6c\x69\x61\x73", $token); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["\154\x6f\156\147\151\164\x75\x64\x65"]; $latitudeTo = $row["\x6c\141\164\151\164\165\144\145"]; $radius = $row["\162\x61\144\151\165\163\x4c\x6f\x6e\147\x4c\141\164"]; $result["\x6e\x61\155\x61\137\x6c\157\153\141\x73\151"] = $row["\x6e\141\155\x61"]; $id_lokasi = $row["\x69\x64"]; $id_user = $request->getHeaderLine("\x48\x54\x54\120\x5f\125\125\x49\104"); $distance = 0; if ($distance <= $radius) { $q = "\123\105\114\x45\x43\124\12\40\40\40\x20\40\40\40\40\40\40\40\40\x6b\x6f\x6e\x74\x65\156\x2e\x69\144\x2c\12\x20\40\x20\40\x20\40\40\x20\x20\x20\40\x20\153\x6f\156\164\145\x6e\x2e\153\x6f\144\145\x2c\xa\40\x20\40\x20\40\40\40\x20\x20\x20\40\40\153\x6f\156\164\x65\x6e\x2e\x6a\x75\144\165\154\54\12\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\111\106\116\125\x4c\x4c\50\x6b\157\156\x74\145\x6e\x2e\164\141\x68\165\156\x5f\x74\x65\x72\x62\151\164\54\x27\x2d\47\51\40\164\141\150\x75\x6e\137\x74\145\x72\142\x69\164\54\xa\40\40\40\40\40\x20\x20\40\40\x20\40\40\153\x6f\156\164\x65\x6e\137\x73\x75\x62\137\153\141\164\145\x67\157\162\x69\56\151\144\x20\101\x53\x20\x69\144\137\x73\x75\x62\x5f\x6b\x61\164\145\147\x6f\162\151\54\12\x20\40\x20\40\x20\x20\40\x20\x20\40\40\40\153\157\156\164\x65\x6e\137\163\165\142\137\x6b\141\164\145\147\x6f\162\x69\56\x6e\x61\155\x61\40\x41\x53\x20\163\165\x62\137\x6b\141\164\x65\x67\x6f\162\x69\54\12\40\40\x20\40\x20\x20\x20\40\40\x20\40\40\143\157\156\x63\141\x74\x28\40\x27\150\x74\x74\x70\x73\x3a\57\x2f\153\165\142\x75\x6b\165\x2e\x69\144\57\x70\x72\x6f\144\57\x69\155\x67\57\x69\x63\157\x6e\x2f\x27\54\40\153\x6f\156\164\x65\156\x5f\153\x61\x74\145\147\x6f\x72\151\56\x69\x63\x6f\156\x20\x29\x20\151\143\157\156\54\40\xa\40\40\40\40\40\x20\x20\x20\x20\40\40\40\x6b\157\x6e\x74\145\x6e\137\x6b\141\x74\x65\147\157\x72\x69\56\151\x64\40\101\x53\40\151\144\x5f\153\141\164\x65\x67\x6f\162\x69\x2c\xa\40\x20\x20\x20\40\40\40\40\x20\x20\40\x20\153\157\156\164\x65\x6e\x5f\x6b\x61\164\145\147\x6f\162\151\x2e\x6e\141\155\x61\40\x41\123\x20\x6b\x61\x74\145\147\157\162\151\x2c\xa\x20\x20\x20\40\x20\40\x20\40\x20\40\x20\x20\111\106\116\125\x4c\x4c\x28\153\157\156\164\145\x6e\x5f\160\x65\156\145\x72\142\x69\x74\x2e\x6e\141\155\x61\54\x27\55\47\x29\40\x41\x53\x20\x70\x65\156\x65\x72\x62\x69\x74\54\12\x20\x20\x20\x20\40\x20\40\x20\40\x20\40\40\111\x46\x4e\x55\114\114\x28\153\157\x6e\164\x65\156\x5f\160\x65\x6e\x75\x6c\151\x73\56\156\x61\x6d\x61\x2c\47\x2d\47\51\40\x41\x53\40\160\145\x6e\x75\x6c\151\x73\x2c\xa\40\x20\40\40\x20\x20\x20\40\40\x20\x20\40\x49\106\116\x55\114\x4c\x28\153\x6f\156\x74\x65\156\56\151\x73\142\x6e\x2c\x27\x2d\47\x29\40\101\x53\40\x69\163\142\156\x2c\12\x20\40\x20\40\40\x20\40\40\x20\x20\x20\x20\x49\x46\x4e\125\114\x4c\x28\x6b\157\x6e\x74\145\x6e\56\145\151\163\x62\x6e\x2c\x27\x2d\47\x29\40\101\123\40\145\x69\163\x62\156\x2c\xa\40\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\111\x46\x4e\x55\x4c\x4c\x28\153\x6f\156\164\x65\156\56\163\151\x6e\x6f\x70\163\151\163\54\x27\x2d\47\51\40\141\163\40\163\151\x6e\157\160\163\151\163\54\12\40\40\40\x20\x20\x20\x20\x20\40\40\40\x20\x43\x4f\x4e\x43\101\x54\x28\x27\143\x6f\x76\x65\x72\x2f\x27\54\x6b\157\156\164\x65\156\56\x63\x6f\x76\145\x72\137\146\151\x6c\x65\51\x20\x41\123\x20\140\143\x6f\166\x65\162\x5f\x66\151\x6c\x65\x60\54\xa\x20\40\x20\40\40\x20\40\40\40\40\40\40\153\157\x6e\164\145\x6e\56\143\x6f\166\145\162\137\146\x69\154\145\x20\101\x53\40\x60\x69\155\147\x60\54\xa\x20\x20\40\x20\40\x20\x20\x20\x20\x20\40\40\111\106\116\125\x4c\114\x28\153\157\156\x74\x65\156\x2e\153\x65\171\167\157\162\144\x2c\47\x2d\47\51\x20\x41\x53\40\x60\153\145\x79\167\157\x72\x64\x60\x2c\xa\x20\x20\40\x20\x20\x20\40\40\x20\40\40\40\163\165\x6d\50\164\x69\x74\151\x6b\137\142\141\x63\141\x2e\x71\x74\x79\x29\40\x71\x74\x79\x2c\12\40\40\x20\x20\40\40\x20\40\40\x20\40\40\x74\151\x74\151\153\137\142\x61\x63\x61\56\160\162\x6f\155\157\x74\145\x64\54\12\40\x20\x20\40\x20\40\40\x20\40\x20\40\x20\164\x69\164\151\153\x5f\142\141\x63\141\56\x61\154\x69\141\x73\x2c\xa\40\40\40\x20\40\x20\x20\x20\40\40\x20\x20\x74\151\164\x69\x6b\137\142\x61\x63\x61\56\160\145\156\171\x75\x6d\x62\141\x6e\147\54\xa\40\x20\40\40\40\40\x20\x20\40\x20\40\40\x67\x72\157\165\x70\x5f\x63\157\x6e\143\x61\164\x28\164\x69\164\151\x6b\x5f\142\141\143\x61\x2e\151\x64\137\x70\145\x6e\171\165\155\142\141\156\147\x29\40\151\144\137\x70\x65\156\171\165\x6d\x62\x61\x6e\147\54\xa\40\40\40\x20\x20\x20\40\x20\40\x20\x20\40\50\163\165\x6d\50\164\x69\x74\x69\153\137\x62\141\x63\x61\x2e\161\164\x79\51\51\x20\164\145\x72\160\141\x6b\x61\x69\x2c\12\40\40\40\40\x20\x20\40\x20\x20\x20\40\40\x61\156\x64\x72\157\x69\x64\137\x66\x69\154\x65\xa\40\x20\40\40\40\40\40\40\40\x20\x20\40\xa\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\x46\x52\x4f\x4d\12\x20\40\x20\x20\x20\40\40\x20\40\x20\40\40\x6b\157\x6e\164\145\x6e\xa\x20\40\x20\40\x20\40\x20\40\x20\40\40\x20\x4c\105\x46\124\40\112\x4f\111\x4e\40\x6b\x6f\156\164\145\x6e\137\163\x75\x62\137\x6b\x61\x74\x65\147\157\162\151\xa\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\x20\117\x4e\x20\x6b\157\x6e\x74\145\156\56\x69\144\137\x73\165\142\x5f\x6b\141\x74\145\x67\157\162\151\x20\x3d\x20\153\157\x6e\x74\145\x6e\137\x73\165\x62\x5f\153\x61\x74\x65\147\x6f\x72\x69\x2e\151\x64\x20\12\40\40\x20\40\x20\40\x20\40\40\x20\40\x20\x4c\105\106\x54\40\x4a\x4f\x49\116\40\153\x6f\156\164\x65\x6e\137\x6b\x61\x74\x65\x67\x6f\162\x69\xa\x20\40\x20\x20\40\x20\40\40\x20\x20\40\40\x4f\116\40\x6b\x6f\x6e\164\145\x6e\x5f\x73\x75\142\137\x6b\141\164\145\x67\157\162\151\56\x69\x64\x5f\x6b\x61\x74\145\147\x6f\x72\151\x20\x3d\x20\153\157\156\x74\145\156\x5f\x6b\141\x74\x65\147\157\162\x69\x2e\151\x64\40\xa\x20\x20\x20\40\x20\x20\40\40\40\x20\x20\x20\114\x45\106\x54\40\112\117\x49\116\x20\x6b\157\156\x74\145\156\x5f\144\145\160\141\162\164\145\155\x65\x6e\12\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x4f\x4e\x20\153\157\x6e\x74\x65\156\x5f\153\141\x74\x65\147\x6f\x72\x69\x2e\151\x64\x5f\144\145\160\x61\x72\164\145\155\145\x6e\x20\75\40\x6b\157\x6e\x74\x65\156\137\144\145\160\141\162\164\145\x6d\145\x6e\x2e\x69\x64\40\12\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\x20\x4c\x45\x46\124\40\112\117\111\116\40\x6b\x6f\x6e\164\145\156\137\x70\x65\156\145\162\x62\151\164\xa\x20\x20\40\x20\40\40\40\x20\40\x20\40\40\117\x4e\40\x6b\157\156\164\x65\x6e\x2e\151\x64\137\x70\145\x6e\145\x72\142\x69\x74\40\75\x20\153\157\x6e\x74\x65\156\137\160\145\x6e\145\x72\x62\151\x74\x2e\151\x64\x20\xa\x20\40\x20\40\x20\x20\40\x20\40\40\x20\40\x4c\x45\106\124\x20\112\117\x49\116\40\x6b\x6f\x6e\164\145\156\x5f\x70\x65\x6e\x75\x6c\151\163\xa\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\x4f\116\x20\153\x6f\x6e\x74\x65\x6e\56\151\x64\137\x70\x65\x6e\x75\154\151\163\x20\x3d\x20\153\157\156\x74\x65\x6e\137\160\x65\x6e\165\x6c\x69\163\x2e\151\144\12\x20\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\114\105\x46\x54\x20\152\x6f\x69\156\x20\50\x73\x65\x6c\145\x63\164\x20\164\151\x74\x69\x6b\x62\x61\x63\x61\137\x70\145\156\171\x75\x6d\142\x61\156\147\56\x69\144\x20\x69\144\x5f\x70\x65\156\171\x75\155\142\141\x6e\147\x2c\40\x74\x69\x74\x69\153\142\x61\143\141\x5f\x70\x65\156\x79\165\155\142\141\x6e\147\x2e\156\x61\155\x61\40\x70\x65\x6e\171\165\155\142\x61\156\147\54\x9\x74\x69\164\151\153\142\x61\143\141\x5f\x6d\151\164\x72\141\x5f\154\x6f\153\x61\x73\x69\137\153\157\x6e\164\145\156\56\151\144\x5f\x6b\157\156\x74\145\x6e\54\x20\164\x69\x74\151\x6b\x62\x61\x63\141\137\155\151\164\162\x61\137\154\157\153\141\163\x69\x5f\x6b\x6f\156\164\x65\156\56\x71\164\171\x2c\40\164\151\x74\x69\x6b\142\x61\x63\x61\137\x6d\151\x74\x72\141\x5f\154\x6f\153\x61\x73\151\x5f\x6b\x6f\x6e\x74\145\156\x2e\x70\x72\x6f\x6d\x6f\x74\x65\x64\x2c\x20\164\x69\164\151\x6b\142\x61\143\x61\x5f\x6d\x69\164\162\x61\x5f\x6c\x6f\x6b\x61\x73\151\x5f\153\157\156\164\x65\156\56\141\154\x69\141\x73\40\146\x72\157\x6d\x20\12\x20\x20\40\x20\x20\40\40\40\40\x20\40\40\164\x69\x74\151\x6b\x62\x61\x63\x61\x5f\x6d\151\x74\x72\x61\x5f\x6c\x6f\x6b\141\x73\151\x20\12\x20\40\x20\40\40\40\40\x20\40\40\40\40\x4c\105\106\124\x20\x6a\157\x69\156\x20\164\x69\164\x69\153\142\x61\x63\x61\137\155\x69\164\162\141\137\154\157\x6b\x61\x73\151\x5f\x6b\157\x6e\164\145\x6e\x20\157\156\40\164\151\x74\151\x6b\142\141\143\141\137\x6d\151\164\162\x61\x5f\154\x6f\153\x61\163\x69\x5f\x6b\157\x6e\x74\145\156\x2e\151\144\137\155\151\x74\162\141\137\154\157\153\141\163\x69\x20\75\x74\x69\164\x69\153\x62\141\x63\x61\137\x6d\x69\164\162\141\137\x6c\x6f\x6b\x61\x73\151\x2e\x69\x64\x20\141\156\144\40\x74\151\x74\151\153\142\x61\x63\141\137\x6d\x69\x74\x72\x61\x5f\154\x6f\x6b\141\163\x69\x5f\153\x6f\156\x74\145\x6e\56\163\x74\163\75\x27\x31\47\12\40\40\40\x20\x20\40\40\x20\x20\40\40\x20\x6c\x65\146\164\40\x6a\x6f\x69\156\40\x74\x69\164\x69\153\x62\x61\x63\x61\x5f\160\x65\x6e\x79\x75\155\142\141\156\x67\x20\x6f\x6e\x20\164\151\x74\151\153\142\141\x63\141\137\x70\x65\x6e\171\x75\155\x62\x61\156\147\56\151\x64\x20\75\40\x69\x64\137\x70\145\x6e\171\165\x6d\x62\x61\x6e\147\xa\40\40\40\40\x20\40\40\x20\x20\x20\40\x20\167\x68\145\x72\145\x20\x74\x69\164\151\x6b\142\x61\143\x61\x5f\155\151\164\x72\141\x5f\x6c\x6f\x6b\141\x73\151\x2e\x61\x6c\151\x61\163\75\72\141\x6c\x69\141\163\x29\40\x74\x69\164\x69\153\x5f\x62\x61\143\141\x20\x6f\x6e\40\x74\x69\x74\x69\x6b\x5f\x62\x61\x63\x61\56\151\144\137\x6b\157\156\x74\145\156\40\x3d\40\153\x6f\x6e\164\145\x6e\x2e\151\144\xa\x20\40\x20\40\x20\x20\40\x20\x20\40\40\40\x6c\x65\x66\164\40\152\157\x69\x6e\x20\50\163\x65\154\145\x63\164\40\151\x64\137\x6b\157\x6e\x74\x65\156\137\154\x6f\x6b\141\163\151\54\40\x63\x6f\165\x6e\164\50\52\x29\40\164\145\162\142\x61\x63\x61\40\146\x72\x6f\x6d\40\164\151\x74\x69\153\142\x61\x63\x61\x5f\164\162\170\x5f\x62\x61\x63\141\x20\x77\x68\145\162\x65\x20\x73\x74\x73\75\61\40\147\162\157\165\160\40\142\171\x20\x69\x64\x5f\x6b\x6f\x6e\164\145\x6e\x5f\x6c\x6f\x6b\141\x73\x69\x29\40\164\x69\x74\151\x6b\142\x61\143\141\x5f\x74\x72\x78\x5f\142\x61\143\x61\40\157\x6e\x20\164\x69\x74\x69\x6b\x62\141\143\141\x5f\x74\162\170\137\142\x61\143\x61\x2e\x69\x64\137\153\x6f\x6e\164\x65\x6e\137\154\x6f\x6b\141\163\151\x20\x3d\40\x74\151\164\151\x6b\x5f\142\141\143\x61\56\151\x64\x5f\x6b\x6f\156\x74\x65\x6e\xa\xa\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\x57\x48\x45\x52\105\xa\x20\x20\40\x20\40\x20\x20\40\40\40\40\40\153\x6f\156\164\145\x6e\x2e\163\x74\163\x20\x3d\40\47\x31\x27\xa\40\40\x20\x20\40\40\x20\x20\40\x20\x20\x20\12\x20\x20\40\40\x20\40\40\x20\40\x20\x20\x20\147\162\157\x75\160\40\x62\x79\x20\153\157\x6e\x74\145\156\56\151\144\x2c\40\xa\x9\x9\x9\11\11\x9\x6b\157\x6e\x74\145\x6e\56\153\157\x64\x65\54\12\40\40\40\40\x20\40\40\40\x20\x20\40\x20\11\11\11\x6b\x6f\x6e\x74\x65\156\x2e\152\x75\144\165\154\54\xa\x9\x9\x9\11\11\11\164\141\150\x75\156\137\x74\145\162\x62\151\x74\x2c\xa\11\11\x9\11\x9\x9\151\x64\137\x73\165\142\137\x6b\141\164\145\147\x6f\x72\x69\54\12\x9\x9\x9\11\x9\x9\163\165\142\x5f\153\141\x74\145\147\x6f\162\x69\54\12\11\x9\11\11\x9\11\x69\x63\157\156\54\12\11\x9\11\11\11\11\x69\x64\137\x6b\x61\x74\145\x67\x6f\x72\x69\54\xa\x9\11\x9\x9\x9\11\x6b\141\x74\x65\x67\157\x72\x69\x2c\xa\x9\x9\11\x9\11\x9\x70\x65\156\145\162\142\x69\x74\54\12\x9\x9\11\x9\11\11\x70\x65\x6e\x75\154\151\163\x2c\xa\x9\x9\11\11\x9\11\x69\163\142\156\x2c\xa\11\x9\x9\x9\x9\x9\x65\151\x73\142\156\x2c\xa\11\x9\x9\11\x9\11\x73\x69\156\157\160\x73\x69\163\54\12\x9\x9\x9\11\x9\x9\x63\157\x76\x65\162\137\146\151\154\145\54\12\11\x9\11\11\x9\11\x69\155\147\54\12\x9\x9\x9\x9\x9\11\153\145\x79\x77\157\x72\x64\54\12\x9\11\x9\11\11\x9\x71\x74\x79\54\12\11\x9\11\x9\x9\11\x70\162\x6f\x6d\157\164\x65\144\54\xa\11\x9\x9\11\11\x9\141\x6c\x69\141\163\x2c\12\11\x9\11\11\x9\x9\160\x65\156\x79\165\x6d\142\141\156\x67\x2c\xa\11\x9\x9\11\11\x9\151\x64\137\x70\x65\156\x79\165\155\142\141\156\x67\54\12\11\11\x9\x9\11\x9\x61\x6e\144\x72\157\x69\144\137\x66\151\x6c\x65\xa\x20\x20\40\x20\x20\40\40\x20\40\40\40\40\x6f\x72\x64\145\x72\x20\142\171\x20\162\141\156\x64\50\51\x20\154\151\x6d\151\164\x20" . ($halaman - 1) * $limit . "\54\x20{$limit}"; $q = "\xa\11\x9\11\x53\x45\114\x45\103\124\xa\11\x9\11\x9\164\151\x74\x69\153\142\141\x63\141\x2e\x6b\x6f\156\x74\145\156\56\x69\144\x2c\12\x9\x9\11\11\x74\x69\164\151\153\142\141\143\141\56\x6b\157\156\x74\145\x6e\x2e\x6b\157\144\145\x2c\xa\11\x9\x9\x9\162\x65\x70\x6c\141\x63\x65\50\x74\151\x74\151\153\x62\141\143\141\56\x6b\157\x6e\164\145\x6e\56\152\x75\x64\x75\x6c\54\40\x27\x2f\x27\54\40\x27\x20\x27\51\x20\x6a\x75\x64\x75\154\54\12\11\x9\x9\x9\111\x46\116\125\x4c\x4c\50\164\151\164\x69\x6b\x62\141\x63\x61\x2e\x6b\x6f\156\x74\145\156\56\x74\x61\x68\x75\156\137\x74\x65\x72\142\151\x74\x2c\x27\55\47\x29\40\x74\141\150\x75\156\137\x74\145\162\x62\151\x74\54\xa\x9\11\11\11\x74\x69\x74\151\153\x62\x61\143\141\x2e\153\157\x6e\x74\x65\156\137\x73\165\x62\137\153\x61\164\145\x67\157\162\x69\56\x69\144\40\x41\123\40\151\144\137\x73\x75\142\x5f\153\x61\164\x65\x67\x6f\162\151\54\xa\x9\x9\11\x9\x74\x69\164\x69\153\142\x61\143\x61\x2e\153\x6f\x6e\164\x65\156\x5f\x73\x75\142\x5f\x6b\x61\x74\x65\147\157\162\151\x2e\x6e\141\155\141\40\101\123\x20\x73\x75\x62\137\153\141\x74\145\147\157\162\x69\54\12\11\x9\11\11\x63\157\x6e\x63\141\x74\50\x20\x27\150\164\164\x70\163\72\x2f\x2f\153\x75\142\x75\153\x75\x2e\151\x64\57\160\x72\x6f\x64\57\151\155\x67\57\x69\143\x6f\156\57\x27\x2c\40\x6b\157\156\164\145\x6e\x5f\x6b\141\164\x65\x67\157\162\x69\x2e\151\x63\x6f\156\40\x29\x20\151\143\157\x6e\x2c\x20\xa\11\11\x9\11\164\x69\164\x69\x6b\142\141\x63\x61\56\153\157\156\164\145\156\x5f\153\x61\x74\x65\147\157\x72\x69\56\151\144\x20\101\123\40\151\144\x5f\x6b\x61\164\x65\147\x6f\162\x69\x2c\xa\11\x9\11\x9\164\x69\164\151\x6b\142\141\x63\141\56\x6b\x6f\156\x74\145\156\x5f\153\x61\x74\x65\147\x6f\162\x69\56\x6e\x61\x6d\141\40\101\x53\40\x6b\141\164\145\147\x6f\162\x69\x2c\xa\11\11\x9\11\111\106\x4e\125\114\x4c\50\x74\151\x74\151\153\x62\x61\x63\x61\56\153\x6f\x6e\x74\145\x6e\x5f\160\x65\156\x65\162\x62\151\x74\x2e\x6e\x61\155\141\x2c\47\55\47\51\x20\x41\123\x20\x70\145\156\145\162\x62\x69\x74\54\xa\11\x9\x9\x9\111\x46\x4e\125\114\x4c\x28\164\151\164\x69\153\x62\141\x63\141\x2e\x6b\x6f\156\x74\145\x6e\x5f\160\x65\156\165\154\151\x73\x2e\x6e\x61\155\141\54\x27\x2d\47\x29\40\101\123\x20\x70\x65\156\x75\x6c\151\163\54\12\x9\x9\11\x9\x49\x46\116\x55\114\114\50\164\x69\x74\x69\x6b\142\x61\x63\x61\x2e\x6b\x6f\156\x74\x65\x6e\56\x69\x73\x62\156\x2c\x27\x2d\x27\x29\x20\101\123\x20\x69\x73\142\156\x2c\12\x9\11\11\x9\x49\106\116\x55\114\114\50\x74\x69\x74\151\x6b\142\141\x63\141\56\153\x6f\x6e\164\x65\x6e\x2e\x65\x69\x73\142\x6e\54\x27\55\47\51\40\x41\x53\40\145\151\163\x62\x6e\x2c\xa\x9\11\x9\x9\x49\106\x4e\125\x4c\x4c\x28\x74\151\164\x69\x6b\142\141\x63\141\56\x6b\x6f\156\164\145\156\x2e\163\x69\156\157\160\x73\x69\x73\x2c\x27\55\47\51\x20\x61\x73\x20\163\x69\x6e\157\160\163\151\163\54\12\x9\x9\x9\x9\x43\x4f\116\103\101\x54\x28\x27\143\x6f\x76\x65\162\57\47\54\x6b\x6f\x6e\164\145\156\x2e\143\157\x76\145\x72\x5f\146\151\154\x65\51\40\x41\x53\40\x60\143\157\x76\x65\162\137\146\151\x6c\145\140\54\xa\x9\x9\x9\x9\164\151\x74\151\x6b\142\x61\143\x61\56\153\157\156\164\145\x6e\x2e\x63\x6f\x76\x65\x72\137\x66\151\x6c\x65\x20\101\123\40\140\x69\155\x67\140\54\12\11\x9\x9\11\x49\106\x4e\125\x4c\114\50\x74\151\164\151\x6b\x62\x61\x63\x61\56\153\x6f\156\x74\x65\x6e\x2e\153\145\171\x77\x6f\x72\144\x2c\x27\x2d\x27\51\40\101\x53\x20\x60\x6b\145\x79\x77\x6f\162\144\x60\54\12\11\x9\x9\x9\163\x75\155\x28\164\x69\x74\151\153\137\x62\141\x63\x61\x2e\x71\x74\171\51\x20\161\x74\x79\54\12\11\11\11\x9\164\151\x74\x69\153\137\142\x61\x63\x61\x2e\x70\162\157\155\x6f\164\145\x64\54\xa\11\11\11\x9\164\x69\x74\x69\153\137\x62\x61\x63\x61\56\x61\x6c\x69\x61\163\x2c\xa\x9\11\11\11\164\151\164\151\x6b\x5f\142\141\143\x61\x2e\x70\x65\156\171\165\155\x62\x61\156\x67\54\xa\x9\x9\x9\11\147\162\157\165\160\137\143\x6f\156\143\x61\164\50\164\151\164\x69\x6b\137\142\141\x63\141\56\x69\x64\137\x70\145\x6e\x79\165\x6d\142\141\x6e\147\x29\40\151\144\x5f\x70\x65\x6e\x79\165\155\142\x61\x6e\x67\x2c\xa\11\x9\x9\x9\50\11\163\x75\155\x28\x74\151\x74\151\153\x5f\142\x61\x63\x61\56\161\x74\x79\51\40\55\40\x69\146\156\165\154\x6c\50\164\x69\x74\x69\x6b\x62\x61\143\x61\137\164\x72\x78\137\142\141\143\141\56\x74\145\162\142\x61\143\141\54\x30\x29\51\x20\164\x65\162\x70\141\153\x61\151\54\xa\x9\x9\11\11\x61\156\x64\x72\x6f\x69\x64\x5f\146\x69\154\x65\12\x9\11\11\x9\12\11\x9\x9\x9\106\x52\x4f\x4d\12\11\x9\11\x9\x74\151\164\x69\x6b\x62\141\x63\141\56\x6b\x6f\x6e\x74\x65\x6e\12\11\x9\11\11\x49\x4e\116\x45\x52\40\112\x4f\x49\116\x20\x74\x69\x74\151\153\142\141\143\x61\x2e\153\x6f\x6e\164\x65\156\x5f\x73\165\x62\137\153\x61\x74\145\x67\x6f\162\x69\12\11\x9\11\x9\x4f\116\x20\164\x69\x74\x69\153\x62\141\143\x61\x2e\153\157\x6e\164\x65\156\x2e\151\x64\x5f\x73\x75\x62\x5f\153\x61\164\x65\147\x6f\162\151\x20\x3d\40\164\151\x74\151\153\x62\x61\x63\x61\56\x6b\157\x6e\164\145\156\137\163\165\142\137\153\x61\x74\x65\147\x6f\162\151\56\x69\144\x20\xa\11\11\x9\x9\x49\116\x4e\x45\x52\40\x4a\x4f\111\116\x20\x74\151\x74\x69\153\142\141\x63\141\x2e\153\157\x6e\x74\x65\x6e\137\153\141\x74\145\147\x6f\x72\x69\xa\11\11\11\x9\117\116\x20\164\151\x74\x69\153\142\x61\143\141\56\x6b\x6f\156\164\145\156\x5f\x73\165\x62\137\153\141\164\145\147\157\x72\x69\56\x69\x64\137\153\141\x74\145\x67\x6f\x72\x69\x20\x3d\40\164\151\x74\x69\x6b\x62\141\143\141\x2e\x6b\157\x6e\164\x65\x6e\137\x6b\141\x74\145\x67\x6f\x72\x69\56\151\144\40\xa\x9\x9\11\x9\111\x4e\116\x45\x52\40\x4a\x4f\x49\116\x20\x74\151\164\x69\x6b\142\141\x63\x61\56\153\x6f\156\x74\x65\156\137\144\x65\160\x61\x72\x74\145\x6d\x65\156\xa\x9\11\11\11\117\x4e\x20\x74\x69\x74\151\153\x62\x61\143\x61\x2e\x6b\x6f\x6e\164\145\x6e\x5f\x6b\141\164\145\147\x6f\x72\151\x2e\151\x64\x5f\144\x65\160\141\x72\164\x65\x6d\x65\156\x20\75\x20\x74\151\x74\151\153\142\x61\x63\x61\x2e\x6b\x6f\156\x74\145\156\x5f\144\145\x70\141\x72\164\x65\155\145\156\56\x69\x64\x20\xa\x9\11\11\11\x49\116\116\105\x52\x20\112\117\x49\x4e\x20\164\x69\x74\x69\x6b\142\x61\143\x61\x2e\153\x6f\156\164\145\156\137\x70\145\x6e\145\162\x62\x69\164\xa\11\11\x9\11\117\x4e\40\164\x69\x74\151\153\x62\x61\143\141\56\x6b\x6f\x6e\x74\145\x6e\x2e\x69\x64\x5f\160\x65\156\145\162\142\x69\x74\x20\x3d\40\164\x69\164\x69\153\142\141\143\141\56\x6b\157\x6e\164\x65\x6e\137\160\x65\156\x65\162\x62\151\x74\x2e\151\144\x20\xa\11\11\x9\11\111\116\116\105\122\40\x4a\117\111\116\40\164\x69\164\151\x6b\142\x61\143\141\x2e\x6b\x6f\156\x74\145\156\x5f\x70\145\x6e\x75\x6c\151\163\12\11\x9\11\x9\x4f\116\40\164\x69\164\x69\153\142\141\x63\x61\56\153\x6f\x6e\164\x65\156\x2e\151\144\x5f\x70\145\x6e\165\x6c\151\163\40\x3d\40\x74\151\x74\151\x6b\142\x61\x63\x61\56\x6b\x6f\156\164\x65\156\137\160\x65\x6e\165\154\x69\163\56\151\144\12\11\11\x9\11\x69\156\156\x65\x72\x20\152\157\x69\x6e\x20\x28\x73\145\x6c\x65\143\x74\x20\x74\151\164\151\153\142\141\x63\x61\x5f\x70\145\x6e\x79\165\155\x62\141\156\147\x2e\151\144\40\151\144\x5f\x70\145\156\x79\165\155\142\141\x6e\x67\54\40\164\151\x74\151\x6b\x62\x61\143\141\x5f\160\145\156\171\165\x6d\x62\x61\x6e\x67\56\156\141\x6d\x61\x20\x70\145\156\171\165\x6d\142\x61\x6e\x67\54\x9\x74\151\x74\x69\153\x62\x61\143\x61\x5f\155\151\164\x72\141\x5f\154\157\x6b\141\163\151\137\153\157\156\164\x65\156\x2e\151\144\x5f\x6b\157\156\164\145\156\x2c\x20\164\151\164\x69\153\x62\141\x63\x61\x5f\155\151\x74\162\141\137\154\x6f\153\x61\x73\151\137\x6b\x6f\x6e\x74\145\x6e\x2e\x71\164\x79\x2c\x20\164\151\164\x69\x6b\x62\x61\x63\141\137\x6d\151\164\162\141\x5f\x6c\157\x6b\141\163\x69\137\x6b\157\x6e\164\145\156\x2e\160\x72\x6f\x6d\157\x74\x65\x64\54\40\x74\x69\164\151\x6b\x62\x61\x63\x61\x5f\x6d\151\164\x72\141\x5f\154\x6f\153\141\163\x69\x5f\153\157\x6e\164\x65\156\x2e\141\x6c\151\141\x73\40\146\162\x6f\155\x20\12\11\11\11\11\164\x69\164\151\153\x62\141\x63\x61\x2e\164\x69\x74\x69\x6b\142\141\143\141\x5f\155\x69\164\x72\141\x5f\x6c\x6f\x6b\141\163\x69\40\12\x9\11\11\x9\151\156\x6e\145\x72\x20\x6a\157\x69\x6e\x20\x74\x69\164\x69\153\x62\141\x63\141\56\x74\151\x74\x69\153\142\141\143\x61\x5f\155\x69\164\162\141\x5f\x6c\x6f\153\141\x73\151\x5f\153\x6f\x6e\164\x65\x6e\40\x6f\156\40\164\151\x74\151\153\142\141\x63\141\137\155\151\164\162\x61\x5f\154\157\x6b\141\x73\151\x5f\153\157\156\x74\145\156\x2e\151\144\x5f\x6d\x69\164\x72\141\137\x6c\x6f\x6b\141\x73\x69\40\75\164\151\164\x69\153\142\141\143\x61\137\155\x69\164\162\x61\137\x6c\x6f\153\141\x73\x69\56\x69\144\x20\141\x6e\x64\40\x74\151\164\x69\x6b\142\x61\x63\x61\137\155\x69\164\x72\x61\x5f\x6c\157\x6b\x61\x73\151\x5f\153\x6f\156\164\x65\156\56\x73\x74\163\75\47\x31\47\xa\11\11\x9\x9\154\145\x66\164\40\152\157\x69\156\x20\x74\151\x74\x69\x6b\142\x61\x63\141\x2e\x74\x69\164\151\153\142\x61\143\x61\137\x70\x65\x6e\171\165\155\x62\141\156\x67\40\157\156\x20\164\x69\164\x69\153\142\141\x63\141\x5f\x70\x65\x6e\171\165\x6d\x62\141\156\x67\56\x69\x64\x20\75\x20\x69\x64\x5f\x70\145\x6e\171\x75\155\142\141\x6e\147\12\11\x9\x9\11\167\x68\x65\162\x65\40\x74\151\x74\151\x6b\x62\141\x63\x61\137\x6d\151\164\x72\141\137\x6c\157\153\141\x73\151\x2e\141\x6c\151\141\x73\75\x3a\141\x6c\151\141\163\x29\40\164\x69\x74\151\x6b\137\x62\141\143\141\x20\157\156\40\x74\x69\164\x69\153\137\142\141\143\x61\56\x69\x64\137\153\157\x6e\164\x65\156\x20\x3d\40\153\x6f\156\164\145\156\x2e\x69\x64\xa\11\x9\11\x9\x6c\x65\x66\x74\40\x6a\x6f\151\156\x20\50\x73\x65\154\145\143\164\40\151\144\x5f\153\x6f\x6e\x74\145\x6e\x5f\x6c\157\x6b\x61\163\151\54\x20\143\157\x75\156\164\x28\52\x29\40\164\145\162\142\141\x63\x61\x20\x66\x72\157\x6d\x20\164\x69\x74\x69\153\142\x61\x63\141\56\x74\151\164\x69\153\x62\141\x63\x61\137\x74\162\170\x5f\142\141\143\x61\x20\167\x68\145\x72\145\40\x73\x74\x73\75\61\40\x67\x72\157\165\x70\40\142\171\x20\x69\x64\x5f\x6b\x6f\156\164\145\x6e\137\154\157\153\141\163\x69\51\40\x74\x69\x74\151\x6b\142\x61\x63\141\x5f\x74\x72\x78\137\x62\141\143\141\40\x6f\x6e\40\x74\x69\x74\151\153\142\141\143\x61\x5f\164\x72\170\137\142\141\x63\141\56\x69\144\x5f\153\x6f\156\x74\145\156\137\x6c\x6f\153\x61\163\x69\x20\x3d\x20\164\x69\164\x69\153\137\x62\141\x63\141\x2e\151\x64\x5f\x6b\x6f\156\164\x65\x6e\xa\xa\x9\11\11\x9\127\110\x45\x52\105\xa\11\x9\11\11\164\x69\164\151\153\142\141\143\141\56\153\x6f\x6e\x74\x65\x6e\56\x73\x74\163\x20\x3d\40\x27\x31\x27\xa\11\x9\11\11\xa\11\11\x9\11\x67\x72\x6f\165\x70\40\142\x79\40\x6b\x6f\x6e\164\x65\156\x2e\151\144\xa\11\11\11\11\157\x72\144\145\162\x20\142\x79\x20\162\x61\x6e\x64\50\x29\x20\x6c\x69\155\151\164\40" . ($halaman - 1) * $limit . "\x2c\40{$limit}"; $stmt = $this->db->prepare($q); $stmt->bindParam("\72\x61\x6c\151\141\163", $token); $stmt->execute(); $result["\x63\x6f\144\x65"] = 200; $result["\x64\141\x74\141"] = $stmt->fetchAll(); $result["\164\x6f\153\x65\x6e"] = $token; } else { $result["\x63\x6f\144\145"] = 400; $result["\x64\x61\x74\x61"] = array(); $coverageArea = ($distance - $radius) / 1000; $result["\x63\x6f\166\145\162\x61\x67\x65"] = number_format($coverageArea); $result["\154\x61\x74\x69\164\165\144\x65\106\162\157\155"] = $latitudeFrom; $result["\x6c\157\156\x67\x69\x74\x75\x64\145\x46\x72\157\155"] = $longitudeFrom; $result["\x67\157\157\x67\154\x65\137\155\x61\x70\x73"] = "\150\x74\164\160\x73\72\57\x2f\x77\167\x77\56\x67\x6f\x6f\147\x6c\145\x2e\x63\x6f\x6d\x2f\x6d\x61\x70\x73\x2f\100{$latitudeFrom}\x2c{$longitudeFrom}\54\x31\71\172"; $result["\155\x73\x67"] = "\104\x69\x6c\165\141\162\x20\x6a\x61\156\x67\x6b\x61\165\141\x6e\40\154\x6f\x6b\x61\163\x69\40{$result["\156\141\x6d\x61\137\154\x6f\153\141\x73\151"]}\x2c\40\163\145\152\141\165\x68\x20" . number_format($coverageArea) . "\x20\113\155\x2c\x20\x3c\160\76\x3c\141\40\x68\x72\145\146\x3d\47\150\x74\164\x70\x73\x3a\57\x2f\167\x77\x77\56\147\x6f\x6f\147\154\145\x2e\x63\157\155\57\x6d\141\x70\163\x2f\100{$latitudeFrom}\54{$longitudeFrom}\54\x31\x39\172\47\76\40\114\157\x6b\141\163\151\40\101\156\144\141\74\x2f\x61\x3e\x3c\x2f\160\76"; } return echoResponse($response, $result, 200); } else { echo "\xa\x9\11\74\163\143\x72\x69\160\164\76\xa\11\x9\144\157\143\x75\155\145\156\x74\56\x6f\x6e\153\145\171\144\157\x77\x6e\40\75\x20\146\x75\156\143\164\151\x6f\x6e\x28\145\51\x20\173\12\11\11\x9\11\x69\146\40\x28\145\166\x65\x6e\x74\56\153\145\x79\x43\157\x64\x65\40\x3d\75\40\x31\62\x33\x29\40\x7b\xa\x9\x9\x9\11\11\x9\x63\x6f\x6e\x73\157\154\145\56\x6c\x6f\147\50\47\x59\157\165\x20\143\x61\x6e\x6e\x6f\164\40\151\156\163\160\x65\x63\x74\40\x45\x6c\x65\155\x65\156\164\x27\51\x3b\xa\11\x9\x9\x9\x9\x9\x72\145\164\x75\162\156\40\x66\x61\x6c\x73\145\x3b\xa\11\11\x9\x9\175\12\11\11\x9\11\151\146\x20\x28\x65\56\x63\164\162\x6c\x4b\145\171\x20\46\x26\40\x65\x2e\163\150\151\146\x74\113\145\171\x20\x26\x26\40\145\56\x6b\145\x79\x43\157\x64\145\x20\x3d\75\40\47\x49\x27\x2e\143\x68\141\162\x43\x6f\144\145\x41\x74\x28\60\51\x29\40\173\xa\x9\11\x9\x9\11\11\143\x6f\156\x73\157\x6c\145\x2e\154\157\147\50\x27\x59\x6f\x75\40\143\141\x6e\x6e\157\164\x20\151\x6e\x73\160\145\143\164\40\x45\x6c\x65\155\145\x6e\164\x27\51\x3b\xa\x9\x9\11\x9\x9\x9\162\x65\164\165\x72\156\40\x66\141\154\163\x65\73\12\11\x9\x9\x9\x7d\xa\11\x9\x9\x9\151\146\x20\50\145\56\x63\164\x72\154\x4b\x65\171\x20\x26\x26\x20\x65\x2e\x73\150\151\146\164\113\145\x79\x20\46\x26\x20\x65\x2e\153\x65\x79\x43\x6f\x64\145\x20\75\75\40\x27\103\47\56\143\x68\x61\162\x43\x6f\x64\x65\x41\164\x28\x30\x29\x29\40\x7b\12\11\11\x9\x9\11\x9\x63\157\x6e\163\157\154\x65\x2e\x6c\157\x67\50\x27\131\x6f\x75\x20\143\x61\x6e\156\157\164\x20\151\x6e\163\x70\x65\x63\x74\x20\105\154\145\155\145\156\x74\47\x29\x3b\xa\x9\x9\x9\11\x9\11\162\145\164\165\x72\x6e\40\146\x61\154\x73\145\x3b\12\x9\x9\x9\x9\x7d\12\11\11\x9\x9\x69\146\40\x28\145\56\x63\164\162\154\x4b\145\171\40\46\x26\x20\145\x2e\x73\150\x69\146\x74\113\x65\171\40\x26\46\x20\145\56\x6b\145\171\103\157\x64\x65\x20\75\75\40\x27\x4a\x27\56\x63\x68\x61\x72\x43\x6f\144\x65\101\x74\x28\x30\51\x29\40\173\12\11\x9\11\11\x9\11\143\157\156\163\157\154\145\x2e\x6c\157\x67\50\x27\131\157\x75\x20\143\x61\x6e\156\x6f\164\x20\151\x6e\x73\x70\145\x63\x74\40\x45\154\145\155\145\156\x74\47\51\73\12\x9\x9\11\x9\11\x9\x72\x65\164\x75\x72\x6e\40\x66\141\x6c\x73\145\x3b\12\x9\11\11\11\x7d\12\x9\x9\11\11\x69\146\40\50\x65\56\x63\164\x72\154\x4b\x65\x79\40\46\x26\x20\x65\56\x6b\145\171\x43\157\x64\x65\40\x3d\75\40\x27\x55\x27\56\143\x68\x61\x72\103\x6f\x64\x65\101\164\50\x30\51\x29\40\173\12\x9\11\x9\x9\11\x9\143\157\156\x73\157\x6c\x65\x2e\x6c\x6f\147\50\x27\x59\157\x75\x20\143\141\156\x6e\157\164\x20\x69\x6e\x73\160\145\x63\x74\x20\x45\x6c\145\x6d\145\156\x74\47\x29\73\12\11\11\x9\11\x9\11\162\x65\x74\165\162\156\40\x66\141\154\163\x65\x3b\12\11\11\11\x9\x7d\12\11\11\x7d\xa\x9\11\144\157\x63\x75\155\x65\156\164\x2e\x61\144\144\105\x76\x65\x6e\164\x4c\151\x73\x74\145\x6e\145\162\50\x27\143\157\156\164\x65\x78\x74\x6d\145\156\x75\47\54\x20\145\166\x65\x6e\164\x20\x3d\76\x20\145\x76\x65\156\164\x2e\160\x72\x65\x76\145\x6e\164\x44\x65\x66\141\x75\154\164\50\x29\x29\x3b\12\x9\x9\x3c\x2f\163\x63\x72\x69\x70\x74\x3e\xa\11\x9\12\x9\x9\110\141\154\x61\155\x61\x6e\40\151\x6e\151\x20\x68\x61\x6e\171\x61\40\x64\x61\160\141\x74\40\x64\151\40\141\x6b\x73\145\x73\x20\157\x6c\x65\x68\x20\x68\160\56"; die; } }); goto uz7Bm; BLmSq: $app->post("\x2f\x74\151\x74\x69\x6b\x42\x61\x63\x61\x54\x65\162\x6c\141\x72\151\x73\x2f\x7b\x74\x6f\x6b\x65\156\x7d", function ($request, $response, $args) { $mob = isMobile(); if ($mob) { $token = $args["\164\x6f\153\x65\156"]; $input = $request->getParsedBody(); $latitudeFrom = $input["\x6c\141\164\x69\164\165\x64\x65"]; $longitudeFrom = $input["\154\157\x6e\x67\151\x74\165\x64\x65"]; $altitude = $input["\141\154\x74\151\164\165\144\x65"]; $info = $input["\x69\x6e\x66\157"]; $halaman = $input["\150\x61\x6c"]; if (!$halaman) { $halaman = 1; } $isMobile = $input["\x69\163\x4d\x6f\x62\151\x6c\145"]; $ipAddress = $_SERVER["\x52\105\115\x4f\124\105\x5f\x41\x44\x44\x52"]; $limit = 6; $q = "\x73\145\154\145\143\164\40\x6c\x6f\156\x67\151\164\165\x64\145\x2c\x20\x6c\x61\x74\x69\x74\x75\x64\x65\54\x20\x72\x61\x64\151\165\163\114\x6f\x6e\147\114\141\164\54\40\141\x6c\164\x69\x74\x75\144\145\54\x20\x6e\x61\x6d\141\x2c\40\x69\x64\40\146\x72\157\155\40\x74\151\x74\x69\x6b\142\141\x63\x61\x5f\x6d\x69\x74\162\x61\x5f\154\x6f\x6b\141\x73\x69\40\x77\150\145\162\145\40\141\154\151\141\x73\x3d\x3a\x61\x6c\x69\141\163\40\x61\156\144\40\163\x74\x73\75\x27\x31\47"; $stmt = $this->db->prepare($q); $stmt->bindParam("\x3a\141\x6c\151\141\x73", $token); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["\x6c\x6f\x6e\x67\x69\164\x75\144\x65"]; $latitudeTo = $row["\154\141\x74\x69\164\165\x64\x65"]; $radius = $row["\162\x61\x64\x69\165\x73\x4c\x6f\x6e\x67\114\x61\164"]; $result["\x6e\141\x6d\x61\x5f\154\x6f\x6b\x61\x73\151"] = $row["\156\141\155\141"]; $id_lokasi = $row["\x69\144"]; $id_user = $request->getHeaderLine("\x48\124\x54\x50\x5f\x55\125\x49\x44"); $distance = 0; if ($distance <= $radius) { $q = "\123\105\114\x45\103\x54\xa\40\40\x20\x20\x20\40\40\40\x20\40\40\40\153\157\x6e\x74\145\x6e\56\x69\144\54\xa\x20\40\x20\40\40\x20\40\x20\40\x20\x20\x20\x6b\157\x6e\x74\x65\156\x2e\x6b\157\144\x65\x2c\xa\x20\40\x20\40\40\x20\x20\40\x20\40\x20\x20\x6b\x6f\156\164\145\x6e\x2e\152\x75\x64\x75\154\x2c\12\40\40\40\x20\x20\x20\40\40\40\x20\40\x20\111\106\x4e\125\x4c\114\50\153\157\156\164\145\156\x2e\x74\141\x68\x75\x6e\x5f\164\145\x72\142\151\x74\x2c\x27\55\x27\51\40\164\x61\150\165\x6e\137\164\145\x72\x62\151\164\x2c\12\40\40\x20\40\40\40\x20\40\x20\40\40\x20\153\x6f\156\x74\x65\x6e\x5f\x73\165\x62\x5f\153\141\x74\145\x67\157\162\151\56\x69\x64\40\101\123\x20\151\x64\137\163\165\x62\137\x6b\141\164\x65\x67\157\162\151\x2c\12\x20\x20\40\40\40\x20\40\x20\x20\x20\40\40\x6b\157\156\x74\145\156\137\163\x75\142\137\x6b\141\164\x65\147\157\x72\x69\x2e\156\x61\x6d\141\x20\x41\x53\x20\163\x75\142\137\153\x61\x74\x65\147\x6f\162\x69\x2c\12\40\x20\40\40\40\x20\40\40\40\x20\x20\40\x63\157\x6e\x63\x61\x74\50\40\47\150\x74\x74\x70\163\72\x2f\x2f\x6b\x75\142\x75\x6b\x75\x2e\x69\x64\57\x70\x72\x6f\x64\x2f\151\155\147\x2f\x69\143\157\x6e\57\x27\x2c\x20\x6b\x6f\156\x74\x65\156\x5f\x6b\x61\x74\x65\x67\157\162\151\x2e\151\143\157\x6e\x20\x29\x20\x69\x63\x6f\156\54\x20\12\40\x20\x20\x20\x20\x20\40\x20\40\40\40\x20\153\157\156\x74\x65\156\137\x6b\141\164\x65\147\157\x72\151\x2e\151\144\40\x41\123\40\151\x64\x5f\153\x61\x74\x65\x67\157\162\x69\x2c\xa\x20\40\x20\x20\40\40\40\40\x20\40\x20\40\153\x6f\156\164\145\156\137\153\x61\164\145\147\x6f\162\x69\56\x6e\x61\x6d\141\x20\101\x53\40\x6b\141\x74\x65\x67\157\x72\151\x2c\xa\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\x49\x46\x4e\125\114\114\x28\x6b\x6f\156\164\x65\156\x5f\x70\145\156\x65\162\142\151\x74\56\156\x61\x6d\x61\54\x27\55\x27\x29\x20\101\123\40\160\x65\x6e\145\162\x62\151\x74\x2c\xa\40\40\x20\x20\x20\40\40\40\x20\x20\x20\40\111\x46\116\x55\114\114\50\153\x6f\156\x74\x65\x6e\x5f\x70\145\x6e\165\x6c\151\x73\x2e\x6e\x61\x6d\x61\x2c\x27\x2d\47\51\40\x41\123\40\x70\145\x6e\x75\154\x69\163\54\12\40\x20\40\40\40\40\40\x20\40\40\x20\x20\x49\x46\x4e\x55\x4c\114\x28\153\x6f\x6e\164\145\156\x2e\151\x73\x62\156\54\x27\x2d\x27\51\x20\x41\x53\x20\x69\163\x62\x6e\54\12\x20\x20\40\40\x20\40\x20\40\40\40\40\x20\x49\106\x4e\x55\x4c\x4c\50\153\x6f\156\164\145\x6e\x2e\145\x69\163\x62\x6e\x2c\x27\x2d\47\x29\x20\101\x53\40\x65\x69\163\142\156\54\12\x20\40\x20\40\x20\40\40\40\40\40\x20\40\x49\106\x4e\125\x4c\x4c\x28\153\x6f\156\x74\x65\x6e\x2e\x73\x69\156\x6f\160\163\151\x73\x2c\47\x2d\47\51\40\141\163\40\x73\x69\156\x6f\160\x73\151\x73\x2c\12\40\x20\40\x20\40\40\40\40\x20\x20\x20\40\x43\117\x4e\103\101\124\x28\x27\143\157\x76\145\x72\x2f\47\54\x6b\x6f\x6e\x74\145\x6e\x2e\x63\x6f\166\x65\x72\137\146\151\154\145\51\40\x41\x53\40\x60\143\157\x76\x65\162\x5f\146\151\154\145\x60\54\12\x20\x20\x20\x20\40\x20\40\40\x20\40\40\x20\153\x6f\156\x74\145\x6e\x2e\x63\157\166\x65\162\137\x66\151\x6c\x65\40\101\123\40\140\x69\155\147\140\54\12\x20\40\40\40\40\x20\40\x20\x20\40\40\40\x49\x46\116\x55\114\114\50\x6b\157\156\164\145\156\56\x6b\x65\171\167\x6f\162\x64\x2c\47\55\47\x29\40\101\x53\40\140\153\x65\171\x77\x6f\162\x64\x60\54\xa\40\40\x20\x20\40\40\40\40\x20\40\40\x20\163\x75\155\x28\x74\151\164\151\x6b\137\x62\141\x63\141\x2e\x71\x74\171\x29\40\x71\164\x79\x2c\12\40\40\40\40\40\x20\x20\x20\40\x20\x20\x20\164\x69\164\x69\x6b\x5f\142\x61\143\x61\56\x70\x72\x6f\155\x6f\164\145\144\54\12\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\x74\151\164\151\153\137\x62\141\143\x61\x2e\141\x6c\x69\x61\163\x2c\xa\40\x20\40\40\x20\40\x20\x20\40\40\40\x20\x74\151\x74\x69\x6b\x5f\x62\x61\143\141\56\x70\x65\x6e\x79\165\x6d\x62\141\x6e\147\x2c\xa\x20\x20\x20\40\40\x20\40\x20\x20\40\40\x20\x67\x72\157\x75\x70\x5f\x63\157\x6e\143\x61\164\50\x74\151\x74\151\153\137\x62\x61\143\141\56\x69\x64\x5f\160\x65\x6e\171\165\x6d\142\141\x6e\x67\51\x20\151\x64\x5f\160\145\x6e\171\x75\155\142\x61\x6e\147\x2c\xa\40\x20\x20\40\40\x20\x20\40\x20\40\x20\40\x28\163\165\155\x28\x74\151\164\x69\x6b\x5f\x62\141\143\x61\x2e\161\164\171\x29\51\x20\40\164\x65\x72\160\x61\153\x61\x69\54\12\x20\40\x20\x20\40\x20\40\40\x20\x20\40\40\141\x6e\x64\162\x6f\151\x64\x5f\146\x69\154\145\12\40\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\12\40\x20\40\x20\x20\40\40\40\40\x20\40\x20\106\122\117\115\12\40\x20\x20\40\x20\x20\x20\40\40\40\40\40\x6b\157\156\x74\x65\x6e\xa\40\x20\x20\x20\40\40\40\40\x20\40\x20\40\x4c\x45\106\x54\40\x4a\x4f\111\116\x20\x6b\157\156\164\x65\156\137\x73\165\142\137\153\141\164\145\x67\157\x72\x69\xa\40\40\40\40\x20\x20\40\40\40\40\x20\40\117\116\x20\153\157\156\164\x65\156\56\151\144\137\x73\165\142\137\x6b\141\x74\145\147\x6f\162\x69\x20\x3d\40\153\157\x6e\164\x65\156\137\163\x75\142\137\x6b\x61\x74\x65\x67\x6f\x72\151\56\151\x64\40\12\x20\40\40\x20\x20\x20\x20\x20\40\40\40\40\114\x45\106\x54\40\112\x4f\x49\x4e\x20\153\157\156\164\145\156\x5f\153\141\164\x65\147\x6f\x72\151\xa\40\40\40\x20\x20\x20\40\40\40\x20\x20\40\117\x4e\40\x6b\x6f\156\164\x65\x6e\137\163\165\x62\137\153\141\x74\x65\x67\157\x72\x69\x2e\x69\x64\137\153\141\x74\x65\x67\x6f\162\151\40\x3d\40\x6b\x6f\x6e\164\145\156\x5f\x6b\141\x74\x65\x67\157\x72\151\56\151\x64\x20\12\x20\x20\x20\40\40\40\40\40\x20\x20\40\40\114\105\x46\x54\40\x4a\x4f\x49\x4e\40\x6b\157\156\x74\145\156\137\144\x65\x70\141\162\164\145\155\145\156\12\40\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\x4f\x4e\x20\153\157\x6e\x74\145\156\x5f\x6b\x61\164\x65\147\157\162\x69\56\151\144\137\144\145\160\141\x72\x74\x65\x6d\145\x6e\x20\75\x20\x6b\157\156\164\x65\x6e\x5f\144\x65\x70\x61\x72\x74\x65\x6d\x65\156\x2e\151\144\40\xa\40\x20\x20\40\x20\40\40\40\x20\40\x20\x20\114\105\x46\124\x20\x4a\117\111\x4e\40\153\x6f\x6e\164\x65\156\x5f\x70\x65\x6e\x65\162\142\151\164\12\40\40\x20\40\x20\x20\40\40\x20\x20\40\x20\117\x4e\40\153\157\x6e\164\x65\156\x2e\x69\144\137\x70\x65\156\145\162\x62\x69\x74\x20\x3d\40\153\x6f\156\164\145\156\x5f\160\x65\x6e\145\162\142\151\x74\56\x69\144\40\xa\40\40\x20\x20\40\40\40\x20\40\x20\x20\x20\x4c\105\x46\x54\x20\x4a\117\x49\116\x20\153\x6f\156\x74\145\156\x5f\160\x65\156\x75\x6c\151\x73\12\x20\x20\x20\x20\40\40\40\40\x20\40\x20\x20\x4f\116\x20\153\x6f\x6e\x74\145\x6e\56\151\x64\x5f\x70\145\x6e\165\154\151\163\40\75\x20\x6b\157\x6e\164\145\156\x5f\160\x65\156\165\154\151\x73\56\x69\144\xa\40\40\x20\x20\x20\x20\40\40\40\x20\x20\40\x4c\105\106\x54\x20\152\x6f\x69\156\x20\x28\163\x65\x6c\145\143\x74\40\x74\x69\164\151\x6b\x62\x61\143\x61\x5f\160\x65\156\x79\165\x6d\x62\x61\156\x67\56\151\x64\40\x69\x64\137\x70\x65\x6e\x79\x75\x6d\x62\141\156\x67\54\40\164\151\x74\x69\x6b\x62\141\143\x61\137\160\x65\156\x79\165\155\142\x61\x6e\x67\x2e\x6e\141\155\141\x20\160\x65\x6e\x79\x75\155\142\x61\156\147\x2c\11\x74\151\164\151\153\x62\141\x63\x61\137\x6d\x69\x74\x72\141\137\154\x6f\x6b\141\x73\x69\137\153\x6f\x6e\164\x65\x6e\x2e\x69\x64\x5f\x6b\x6f\156\x74\x65\x6e\x2c\40\164\151\164\x69\x6b\142\141\x63\141\137\155\x69\164\x72\x61\137\x6c\157\153\141\x73\x69\137\x6b\157\x6e\x74\x65\x6e\x2e\161\164\x79\x2c\40\164\x69\164\x69\x6b\142\141\x63\x61\x5f\155\x69\x74\x72\141\137\x6c\x6f\153\x61\x73\x69\x5f\x6b\x6f\156\164\145\156\x2e\x70\162\x6f\155\x6f\x74\x65\x64\x2c\x20\x74\151\164\151\x6b\x62\x61\x63\141\x5f\155\151\x74\162\x61\137\154\x6f\x6b\141\163\x69\x5f\x6b\x6f\156\164\145\156\x2e\x61\x6c\151\x61\x73\40\146\162\x6f\155\40\12\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\x74\151\164\x69\153\x62\141\143\x61\x5f\155\151\x74\x72\x61\x5f\154\x6f\153\141\163\x69\x20\xa\40\40\x20\x20\40\40\40\40\x20\40\40\x20\114\x45\x46\x54\x20\152\157\151\x6e\40\x74\151\164\151\x6b\142\141\x63\x61\x5f\155\x69\164\162\141\x5f\x6c\157\153\x61\x73\x69\x5f\153\x6f\x6e\x74\145\x6e\x20\x6f\x6e\40\x74\x69\x74\151\x6b\142\141\143\141\137\155\x69\164\x72\x61\x5f\154\x6f\153\x61\x73\151\137\153\157\156\164\x65\156\x2e\x69\144\x5f\x6d\151\x74\162\x61\137\x6c\x6f\x6b\141\163\x69\x20\75\164\151\164\151\x6b\142\x61\x63\x61\x5f\155\x69\164\162\x61\137\154\x6f\x6b\141\x73\x69\x2e\x69\144\40\141\156\144\40\164\151\x74\151\153\142\x61\x63\x61\x5f\155\x69\x74\162\141\137\x6c\157\153\x61\163\x69\x5f\x6b\x6f\156\164\145\x6e\56\163\x74\163\x3d\x27\x31\x27\xa\40\x20\40\x20\40\x20\x20\40\40\x20\40\40\x6c\x65\146\164\40\x6a\157\151\x6e\40\164\x69\164\x69\x6b\x62\141\x63\141\x5f\x70\145\x6e\171\x75\x6d\x62\x61\156\x67\40\157\x6e\x20\164\x69\164\x69\x6b\142\x61\143\141\x5f\160\x65\156\x79\x75\x6d\142\141\x6e\147\56\151\144\40\x3d\x20\x69\144\x5f\x70\145\156\171\165\x6d\x62\141\156\x67\xa\40\x20\x20\40\40\40\40\x20\x20\x20\40\40\x77\150\145\162\x65\40\x74\151\164\x69\x6b\x62\x61\x63\x61\x5f\x6d\x69\x74\162\x61\x5f\154\x6f\x6b\141\x73\x69\x2e\x61\x6c\151\x61\x73\75\72\141\154\x69\141\163\x29\40\164\151\x74\151\153\137\x62\x61\x63\x61\40\x6f\x6e\40\x74\x69\x74\x69\153\137\142\x61\143\x61\x2e\151\x64\137\x6b\157\156\x74\x65\x6e\40\x3d\x20\x6b\x6f\x6e\x74\145\x6e\56\151\x64\12\x20\x20\40\40\x20\x20\40\x20\x20\x20\x20\x20\x6c\x65\146\164\40\x6a\157\151\x6e\x20\x28\163\145\154\145\x63\164\40\151\144\x5f\153\157\156\164\145\156\x5f\x6c\x6f\x6b\x61\163\x69\x2c\40\143\x6f\165\x6e\x74\50\x2a\51\x20\164\145\x72\142\x61\143\x61\x20\146\162\x6f\155\x20\x74\x69\164\151\x6b\142\141\143\x61\x5f\x74\162\170\x5f\x62\x61\x63\141\40\x77\x68\145\x72\x65\x20\x73\164\x73\75\61\x20\147\162\157\x75\160\40\142\x79\x20\x69\x64\137\x6b\157\x6e\x74\145\156\x5f\x6c\x6f\153\x61\163\151\51\40\x74\151\164\151\153\x62\x61\143\x61\x5f\164\x72\170\137\142\141\x63\141\40\x6f\156\x20\x74\151\x74\151\x6b\142\x61\143\x61\x5f\164\162\x78\137\x62\141\x63\x61\56\x69\x64\x5f\153\157\156\x74\145\156\x5f\x6c\157\x6b\141\163\x69\40\75\40\164\151\164\x69\153\x5f\142\141\x63\141\x2e\x69\x64\137\x6b\x6f\156\164\x65\x6e\12\12\40\40\x20\40\x20\40\x20\x20\40\x20\40\40\x57\x48\x45\x52\x45\12\40\x20\x20\x20\x20\x20\40\x20\40\40\40\x20\153\157\156\x74\145\x6e\x2e\163\164\163\40\x3d\40\x27\x31\x27\12\x20\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\12\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\x20\147\x72\x6f\x75\160\x20\x62\171\x20\153\x6f\156\164\x65\156\x2e\151\144\54\40\xa\11\11\x9\11\11\11\153\157\x6e\164\145\156\x2e\153\157\x64\145\54\12\x20\x20\40\40\40\40\40\x20\x20\40\40\x20\11\11\11\153\x6f\156\x74\145\x6e\x2e\152\x75\x64\165\154\x2c\12\x9\x9\x9\x9\11\11\164\x61\x68\165\156\137\164\x65\162\142\x69\x74\x2c\xa\x9\11\x9\11\x9\x9\x69\144\x5f\x73\165\x62\x5f\x6b\x61\x74\145\x67\x6f\x72\x69\54\xa\11\11\11\11\x9\11\163\x75\142\x5f\x6b\x61\x74\x65\x67\157\162\151\54\xa\x9\x9\x9\11\11\11\x69\x63\157\156\x2c\xa\x9\11\11\11\11\11\x69\144\x5f\x6b\x61\x74\x65\x67\x6f\x72\x69\x2c\12\11\11\x9\x9\x9\x9\153\141\164\145\147\157\162\151\54\12\x9\x9\11\x9\x9\x9\160\x65\156\x65\162\x62\x69\164\54\xa\11\x9\x9\x9\x9\x9\x70\145\x6e\x75\154\151\163\54\12\11\x9\11\11\x9\x9\x69\x73\x62\x6e\x2c\xa\11\x9\11\x9\x9\11\x65\151\163\142\156\x2c\xa\11\11\11\x9\x9\x9\163\x69\156\x6f\160\163\x69\163\54\12\x9\11\11\11\x9\11\143\157\x76\145\x72\137\146\x69\154\x65\54\12\11\11\11\11\x9\11\151\155\x67\54\xa\x9\11\11\x9\x9\11\153\145\171\x77\157\x72\x64\54\xa\x9\x9\11\x9\x9\11\x71\164\171\54\xa\11\11\11\x9\x9\x9\x70\162\157\155\x6f\x74\145\144\54\xa\11\x9\11\11\11\11\x61\154\151\x61\x73\x2c\xa\x9\x9\x9\x9\11\11\160\x65\156\x79\165\x6d\x62\x61\x6e\147\54\xa\11\11\11\11\11\x9\x69\x64\x5f\x70\x65\x6e\171\x75\155\142\x61\156\x67\54\xa\x9\11\11\x9\x9\x9\x61\156\144\x72\x6f\x69\x64\137\146\151\x6c\x65\xa\40\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\157\162\144\x65\162\40\x62\x79\x20\153\x6f\x6e\x74\145\156\x2e\x69\144\x20\144\x65\163\143\40\x6c\151\155\151\164\x20\x32"; $q = "\123\x45\114\x45\x43\x54\xa\x9\x9\11\164\x69\164\x69\x6b\142\141\x63\x61\x2e\x6b\x6f\156\x74\145\156\x2e\x69\x64\x2c\12\11\11\11\x74\151\x74\151\x6b\x62\141\x63\141\x2e\153\x6f\156\164\145\156\x2e\153\x6f\144\145\54\12\x9\11\x9\162\x65\x70\x6c\141\x63\x65\x28\164\151\x74\151\153\x62\141\x63\x61\56\x6b\157\156\x74\145\156\x2e\152\165\x64\x75\x6c\54\x20\47\57\47\x2c\x20\x27\x20\47\x29\x20\152\x75\144\165\x6c\x2c\xa\11\x9\11\111\106\x4e\125\114\114\50\164\151\x74\x69\153\142\x61\143\141\56\153\x6f\156\x74\x65\156\x2e\164\141\x68\x75\x6e\137\x74\145\x72\142\x69\164\x2c\47\55\x27\51\40\x74\x61\150\165\x6e\x5f\164\145\x72\142\151\164\54\xa\11\11\x9\x74\151\164\x69\153\x62\x61\143\x61\56\153\157\x6e\164\x65\156\x5f\163\x75\x62\x5f\x6b\141\164\145\x67\x6f\162\151\x2e\151\x64\40\x41\x53\x20\x69\144\x5f\163\165\x62\137\153\x61\x74\x65\147\157\162\x69\54\xa\11\11\x9\x74\x69\x74\151\153\142\141\x63\141\x2e\x6b\157\x6e\164\x65\156\137\x73\165\x62\x5f\x6b\x61\x74\145\x67\157\x72\151\56\x6e\x61\x6d\141\x20\x41\123\x20\x73\165\142\x5f\153\141\164\145\x67\x6f\162\x69\54\12\11\11\11\143\157\x6e\x63\x61\x74\x28\x20\x27\150\164\164\160\163\x3a\57\x2f\153\x75\x62\165\153\165\x2e\151\x64\x2f\160\x72\157\144\x2f\x69\155\x67\57\x69\143\157\x6e\x2f\47\x2c\40\x6b\157\x6e\164\145\156\137\153\141\164\145\x67\157\162\x69\x2e\151\x63\x6f\156\x20\51\40\x69\143\x6f\x6e\54\40\xa\11\x9\11\x74\151\x74\151\153\x62\x61\x63\x61\56\x6b\157\x6e\164\145\156\x5f\153\x61\164\x65\x67\x6f\x72\x69\56\151\144\x20\x41\123\x20\151\144\x5f\x6b\141\x74\145\x67\x6f\x72\x69\x2c\12\11\x9\x9\164\151\x74\x69\153\x62\141\143\141\56\x6b\157\x6e\x74\x65\156\x5f\x6b\x61\x74\145\147\157\162\151\56\x6e\141\x6d\x61\x20\x41\123\40\x6b\x61\164\145\x67\x6f\162\x69\x2c\xa\x9\11\x9\111\106\x4e\125\114\114\x28\164\151\164\x69\153\142\x61\143\141\56\x6b\x6f\x6e\164\x65\156\x5f\x70\145\x6e\145\162\x62\151\x74\x2e\156\141\155\141\x2c\47\x2d\x27\x29\x20\101\123\x20\160\x65\x6e\145\x72\x62\x69\164\54\12\11\11\x9\111\x46\116\125\114\114\x28\x74\151\x74\x69\x6b\142\x61\143\141\x2e\x6b\x6f\156\x74\x65\x6e\137\x70\x65\156\165\x6c\x69\163\x2e\156\x61\155\x61\x2c\x27\55\47\51\40\x41\123\x20\x70\x65\x6e\x75\154\151\x73\54\xa\11\x9\x9\111\x46\x4e\125\x4c\114\50\164\x69\164\151\153\142\141\x63\x61\x2e\153\157\x6e\x74\x65\156\x2e\x69\163\x62\156\x2c\47\x2d\x27\51\x20\x41\123\x20\x69\163\142\x6e\54\12\x9\11\x9\111\106\116\125\114\114\x28\x74\151\x74\x69\x6b\142\x61\143\141\56\153\157\156\164\145\156\56\145\151\x73\x62\156\54\x27\55\47\x29\x20\x41\123\x20\x65\x69\x73\x62\x6e\x2c\xa\11\x9\x9\x49\x46\x4e\x55\x4c\x4c\x28\x74\151\164\151\153\x62\x61\143\x61\56\153\x6f\156\x74\x65\156\56\x73\x69\156\x6f\160\x73\151\x73\54\x27\55\47\51\40\x61\163\40\x73\151\156\x6f\x70\x73\x69\x73\54\xa\x9\11\11\x43\x4f\116\103\101\x54\x28\47\x63\157\x76\x65\162\x2f\x27\54\x6b\157\156\x74\145\x6e\x2e\x63\x6f\x76\145\x72\137\x66\x69\154\x65\x29\40\x41\123\x20\x60\x63\x6f\x76\x65\x72\x5f\x66\x69\154\x65\140\x2c\xa\x9\11\11\x74\151\164\151\153\x62\x61\143\x61\x2e\x6b\x6f\156\164\145\156\56\x63\157\x76\145\x72\x5f\x66\151\x6c\145\40\101\123\x20\x60\151\x6d\147\140\54\xa\x9\11\x9\x49\x46\x4e\x55\114\114\x28\x74\151\x74\x69\x6b\142\141\143\141\x2e\x6b\x6f\x6e\164\x65\x6e\x2e\153\145\171\x77\x6f\x72\x64\x2c\x27\55\47\x29\40\x41\123\40\x60\153\145\171\167\157\x72\144\140\54\12\11\11\11\163\165\155\x28\x74\x69\164\x69\x6b\x5f\x62\x61\x63\141\56\161\164\x79\x29\x20\161\164\x79\54\12\x9\x9\x9\x74\151\164\x69\x6b\137\142\141\143\141\x2e\x70\162\157\155\x6f\x74\x65\x64\54\12\x9\x9\11\164\x69\164\x69\x6b\137\x62\141\143\141\56\x61\x6c\151\141\163\x2c\12\11\x9\x9\164\x69\164\151\153\x5f\142\x61\x63\x61\x2e\x70\x65\156\171\x75\155\142\x61\x6e\x67\x2c\12\11\x9\x9\147\x72\157\165\x70\x5f\143\x6f\x6e\x63\x61\164\50\164\151\164\x69\x6b\137\x62\141\x63\x61\x2e\x69\x64\137\x70\x65\x6e\171\x75\x6d\142\141\156\147\51\x20\151\x64\137\x70\145\156\x79\165\155\x62\141\156\x67\54\12\11\x9\x9\x28\11\163\x75\155\50\164\x69\164\151\x6b\x5f\142\x61\143\x61\x2e\161\164\x79\51\40\55\40\151\x66\156\x75\154\x6c\x28\x74\151\x74\x69\x6b\x62\141\143\141\x5f\x74\162\x78\x5f\x62\141\143\x61\56\164\x65\162\x62\141\x63\x61\x2c\60\x29\x29\x20\164\x65\x72\x70\141\x6b\141\x69\54\12\11\x9\11\x61\x6e\x64\162\x6f\x69\144\x5f\x66\151\154\x65\xa\x9\x9\11\12\11\11\x9\x46\x52\117\115\12\x9\11\x9\x74\151\164\151\x6b\142\141\x63\141\56\x6b\157\x6e\164\x65\156\12\11\11\x9\x49\116\x4e\105\x52\x20\112\x4f\x49\x4e\40\x74\151\x74\x69\x6b\142\141\143\141\56\x6b\x6f\156\x74\145\x6e\x5f\163\x75\x62\x5f\153\x61\x74\x65\x67\157\162\151\12\11\11\x9\x4f\x4e\x20\x74\x69\x74\151\153\x62\141\x63\141\x2e\153\x6f\x6e\164\145\156\x2e\x69\x64\x5f\163\x75\x62\x5f\x6b\x61\164\x65\x67\x6f\162\x69\x20\x3d\x20\164\151\164\x69\153\142\x61\x63\x61\56\x6b\x6f\x6e\164\145\156\x5f\x73\x75\142\x5f\153\x61\x74\145\147\157\x72\151\x2e\x69\x64\40\xa\x9\x9\x9\x49\116\116\105\x52\x20\112\117\111\x4e\40\x74\151\x74\151\x6b\x62\x61\x63\x61\56\153\x6f\156\x74\x65\156\x5f\153\x61\164\x65\147\x6f\162\x69\xa\x9\11\11\117\x4e\x20\x74\x69\164\x69\153\142\141\x63\141\56\153\x6f\156\x74\145\x6e\x5f\x73\x75\142\x5f\153\x61\x74\x65\147\x6f\162\151\x2e\x69\144\x5f\153\x61\164\x65\x67\x6f\162\x69\40\x3d\x20\164\151\164\151\153\x62\141\x63\141\x2e\153\x6f\156\x74\x65\156\137\x6b\x61\x74\x65\147\x6f\x72\x69\x2e\x69\x64\40\12\x9\x9\11\111\116\116\x45\122\x20\x4a\117\111\x4e\40\x74\151\164\x69\x6b\x62\141\x63\x61\56\153\157\156\x74\x65\x6e\137\x64\x65\x70\x61\162\164\x65\155\145\x6e\12\x9\x9\x9\117\x4e\40\x74\x69\x74\x69\x6b\x62\141\x63\x61\56\153\157\x6e\164\x65\x6e\x5f\x6b\141\164\x65\147\157\162\151\x2e\x69\x64\x5f\144\145\x70\141\162\x74\145\x6d\x65\x6e\40\x3d\x20\164\x69\x74\x69\x6b\x62\x61\x63\141\56\x6b\x6f\156\x74\x65\156\x5f\x64\145\x70\141\162\164\145\155\x65\x6e\56\151\144\x20\12\x9\x9\11\111\x4e\x4e\105\x52\40\x4a\117\111\x4e\x20\x74\151\x74\x69\x6b\142\x61\x63\x61\x2e\153\157\x6e\164\145\156\x5f\x70\145\x6e\145\x72\x62\151\x74\12\11\x9\x9\x4f\x4e\40\x74\151\164\151\153\142\141\x63\141\56\x6b\x6f\156\164\145\156\x2e\151\144\137\x70\x65\x6e\x65\162\142\151\x74\x20\75\x20\164\x69\x74\151\x6b\x62\141\x63\x61\x2e\x6b\x6f\x6e\x74\x65\x6e\137\160\x65\156\145\162\x62\x69\x74\x2e\151\x64\x20\12\11\11\x9\x49\116\x4e\105\x52\x20\112\x4f\x49\x4e\40\164\x69\x74\x69\153\142\141\x63\141\x2e\153\x6f\x6e\164\x65\156\137\x70\145\x6e\165\154\x69\x73\12\x9\11\11\x4f\116\40\164\151\x74\151\x6b\x62\141\x63\141\x2e\x6b\157\156\164\x65\x6e\56\151\x64\x5f\160\x65\156\x75\154\x69\163\40\75\x20\164\x69\164\151\x6b\x62\141\x63\x61\56\153\x6f\156\164\145\156\137\x70\145\x6e\165\x6c\x69\163\x2e\x69\144\xa\x9\x9\11\151\x6e\x6e\145\x72\40\152\x6f\151\156\x20\50\x73\145\154\145\143\164\40\164\151\x74\x69\153\142\141\143\141\137\x70\145\x6e\x79\165\155\x62\141\156\x67\56\151\144\40\151\x64\137\160\145\x6e\x79\165\155\142\x61\x6e\x67\x2c\x20\x74\151\164\151\x6b\x62\141\143\141\137\160\x65\x6e\x79\165\155\x62\141\x6e\147\x2e\x6e\x61\155\x61\x20\x70\145\156\x79\x75\155\x62\141\156\x67\54\x9\164\x69\164\151\153\x62\141\x63\x61\137\x6d\151\164\x72\141\x5f\154\x6f\153\141\163\151\137\x6b\157\156\x74\x65\x6e\56\151\x64\x5f\x6b\x6f\x6e\x74\x65\156\54\x20\x74\151\164\x69\x6b\142\141\x63\x61\137\x6d\151\x74\x72\141\137\x6c\x6f\153\x61\x73\x69\x5f\153\157\156\x74\145\156\x2e\161\164\x79\54\40\164\151\x74\151\x6b\142\x61\143\x61\137\155\151\x74\x72\141\137\x6c\157\x6b\141\163\x69\x5f\153\x6f\156\164\x65\x6e\56\x70\x72\x6f\155\x6f\x74\x65\144\x2c\x20\164\151\164\x69\153\142\141\143\x61\x5f\155\151\164\x72\x61\137\x6c\157\x6b\x61\163\x69\x5f\x6b\x6f\x6e\164\145\156\56\x61\154\151\141\x73\40\146\x72\x6f\x6d\x20\xa\x9\x9\11\164\x69\164\x69\153\142\x61\143\141\x2e\164\x69\x74\x69\153\x62\141\143\141\137\x6d\x69\x74\x72\x61\x5f\x6c\x6f\153\x61\x73\151\x20\12\x9\11\11\x69\x6e\x6e\x65\x72\x20\x6a\157\x69\x6e\x20\x74\x69\x74\151\x6b\x62\x61\143\x61\x2e\x74\151\x74\151\x6b\x62\141\x63\x61\x5f\155\x69\x74\162\x61\x5f\x6c\x6f\153\x61\163\x69\137\x6b\157\x6e\x74\x65\x6e\40\x6f\156\40\164\x69\164\x69\x6b\x62\x61\143\x61\x5f\x6d\x69\x74\x72\x61\x5f\x6c\157\x6b\141\163\x69\137\x6b\157\x6e\x74\145\x6e\56\x69\144\x5f\x6d\x69\164\x72\x61\x5f\x6c\157\x6b\x61\163\151\x20\75\164\151\164\x69\x6b\x62\x61\x63\x61\137\155\151\164\x72\141\137\154\157\x6b\141\163\x69\56\151\144\x20\141\x6e\x64\40\x74\x69\x74\x69\153\x62\x61\143\141\137\155\x69\x74\x72\x61\137\x6c\x6f\x6b\141\x73\x69\x5f\x6b\157\x6e\x74\145\156\56\x73\164\163\75\47\61\x27\12\x9\11\x9\x6c\x65\x66\x74\40\152\157\151\156\40\x74\151\x74\x69\153\x62\141\x63\141\56\164\151\x74\x69\153\x62\141\143\141\x5f\x70\145\156\171\165\x6d\142\x61\x6e\x67\40\157\156\40\x74\151\164\151\153\142\x61\x63\x61\137\160\x65\156\x79\165\155\142\x61\x6e\147\56\151\x64\40\x3d\40\151\x64\137\x70\145\156\x79\x75\155\x62\x61\x6e\147\12\x9\x9\x9\x77\x68\x65\162\145\x20\x74\x69\164\151\153\x62\141\x63\x61\x5f\155\151\x74\162\141\137\x6c\157\153\141\163\151\56\x61\x6c\x69\x61\163\x3d\x3a\x61\154\x69\x61\x73\x29\40\x74\151\164\x69\x6b\x5f\142\141\143\141\x20\x6f\156\40\164\x69\164\151\x6b\x5f\142\x61\x63\141\56\151\144\x5f\x6b\157\156\x74\145\156\x20\75\40\x6b\157\x6e\x74\145\x6e\x2e\151\x64\12\11\11\11\x6c\x65\146\x74\x20\152\x6f\151\x6e\40\50\x73\145\154\x65\143\x74\x20\151\144\137\153\157\x6e\164\x65\156\x5f\154\x6f\153\x61\x73\x69\54\40\x63\157\165\x6e\164\50\x2a\x29\40\164\x65\x72\x62\141\143\141\40\146\162\x6f\x6d\40\x74\x69\x74\151\x6b\x62\141\143\x61\x2e\x74\151\164\x69\153\142\x61\143\x61\x5f\164\x72\x78\137\x62\x61\x63\141\x20\x67\x72\x6f\x75\x70\40\x62\x79\40\151\x64\137\x6b\x6f\156\164\145\x6e\137\154\157\153\141\x73\x69\51\x20\x74\151\x74\x69\153\142\141\x63\141\x5f\x74\x72\170\137\142\x61\x63\141\40\x6f\x6e\x20\164\x69\164\x69\153\142\141\x63\141\137\164\x72\170\137\142\x61\x63\x61\x2e\x69\x64\137\153\x6f\156\164\x65\156\x5f\x6c\157\153\x61\163\x69\40\75\40\164\x69\164\151\153\137\142\141\143\141\x2e\x69\144\x5f\x6b\157\x6e\x74\145\156\xa\12\x9\x9\x9\127\110\105\122\x45\12\11\11\x9\164\x69\164\x69\x6b\142\141\x63\x61\x2e\153\x6f\156\x74\x65\156\56\163\x74\x73\x20\x3d\40\x27\61\47\xa\x9\x9\x9\12\x9\x9\11\147\162\157\165\160\x20\x62\171\x20\153\157\x6e\x74\145\x6e\56\x69\x64\xa\11\x9\11\x6f\162\x64\145\x72\40\x62\x79\40\162\141\156\x64\x28\51\40\x6c\x69\x6d\x69\164\40\x32"; $stmt = $this->db->prepare($q); $stmt->bindParam("\x3a\141\x6c\x69\141\x73", $token); $stmt->execute(); $result["\143\x6f\144\145"] = 200; $result["\x64\141\x74\141"] = $stmt->fetchAll(); $result["\164\157\153\145\156"] = $token; } else { $result["\x63\157\144\145"] = 400; $result["\144\141\164\x61"] = array(); $coverageArea = ($distance - $radius) / 1000; $result["\143\x6f\x76\145\x72\x61\147\145"] = number_format($coverageArea); $result["\x6c\141\x74\x69\164\x75\x64\x65\x46\162\x6f\x6d"] = $latitudeFrom; $result["\x6c\x6f\156\x67\x69\164\165\144\x65\x46\162\x6f\x6d"] = $longitudeFrom; $result["\147\157\157\x67\x6c\x65\137\155\x61\x70\163"] = "\x68\x74\164\160\x73\72\x2f\57\167\x77\x77\x2e\x67\157\157\147\x6c\x65\x2e\x63\x6f\x6d\x2f\155\141\x70\163\57\100{$latitudeFrom}\54{$longitudeFrom}\x2c\x31\x39\x7a"; $result["\x6d\x73\147"] = "\104\151\154\165\x61\162\x20\152\x61\156\x67\153\141\x75\x61\156\40\154\157\x6b\x61\x73\151\x20{$result["\x6e\141\x6d\x61\x5f\154\157\x6b\141\163\x69"]}\x2c\x20\163\x65\x6a\x61\165\x68\40" . number_format($coverageArea) . "\x20\x4b\x6d\x2c\x20\74\x70\x3e\74\x61\40\150\162\x65\146\75\47\x68\164\x74\160\163\72\x2f\57\167\167\x77\56\x67\157\157\x67\154\145\56\143\157\155\x2f\x6d\x61\x70\163\57\x40{$latitudeFrom}\54{$longitudeFrom}\54\x31\x39\172\x27\x3e\x20\114\157\x6b\141\x73\151\40\x41\156\x64\x61\x3c\x2f\141\x3e\x3c\x2f\x70\x3e"; } return echoResponse($response, $result, 200); } else { echo "\xa\11\11\74\163\x63\x72\151\160\x74\x3e\12\x9\11\x64\x6f\x63\x75\x6d\x65\156\164\56\x6f\156\x6b\x65\171\144\x6f\x77\x6e\40\75\x20\146\x75\156\x63\x74\x69\x6f\x6e\x28\145\x29\x20\x7b\xa\11\x9\x9\11\x69\x66\40\50\x65\166\x65\x6e\164\x2e\x6b\x65\171\x43\x6f\144\145\40\x3d\75\x20\61\x32\63\x29\x20\x7b\xa\x9\11\x9\11\x9\11\143\157\x6e\163\x6f\154\x65\56\154\x6f\x67\50\x27\x59\x6f\165\40\x63\141\156\x6e\x6f\x74\x20\151\156\x73\160\145\x63\164\40\105\154\145\x6d\x65\x6e\x74\x27\x29\73\xa\11\x9\11\x9\11\x9\162\x65\x74\x75\162\x6e\40\x66\141\x6c\x73\145\x3b\12\11\x9\x9\11\175\12\x9\11\11\11\151\x66\40\x28\145\x2e\143\x74\162\154\x4b\145\x79\40\46\x26\40\145\56\x73\x68\x69\x66\164\x4b\x65\171\x20\46\46\x20\145\x2e\x6b\x65\x79\x43\157\x64\145\40\x3d\x3d\x20\x27\x49\x27\56\143\x68\x61\162\103\x6f\x64\x65\101\164\x28\60\x29\51\x20\173\12\x9\11\11\11\11\x9\143\x6f\x6e\163\157\154\x65\56\154\x6f\147\50\47\x59\x6f\x75\40\143\141\x6e\156\157\x74\40\x69\156\x73\x70\x65\143\x74\40\105\x6c\145\155\x65\x6e\x74\47\51\73\12\11\x9\11\11\11\x9\x72\145\164\x75\162\x6e\40\146\141\154\163\145\73\xa\x9\11\11\x9\x7d\12\x9\11\x9\x9\151\146\x20\x28\x65\x2e\143\x74\x72\154\113\145\x79\40\46\46\40\x65\x2e\163\x68\x69\146\164\113\145\171\x20\46\46\x20\145\x2e\x6b\145\171\x43\157\144\x65\40\x3d\75\40\47\103\47\56\x63\150\x61\162\103\157\x64\x65\101\x74\x28\x30\x29\x29\40\x7b\xa\11\11\x9\11\11\x9\143\157\156\163\157\x6c\x65\x2e\154\x6f\x67\x28\47\131\157\x75\40\143\141\156\x6e\x6f\164\x20\x69\156\163\x70\145\143\x74\40\x45\154\x65\155\145\156\x74\x27\x29\73\12\x9\11\11\11\x9\11\x72\x65\x74\165\x72\x6e\40\146\x61\x6c\x73\145\x3b\12\x9\11\x9\x9\x7d\12\x9\x9\11\11\151\146\40\x28\145\x2e\143\x74\x72\x6c\113\x65\x79\40\46\46\40\145\x2e\163\150\151\x66\164\113\x65\171\x20\x26\46\40\145\56\153\145\171\x43\x6f\144\145\40\75\75\x20\47\x4a\47\56\x63\150\x61\x72\x43\157\144\145\x41\164\x28\60\x29\x29\x20\173\12\11\11\11\x9\x9\11\143\157\x6e\163\x6f\x6c\x65\56\x6c\157\147\x28\x27\x59\x6f\165\40\143\141\156\x6e\157\164\40\151\156\x73\160\145\x63\x74\x20\105\x6c\145\155\145\x6e\164\47\x29\x3b\xa\11\11\11\11\x9\11\x72\145\164\x75\x72\x6e\40\146\141\154\x73\x65\x3b\12\x9\11\11\x9\x7d\12\x9\x9\11\x9\x69\146\x20\50\145\x2e\x63\164\x72\x6c\113\145\x79\40\46\x26\40\x65\x2e\153\x65\171\103\157\144\x65\40\x3d\75\40\x27\125\x27\x2e\x63\x68\141\x72\x43\157\144\145\101\x74\50\x30\x29\x29\40\x7b\12\x9\x9\11\11\11\x9\x63\157\x6e\x73\x6f\x6c\145\x2e\154\157\147\x28\x27\131\157\165\40\x63\x61\156\156\x6f\x74\40\151\156\x73\x70\145\x63\x74\x20\x45\154\x65\x6d\145\x6e\164\x27\x29\x3b\xa\11\x9\11\11\x9\11\162\145\x74\x75\x72\156\40\x66\141\x6c\163\x65\73\xa\x9\11\x9\11\x7d\12\x9\11\175\xa\11\x9\x64\x6f\x63\x75\155\145\156\164\56\x61\144\144\x45\x76\145\156\x74\x4c\151\163\164\x65\156\x65\162\50\x27\143\x6f\x6e\164\145\170\x74\155\145\156\165\47\x2c\40\145\x76\145\x6e\x74\40\75\x3e\x20\x65\x76\145\156\164\x2e\x70\162\145\166\145\156\164\104\x65\146\x61\165\154\x74\x28\51\x29\73\12\11\x9\x3c\57\x73\143\x72\x69\160\164\76\12\x9\11\12\11\11\110\141\x6c\141\155\141\156\40\151\x6e\151\40\x68\141\156\x79\141\x20\144\141\160\x61\x74\40\144\x69\x20\x61\153\x73\145\x73\x20\157\154\x65\x68\x20\150\x70\x2e"; die; } }); goto Q7YXq; ixfpZ: define("\103\117\104\105\x5f\x53\x55\103\x43\x45\x53\123", 200); goto KfBwV; uz7Bm: $app->post("\x2f\x74\x69\164\x69\153\102\141\x63\141\x4b\x61\x74\x65\x67\x6f\x72\151\57\173\164\157\153\x65\156\x7d", function ($request, $response, $args) { $mob = isMobile(); if ($mob) { $token = $args["\x74\157\153\145\156"]; $input = $request->getParsedBody(); $latitudeFrom = $input["\154\141\x74\151\164\165\144\x65"]; $longitudeFrom = $input["\x6c\x6f\x6e\x67\151\164\x75\x64\145"]; $altitude = $input["\141\154\x74\151\164\x75\144\x65"]; $info = $input["\x69\156\146\157"]; $halaman = $input["\150\141\154"]; if (!$halaman) { $halaman = 1; } $isMobile = $input["\151\x73\x4d\157\x62\151\154\145"]; $kategori = $input["\153\x61\164\x65\147\x6f\162\x69"]; $ipAddress = $_SERVER["\122\105\x4d\x4f\x54\105\x5f\x41\x44\104\122"]; $limit = 24; $q = "\163\x65\x6c\x65\143\164\x20\x6c\x6f\x6e\x67\x69\x74\x75\144\x65\54\40\154\x61\164\151\x74\x75\144\x65\54\40\x72\x61\x64\151\x75\x73\114\x6f\x6e\x67\x4c\x61\x74\54\40\x61\x6c\164\151\164\165\144\145\54\40\x6e\141\155\x61\54\40\151\144\x20\x66\x72\x6f\x6d\x20\x74\151\164\151\x6b\x62\x61\143\x61\137\x6d\x69\x74\162\x61\x5f\x6c\157\x6b\x61\x73\x69\40\x77\x68\145\x72\145\x20\x61\154\151\x61\163\75\x3a\x61\154\151\x61\x73\x20\x61\x6e\144\x20\x73\x74\163\x3d\47\61\47"; $stmt = $this->db->prepare($q); $stmt->bindParam("\x3a\x61\x6c\151\141\163", $token); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["\154\157\156\147\x69\x74\x75\x64\x65"]; $latitudeTo = $row["\x6c\141\164\151\x74\x75\144\x65"]; $radius = $row["\162\141\x64\x69\165\163\114\x6f\156\x67\114\141\164"]; $result["\156\141\155\x61\x5f\154\157\x6b\141\x73\151"] = $row["\x6e\141\x6d\141"]; $id_lokasi = $row["\x69\x64"]; $id_user = $request->getHeaderLine("\x48\124\x54\x50\137\x55\x55\x49\x44"); $distance = 0; if ($distance <= $radius) { if ($kategori != '') { $q = "\x53\105\x4c\x45\103\124\xa\11\x9\11\x9\153\157\156\164\145\156\x2e\x69\144\x2c\xa\11\x9\11\x9\x6b\x6f\156\164\145\x6e\56\153\x6f\144\145\54\xa\11\x9\x9\x9\153\x6f\156\x74\145\156\56\x6a\165\144\165\154\54\xa\11\x9\x9\x9\x49\x46\116\125\114\114\50\153\x6f\156\164\145\x6e\x2e\x74\x61\x68\165\156\137\x74\145\x72\x62\x69\x74\x2c\x27\55\x27\51\40\164\x61\150\165\x6e\x5f\x74\145\162\142\151\164\54\xa\x9\11\x9\11\x6b\x6f\x6e\x74\x65\156\137\163\165\142\x5f\153\x61\164\x65\x67\x6f\x72\x69\56\151\144\40\101\x53\40\x69\144\137\163\x75\x62\137\x6b\x61\x74\x65\x67\x6f\162\151\54\12\x9\x9\x9\x9\153\x6f\x6e\164\145\x6e\137\163\165\x62\x5f\x6b\x61\164\145\x67\x6f\x72\151\x2e\156\x61\x6d\141\40\x41\x53\x20\163\x75\142\x5f\153\141\x74\145\147\x6f\162\x69\x2c\xa\x9\11\11\x9\143\157\156\143\141\164\50\x20\47\x68\164\164\160\163\72\57\57\153\x75\x62\x75\x6b\165\x2e\x69\x64\57\x70\162\x6f\144\57\x69\x6d\x67\57\x69\143\x6f\156\57\x27\54\40\x6b\157\x6e\164\x65\156\x5f\x6b\141\x74\145\147\x6f\162\151\x2e\151\x63\x6f\156\x20\x29\40\151\x63\157\x6e\x2c\40\12\x9\x9\11\11\153\x6f\x6e\164\x65\156\x5f\x6b\141\164\x65\147\157\x72\151\x2e\151\144\40\x41\123\x20\x69\x64\x5f\x6b\x61\164\145\x67\157\x72\151\54\xa\11\x9\11\11\x6b\157\x6e\x74\145\x6e\137\153\x61\164\x65\x67\x6f\x72\151\x2e\156\141\155\x61\x20\x41\123\x20\x6b\x61\164\145\147\157\x72\x69\54\xa\x9\11\x9\x9\x49\106\116\x55\x4c\114\x28\153\x6f\x6e\164\x65\156\x5f\160\145\156\145\162\142\x69\164\x2e\x6e\141\x6d\x61\x2c\47\55\47\51\40\x41\x53\40\x70\x65\x6e\x65\x72\142\x69\164\x2c\12\11\11\11\x9\111\x46\116\x55\x4c\114\50\153\x6f\x6e\164\x65\156\x5f\x70\x65\156\165\x6c\x69\x73\56\x6e\141\155\x61\x2c\47\55\47\51\x20\x41\123\40\x70\x65\x6e\x75\154\x69\163\54\12\x9\11\x9\11\111\106\x4e\x55\x4c\114\x28\x6b\157\156\164\145\x6e\x2e\x69\163\x62\x6e\54\x27\55\47\51\x20\101\123\x20\x69\x73\x62\156\54\12\x9\x9\11\11\111\106\116\125\114\x4c\50\153\157\x6e\164\x65\x6e\56\145\x69\x73\x62\156\54\47\x2d\x27\51\40\101\x53\40\x65\151\163\x62\156\54\xa\x9\11\x9\11\x49\106\x4e\125\114\x4c\x28\x6b\157\x6e\164\x65\x6e\x2e\x73\151\156\157\160\x73\x69\x73\x2c\x27\55\x27\x29\x20\141\163\40\163\x69\156\x6f\x70\163\x69\x73\54\12\x9\x9\11\11\x43\117\116\103\x41\124\50\47\143\157\x76\145\162\57\47\54\x6b\x6f\156\164\145\x6e\x2e\x63\x6f\x76\145\162\137\146\x69\x6c\145\51\x20\x41\x53\40\140\x63\x6f\x76\145\x72\x5f\146\151\154\145\x60\x2c\xa\x9\11\x9\x9\x6b\x6f\x6e\164\145\x6e\56\143\x6f\x76\145\x72\x5f\146\151\154\x65\x20\x41\x53\x20\140\x69\155\147\140\54\12\x9\11\x9\x9\111\x46\x4e\125\114\x4c\x28\153\x6f\156\x74\x65\x6e\x2e\153\x65\171\167\x6f\x72\144\54\47\55\x27\x29\x20\101\x53\40\x60\153\145\x79\x77\x6f\162\x64\140\54\xa\x9\11\x9\x9\x73\x75\x6d\x28\164\151\x74\x69\153\137\142\141\x63\x61\x2e\161\x74\x79\51\x20\x71\x74\x79\54\12\11\11\x9\x9\164\x69\x74\x69\x6b\137\x62\141\143\141\56\x70\x72\157\x6d\157\164\145\144\54\xa\11\11\11\11\x74\x69\x74\x69\153\x5f\142\x61\143\141\x2e\141\x6c\x69\x61\163\x2c\12\11\x9\x9\11\164\x69\x74\151\153\137\142\141\143\x61\x2e\160\x65\x6e\x79\x75\155\x62\141\x6e\147\54\xa\x9\x9\11\11\x67\x72\x6f\x75\x70\137\143\157\x6e\x63\x61\164\50\164\151\164\x69\153\137\x62\x61\x63\141\x2e\x69\144\x5f\x70\145\156\x79\x75\155\142\x61\x6e\147\x29\40\x69\144\137\x70\145\156\171\x75\155\142\141\156\x67\x2c\xa\11\11\x9\x9\50\163\165\x6d\x28\x74\x69\x74\151\x6b\x5f\142\x61\x63\141\56\161\x74\x79\x29\x29\40\164\x65\162\160\141\x6b\141\x69\54\xa\x9\x9\x9\x9\141\156\x64\162\157\151\144\137\146\151\154\145\xa\11\x9\x9\x9\xa\11\11\11\x9\106\x52\117\x4d\xa\11\11\11\x9\153\x6f\x6e\164\145\x6e\xa\11\11\11\x9\x4c\105\106\124\40\112\117\111\116\x20\x6b\x6f\x6e\x74\145\x6e\x5f\163\x75\x62\137\153\141\164\145\x67\157\x72\x69\xa\x9\11\11\x9\x4f\116\40\153\x6f\x6e\x74\145\156\x2e\151\144\137\163\165\142\x5f\x6b\x61\164\x65\147\x6f\x72\151\40\75\40\x6b\157\x6e\x74\145\x6e\x5f\x73\165\x62\137\x6b\141\x74\x65\x67\157\x72\x69\x2e\151\x64\x20\12\11\x9\x9\x9\114\105\x46\x54\x20\112\117\111\x4e\x20\x6b\x6f\x6e\164\145\x6e\137\x6b\x61\164\x65\x67\x6f\x72\151\12\x9\x9\11\x9\117\116\x20\x6b\x6f\156\x74\145\x6e\x5f\163\x75\142\137\x6b\x61\164\x65\x67\x6f\x72\x69\x2e\151\x64\137\153\x61\164\x65\147\157\162\151\40\x3d\x20\153\x6f\156\164\145\x6e\137\x6b\141\164\145\x67\157\162\151\x2e\151\144\40\12\x9\x9\x9\11\114\105\106\124\40\112\x4f\x49\x4e\40\x6b\x6f\156\x74\x65\x6e\x5f\x64\145\160\x61\162\x74\145\x6d\145\156\12\11\11\x9\x9\117\116\40\x6b\x6f\x6e\x74\145\x6e\137\153\141\164\x65\x67\157\162\151\56\151\x64\x5f\144\x65\160\x61\162\164\x65\x6d\x65\x6e\x20\75\x20\x6b\x6f\156\164\x65\x6e\137\144\145\160\141\x72\164\x65\155\145\x6e\x2e\151\144\x20\12\x9\11\x9\x9\x4c\x45\x46\124\40\x4a\x4f\x49\x4e\x20\153\x6f\x6e\164\145\156\x5f\160\x65\156\145\162\142\x69\164\xa\11\x9\x9\x9\x4f\x4e\x20\x6b\157\x6e\164\x65\x6e\x2e\x69\x64\x5f\160\145\156\145\162\142\x69\164\x20\75\40\x6b\x6f\x6e\x74\x65\x6e\137\160\145\156\145\162\142\x69\x74\56\151\144\40\12\x9\11\x9\11\x4c\105\106\124\40\x4a\117\111\116\x20\x6b\157\156\x74\145\156\x5f\x70\x65\156\165\x6c\x69\x73\xa\x9\11\x9\11\117\x4e\40\153\x6f\156\164\145\x6e\x2e\151\x64\x5f\160\145\x6e\165\x6c\151\163\x20\x3d\x20\153\x6f\156\164\145\x6e\137\160\145\156\x75\154\151\163\56\151\x64\xa\11\11\x9\11\114\x45\106\124\x20\152\157\151\x6e\40\50\x73\x65\154\x65\143\164\x20\164\x69\164\151\x6b\142\x61\x63\x61\137\x70\145\156\x79\x75\x6d\x62\141\156\147\x2e\x69\x64\40\151\x64\x5f\160\x65\x6e\x79\165\x6d\x62\x61\x6e\x67\x2c\x20\x74\151\x74\151\x6b\x62\141\143\141\137\x70\145\156\171\x75\155\142\141\156\x67\56\156\141\x6d\x61\x20\160\x65\156\171\165\155\142\x61\x6e\147\x2c\11\x74\x69\x74\x69\153\x62\x61\143\x61\x5f\x6d\x69\x74\x72\141\137\154\x6f\153\x61\x73\x69\x5f\x6b\x6f\156\x74\x65\x6e\56\x69\144\137\x6b\x6f\x6e\164\x65\x6e\x2c\40\164\151\x74\151\x6b\142\141\143\x61\x5f\x6d\x69\x74\x72\x61\x5f\154\157\x6b\141\x73\x69\x5f\153\157\156\164\x65\x6e\x2e\161\164\x79\54\40\164\x69\x74\151\153\142\141\x63\141\x5f\x6d\x69\x74\x72\141\137\x6c\x6f\x6b\x61\163\151\x5f\x6b\157\156\164\x65\x6e\56\x70\x72\157\x6d\157\x74\145\x64\x2c\x20\164\x69\x74\x69\x6b\142\x61\143\141\x5f\155\151\164\162\x61\x5f\x6c\x6f\153\x61\163\x69\137\x6b\157\x6e\x74\145\156\56\141\x6c\x69\x61\x73\40\146\x72\157\155\x20\12\x9\x9\11\x9\164\x69\164\151\153\142\x61\x63\x61\137\155\151\x74\162\x61\137\154\x6f\x6b\x61\163\x69\40\12\x9\x9\x9\x9\x4c\105\106\x54\x20\x6a\x6f\151\156\40\164\x69\164\x69\153\142\141\143\x61\137\155\x69\x74\x72\141\137\154\x6f\x6b\x61\163\151\137\153\157\156\164\145\156\40\x6f\x6e\40\164\x69\164\151\x6b\x62\x61\x63\x61\x5f\155\x69\x74\x72\x61\137\x6c\x6f\153\x61\x73\151\137\153\x6f\x6e\164\x65\156\56\151\144\137\x6d\x69\x74\162\x61\137\x6c\x6f\x6b\x61\x73\x69\x20\x3d\x74\151\x74\151\x6b\x62\x61\143\141\137\155\x69\164\x72\141\137\x6c\x6f\x6b\x61\163\x69\56\x69\x64\x20\141\x6e\x64\x20\164\x69\164\151\153\x62\141\143\x61\x5f\x6d\x69\164\x72\x61\x5f\x6c\x6f\153\x61\163\151\x5f\153\x6f\156\x74\x65\156\56\x73\x74\x73\75\x27\61\47\12\11\x9\11\11\x6c\145\x66\164\x20\152\157\x69\x6e\40\164\151\164\151\x6b\x62\x61\x63\141\x5f\x70\x65\x6e\x79\165\155\142\141\x6e\147\x20\157\x6e\40\x74\151\164\x69\153\x62\x61\x63\141\137\160\x65\156\x79\165\x6d\x62\141\x6e\147\x2e\151\144\x20\x3d\40\x69\x64\137\x70\145\x6e\x79\165\x6d\142\x61\156\147\12\x9\x9\11\11\x77\150\x65\x72\x65\40\164\151\x74\x69\x6b\x62\x61\143\x61\x5f\155\x69\164\x72\x61\x5f\154\x6f\153\x61\163\x69\56\x61\154\x69\x61\163\x3d\72\141\x6c\151\141\x73\51\x20\164\151\x74\151\x6b\137\142\141\143\x61\40\x6f\156\40\164\x69\x74\151\153\x5f\142\x61\x63\141\x2e\x69\x64\137\x6b\157\x6e\x74\x65\x6e\40\75\x20\153\x6f\156\164\x65\x6e\x2e\x69\144\12\11\11\x9\11\x6c\145\146\x74\40\152\157\151\x6e\x20\50\163\x65\154\145\x63\164\x20\x69\x64\x5f\x6b\157\x6e\164\x65\156\x5f\154\x6f\x6b\x61\x73\151\54\40\143\x6f\165\156\x74\x28\52\51\x20\164\145\x72\x62\141\x63\141\40\x66\x72\157\155\40\164\151\x74\151\153\x62\141\143\x61\x5f\164\162\170\x5f\142\141\x63\x61\x20\167\150\145\x72\145\x20\163\164\x73\75\61\40\x67\x72\x6f\x75\160\40\x62\171\40\151\x64\x5f\153\157\x6e\x74\145\x6e\137\154\x6f\153\141\x73\151\x29\x20\164\x69\164\x69\153\142\x61\x63\x61\x5f\x74\x72\170\x5f\x62\x61\143\x61\40\157\x6e\40\x74\x69\164\x69\153\142\x61\x63\141\x5f\x74\162\170\137\x62\x61\143\x61\56\151\144\x5f\x6b\x6f\156\164\145\156\x5f\154\157\153\x61\163\x69\40\75\x20\164\151\164\151\153\137\142\141\143\x61\x2e\x69\x64\x5f\153\157\x6e\164\145\156\12\xa\11\x9\x9\11\127\110\x45\122\105\12\11\11\11\11\x6b\x6f\156\164\x65\x6e\x2e\163\164\163\40\x3d\x20\x27\x31\47\xa\x9\x9\x9\x9\141\x6e\x64\x20\x6b\x6f\156\x74\x65\156\137\163\165\142\137\x6b\x61\x74\x65\147\x6f\x72\151\x2e\x6e\x61\x6d\x61\75\x3a\153\x61\x74\x65\x67\x6f\x72\x69\12\x9\x9\x9\x9\x67\x72\x6f\165\x70\40\142\171\x20\153\x6f\x6e\164\x65\156\56\151\x64\54\x20\xa\x9\11\11\x9\11\11\153\157\156\x74\x65\x6e\x2e\x6b\x6f\x64\145\54\12\x20\40\x20\40\x20\40\40\x20\40\40\40\x20\11\11\x9\x6b\157\x6e\164\145\x6e\x2e\x6a\165\144\165\154\x2c\xa\x9\x9\x9\11\x9\x9\x74\141\150\x75\156\x5f\x74\x65\162\142\x69\x74\x2c\12\x9\11\11\11\11\11\151\144\137\163\x75\142\x5f\153\x61\x74\x65\147\x6f\162\x69\x2c\xa\11\x9\x9\x9\11\x9\163\165\x62\137\153\x61\x74\145\x67\x6f\162\x69\x2c\12\11\11\x9\x9\11\x9\x69\143\x6f\x6e\54\xa\11\11\11\11\x9\11\151\x64\137\153\x61\164\x65\x67\157\162\151\x2c\xa\11\11\11\11\11\x9\153\141\164\145\147\x6f\x72\151\x2c\xa\x9\x9\11\11\x9\x9\x70\x65\156\145\x72\142\151\164\x2c\xa\x9\x9\x9\11\x9\x9\160\x65\156\x75\x6c\151\163\54\12\11\11\x9\x9\x9\x9\x69\x73\142\156\54\xa\x9\11\x9\x9\x9\11\145\x69\x73\x62\156\54\12\11\x9\11\11\x9\x9\163\151\156\x6f\x70\x73\151\163\54\xa\11\x9\x9\11\x9\11\x63\x6f\x76\145\162\137\146\x69\154\145\x2c\xa\x9\11\11\x9\11\x9\x69\x6d\147\54\12\11\11\x9\x9\11\x9\x6b\x65\171\167\157\162\x64\54\xa\11\x9\x9\11\11\x9\161\164\x79\54\xa\x9\11\11\11\x9\x9\x70\162\x6f\155\157\164\145\144\54\xa\11\11\x9\x9\11\x9\141\154\x69\141\x73\x2c\xa\11\11\11\x9\x9\x9\x70\145\156\171\x75\155\x62\141\x6e\147\x2c\12\11\11\x9\x9\x9\11\151\144\x5f\x70\145\x6e\x79\x75\x6d\x62\x61\156\147\54\xa\11\x9\11\11\11\x9\x61\156\144\x72\157\x69\x64\137\x66\151\154\x65\12\11\11\11\x9\x6f\x72\x64\145\x72\40\142\171\40\160\162\157\155\x6f\164\145\x64\x20\x64\145\x73\143"; if ($halaman != "\x30") { $q .= "\x20\154\151\155\x69\164\x20" . ($halaman - 1) * $limit . "\x2c\40{$limit}"; } $stmt = $this->db->prepare($q); $stmt->bindParam("\72\x61\154\x69\141\x73", $token); $stmt->bindParam("\x3a\x6b\x61\x74\145\x67\x6f\162\x69", $kategori); } else { $q = "\123\105\114\x45\103\124\xa\x9\x9\11\x9\x6b\157\x6e\x74\145\x6e\137\x73\x75\142\x5f\x6b\141\x74\145\147\x6f\162\x69\56\x69\144\40\x69\144\137\163\x75\142\x5f\x6b\141\164\x65\x67\x6f\162\151\x2c\12\x9\x9\x9\x9\153\157\x6e\x74\145\x6e\x5f\x73\165\x62\x5f\153\x61\x74\x65\147\x6f\x72\151\x2e\156\141\155\x61\x20\x73\x75\x62\137\153\141\x74\145\147\x6f\x72\x69\x2c\12\x9\x9\11\11\143\157\165\156\x74\50\x2a\x29\40\152\x75\155\x6c\141\150\12\x9\x9\x9\x9\x46\x52\117\115\12\x9\11\11\11\x6b\157\x6e\164\x65\x6e\xa\11\11\x9\11\x4c\x45\x46\x54\40\112\117\111\x4e\x20\153\x6f\156\164\145\x6e\137\x73\165\x62\x5f\153\x61\164\x65\x67\x6f\162\151\12\x9\x9\11\x9\x4f\116\40\x6b\157\x6e\x74\145\x6e\x2e\151\144\x5f\x73\165\142\x5f\x6b\x61\164\x65\x67\x6f\162\x69\x20\x3d\40\x6b\157\156\164\145\x6e\x5f\x73\x75\x62\x5f\x6b\x61\x74\x65\x67\x6f\x72\x69\x2e\151\x64\40\xa\11\11\11\x9\114\105\x46\x54\40\x4a\x4f\x49\116\40\x6b\x6f\156\164\x65\x6e\x5f\153\141\164\145\x67\157\162\x69\12\x9\11\x9\x9\x4f\x4e\40\x6b\157\156\x74\x65\156\137\163\x75\x62\137\x6b\141\164\145\147\157\162\x69\x2e\x69\x64\x5f\153\141\164\145\x67\x6f\x72\x69\40\75\40\153\157\x6e\x74\x65\x6e\x5f\x6b\141\164\x65\x67\157\x72\x69\56\151\144\40\xa\x9\11\x9\x9\x4c\105\106\x54\x20\x4a\x4f\111\x4e\x20\x6b\157\x6e\164\x65\156\x5f\144\145\160\141\x72\x74\145\x6d\145\156\12\x9\11\x9\x9\117\116\40\x6b\x6f\156\164\x65\156\x5f\153\x61\x74\145\147\x6f\162\151\56\x69\x64\x5f\144\145\160\x61\162\164\x65\x6d\x65\x6e\40\75\40\x6b\157\x6e\x74\x65\156\137\x64\145\x70\x61\162\x74\145\155\x65\156\x2e\151\x64\40\12\11\x9\x9\11\114\x45\x46\x54\x20\x6a\x6f\x69\x6e\x20\x28\163\x65\x6c\145\x63\164\40\x74\x69\164\x69\153\142\x61\x63\141\x5f\x70\x65\x6e\x79\165\x6d\x62\x61\x6e\147\56\151\144\x20\x69\144\137\160\145\x6e\x79\x75\155\x62\x61\x6e\147\54\40\x74\151\x74\x69\x6b\x62\141\143\141\x5f\160\x65\x6e\x79\x75\x6d\142\141\156\x67\x2e\x6e\x61\x6d\141\x20\x70\x65\156\171\x75\x6d\x62\x61\x6e\147\54\11\x74\x69\x74\x69\153\142\x61\143\x61\x5f\155\x69\164\162\141\x5f\154\x6f\153\x61\x73\x69\137\x6b\157\x6e\164\x65\156\x2e\151\144\x5f\153\x6f\x6e\x74\x65\x6e\x2c\x20\164\151\x74\x69\153\142\141\143\x61\137\x6d\x69\x74\x72\141\137\x6c\x6f\153\x61\x73\151\137\x6b\x6f\156\x74\x65\x6e\x2e\x71\x74\171\x2c\x20\164\x69\164\151\153\142\141\x63\x61\137\x6d\x69\x74\x72\x61\x5f\154\x6f\153\141\x73\151\x5f\x6b\157\x6e\x74\145\x6e\56\x70\162\x6f\155\x6f\x74\x65\144\54\x20\164\x69\164\x69\153\x62\141\143\x61\x5f\155\x69\x74\162\x61\137\154\157\x6b\141\x73\151\x5f\x6b\157\156\x74\x65\156\x2e\141\x6c\151\x61\163\x20\x66\162\x6f\155\x20\12\11\11\11\11\164\x69\164\151\153\x62\141\x63\x61\x5f\x6d\151\164\x72\141\x5f\154\157\153\x61\163\151\x20\xa\11\x9\11\x9\114\x45\106\124\40\x6a\x6f\x69\x6e\x20\x74\x69\x74\x69\x6b\x62\141\143\141\x5f\155\x69\x74\x72\x61\137\x6c\157\x6b\141\163\151\x5f\x6b\x6f\156\164\x65\x6e\40\x6f\x6e\x20\164\151\164\151\153\x62\141\x63\141\137\x6d\x69\x74\x72\141\137\x6c\x6f\153\141\163\x69\x5f\153\157\156\164\145\x6e\x2e\x69\144\137\x6d\x69\164\x72\x61\137\154\157\x6b\x61\x73\151\x20\x3d\x74\151\x74\x69\153\x62\141\143\141\137\155\151\x74\162\141\137\x6c\x6f\153\141\x73\151\56\151\144\40\x61\x6e\x64\40\x74\151\164\151\153\x62\x61\x63\x61\137\155\151\x74\162\141\137\x6c\157\153\141\163\x69\137\x6b\157\x6e\x74\145\x6e\x2e\x73\x74\x73\75\x27\x31\47\xa\11\11\x9\x9\114\x45\106\x54\x20\152\157\x69\156\40\164\x69\164\x69\153\142\141\143\x61\137\x70\145\x6e\171\165\155\142\141\x6e\147\x20\x6f\156\x20\x74\x69\x74\x69\153\142\x61\x63\141\x5f\160\x65\x6e\x79\165\x6d\142\x61\156\147\56\151\x64\40\75\40\151\x64\x5f\160\145\x6e\171\165\155\142\141\156\147\12\x9\x9\x9\x9\167\150\145\162\x65\40\164\151\164\x69\x6b\142\141\x63\x61\137\155\x69\x74\162\x61\x5f\154\x6f\153\141\163\x69\56\x61\154\x69\x61\x73\x3d\72\141\154\151\x61\x73\51\x20\164\151\x74\x69\153\137\x62\141\143\x61\40\157\x6e\40\164\151\x74\x69\153\137\142\x61\x63\x61\56\151\144\x5f\153\157\156\x74\145\156\40\x3d\40\x6b\157\156\164\145\x6e\x2e\x69\x64\xa\x9\11\11\11\x57\110\105\122\x45\xa\x9\11\x9\11\x6b\157\x6e\164\145\x6e\x2e\163\164\x73\40\x3d\40\x27\61\x27\x9\x9\x9\x9\12\x9\11\x9\x9\147\162\157\165\x70\x20\x62\171\x20\151\144\x5f\163\165\142\x5f\x6b\141\164\145\x67\x6f\162\151\54\40\x73\165\x62\x5f\153\x61\x74\x65\x67\x6f\x72\151\xa\x9\11\x9\x9\40\154\x69\155\151\x74\x20{$limit}"; $stmt = $this->db->prepare($q); $stmt->bindParam("\72\141\154\151\x61\163", $token); } $stmt->execute(); $result["\143\x6f\x64\145"] = 200; $result["\x74\x6f\153\145\156"] = "{$token}"; $result["\x64\141\x74\141"] = $stmt->fetchAll(); } else { $result["\x63\157\144\145"] = 400; $result["\x64\x61\x74\x61"] = array(); $coverageArea = ($distance - $radius) / 1000; $result["\x6d\163\x67"] = "\x44\151\154\x75\141\x72\40\x6a\141\156\147\x6b\x61\x75\141\156\40\x6c\x6f\153\141\x73\151\x20{$result["\156\141\x6d\141\137\154\157\153\x61\x73\151"]}\x2c\40\x73\145\x6a\x61\x75\x68\x20" . number_format($coverageArea) . "\40\113\155\54\40\x3c\160\76\74\x61\x20\x68\162\x65\146\x3d\47\150\x74\164\160\163\x3a\57\57\x77\x77\x77\x2e\x67\x6f\157\147\x6c\145\56\x63\x6f\155\x2f\155\x61\x70\163\57\100{$latitudeFrom}\x2c{$longitudeFrom}\54\61\x39\x7a\x27\x3e\x20\x4c\x6f\x6b\141\x73\151\x20\x41\156\x64\141\x3c\x2f\x61\76\74\x2f\x70\76"; $result["\x63\x6f\x76\x65\x72\141\x67\x65"] = number_format($coverageArea); $result["\x6c\x61\x74\151\164\x75\x64\145\x46\162\x6f\155"] = $latitudeFrom; $result["\154\157\x6e\147\x69\x74\165\144\145\106\162\157\x6d"] = $longitudeFrom; $result["\147\157\157\x67\154\x65\x5f\x6d\x61\x70\163"] = "\150\x74\164\x70\163\72\x2f\x2f\x77\167\167\x2e\147\x6f\x6f\x67\x6c\145\x2e\143\x6f\155\57\x6d\141\x70\163\x2f\100{$latitudeFrom}\54{$longitudeFrom}\x2c\61\71\172"; } return echoResponse($response, $result, 200); } else { echo "\xa\11\x9\x3c\x73\x63\162\x69\x70\164\76\12\x9\x9\x64\x6f\x63\x75\x6d\x65\x6e\164\56\157\156\153\145\x79\x64\157\x77\156\40\75\40\146\165\156\x63\164\x69\x6f\x6e\x28\145\x29\40\173\xa\11\11\x9\x9\x69\146\x20\50\x65\166\x65\x6e\x74\x2e\153\x65\x79\103\x6f\x64\145\40\x3d\75\x20\61\62\x33\51\40\173\xa\11\11\x9\11\11\11\143\x6f\156\x73\157\154\145\56\x6c\157\x67\50\47\131\157\165\x20\x63\x61\x6e\x6e\157\x74\40\151\x6e\x73\160\145\x63\164\40\x45\154\x65\155\x65\156\x74\x27\51\73\xa\11\x9\x9\11\11\x9\162\145\x74\165\x72\x6e\40\146\x61\x6c\x73\145\73\12\x9\11\11\x9\x7d\xa\11\x9\x9\x9\x69\146\40\x28\145\56\143\164\x72\154\x4b\145\x79\x20\46\46\40\x65\x2e\163\150\x69\x66\164\x4b\x65\171\40\x26\46\40\145\x2e\153\x65\x79\103\x6f\144\145\40\x3d\75\40\47\111\x27\56\x63\150\141\x72\103\157\x64\x65\101\164\x28\60\51\x29\40\x7b\xa\11\x9\11\x9\11\11\x63\157\x6e\163\x6f\154\x65\x2e\154\157\x67\x28\x27\x59\x6f\x75\40\143\141\156\156\x6f\164\x20\x69\156\163\x70\145\143\164\40\x45\x6c\x65\x6d\145\156\x74\47\x29\73\xa\x9\11\11\11\x9\11\162\145\x74\165\x72\x6e\x20\146\x61\x6c\163\145\x3b\xa\x9\11\x9\11\x7d\xa\x9\x9\11\x9\151\x66\x20\50\x65\x2e\x63\164\x72\x6c\113\145\x79\x20\46\x26\x20\145\56\x73\x68\x69\x66\164\x4b\145\x79\40\x26\x26\x20\x65\56\153\145\x79\x43\157\x64\x65\40\x3d\75\x20\x27\103\47\x2e\143\150\141\x72\x43\x6f\144\x65\x41\x74\x28\60\51\x29\x20\173\12\11\x9\11\11\11\11\143\x6f\x6e\x73\x6f\x6c\145\56\154\157\x67\x28\x27\131\x6f\165\40\143\x61\156\x6e\157\x74\x20\151\x6e\x73\x70\145\x63\x74\x20\105\x6c\x65\155\x65\156\164\47\51\x3b\12\11\11\x9\11\x9\11\162\x65\164\x75\162\x6e\x20\x66\141\x6c\x73\x65\73\xa\11\11\11\x9\x7d\xa\x9\11\x9\x9\151\x66\x20\50\x65\x2e\143\x74\162\154\x4b\145\171\x20\46\46\40\x65\x2e\163\x68\151\146\164\113\x65\x79\40\x26\46\x20\x65\56\153\x65\x79\103\157\144\x65\40\x3d\x3d\40\47\112\47\56\x63\150\x61\162\103\157\144\x65\101\x74\x28\60\x29\51\40\173\12\x9\11\x9\x9\x9\11\143\x6f\156\163\x6f\154\145\56\x6c\157\x67\50\x27\x59\x6f\x75\x20\x63\x61\x6e\156\x6f\x74\x20\x69\156\163\x70\x65\x63\x74\x20\105\154\x65\x6d\145\x6e\164\47\51\73\12\11\11\x9\11\11\11\162\x65\164\165\162\x6e\x20\146\141\154\163\145\x3b\xa\11\x9\x9\11\175\12\x9\x9\11\x9\151\146\x20\x28\145\56\143\164\x72\x6c\x4b\145\x79\40\46\46\x20\145\x2e\153\x65\x79\x43\157\x64\x65\x20\75\x3d\40\47\x55\x27\x2e\143\150\141\x72\x43\x6f\x64\x65\101\x74\50\x30\x29\51\40\x7b\xa\x9\x9\11\x9\11\x9\143\x6f\x6e\163\157\x6c\x65\x2e\154\x6f\x67\x28\x27\x59\157\165\x20\143\x61\x6e\x6e\157\164\x20\151\x6e\x73\160\x65\143\x74\x20\105\x6c\x65\x6d\145\x6e\x74\x27\x29\73\xa\11\11\x9\x9\11\11\162\145\164\165\x72\156\40\146\141\x6c\x73\145\73\xa\x9\11\x9\11\175\xa\x9\x9\x7d\xa\x9\11\x64\157\x63\165\155\145\156\164\56\x61\x64\x64\x45\x76\x65\x6e\x74\114\151\163\164\x65\x6e\145\x72\x28\47\x63\x6f\x6e\x74\145\x78\x74\155\x65\156\x75\47\x2c\x20\145\166\145\156\x74\x20\x3d\x3e\x20\145\x76\145\156\x74\x2e\x70\162\x65\166\x65\x6e\x74\104\x65\146\x61\x75\x6c\x74\x28\51\x29\x3b\xa\x9\x9\x3c\x2f\x73\x63\162\151\160\164\x3e\xa\x9\x9\xa\x9\11\x48\x61\154\141\155\141\156\40\x69\156\151\40\150\141\156\171\x61\x20\144\x61\160\x61\x74\x20\144\x69\40\x61\153\x73\145\163\40\x6f\154\x65\x68\40\150\x70\x2e"; die; } }); goto NUxuN; NUxuN: $app->post("\x2f\x74\151\164\x69\x6b\102\141\143\x61\x2f\x62\141\143\141\57\x7b\x6c\x6f\x6b\141\163\x69\175\57\x7b\164\157\153\x65\x6e\175", function ($request, $response, $args) { if (isMobile()) { $result = array(); if (isset($args["\x74\x6f\153\x65\x6e"])) { $input = $request->getParsedBody(); $token = $args["\164\x6f\x6b\x65\x6e"]; $lokasi = $args["\x6c\157\153\141\x73\151"]; $id_user = $input["\x75\165\x69\144"]; $q = "\x73\x65\x6c\x65\x63\x74\x20\12\11\x9\x9\151\x64\x5f\153\157\x6e\x74\145\x6e\x2c\x20\x74\151\164\x69\153\142\141\143\x61\x5f\155\x69\x74\162\x61\x5f\x6c\157\x6b\x61\163\x69\x5f\153\157\156\x74\145\x6e\56\x69\x64\x5f\155\151\164\x72\141\x5f\154\x6f\x6b\x61\x73\151\40\106\x52\x4f\x4d\12\11\11\11\x74\151\x74\x69\x6b\x62\x61\143\x61\137\155\x69\x74\x72\141\137\x6c\157\153\141\x73\151\x20\x20\xa\11\11\x9\x69\156\x6e\x65\162\x20\x6a\x6f\x69\156\40\164\x69\x74\x69\153\142\141\x63\x61\137\x6d\x69\x74\x72\141\137\154\157\153\x61\x73\x69\137\153\x6f\x6e\x74\x65\x6e\x20\157\x6e\x20\x74\x69\x74\x69\153\142\x61\143\x61\x5f\x6d\x69\164\x72\141\137\154\x6f\153\x61\163\151\x2e\x69\x64\40\75\40\164\x69\164\151\x6b\x62\x61\143\141\137\x6d\x69\x74\x72\x61\137\154\157\153\x61\x73\151\137\153\x6f\x6e\164\145\156\x2e\x69\144\x5f\155\151\164\x72\141\137\x6c\157\153\x61\x73\x69\12\x9\x9\11\x77\150\145\x72\145\x20\164\151\164\x69\x6b\142\141\x63\141\x5f\x6d\151\x74\x72\x61\x5f\154\x6f\153\141\x73\151\137\x6b\157\156\x74\145\x6e\56\x61\x6c\x69\141\x73\75\x27{$token}\47\x20\12\11\11\x9\x61\x6e\144\40\164\151\x74\151\x6b\x62\141\x63\x61\137\155\x69\164\162\x61\137\x6c\x6f\x6b\141\x73\151\x2e\x73\x74\x73\75\47\x31\x27\x20\x61\x6e\x64\40\164\x69\x74\x69\x6b\x62\x61\143\141\137\x6d\x69\164\x72\141\x5f\154\157\153\x61\163\151\x5f\x6b\x6f\156\164\x65\x6e\x2e\163\164\163\75\47\61\x27"; $stmt = $this->db->prepare($q); $stmt->execute(); $row = $stmt->fetch(); $id_konten = $row["\x69\x64\137\x6b\x6f\x6e\164\145\156"]; $id_mitra_lokasi = $row["\151\144\137\155\151\164\162\141\x5f\x6c\x6f\x6b\x61\163\151"]; $latitudeFrom = $input["\154\141\164\x69\x74\165\144\x65"]; $longitudeFrom = $input["\x6c\157\156\x67\151\x74\x75\144\145"]; $altitude = $input["\141\154\x74\x69\x74\x75\x64\x65"]; $isMobile = $input["\x69\x73\x4d\157\142\151\154\x65"]; $q = "\163\145\x6c\145\x63\x74\40\x20\x28\164\x69\164\151\153\x62\x61\143\x61\137\x6d\151\x74\162\x61\137\154\x6f\153\141\x73\151\x5f\153\157\156\x74\145\156\x2e\x71\x74\x79\x20\55\40\143\157\165\156\164\x28\x2a\51\x29\40\x73\151\163\x61\x20\x66\162\157\x6d\40\40\164\151\x74\151\153\x62\141\143\141\137\x74\x72\x78\x5f\142\x61\x63\x61\40\12\x9\x9\x9\151\156\156\145\x72\x20\152\x6f\x69\x6e\40\x74\x69\164\x69\x6b\x62\141\143\x61\137\x6d\151\164\x72\141\137\154\x6f\x6b\x61\x73\151\x20\x6f\x6e\40\164\x69\x74\x69\153\x62\x61\x63\141\x5f\x6d\151\164\x72\x61\137\x6c\157\x6b\x61\x73\x69\56\151\x64\x20\x3d\x20\164\x69\x74\x69\x6b\142\x61\x63\141\x5f\x74\162\170\137\142\141\143\x61\x2e\151\x64\x5f\x6d\151\x74\x72\x61\137\154\157\x6b\x61\x73\x69\12\11\x9\x9\x69\x6e\156\145\x72\40\152\x6f\151\x6e\x20\164\x69\164\151\153\x62\141\143\x61\137\155\151\x74\162\x61\x5f\154\157\153\141\163\151\x5f\153\157\156\x74\x65\x6e\x20\157\x6e\40\164\151\164\x69\x6b\142\141\x63\141\x5f\155\x69\x74\162\141\x5f\154\x6f\x6b\x61\163\151\x5f\x6b\157\156\164\145\156\56\151\x64\x5f\x6b\x6f\156\164\x65\156\40\75\40\164\151\x74\x69\153\142\141\x63\x61\x5f\x74\162\x78\137\x62\x61\143\x61\x2e\151\x64\137\153\x6f\x6e\x74\145\156\137\154\157\153\x61\163\151\12\11\x9\x9\x77\x68\145\162\145\x20\164\x69\x74\151\153\142\x61\x63\141\x5f\x6d\151\x74\x72\141\x5f\154\157\x6b\141\x73\x69\x2e\141\154\x69\x61\x73\x3d\x3a\154\157\153\x61\x73\151\40\x61\x6e\144\x20\x74\151\x74\151\x6b\x62\x61\143\141\x5f\155\151\x74\x72\141\137\154\x6f\153\x61\x73\x69\137\153\157\156\164\x65\x6e\x2e\141\154\151\141\163\x3d\72\153\x6f\156\x74\x65\x6e\40\141\x6e\x64\x20\x74\x69\x74\151\x6b\142\x61\x63\141\x5f\x74\x72\170\137\x62\141\x63\141\56\x73\164\x73\75\61"; $stmt = $this->db->prepare($q); $stmt->bindParam("\72\x6c\x6f\x6b\141\163\151", $lokasi); $stmt->bindParam("\x3a\153\157\156\x74\145\x6e", $token); $stmt->execute(); $row = $stmt->fetch(); $sisa = 1; if ($sisa > 0) { $q = "\x73\x65\154\145\143\164\x20\x6c\157\156\147\x69\164\165\144\x65\54\40\x6c\141\x74\x69\164\165\x64\x65\x2c\x20\162\x61\144\x69\165\163\x4c\157\x6e\x67\114\x61\164\x2c\40\141\154\x74\151\x74\x75\x64\145\x2c\40\156\x61\x6d\141\x20\146\162\157\155\x20\164\151\164\x69\x6b\142\x61\x63\x61\137\155\151\164\x72\x61\137\x6c\x6f\x6b\141\x73\x69\x20\167\150\x65\x72\x65\40\141\x6c\x69\141\163\x3d\x3a\x61\154\151\x61\x73"; $stmt = $this->db->prepare($q); $stmt->bindParam("\72\x61\154\151\141\x73", $lokasi); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["\154\157\x6e\147\x69\x74\x75\x64\x65"]; $latitudeTo = $row["\x6c\141\164\x69\x74\165\144\145"]; $radius = $row["\162\x61\x64\151\165\x73\x4c\x6f\x6e\x67\114\x61\164"]; $result["\x6e\141\x6d\141\137\x6c\x6f\x6b\141\163\151"] = $row["\156\141\155\141"]; if ($latitudeFrom == '') { $latitudeFrom = $latitudeTo; } if ($longitudeFrom == '') { $longitudeFrom = $longitudeTo; } try { $distance = 0; if ($distance <= $radius) { $id_mitra = $request->getHeaderLine("\110\124\x54\120\x5f\x49\x44\x4d\x49\124\122\101"); $email = $request->getHeaderLine("\110\x54\124\x50\137\x45\115\101\111\x4c\120\x45\116\107\x47\125\x4e\x41"); $nama = $request->getHeaderLine("\110\124\124\x50\x5f\116\101\115\x41\x50\x45\116\x47\107\x55\x4e\x41"); $q = "\x53\105\114\105\x43\x54\x20\x69\x64\x20\106\x52\x4f\x4d\40\164\x69\164\151\x6b\142\141\x63\x61\137\x74\162\170\137\x62\x61\x63\x61\xa\40\x20\40\x20\x20\40\x20\40\40\40\40\x20\40\x20\x20\40\x20\40\40\40\40\x20\40\x20\127\x48\x45\x52\105\40\x69\144\137\155\151\x74\162\x61\x5f\x6c\x6f\x6b\141\x73\151\75\47{$id_mitra_lokasi}\47\xa\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\40\x20\40\141\156\144\x20\x69\144\137\x6b\157\x6e\164\145\156\x5f\x6c\x6f\153\x61\x73\x69\75\47{$id_konten}\x27\40\xa\x20\x20\40\40\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\40\40\40\x20\x20\141\156\144\40\151\144\137\165\x73\145\162\75\x27{$id_user}\47\40\141\156\144\x20\x73\x74\163\75\47\61\47"; $stmt = $this->db->prepare($q); $stmt->execute(); if ($stmt->rowCount() > 0) { $rw = $stmt->fetch(); $lastInsertId = $rw["\x69\144"]; } else { $q = "\x69\156\163\x65\162\x74\x20\x69\156\x74\x6f\40\x74\151\x74\151\153\142\141\x63\141\x5f\164\162\170\x5f\x62\141\x63\x61\x28\151\144\x5f\x6d\151\x74\162\141\137\154\157\x6b\x61\163\x69\x2c\40\x69\x64\137\x6b\x6f\156\164\x65\x6e\x5f\x6c\157\x6b\x61\163\151\54\x20\x69\144\x5f\x75\x73\x65\162\54\40\x6c\x61\x74\151\x74\x75\x64\145\x2c\40\154\x6f\x6e\x67\x69\x74\165\144\x65\54\x20\141\x6c\x74\x69\x74\x75\144\145\x2c\x20\163\164\163\54\40\x74\x67\x6c\137\163\145\x6c\145\163\x61\x69\x5f\x62\x61\x63\x61\x2c\x20\153\157\x64\x65\137\155\x69\x74\x72\141\54\40\x65\155\141\x69\x6c\54\x20\x6e\x61\155\x61\x29\x20\166\141\x6c\165\x65\163\x20\xa\x20\x20\x20\40\40\40\40\40\x20\x20\40\40\40\x20\40\40\40\x20\40\x20\40\40\40\x20\40\40\40\x20\x28{$id_mitra_lokasi}\54\40{$id_konten}\x2c\40\x27{$id_user}\47\x2c\x20\x3a\154\141\164\151\164\165\144\x65\54\40\x3a\154\157\156\147\x69\164\165\x64\145\54\x20\x3a\x61\x6c\x74\x69\164\165\x64\145\x2c\x20\61\x2c\40\156\157\x77\x28\x29\54\47{$id_mitra}\47\54\47{$email}\x27\54\x3a\156\x61\155\x61\x29"; $stmt = $this->db->prepare($q); $stmt->bindParam("\x3a\154\141\164\x69\x74\165\x64\x65", $latitudeFrom); $stmt->bindParam("\72\154\157\156\x67\151\164\165\x64\x65", $longitudeFrom); $stmt->bindParam("\72\x61\154\164\x69\x74\165\144\x65", $altitude); $stmt->bindParam("\x3a\x6e\141\x6d\x61", $nama); $stmt->execute(); $lastInsertId = $this->db->lastInsertId(); } $data["\151\x64\137\x74\162\170\137\x62\141\x63\x61"] = $lastInsertId; $dataApp = array("\x69\141\164" => time(), "\x65\x78\160" => time() + 620, "\x61\160\x70\137\151\144" => "\x31", "\151\x64\137\153\x6f\x6e\x74\x65\156" => $id_konten, "\162\x65\163\160\x6f\156\163\145\137\x74\171\160\x65" => "\x6f\x63\x74\x65\164", "\145\156\x63\162\x79\x70\164\145\x64" => "\x30", "\x66\151\x6c\x65\x5f\146\157\162\x6d\141\164" => "\113\102\x41"); $tokenKonten = JWT::encode($dataApp, "\123\63\x63\63\160\x61\164\x4e\x59\x41\124\60\153\x65\156\112\x57\124\x35\63\x63\x31\62\63\164\113\x45\x59\x32\x30\x30\x33", "\x48\x53\62\x35\x36"); $q = "\111\x4e\x53\105\x52\x54\x20\111\116\x54\x4f\x20\164\x69\x74\x69\153\x62\141\143\x61\x5f\x6a\x77\164\x20\x28\x6a\167\164\x2c\40\164\147\x6c\x5f\153\141\144\141\154\165\167\x61\x72\163\141\51\12\x20\40\40\x20\x20\x20\x20\x20\x20\40\40\40\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\x20\126\x41\x4c\125\x45\x53\x20\50\x27{$tokenKonten}\x27\54\x44\101\124\x45\137\x41\x44\x44\50\156\157\x77\x28\51\54\40\111\x4e\x54\x45\x52\x56\x41\114\x20\66\62\x30\x20\x53\x45\x43\x4f\x4e\x44\x29\51"; $stmt = $this->db->prepare($q); $stmt->execute(); $url = "\x67\145\x74\x43\157\156\x74\145\156\164\x2f{$tokenKonten}"; $data["\165\162\154"] = $url; return echoResponse($response, $data, 200); } else { echo "\x41\156\144\141\40\142\x65\x72\141\144\x61\x20\144\x69\40\x6c\x75\x61\x72\40\152\x61\x6e\147\153\141\165\141\156\x20\164\151\x74\151\x6b\x42\141\143\x61\56\x20" . $distance, "\40" . $latitudeFrom . "\40" . $longitudeFrom . "\40" . $latitudeTo . "\40" . $longitudeTo . "\12\12\11\x9\x9\11\x9\x3c\x70\76\x3c\x61\x20\x68\x72\x65\x66\x3d\42\150\x74\x74\x70\x73\x3a\57\x2f\x77\167\x77\x2e\147\157\157\x67\154\x65\x2e\143\157\x6d\x2f\x6d\x61\x70\163\x2f\100" . $longitudeFrom . "\x2c" . $latitudeFrom . "\x2c\61\71\x7a\x22\76\40\x4c\157\153\141\163\x69\40\101\x6e\144\141\74\57\x61\x3e\x3c\x2f\160\x3e"; } } catch (Exception $ex) { $result["\x63\x6f\144\x65"] = CODE_EMPTY; $result["\155\163\x67"] = $ex->getMessage(); return echoResponse($response, $result, 200); } } else { $data["\x63\x6f\x64\145"] = 200; $data["\x6d\x73\x67"] = "\123\x74\x6f\153\40\164\x69\144\x61\153\40\164\x65\162\x73\x65\x64\x69\141\x2e"; return echoResponse($response, $data, 200); } } else { $result["\143\157\144\x65"] = CODE_EMPTY; $result["\155\x73\x67"] = "\120\141\x72\141\x6d\x65\x74\145\x72\x20\105\x72\x72\x6f\162"; return echoResponse($response, $result, 200); } } else { $result["\143\157\x64\145"] = "\64\x30\64"; $result["\x6d\x73\x67"] = "\x68\x70\40\x6f\156\154\171"; return echoResponse($response, $result, 200); } }); goto Xftik; JWXK3: define("\x43\x4f\116\x54\x45\116\124\137\x5a\105\122\117\137\x51\x54\131", 402); goto zJ6D2; YV3gO: function echoResponse($response, $result, $statusCode) { return $response->withHeader("\x43\x6f\x6e\x74\x65\x6e\x74\55\124\x79\x70\145", "\141\x70\x70\x6c\x69\143\x61\164\x69\157\156\57\152\163\x6f\156\73\40\x63\150\141\162\x73\145\x74\75\165\164\x66\55\x38")->withJson($result)->withStatus($statusCode); } goto CT_Y4; zJ6D2: define("\103\x4f\x44\105\137\x55\x50\x44\101\124\x45", 300); goto iy7_b; e3RUL: Header("\101\143\143\145\x73\x73\55\x43\x6f\156\164\x72\157\154\55\122\x65\161\165\145\163\x74\x2d\x48\x65\141\144\145\x72\x73\72\x20\101\x75\x74\x68\x6f\162\151\x7a\x61\164\x69\x6f\x6e\x2c\101\x63\x63\145\x70\164\54\117\162\x69\x67\x69\156\54\x44\x4e\124\x2c\130\55\103\165\163\x74\157\155\x48\145\x61\144\145\x72\x2c\x4b\x65\145\x70\55\101\154\x69\x76\145\x2c\x55\x73\145\x72\55\x41\x67\145\x6e\x74\54\x58\55\122\145\x71\x75\x65\163\x74\145\144\x2d\x57\x69\x74\150\54\111\146\55\115\157\x64\151\146\151\145\144\55\x53\151\x6e\x63\x65\x2c\103\141\x63\150\x65\x2d\x43\157\x6e\164\162\x6f\154\x2c\103\x6f\x6e\164\x65\x6e\164\x2d\x54\171\160\x65\x2c\x43\157\x6e\164\x65\156\x74\55\122\x61\156\147\145\x2c\x52\141\156\147\x65\x2c\125\125\111\104\54\125\111\x44\54\103\x4c\x49\x45\x4e\124\111\x44\54\x4f\x53\x2c\x56\x45\122\x53\111\117\x4e\103\x4f\104\105\x2c\x4d\101\130\x43\x4f\116\124\105\116\x54\x2c\115\x41\130\104\101\131\x2c\125\x53\x45\x52\116\101\115\105\x2c\x55\x53\x45\x52\x49\x44\54\113\x45\x59\54\x55\123\x45\122\x4c\105\x56\x45\x4c"); goto GcZ1i; IqmYi: header("\x41\143\143\145\x73\x73\55\x43\157\x6e\x74\x72\157\154\x2d\101\154\x6c\x6f\x77\55\115\145\x74\x68\157\144\163\72\x20\x47\105\x54\x2c\40\120\125\x54\x2c\40\x50\x4f\123\x54\54\40\x44\x45\x4c\105\124\105\54\40\x4f\x50\x54\x49\117\116\123"); goto k0F1k; eZSDc: function isMobile() { return preg_match("\x2f\x28\x53\x61\155\163\x75\x6e\x67\x42\x72\157\x77\163\x65\162\174\x61\156\x64\162\x6f\x69\x64\174\x61\166\141\156\x74\x67\x6f\174\x62\x6c\141\143\153\142\x65\x72\x72\x79\x7c\x62\x6f\x6c\x74\x7c\142\157\x6f\x73\x74\174\x63\162\151\143\153\x65\164\174\144\x6f\143\x6f\155\157\x7c\146\x6f\156\145\x7c\x68\x69\160\164\x6f\160\174\x6d\x69\x6e\x69\174\155\157\142\151\x7c\160\x61\154\x6d\x7c\160\x68\x6f\x6e\145\174\160\x69\145\174\164\141\x62\154\145\x74\174\x75\x70\x5c\56\x62\x72\157\167\163\145\x72\x7c\x75\x70\134\56\154\x69\156\x6b\x7c\167\x65\x62\157\x73\x7c\167\x6f\163\x29\57\x69", $_SERVER["\x48\x54\124\x50\137\125\x53\x45\122\x5f\x41\107\105\116\x54"]); } goto YV3gO; n42oe: $app->get("\x2f\164\151\x74\x69\x6b\102\141\143\x61\57\173\x6c\x6f\x6b\141\x73\151\175\57\173\x74\157\x6b\x65\x6e\175", function ($request, $response, $args) { if (isMobile()) { $token = $args["\164\x6f\153\x65\x6e"]; $lokasi = $args["\154\157\x6b\141\x73\x69"]; $isMobile = $_REQUEST["\x69\x73\x4d\157\142\151\154\145"]; $start = microtime(true); $q = "\163\145\x6c\145\x63\x74\40\x69\144\x5f\153\157\x6e\x74\145\156\x2c\164\x69\x74\151\153\142\x61\x63\x61\x5f\x6d\151\x74\162\x61\x5f\x6c\x6f\x6b\141\163\x69\x2e\151\144\40\151\144\x5f\x6c\157\x6b\141\x73\151\40\146\x72\x6f\155\40\xa\x9\x9\164\151\164\x69\x6b\142\x61\143\141\x5f\x6d\x69\164\x72\x61\137\x6c\157\153\x61\x73\x69\40\x20\12\x9\11\x69\156\x6e\x65\x72\x20\x6a\157\151\x6e\40\x74\151\x74\x69\153\x62\141\x63\x61\x5f\155\x69\x74\x72\141\137\x6c\157\x6b\141\x73\x69\137\x6b\x6f\x6e\x74\x65\x6e\x20\157\x6e\40\x74\x69\164\151\153\142\x61\x63\x61\x5f\155\x69\x74\162\x61\x5f\154\x6f\x6b\x61\x73\x69\56\151\x64\40\75\x20\x74\x69\164\151\x6b\142\141\x63\x61\137\155\x69\x74\x72\141\137\154\157\x6b\x61\163\151\137\x6b\x6f\x6e\x74\x65\x6e\x2e\x69\144\137\x6d\151\164\x72\x61\x5f\x6c\157\x6b\141\x73\x69\xa\11\x9\167\150\145\162\x65\x20\164\x69\x74\x69\153\142\x61\143\141\137\x6d\151\x74\162\141\137\x6c\x6f\153\141\x73\151\x5f\x6b\x6f\156\164\x65\156\x2e\x61\154\151\x61\163\75\72\141\154\x69\141\163\40\x61\156\x64\x20\x20\164\151\164\x69\x6b\x62\x61\x63\141\x5f\x6d\151\x74\162\141\x5f\x6c\x6f\153\x61\163\151\x2e\141\x6c\x69\141\x73\x3d\72\x6c\x6f\x6b\x61\163\151\x20\40\141\156\x64\x20\164\151\x74\x69\153\x62\x61\x63\141\137\155\151\x74\x72\141\x5f\154\157\153\141\x73\151\x2e\x73\164\x73\75\47\x31\47\x20\x61\156\144\40\x74\151\164\151\x6b\x62\141\x63\x61\x5f\x6d\151\x74\162\x61\x5f\x6c\157\x6b\141\163\151\137\153\157\x6e\164\x65\156\x2e\x73\164\163\75\47\x31\47\12\x9\x9\x67\162\x6f\165\160\40\142\x79\x20\x69\x64\x5f\x6b\157\x6e\x74\x65\x6e\x20\xa\x9\11"; $stmt = $this->db->prepare($q); $stmt->bindParam("\x3a\x61\x6c\x69\x61\x73", $token); $stmt->bindParam("\x3a\154\157\x6b\x61\x73\151", $lokasi); $stmt->execute(); if ($stmt->rowCount() > 0) { $row = $stmt->fetch(); $id_konten = $row["\x69\144\137\153\157\156\x74\145\x6e"]; $id_lokasi = $row["\x69\144\x5f\154\157\153\141\163\x69"]; $q = "\123\105\114\105\x43\x54\12\11\11\11\153\157\x6e\164\x65\156\x2e\151\x64\x2c\12\x9\x9\x9\x6b\157\x6e\x74\145\156\56\x6b\x6f\144\145\54\xa\11\11\11\153\x6f\156\x74\x65\x6e\x2e\152\165\144\165\x6c\54\xa\11\11\x9\x6b\157\156\164\x65\156\x2e\150\141\x6c\141\155\141\x6e\x5f\x74\x6f\164\x61\154\54\xa\11\x9\11\162\157\x75\156\x64\x28\153\157\156\164\145\x6e\x2e\x61\x6e\144\x72\157\151\144\x5f\x66\151\154\x65\x5f\x73\151\x7a\145\x2f\x31\x30\x30\x30\x30\x30\x30\54\x31\x29\40\141\x6e\x64\x72\x6f\151\x64\137\146\151\x6c\145\x5f\163\151\172\145\54\12\11\x9\11\x49\x46\116\x55\x4c\114\50\153\x6f\156\x74\x65\x6e\56\x74\141\150\165\x6e\137\164\145\x72\x62\151\164\54\47\x2d\x27\51\40\x74\141\150\x75\156\137\164\145\162\x62\x69\x74\x2c\xa\x9\11\x9\x6b\x6f\x6e\164\x65\x6e\137\163\165\142\x5f\x6b\x61\164\145\x67\x6f\162\x69\56\156\141\155\x61\x20\x41\123\40\x73\x75\142\x5f\153\141\164\x65\x67\157\162\x69\54\xa\11\x9\11\x63\157\156\x63\x61\164\x28\40\x27\x68\x74\x74\x70\x73\x3a\57\x2f\153\x75\142\165\153\165\x2e\x69\x64\57\160\162\157\144\57\151\155\x67\x2f\x69\x63\157\x6e\x2f\47\x2c\x20\153\157\156\x74\x65\156\x5f\153\x61\x74\x65\x67\x6f\162\151\56\151\x63\157\156\40\x29\x20\151\x63\157\x6e\x2c\x20\xa\11\x9\x9\x6b\x6f\156\x74\x65\x6e\137\x6b\141\x74\x65\x67\x6f\162\x69\x2e\156\x61\155\x61\x20\101\123\40\153\x61\x74\x65\x67\x6f\x72\x69\54\12\11\11\11\x49\x46\x4e\x55\x4c\x4c\x28\x6b\x6f\x6e\164\145\156\137\160\x65\x6e\x65\x72\x62\151\164\56\156\x61\x6d\x61\x2c\47\x2d\47\x29\40\101\x53\x20\160\x65\156\x65\x72\x62\x69\x74\54\xa\x9\11\11\111\106\116\125\x4c\x4c\x28\x6b\x6f\156\x74\145\x6e\137\x70\145\156\x75\154\151\x73\x2e\156\x61\155\x61\54\47\55\47\51\x20\x41\x53\x20\x70\145\156\165\x6c\x69\163\x2c\12\11\11\x9\x49\x46\116\125\x4c\x4c\x28\x6b\x6f\x6e\x74\145\x6e\x2e\x69\163\x62\x6e\x2c\47\x2d\x27\51\x20\x41\123\x20\x69\x73\x62\x6e\x2c\12\x9\x9\11\x49\106\116\x55\x4c\114\x28\153\x6f\x6e\x74\x65\156\56\x65\151\x73\142\x6e\x2c\x27\x2d\47\x29\x20\x41\x53\x20\x65\x69\163\142\156\54\xa\x9\11\x9\x49\106\116\x55\114\x4c\x28\x6b\157\x6e\164\x65\156\56\163\x69\156\157\160\163\151\x73\54\47\55\x27\x29\40\x61\x73\x20\163\x69\x6e\157\160\x73\151\163\54\12\x9\x9\x9\103\117\x4e\103\x41\x54\50\47\143\157\166\145\x72\x2f\x27\54\153\x6f\x6e\164\x65\x6e\x2e\143\157\166\145\x72\x5f\x66\151\x6c\145\x29\x20\x41\x53\40\140\x63\157\166\x65\162\137\x66\151\154\x65\140\x2c\xa\x9\x9\x9\x6b\x6f\156\164\x65\156\x2e\x63\157\x76\145\x72\137\x66\x69\x6c\x65\40\101\123\40\x60\151\x6d\x67\140\x2c\xa\x9\11\x9\111\106\x4e\125\x4c\114\x28\153\x6f\x6e\x74\145\x6e\x2e\153\145\171\x77\x6f\x72\144\54\47\x2d\x27\51\40\x41\123\40\x60\x6b\x65\171\x77\157\x72\x64\140\54\xa\x9\11\x9\x73\x74\157\153\x2e\x71\x74\x79\x2c\xa\x9\x9\x9\x28\x73\x74\157\153\x2e\x71\x74\x79\x20\x2d\40\151\x66\156\165\154\154\x28\x74\x65\x72\x62\141\x63\141\x2e\x6a\x6d\x6c\x2c\x30\x29\x29\x20\163\151\x73\x61\12\xa\x9\x9\11\x46\122\x4f\x4d\xa\11\11\x9\153\x6f\x6e\164\x65\x6e\12\11\11\11\x4c\x45\106\x54\40\112\x4f\111\116\40\x6b\157\156\x74\145\x6e\x5f\x73\x75\142\137\x6b\141\164\145\x67\x6f\x72\151\xa\x9\x9\x9\117\116\40\153\x6f\x6e\164\145\156\56\151\144\x5f\163\165\142\137\153\141\x74\x65\147\157\162\151\x20\75\40\x6b\157\x6e\x74\x65\x6e\x5f\x73\165\142\x5f\x6b\141\x74\145\147\157\x72\151\x2e\151\x64\40\12\x9\x9\11\114\105\106\x54\40\112\117\x49\116\40\153\x6f\156\x74\x65\156\x5f\x6b\141\164\145\x67\157\x72\151\12\x9\11\11\117\116\x20\x6b\157\156\x74\x65\x6e\137\x73\165\142\137\x6b\141\x74\145\147\157\x72\151\56\x69\144\137\153\x61\x74\x65\x67\157\162\x69\40\x3d\40\153\x6f\156\x74\x65\x6e\137\153\x61\x74\145\x67\x6f\x72\151\x2e\x69\x64\x20\12\x9\11\x9\x4c\x45\x46\x54\x20\x4a\117\111\116\40\x6b\157\156\x74\145\x6e\137\x64\145\x70\141\x72\x74\145\155\145\156\xa\x9\11\x9\117\116\40\153\157\156\x74\145\x6e\137\153\x61\164\x65\x67\x6f\x72\151\x2e\151\x64\x5f\144\145\x70\141\162\x74\145\x6d\x65\x6e\40\x3d\x20\153\157\x6e\164\x65\x6e\137\144\145\x70\x61\162\x74\145\x6d\145\x6e\56\x69\144\x20\12\11\x9\x9\114\x45\106\124\x20\112\x4f\111\x4e\40\153\157\x6e\x74\x65\x6e\x5f\x70\145\x6e\x65\x72\142\151\164\12\x9\x9\x9\117\x4e\40\153\x6f\156\164\x65\156\x2e\x69\144\137\160\x65\x6e\145\162\142\151\164\x20\75\40\x6b\157\x6e\164\x65\x6e\137\x70\x65\x6e\145\162\142\x69\164\56\151\144\x20\xa\11\11\x9\114\105\106\x54\40\x4a\x4f\x49\116\40\x6b\157\x6e\164\x65\156\x5f\x70\145\156\165\154\x69\163\12\11\11\11\117\x4e\x20\x6b\x6f\156\x74\x65\156\x2e\x69\144\137\x70\x65\156\x75\154\x69\163\x20\75\40\x6b\157\156\164\145\156\137\160\145\x6e\x75\x6c\151\x73\56\151\144\12\x9\11\11\114\x45\106\124\40\x6a\x6f\x69\156\40\x28\163\x65\154\145\x63\x74\40\x69\x64\x5f\153\x6f\156\x74\145\x6e\54\40\163\x75\x6d\x28\161\164\x79\51\x20\161\x74\171\40\146\x72\157\155\x20\164\x69\164\x69\x6b\142\x61\x63\141\x5f\x6d\151\164\162\x61\137\154\157\153\141\163\151\137\153\x6f\x6e\164\145\x6e\x20\x77\x68\x65\162\145\40\151\x64\137\153\x6f\x6e\164\145\156\75{$id_konten}\x20\141\x6e\x64\40\151\144\x5f\x6d\x69\x74\x72\141\137\x6c\x6f\x6b\x61\x73\x69\x3d{$id_lokasi}\51\x20\x73\164\157\x6b\x20\x6f\156\x20\163\x74\157\153\56\x69\x64\x5f\153\x6f\156\164\145\x6e\x3d\x6b\157\156\x74\145\156\x2e\151\144\12\11\11\11\x6c\145\146\x74\x20\x6a\157\x69\156\40\50\x73\x65\x6c\x65\143\x74\x20\151\144\x5f\x6b\x6f\x6e\x74\145\156\x5f\x6c\x6f\x6b\x61\163\151\40\x69\x64\137\153\157\156\x74\x65\x6e\54\40\143\x6f\x75\x6e\164\50\x2a\51\x20\152\155\x6c\40\x66\162\x6f\x6d\40\164\x69\164\151\153\142\x61\x63\x61\x5f\164\162\170\137\142\x61\x63\141\40\167\x68\145\x72\x65\x20\151\x64\x5f\x6b\157\x6e\164\x65\156\x5f\x6c\x6f\153\141\x73\x69\75{$id_konten}\x20\x61\x6e\144\x20\151\144\137\155\x69\164\x72\141\137\x6c\x6f\153\x61\163\x69\75{$id_lokasi}\x20\141\156\144\x20\163\164\163\75\x27\x31\47\x29\x20\164\145\162\x62\141\143\x61\40\x6f\x6e\40\164\145\162\142\x61\143\x61\x2e\x69\144\x5f\x6b\x6f\156\x74\x65\x6e\40\x3d\40\x6b\x6f\x6e\x74\x65\156\56\x69\144\12\12\11\x9\x9\127\110\105\122\x45\xa\11\x9\x9\153\157\x6e\x74\145\x6e\56\x73\x74\163\40\x3d\x20\47\61\47\40\101\116\104\x20\12\11\11\x9\x6b\x6f\156\x74\145\x6e\x2e\x69\144\75\x20{$id_konten}\40"; $stmt2 = $this->db->prepare($q); $stmt2->execute(); if ($stmt2->rowCount() > 0) { $data = $stmt2->fetch(); $data["\x74\x6f\x6b\145\x6e"] = $token; $data["\x69\x64\137\154\x6f\153\x61\163\151"] = $id_lokasi; $q = "\163\x65\x6c\145\143\164\40\x6e\x61\x6d\141\x2c\40\x6c\157\147\157\x9\40\x66\x72\157\x6d\x20\x74\151\164\151\x6b\x62\x61\x63\141\137\160\x65\156\171\x75\155\x62\141\156\147\x20\167\150\x65\x72\145\40\x69\144\x20\151\156\40\x28\163\x65\154\145\143\x74\40\151\144\x5f\160\x65\x6e\171\165\x6d\x62\141\156\x67\x20\x66\162\x6f\155\x20\x74\x69\x74\151\x6b\x62\141\x63\141\137\x6d\x69\x74\x72\x61\137\x6c\x6f\x6b\x61\163\151\137\x6b\157\156\x74\x65\x6e\x20\167\150\145\x72\145\x20\151\144\137\153\157\156\x74\145\x6e\75{$id_konten}\40\x61\x6e\144\x20\x69\x64\x5f\x6d\151\x74\162\x61\x5f\154\157\153\141\x73\x69\x3d\47{$id_lokasi}\47\x20\x61\x6e\144\x20\164\151\x74\x69\x6b\142\x61\143\141\x5f\x6d\x69\164\162\x61\137\154\x6f\x6b\x61\163\x69\137\x6b\x6f\x6e\x74\145\x6e\56\x73\x74\163\75\x27\x31\x27\51"; $stmt = $this->db->prepare($q); $stmt->execute(); $data["\x70\145\x6e\x79\165\x6d\142\141\156\x67"] = $stmt->fetchAll(); $q = "\12\x9\x9\11\11\123\x45\114\105\x43\124\12\11\x9\x9\x9\153\157\156\x74\x65\x6e\x2e\x69\x64\54\12\x9\11\11\x9\153\157\x6e\x74\x65\156\56\153\157\x64\145\x2c\12\x9\11\11\11\x6b\x6f\x6e\x74\x65\x6e\56\152\165\x64\165\x6c\x2c\xa\11\x9\11\11\x49\x46\x4e\125\x4c\114\50\153\157\156\x74\x65\156\x2e\x74\141\x68\165\x6e\137\x74\x65\162\x62\151\164\54\47\55\x27\x29\40\x74\x61\x68\x75\x6e\137\164\145\x72\142\x69\164\54\12\x9\x9\x9\x9\153\157\x6e\x74\145\156\137\163\x75\x62\137\x6b\141\x74\145\147\157\x72\x69\56\156\141\155\141\x20\101\123\x20\x73\165\x62\137\x6b\x61\x74\145\x67\157\x72\151\x2c\xa\x9\11\11\x9\143\157\x6e\x63\x61\164\50\x20\47\x68\164\x74\x70\x73\x3a\57\x2f\153\165\x62\165\x6b\x75\x2e\x69\144\57\160\162\x6f\144\57\151\155\x67\x2f\151\x63\157\156\57\x27\54\40\153\157\x6e\164\x65\156\x5f\153\x61\x74\145\x67\157\162\151\56\151\143\157\156\x20\51\x20\151\x63\x6f\156\54\x20\12\11\11\11\x9\153\157\x6e\164\x65\x6e\137\153\141\x74\x65\147\157\x72\x69\x2e\156\141\x6d\x61\x20\x41\123\x20\153\141\164\x65\147\157\162\x69\54\xa\11\x9\11\x9\x49\x46\x4e\125\114\114\50\153\x6f\156\164\145\156\x5f\x70\x65\156\145\x72\x62\x69\x74\56\x6e\141\155\x61\x2c\x27\x2d\47\51\40\101\123\x20\160\145\156\x65\x72\x62\151\x74\x2c\xa\x9\11\11\11\x49\106\x4e\125\114\x4c\x28\153\157\x6e\164\145\x6e\x5f\160\145\156\x75\x6c\x69\x73\56\156\x61\x6d\141\x2c\47\55\x27\x29\x20\101\123\x20\160\145\156\165\x6c\151\x73\54\12\11\x9\x9\11\111\x46\x4e\125\114\x4c\50\x6b\157\x6e\x74\145\156\56\151\x73\x62\x6e\x2c\x27\x2d\47\51\x20\101\123\x20\151\163\x62\156\x2c\12\x9\11\x9\x9\x49\x46\116\x55\x4c\x4c\50\x6b\157\x6e\164\x65\x6e\56\x65\x69\163\x62\x6e\x2c\47\x2d\47\51\40\x41\x53\40\x65\x69\x73\x62\x6e\54\12\11\x9\x9\x9\x49\106\116\125\x4c\x4c\x28\x6b\157\156\x74\145\x6e\56\x73\151\x6e\157\160\163\x69\x73\54\x27\x2d\47\x29\x20\x61\163\x20\x73\151\x6e\157\160\163\x69\x73\x2c\12\11\11\x9\11\103\117\x4e\x43\x41\x54\x28\x27\143\x6f\x76\x65\162\57\x27\54\x6b\157\x6e\x74\x65\156\56\143\157\x76\x65\x72\x5f\x66\151\154\145\51\x20\x41\x53\x20\x60\143\157\166\145\162\x5f\x66\151\x6c\145\x60\x2c\12\11\x9\11\x9\153\157\x6e\164\145\156\56\143\x6f\166\x65\162\137\x66\x69\x6c\145\x20\x41\x53\40\140\x69\x6d\x67\140\54\12\11\11\x9\x9\111\106\116\125\x4c\x4c\50\x6b\x6f\x6e\164\x65\156\56\153\145\x79\x77\157\x72\144\54\47\x2d\x27\x29\40\101\x53\40\140\x6b\145\171\167\157\x72\x64\140\x2c\xa\11\x9\11\11\x74\x69\164\151\153\137\x62\x61\x63\x61\x2e\161\164\171\40\161\164\x79\54\12\x9\11\11\11\x74\x69\164\151\x6b\137\142\141\143\141\x2e\x70\162\157\x6d\x6f\164\145\x64\54\12\11\11\x9\11\x74\151\164\151\x6b\x5f\x62\141\x63\141\x2e\x61\154\151\x61\163\54\12\11\x9\11\x9\50\163\x75\x6d\x28\164\x69\164\151\x6b\x5f\142\141\143\x61\x2e\161\x74\x79\x29\51\x20\x74\145\x72\x70\141\x6b\141\151\x2c\xa\x9\11\11\x9\106\122\x4f\x4d\12\x9\11\11\11\153\x6f\156\164\145\156\xa\11\11\x9\11\111\x4e\x4e\x45\x52\x20\112\117\111\x4e\40\153\157\156\164\x65\x6e\137\163\x75\142\x5f\x6b\141\x74\145\147\157\x72\x69\12\x9\11\x9\11\117\116\40\153\x6f\156\x74\145\x6e\56\x69\x64\137\x73\165\142\137\153\141\x74\x65\147\157\162\x69\40\75\40\x6b\157\156\164\x65\x6e\x5f\163\x75\142\137\x6b\141\x74\x65\147\157\162\151\x2e\151\x64\x20\12\x9\11\11\x9\x49\x4e\116\105\x52\40\112\x4f\111\x4e\40\153\x6f\156\164\x65\156\137\x6b\141\x74\145\147\x6f\162\151\12\x9\x9\11\x9\x4f\116\x20\153\x6f\156\164\x65\x6e\x5f\163\165\142\137\153\x61\x74\145\x67\x6f\162\x69\x2e\x69\x64\137\153\x61\x74\x65\x67\x6f\162\x69\x20\x3d\40\153\157\x6e\164\145\x6e\137\x6b\x61\x74\145\147\x6f\x72\151\x2e\151\144\40\xa\x9\x9\x9\x9\x49\116\116\x45\122\x20\x4a\117\111\116\x20\x6b\157\x6e\x74\x65\x6e\x5f\x64\x65\x70\141\x72\x74\x65\x6d\145\x6e\12\x9\x9\11\x9\x4f\x4e\x20\x6b\x6f\156\164\145\x6e\x5f\x6b\x61\164\145\x67\157\162\x69\56\151\144\x5f\x64\145\160\x61\162\164\x65\x6d\x65\x6e\40\x3d\x20\153\x6f\x6e\x74\145\x6e\137\144\x65\x70\x61\x72\164\x65\x6d\x65\x6e\x2e\151\x64\x20\12\11\x9\x9\11\x49\x4e\116\x45\122\x20\x4a\117\111\x4e\40\x6b\157\156\x74\145\x6e\x5f\160\x65\156\145\x72\x62\x69\164\xa\x9\x9\x9\x9\117\x4e\40\x6b\157\x6e\164\x65\156\x2e\151\x64\x5f\x70\x65\156\145\162\x62\x69\164\40\75\40\x6b\157\156\x74\x65\x6e\x5f\160\145\156\x65\x72\x62\x69\164\56\151\144\x20\12\11\11\x9\11\111\116\x4e\x45\122\x20\112\117\111\x4e\x20\153\157\156\x74\x65\x6e\137\x70\x65\x6e\165\154\151\x73\12\x9\x9\x9\11\x4f\116\x20\153\x6f\156\x74\x65\156\56\151\144\137\160\145\156\165\154\x69\x73\x20\x3d\x20\153\x6f\156\x74\x65\156\137\x70\145\x6e\x75\154\x69\x73\56\x69\144\xa\x9\11\x9\11\151\156\x6e\x65\x72\x20\152\157\151\156\x20\x28\163\145\154\x65\x63\164\x20\x9\164\x69\x74\151\153\x62\x61\x63\141\137\155\151\x74\x72\x61\x5f\x6c\x6f\153\141\x73\x69\137\153\x6f\156\164\145\156\x2e\x69\144\137\x6b\x6f\156\164\x65\x6e\54\x20\164\x69\x74\151\x6b\x62\x61\143\141\137\155\x69\164\162\141\x5f\x6c\x6f\153\x61\x73\151\x5f\153\157\x6e\x74\145\x6e\56\x71\x74\x79\x2c\x20\x74\151\x74\151\x6b\142\x61\x63\x61\x5f\x6d\x69\164\x72\x61\x5f\x6c\157\x6b\141\x73\x69\137\x6b\157\156\x74\x65\156\56\160\162\157\155\x6f\x74\145\144\54\40\164\x69\164\151\153\x62\x61\143\141\x5f\x6d\x69\164\162\141\x5f\154\x6f\x6b\x61\163\151\137\153\157\156\164\x65\156\x2e\141\x6c\x69\x61\x73\40\x66\162\x6f\155\x20\12\11\x9\11\x9\x74\151\x74\151\x6b\142\x61\143\x61\x5f\x6d\151\x74\x72\x61\x5f\154\x6f\x6b\x61\163\151\40\12\x9\11\x9\11\x6c\145\146\x74\x20\x6a\x6f\x69\156\40\164\x69\164\x69\153\x62\x61\143\141\x5f\155\151\x74\162\x61\137\154\x6f\x6b\x61\163\x69\x5f\153\x6f\156\x74\145\156\x20\157\156\40\x74\151\x74\x69\153\142\x61\143\141\137\155\x69\164\162\141\137\154\157\153\141\x73\151\x5f\x6b\x6f\x6e\x74\x65\x6e\56\151\x64\137\155\x69\x74\x72\x61\137\x6c\x6f\153\x61\x73\151\x20\x3d\x20\164\151\164\x69\x6b\142\141\143\x61\x5f\x6d\x69\x74\x72\x61\137\x6c\157\153\141\163\x69\x2e\151\x64\xa\11\11\x9\x9\167\x68\x65\162\x65\x20\x74\151\164\x69\x6b\x62\x61\143\141\x5f\x6d\151\x74\x72\x61\137\x6c\x6f\153\141\x73\x69\56\151\144\x3d{$id_lokasi}\40\141\x6e\144\x20\x74\x69\x74\x69\153\142\141\143\x61\x5f\155\x69\x74\162\x61\x5f\x6c\x6f\x6b\x61\x73\x69\137\x6b\157\156\164\145\156\56\x73\x74\163\x3d\47\x31\x27\x29\40\164\151\164\x69\x6b\x5f\x62\x61\143\141\40\157\156\40\x74\x69\x74\x69\x6b\137\x62\x61\x63\x61\x2e\151\144\x5f\x6b\x6f\156\164\x65\156\40\x3d\x20\153\157\156\164\145\156\x2e\x69\144\xa\x9\x9\11\x9\154\x65\x66\x74\x20\152\157\x69\156\x20\x28\163\x65\x6c\x65\143\x74\x20\151\144\137\x6b\x6f\x6e\164\x65\x6e\137\154\x6f\x6b\141\163\x69\54\x20\143\x6f\165\156\x74\50\52\51\x20\164\x65\x72\x62\x61\143\141\x20\146\162\157\x6d\40\x74\x69\x74\x69\153\142\141\x63\x61\x5f\x74\x72\x78\x5f\x62\141\143\x61\40\167\150\145\x72\x65\x20\163\x74\163\75\x31\x20\147\x72\x6f\165\160\40\x62\x79\40\151\144\137\153\157\x6e\164\145\x6e\137\154\157\153\141\x73\151\x29\40\x74\x69\x74\151\153\x62\x61\143\141\137\x74\x72\x78\x5f\x62\x61\x63\x61\x20\x6f\156\40\164\x69\x74\x69\x6b\x62\141\143\x61\137\164\x72\170\x5f\142\141\143\x61\x2e\151\x64\137\x6b\x6f\x6e\164\x65\x6e\x5f\x6c\x6f\x6b\x61\x73\151\40\75\40\164\151\164\151\153\137\142\x61\x63\141\x2e\x69\x64\137\153\x6f\156\164\x65\156\xa\x9\x9\11\11\127\x48\x45\122\x45\xa\x9\x9\x9\11\x6b\157\x6e\x74\x65\156\x2e\163\x74\163\40\75\40\47\61\x27\x20\101\x4e\x44\x20\xa\x9\x9\x9\11\153\157\x6e\x74\145\156\56\151\x64\40\x69\156\xa\x9\x9\x9\11\50\xa\11\x9\11\11\11\x73\x65\x6c\x65\x63\x74\x20\x69\x64\137\x6b\157\156\x74\145\156\40\xa\11\11\x9\11\11\x66\x72\157\155\x20\x74\x69\164\x69\153\x62\141\143\x61\x5f\x6d\x69\164\x72\x61\137\x6c\157\x6b\141\163\x69\x5f\x6b\157\x6e\x74\145\156\40\xa\11\11\x9\x9\x9\x77\x68\145\x72\145\40\151\144\137\x6d\x69\x74\162\x61\137\x6c\x6f\153\141\x73\151\75\x27{$id_lokasi}\47\x20\x61\156\x64\40\x69\144\x5f\153\x6f\156\164\145\156\40\41\x3d\x27{$id_konten}\47\x20\141\x6e\144\x20\x74\x69\x74\151\x6b\x62\x61\143\x61\x5f\x6d\x69\164\x72\x61\x5f\154\x6f\153\141\163\151\137\x6b\x6f\x6e\x74\145\156\56\163\x74\163\x3d\x27\x31\47\xa\11\11\11\11\x29\12\11\x9\x9\11\x6f\x72\144\145\x72\x20\x62\171\x20\162\x61\156\x64\50\51\12\x9\11\11\11\x6c\151\155\x69\164\40\x36\xa\x9\11\x9\x9"; $data["\162\x65\x6b\157\155\x65\156\x64\x61\163\151"] = array(); $stmt->fetchAll(); return echoResponse($response, $data, 200); } } else { $result["\x63\157\x64\x65"] = "\x34\60\x30"; $result["\x6d\163\147"] = "\x4a\165\x64\x75\154\x20\x74\x69\144\x61\x6b\40\x64\x69\x20\x74\145\x6d\165\153\141\156\x2e"; return echoResponse($response, $result, 200); } } else { $result["\x63\x6f\x64\145"] = "\64\x30\64"; $result["\155\163\147"] = "\x68\x70\x20\x6f\156\x6c\x79"; return echoResponse($response, $result, 200); } }); goto IwGbo; KfBwV: define("\x4c\x4f\107\x49\x4e\x5f\x45\x52\x52\x4f\x52", 401); goto JWXK3; uRAj4: $app->post("\x2f\x74\x69\164\x69\x6b\102\141\143\x61\122\x65\153\157\155\145\x6e\x64\141\x73\x69\57\x7b\x74\x6f\153\145\156\175", function ($request, $response, $args) { $mob = isMobile(); if ($mob) { $token = $args["\x74\157\153\x65\x6e"]; $input = $request->getParsedBody(); $latitudeFrom = $input["\x6c\x61\164\x69\x74\165\144\x65"]; $longitudeFrom = $input["\x6c\x6f\x6e\147\151\164\165\144\145"]; $altitude = $input["\141\x6c\x74\151\x74\165\144\x65"]; $info = $input["\151\156\146\x6f"]; $halaman = $input["\x68\x61\x6c"]; if (!$halaman) { $halaman = 1; } $isMobile = $input["\x69\163\115\x6f\x62\x69\154\x65"]; $ipAddress = $_SERVER["\122\x45\x4d\117\x54\x45\x5f\101\104\104\122"]; $limit = 6; $q = "\x73\145\x6c\x65\143\164\x20\x6c\157\x6e\147\151\x74\165\x64\x65\54\x20\x6c\141\164\151\164\165\x64\145\54\40\162\141\144\151\x75\163\114\x6f\156\147\114\x61\164\54\40\141\x6c\x74\151\164\165\x64\x65\54\40\156\141\x6d\141\54\40\151\144\x20\146\162\x6f\155\40\164\x69\x74\x69\x6b\142\141\x63\x61\137\155\151\x74\162\141\137\154\157\x6b\141\x73\x69\40\x77\150\x65\x72\145\40\141\154\151\141\x73\x3d\72\141\154\151\141\163\x20\x61\x6e\x64\40\x73\164\x73\x3d\47\61\47"; $stmt = $this->db->prepare($q); $stmt->bindParam("\x3a\x61\x6c\x69\x61\163", $token); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["\x6c\157\156\147\x69\164\x75\x64\145"]; $latitudeTo = $row["\154\x61\164\x69\164\165\144\x65"]; $radius = $row["\162\141\x64\x69\165\163\114\x6f\156\x67\114\141\x74"]; $result["\156\141\155\x61\x5f\x6c\x6f\x6b\x61\x73\151"] = $row["\x6e\x61\x6d\141"]; $id_lokasi = $row["\151\x64"]; $id_user = $request->getHeaderLine("\110\124\x54\120\x5f\125\125\111\104"); $distance = 0; if ($distance <= $radius) { $q = "\x53\x45\114\105\103\x54\12\40\x20\x20\40\40\40\40\x20\x20\40\x20\x20\153\157\156\164\x65\156\x2e\x69\x64\54\12\x20\40\40\40\x20\40\40\x20\40\x20\40\40\x6b\x6f\x6e\164\145\156\56\x6b\157\144\x65\x2c\xa\x20\x20\x20\x20\40\x20\40\x20\40\40\40\x20\153\x6f\x6e\164\145\x6e\x2e\x6a\x75\x64\165\154\54\12\x20\40\40\x20\x20\40\40\x20\40\x20\x20\x20\111\x46\x4e\x55\x4c\114\50\x6b\x6f\156\x74\145\156\x2e\164\141\x68\165\x6e\137\164\145\x72\142\x69\164\54\47\55\47\x29\40\x74\x61\150\165\156\137\164\145\x72\142\151\x74\x2c\12\x20\x20\x20\40\40\x20\40\40\40\x20\x20\x20\x6b\x6f\156\164\145\156\x5f\163\x75\142\137\x6b\x61\164\x65\147\157\162\151\56\x69\x64\x20\101\123\x20\x69\x64\137\163\165\142\x5f\x6b\141\x74\145\147\157\x72\151\x2c\xa\x20\x20\x20\40\40\x20\40\x20\x20\x20\40\x20\153\x6f\x6e\x74\145\156\137\x73\x75\x62\x5f\x6b\141\x74\145\147\157\162\151\x2e\x6e\141\155\x61\40\x41\x53\40\x73\x75\142\137\x6b\x61\164\145\147\x6f\162\x69\x2c\12\40\x20\x20\x20\40\x20\40\40\40\40\x20\40\143\x6f\x6e\x63\141\164\50\40\x27\x68\164\x74\160\163\x3a\x2f\57\x6b\x75\142\x75\153\x75\x2e\x69\x64\x2f\x70\162\x6f\144\x2f\151\x6d\x67\57\151\143\x6f\156\57\x27\54\x20\153\x6f\156\164\145\156\137\x6b\141\164\145\x67\x6f\x72\151\56\x69\143\x6f\156\40\51\x20\x69\x63\x6f\156\x2c\40\12\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\153\157\x6e\x74\x65\156\137\153\x61\x74\145\x67\157\x72\151\56\x69\144\40\x41\123\x20\x69\x64\x5f\x6b\141\164\145\x67\x6f\162\151\x2c\12\x20\x20\x20\40\40\40\x20\x20\40\x20\x20\40\x6b\x6f\156\x74\145\x6e\137\153\x61\x74\x65\x67\157\x72\x69\x2e\x6e\x61\x6d\x61\40\x41\x53\40\x6b\x61\x74\x65\x67\x6f\x72\151\54\xa\x20\40\x20\x20\x20\40\x20\40\x20\x20\x20\x20\111\106\116\125\x4c\x4c\x28\x6b\x6f\156\164\x65\156\137\160\145\x6e\145\x72\x62\x69\x74\x2e\156\x61\155\x61\x2c\x27\x2d\47\51\40\x41\x53\x20\x70\x65\x6e\x65\162\142\151\x74\x2c\12\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\x49\106\116\125\x4c\x4c\50\153\157\x6e\x74\x65\x6e\x5f\x70\145\x6e\165\x6c\151\163\x2e\x6e\x61\x6d\141\x2c\47\55\47\x29\40\x41\123\x20\x70\x65\x6e\165\x6c\151\163\54\xa\x20\40\x20\40\x20\40\40\40\40\x20\40\x20\x49\106\116\x55\x4c\x4c\50\x6b\x6f\156\x74\x65\x6e\56\x69\x73\142\156\x2c\47\55\47\x29\x20\101\x53\40\151\x73\x62\x6e\54\xa\40\x20\40\40\40\40\40\x20\x20\x20\x20\40\x49\x46\116\x55\114\114\x28\x6b\157\156\164\x65\156\56\x65\151\x73\142\156\x2c\47\x2d\47\51\40\101\123\40\145\x69\x73\x62\156\x2c\xa\x20\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\111\x46\116\x55\114\114\x28\153\157\156\x74\x65\156\56\163\151\156\157\160\163\x69\x73\54\47\x2d\x27\51\x20\x61\163\x20\163\x69\156\x6f\160\x73\151\x73\x2c\xa\x20\40\40\x20\40\40\x20\40\40\40\x20\40\x43\x4f\x4e\103\x41\124\50\47\x63\x6f\166\145\x72\57\47\x2c\153\x6f\156\x74\x65\x6e\x2e\x63\x6f\x76\145\x72\137\146\151\x6c\145\x29\x20\101\x53\x20\x60\143\x6f\166\x65\x72\137\146\x69\x6c\145\140\54\xa\x20\40\x20\40\40\x20\40\40\40\40\x20\x20\x6b\x6f\156\164\145\156\x2e\143\157\x76\145\162\x5f\x66\151\154\x65\40\x41\x53\x20\x60\151\x6d\147\140\54\12\40\x20\x20\40\40\x20\40\40\x20\40\x20\40\x49\x46\116\x55\x4c\114\50\153\x6f\156\164\x65\156\x2e\153\145\x79\x77\157\162\x64\54\x27\x2d\x27\51\40\101\123\x20\140\x6b\145\x79\x77\157\162\144\x60\x2c\12\40\x20\40\x20\40\x20\x20\x20\40\40\x20\x20\x73\165\x6d\50\164\151\x74\x69\153\x5f\142\141\x63\141\56\161\164\171\x29\x20\x71\x74\x79\x2c\12\40\x20\x20\x20\x20\40\x20\40\x20\x20\40\40\164\151\164\151\x6b\137\x62\x61\x63\x61\56\x70\x72\x6f\155\157\x74\x65\144\x2c\xa\x20\40\x20\40\40\40\x20\40\x20\40\40\x20\x74\151\164\151\x6b\x5f\x62\x61\143\141\x2e\141\x6c\x69\141\163\x2c\12\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x20\40\x74\x69\164\151\x6b\137\142\x61\x63\x61\x2e\160\x65\x6e\171\165\155\142\141\156\x67\54\12\x20\x20\x20\40\40\x20\40\x20\40\40\40\40\147\162\157\165\x70\x5f\143\157\156\143\141\164\x28\164\x69\x74\151\x6b\x5f\x62\141\x63\x61\x2e\x69\x64\137\x70\x65\x6e\171\165\x6d\x62\x61\x6e\x67\51\40\151\144\x5f\160\x65\156\171\165\155\x62\x61\156\147\x2c\12\x20\40\x20\40\40\40\x20\40\x20\40\x20\40\50\x73\165\155\50\x74\x69\x74\151\x6b\x5f\x62\x61\x63\141\x2e\161\164\x79\x29\x29\40\164\x65\162\x70\x61\x6b\141\151\54\12\x20\x20\x20\40\x20\40\40\40\40\40\40\x20\141\x6e\x64\162\157\x69\x64\x5f\x66\x69\154\x65\12\40\x20\x20\x20\x20\x20\x20\x20\40\40\40\x20\12\40\x20\40\x20\x20\40\40\x20\40\40\x20\x20\106\122\x4f\115\12\x20\40\40\x20\40\40\x20\40\40\40\40\40\153\x6f\156\x74\x65\156\xa\x20\x20\40\40\x20\x20\x20\40\x20\x20\x20\x20\114\x45\x46\124\40\x4a\117\x49\116\40\153\x6f\156\164\145\156\x5f\x73\165\142\137\153\141\164\x65\x67\157\162\x69\xa\40\40\40\40\40\x20\40\x20\40\40\40\x20\x4f\x4e\40\x6b\x6f\156\x74\145\156\x2e\x69\144\137\x73\x75\142\x5f\153\141\x74\x65\x67\x6f\162\x69\40\x3d\x20\x6b\x6f\x6e\x74\145\x6e\137\x73\165\x62\x5f\153\141\x74\145\147\x6f\162\151\x2e\x69\x64\40\xa\40\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x20\114\105\x46\124\40\112\x4f\111\x4e\40\x6b\157\x6e\x74\x65\x6e\x5f\x6b\141\164\x65\x67\x6f\x72\151\xa\x20\x20\x20\x20\40\40\40\40\40\x20\x20\40\x4f\x4e\x20\153\157\x6e\x74\x65\x6e\137\x73\x75\142\137\x6b\x61\164\x65\147\x6f\x72\151\56\x69\144\x5f\x6b\141\x74\x65\x67\x6f\162\151\40\75\40\x6b\157\156\x74\x65\156\x5f\x6b\x61\x74\145\147\x6f\162\x69\x2e\x69\x64\x20\12\40\x20\40\40\x20\40\x20\40\40\40\40\40\114\105\x46\x54\x20\112\117\x49\x4e\x20\153\157\x6e\164\x65\156\x5f\x64\x65\x70\141\162\164\x65\155\x65\x6e\xa\40\x20\x20\40\40\40\40\40\x20\40\40\x20\x4f\x4e\40\x6b\157\x6e\x74\145\156\137\x6b\x61\164\145\147\157\x72\x69\56\151\144\137\144\145\160\x61\x72\164\145\x6d\x65\156\x20\x3d\40\x6b\157\156\x74\145\156\x5f\144\x65\x70\141\162\164\x65\x6d\x65\156\56\x69\x64\40\xa\x20\x20\40\40\x20\40\x20\x20\x20\40\x20\40\x4c\x45\106\124\x20\x4a\x4f\x49\116\40\x6b\x6f\156\x74\145\156\x5f\160\x65\x6e\x65\162\x62\151\164\12\40\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\117\x4e\40\153\x6f\156\x74\145\156\56\x69\x64\137\160\145\x6e\145\x72\x62\151\x74\x20\x3d\x20\153\157\x6e\x74\x65\x6e\x5f\x70\145\x6e\x65\x72\142\x69\x74\x2e\x69\144\40\xa\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\40\114\105\106\124\x20\x4a\117\x49\116\40\153\x6f\x6e\164\145\156\137\160\x65\x6e\165\154\x69\163\xa\x20\40\x20\40\x20\x20\x20\x20\40\x20\40\40\x4f\116\x20\x6b\x6f\156\x74\145\x6e\56\x69\144\137\x70\x65\156\165\154\x69\x73\x20\75\40\x6b\x6f\156\164\145\x6e\x5f\160\x65\156\x75\154\x69\163\x2e\151\144\12\40\x20\40\x20\40\40\40\40\x20\x20\40\x20\x4c\x45\x46\124\x20\152\x6f\151\x6e\40\50\x73\145\x6c\x65\x63\x74\40\x74\151\x74\151\153\142\x61\143\x61\137\160\x65\x6e\171\x75\x6d\142\141\156\147\56\x69\x64\x20\151\x64\x5f\x70\x65\156\171\x75\x6d\142\x61\x6e\147\x2c\x20\164\x69\x74\x69\153\x62\141\x63\x61\137\x70\x65\156\171\165\x6d\x62\141\156\147\56\156\141\x6d\x61\x20\x70\x65\x6e\x79\165\155\x62\x61\x6e\x67\54\x9\x74\x69\164\151\x6b\142\x61\x63\x61\x5f\155\151\x74\162\x61\137\x6c\x6f\x6b\x61\x73\x69\137\153\x6f\x6e\x74\x65\x6e\56\x69\144\x5f\153\x6f\156\164\145\x6e\54\x20\164\x69\164\151\153\142\x61\x63\x61\137\155\x69\164\162\141\137\x6c\x6f\153\x61\x73\x69\137\153\157\x6e\x74\145\x6e\x2e\161\164\171\x2c\x20\x74\151\164\151\x6b\142\x61\x63\x61\x5f\155\x69\x74\162\x61\137\154\157\153\141\163\x69\137\153\157\x6e\164\x65\156\56\160\x72\x6f\x6d\x6f\x74\145\x64\54\x20\164\x69\164\x69\153\x62\141\x63\x61\x5f\155\151\164\162\x61\x5f\x6c\x6f\153\141\163\x69\137\x6b\x6f\156\164\x65\156\56\141\x6c\151\141\x73\x20\146\x72\x6f\155\40\12\x20\x20\40\40\40\x20\40\x20\x20\x20\x20\x20\164\151\x74\x69\153\x62\141\x63\x61\137\x6d\x69\x74\162\141\x5f\x6c\x6f\x6b\x61\163\x69\x20\xa\40\40\40\40\x20\x20\x20\40\40\40\x20\40\x4c\x45\106\124\x20\152\157\151\156\x20\x74\151\x74\151\x6b\x62\x61\143\141\137\155\x69\164\x72\x61\x5f\x6c\x6f\153\141\163\x69\137\153\x6f\156\164\x65\156\40\x6f\x6e\x20\164\151\x74\x69\x6b\142\x61\x63\x61\x5f\155\151\x74\x72\141\137\154\157\x6b\141\163\151\137\153\x6f\156\164\x65\x6e\56\151\x64\x5f\155\x69\x74\162\141\x5f\154\x6f\153\x61\x73\x69\40\75\164\x69\x74\151\x6b\x62\141\143\141\137\155\151\x74\x72\x61\x5f\154\157\153\x61\x73\151\56\151\x64\x20\141\156\144\40\164\151\x74\x69\x6b\142\x61\143\141\137\x6d\151\164\162\x61\137\x6c\157\153\x61\x73\151\x5f\x6b\157\156\164\x65\x6e\56\163\164\x73\x3d\x27\x31\x27\xa\x20\x20\40\x20\40\40\x20\40\x20\x20\40\40\x6c\x65\146\x74\x20\152\x6f\151\x6e\40\164\x69\164\151\x6b\142\x61\143\x61\x5f\160\x65\156\171\x75\155\142\141\156\x67\x20\157\x6e\40\164\151\164\x69\153\142\x61\x63\x61\137\160\x65\156\x79\165\155\x62\141\x6e\x67\x2e\151\x64\x20\x3d\x20\151\144\137\160\x65\156\171\165\155\142\141\x6e\147\12\x20\x20\x20\40\40\x20\40\x20\40\40\40\40\167\150\145\x72\145\40\x74\151\x74\x69\153\142\x61\143\x61\x5f\155\x69\164\162\141\137\x6c\157\x6b\x61\163\151\56\x61\154\151\141\163\x3d\x3a\141\154\x69\x61\163\51\40\x74\151\x74\x69\x6b\137\x62\x61\x63\x61\x20\x6f\x6e\x20\164\x69\164\x69\x6b\137\x62\141\x63\141\x2e\151\x64\137\153\157\156\164\145\156\x20\75\40\153\x6f\x6e\164\x65\x6e\56\x69\x64\12\40\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\154\145\x66\x74\x20\152\x6f\x69\x6e\x20\x28\163\145\x6c\145\143\164\x20\x69\x64\137\153\157\156\x74\145\x6e\137\154\x6f\x6b\x61\x73\x69\x2c\x20\x63\x6f\x75\156\x74\x28\x2a\51\40\164\145\x72\142\141\x63\x61\x20\146\162\x6f\155\40\164\151\164\x69\153\x62\x61\143\x61\137\x74\x72\x78\137\142\141\143\141\40\167\x68\145\162\145\x20\x73\x74\x73\x3d\61\x20\147\162\157\x75\x70\x20\142\171\x20\x69\x64\x5f\x6b\157\156\x74\x65\x6e\x5f\x6c\x6f\x6b\141\163\151\x29\x20\164\x69\x74\151\x6b\x62\141\x63\x61\x5f\x74\x72\x78\x5f\x62\141\143\141\40\157\x6e\40\x74\x69\x74\151\153\142\x61\143\141\x5f\164\162\x78\x5f\x62\x61\x63\141\x2e\151\x64\x5f\x6b\x6f\x6e\164\145\x6e\x5f\154\157\x6b\x61\x73\x69\40\75\x20\x74\151\164\151\x6b\137\x62\x61\143\x61\56\x69\x64\x5f\x6b\x6f\156\x74\145\156\12\xa\40\x20\40\x20\40\x20\40\x20\40\x20\x20\x20\127\x48\x45\122\105\12\x20\40\x20\x20\40\x20\40\40\40\40\40\x20\x6b\157\156\x74\145\156\56\x73\164\x73\x20\75\x20\x27\61\x27\xa\x20\40\40\40\x20\x20\x20\40\40\40\x20\x20\12\40\x20\40\40\x20\40\x20\40\40\x20\x20\40\x67\x72\x6f\165\160\40\x62\x79\x20\x6b\157\156\x74\x65\x6e\x2e\x69\144\x2c\40\xa\11\11\11\11\11\x9\x6b\157\156\x74\145\x6e\x2e\x6b\157\144\145\x2c\xa\x20\x20\x20\40\x20\40\40\40\x20\x20\40\x20\x9\x9\11\x6b\157\x6e\164\145\x6e\x2e\152\165\x64\x75\x6c\x2c\xa\11\x9\x9\x9\11\x9\164\x61\150\x75\x6e\x5f\x74\145\x72\142\x69\x74\x2c\12\x9\x9\x9\x9\x9\x9\x69\x64\x5f\x73\x75\x62\x5f\153\141\164\145\147\x6f\162\x69\54\12\11\11\11\x9\11\11\163\x75\x62\137\153\x61\x74\x65\x67\157\162\151\x2c\xa\11\x9\11\11\x9\11\151\143\x6f\x6e\x2c\xa\11\x9\x9\x9\11\11\x69\x64\x5f\x6b\x61\x74\145\147\x6f\162\151\54\xa\x9\11\11\x9\11\x9\x6b\x61\164\x65\147\157\162\x69\54\xa\11\x9\11\x9\x9\11\x70\x65\156\145\x72\x62\x69\164\x2c\12\x9\x9\11\x9\11\x9\160\x65\156\x75\x6c\151\163\x2c\12\11\x9\x9\x9\11\x9\151\163\x62\x6e\x2c\12\x9\x9\x9\11\11\x9\x65\151\x73\x62\x6e\x2c\xa\11\x9\x9\11\x9\11\163\x69\156\157\160\163\x69\x73\x2c\12\x9\x9\x9\x9\11\x9\x63\157\166\145\162\x5f\146\x69\x6c\145\x2c\12\11\11\11\11\11\11\x69\155\x67\x2c\xa\x9\x9\x9\11\x9\x9\x6b\x65\171\167\x6f\x72\144\x2c\12\x9\x9\x9\11\11\x9\161\x74\x79\54\xa\11\x9\x9\x9\11\11\160\x72\x6f\155\157\x74\x65\144\x2c\12\x9\11\x9\x9\x9\x9\141\154\151\141\x73\x2c\xa\11\x9\11\x9\11\11\160\x65\x6e\x79\x75\x6d\x62\141\156\x67\54\xa\x9\11\x9\x9\11\11\151\x64\137\160\145\156\171\x75\155\x62\x61\x6e\147\x2c\12\11\11\x9\11\x9\x9\141\156\x64\x72\157\151\144\137\146\151\x6c\145\xa\40\x20\x20\40\x20\x20\40\x20\40\x20\40\x20\157\162\144\145\x72\40\142\x79\40\x70\162\157\155\x6f\164\145\144\x20\x64\145\x73\143\54\x20\x72\141\x6e\x64\x28\x29\40\154\x69\155\151\x74\x20" . ($halaman - 1) * $limit . "\x2c\x20{$limit}"; $stmt = $this->db->prepare($q); $stmt->bindParam("\72\141\154\x69\x61\x73", $token); $stmt->execute(); $result["\143\157\x64\145"] = 200; $result["\x64\141\x74\141"] = $stmt->fetchAll(); $result["\164\157\x6b\x65\156"] = $token; } else { $result["\143\157\144\145"] = 400; $result["\144\141\164\141"] = array(); $coverageArea = ($distance - $radius) / 1000; $result["\x6d\x73\147"] = "\104\x69\x6c\x75\141\162\x20\x6a\x61\x6e\147\153\141\x75\x61\156\40\x6c\157\153\x61\163\x69\40{$result["\156\141\155\141\x5f\x6c\x6f\x6b\x61\x73\x69"]}\x2c\40\163\145\152\141\165\150\40" . number_format($coverageArea) . "\40\113\155\x2c\40\74\160\76\74\x61\40\x68\162\x65\146\x3d\47\x68\x74\164\x70\163\72\x2f\x2f\167\167\x77\x2e\147\x6f\157\x67\154\145\56\x63\157\155\x2f\155\141\160\163\57\100{$latitudeFrom}\54{$longitudeFrom}\x2c\x31\x39\172\x27\76\x20\x4c\157\x6b\141\163\x69\x20\x41\156\x64\x61\x3c\x2f\x61\x3e\x3c\57\160\76"; $result["\143\157\166\145\x72\141\x67\x65"] = number_format($coverageArea); $result["\x6c\141\x74\151\x74\x75\144\145\x46\x72\x6f\155"] = $latitudeFrom; $result["\x6c\157\156\147\x69\164\x75\144\x65\x46\x72\157\x6d"] = $longitudeFrom; $result["\x67\157\157\147\x6c\145\137\x6d\141\x70\163"] = "\x68\x74\x74\x70\163\x3a\x2f\57\x77\167\167\56\x67\157\x6f\x67\154\145\x2e\x63\x6f\x6d\x2f\155\141\x70\x73\57\x40{$latitudeFrom}\54{$longitudeFrom}\x2c\61\x39\172"; } return echoResponse($response, $result, 200); } else { echo "\xa\11\x9\x3c\x73\x63\x72\x69\x70\x74\x3e\xa\x9\11\x64\x6f\143\x75\155\145\156\164\x2e\x6f\x6e\153\x65\171\144\x6f\167\x6e\x20\x3d\x20\x66\165\156\143\164\x69\157\x6e\50\x65\51\x20\x7b\xa\x9\11\11\x9\151\x66\40\50\x65\166\145\x6e\x74\56\x6b\145\x79\103\x6f\144\145\40\x3d\75\40\x31\62\63\x29\40\173\xa\x9\x9\11\x9\x9\11\143\157\x6e\163\157\x6c\145\56\x6c\157\x67\x28\47\x59\157\165\x20\x63\x61\156\x6e\x6f\x74\40\x69\156\x73\160\x65\x63\x74\x20\x45\154\x65\155\145\x6e\164\x27\x29\x3b\xa\x9\x9\x9\11\11\x9\162\x65\x74\165\x72\156\x20\x66\x61\x6c\x73\145\x3b\12\x9\11\11\x9\x7d\12\x9\11\x9\x9\151\146\x20\x28\x65\x2e\x63\x74\x72\154\x4b\145\x79\x20\x26\x26\x20\x65\x2e\163\x68\151\x66\x74\x4b\145\x79\40\46\x26\40\145\56\x6b\x65\x79\x43\157\x64\145\x20\x3d\x3d\40\47\x49\x27\56\x63\x68\141\162\x43\157\x64\145\x41\164\50\x30\51\x29\40\x7b\xa\11\x9\x9\x9\x9\11\x63\157\x6e\163\157\154\x65\x2e\x6c\157\x67\x28\x27\x59\x6f\165\40\x63\141\156\156\x6f\164\x20\151\x6e\163\x70\x65\x63\x74\40\x45\154\x65\155\x65\x6e\x74\47\51\x3b\xa\x9\11\x9\x9\11\x9\x72\145\x74\x75\x72\x6e\x20\146\141\x6c\163\x65\73\xa\x9\11\x9\x9\175\xa\x9\x9\11\11\151\x66\x20\x28\145\56\143\x74\x72\x6c\x4b\145\x79\40\46\x26\x20\145\x2e\163\x68\151\x66\x74\x4b\145\x79\40\x26\x26\40\145\x2e\x6b\x65\171\x43\x6f\144\145\40\x3d\75\40\x27\103\x27\x2e\143\150\x61\162\x43\x6f\144\x65\101\164\50\x30\x29\51\40\x7b\xa\x9\11\x9\11\x9\x9\x63\x6f\x6e\x73\157\x6c\145\56\154\157\147\50\47\131\x6f\165\x20\143\x61\156\156\157\164\40\x69\156\163\160\x65\x63\164\x20\105\x6c\x65\x6d\x65\x6e\164\47\x29\73\12\11\x9\11\x9\x9\x9\162\145\164\165\x72\x6e\40\x66\141\154\x73\x65\73\12\x9\x9\11\11\x7d\xa\11\11\x9\x9\x69\x66\x20\50\145\56\143\x74\x72\x6c\113\x65\171\40\x26\46\40\x65\x2e\x73\150\x69\x66\x74\113\145\171\40\46\46\40\145\56\x6b\145\171\x43\157\144\145\40\x3d\x3d\x20\47\x4a\47\x2e\143\150\141\162\103\x6f\x64\145\101\164\x28\60\x29\51\40\x7b\12\x9\x9\11\x9\11\x9\143\x6f\x6e\163\x6f\154\145\x2e\154\157\x67\50\47\x59\157\x75\40\143\x61\x6e\x6e\x6f\164\x20\x69\x6e\163\160\145\143\164\40\x45\x6c\145\155\145\156\x74\x27\51\x3b\xa\x9\x9\x9\x9\11\11\162\x65\x74\x75\x72\x6e\40\x66\141\x6c\163\x65\x3b\12\x9\x9\11\x9\x7d\xa\11\x9\11\11\151\x66\x20\50\145\x2e\143\x74\x72\x6c\x4b\x65\171\x20\46\46\x20\x65\x2e\x6b\145\x79\103\157\144\145\40\x3d\75\x20\x27\125\47\56\x63\x68\141\x72\x43\157\x64\x65\101\x74\x28\x30\51\x29\40\x7b\12\x9\x9\11\x9\11\x9\x63\157\156\x73\x6f\x6c\x65\x2e\154\157\x67\50\47\x59\x6f\165\40\x63\x61\x6e\156\x6f\164\x20\151\x6e\x73\160\x65\x63\x74\40\105\154\145\x6d\x65\156\x74\47\51\x3b\xa\x9\x9\x9\11\x9\x9\162\145\x74\165\x72\156\x20\146\x61\x6c\163\x65\73\12\x9\11\x9\11\x7d\xa\11\11\175\xa\11\x9\x64\157\143\165\155\145\x6e\x74\56\141\144\144\x45\x76\145\x6e\164\x4c\x69\x73\x74\x65\x6e\x65\162\50\47\143\x6f\x6e\164\x65\x78\164\x6d\x65\x6e\165\47\54\40\145\x76\x65\x6e\164\40\x3d\76\40\145\x76\x65\x6e\164\56\160\x72\x65\x76\x65\x6e\164\104\145\146\141\x75\154\164\50\51\x29\x3b\xa\x9\x9\x3c\57\163\x63\162\151\160\x74\x3e\xa\x9\x9\xa\11\11\x48\x61\154\x61\x6d\x61\156\x20\151\156\151\40\150\x61\156\171\x61\x20\144\x61\160\x61\x74\x20\x64\151\40\141\x6b\x73\x65\163\40\157\154\x65\150\40\150\x70\x2e"; die; } }); goto BLmSq; IwGbo: $app->post("\x2f\x74\x69\164\x69\153\x42\141\143\x61\57\x7b\164\x6f\153\145\x6e\175\57\x73\145\x61\x72\143\x68\x69\x6e\147\x46\162\x6f\155\111\x6e\x64\145\170", function ($request, $response, $args) { $mob = isMobile(); if ($mob) { $token = $args["\164\x6f\x6b\145\x6e"]; $input = $request->getParsedBody(); $latitudeFrom = $input["\x6c\x61\x74\151\164\165\x64\145"]; $longitudeFrom = $input["\x6c\x6f\x6e\x67\151\164\165\144\145"]; $altitude = $input["\x61\154\x74\151\164\165\144\145"]; $info = $input["\x69\156\x66\157"]; $search = $input["\x73\145\x61\162\143\150"]; $tipe = $input["\164\151\x70\145"]; $isMobile = $input["\151\163\115\x6f\x62\151\154\x65"]; $ipAddress = $_SERVER["\122\105\115\x4f\x54\x45\137\101\x44\104\122"]; $halaman = $input["\150\x61\154"]; if (!$halaman) { $halaman = 1; } if ($halaman <= 0) { $halaman = 1; } $limit = 6; $q = "\163\145\x6c\145\x63\x74\40\154\157\x6e\x67\151\x74\165\x64\145\54\40\154\x61\x74\x69\x74\165\144\x65\54\40\x72\141\x64\x69\165\x73\x4c\x6f\156\147\114\141\x74\x2c\40\x61\154\x74\x69\x74\165\144\145\x2c\40\x6e\141\155\x61\x2c\x20\x69\x64\40\146\162\157\155\x20\x74\151\x74\x69\153\142\141\x63\141\x5f\155\x69\x74\x72\141\137\154\157\x6b\x61\x73\151\40\x77\150\145\x72\145\40\x61\154\151\141\x73\x3d\x3a\141\154\151\141\x73\x20\x61\156\x64\x20\163\164\x73\75\x27\61\x27"; $stmt = $this->db->prepare($q); $stmt->bindParam("\72\141\x6c\x69\x61\163", $token); $stmt->execute(); $row = $stmt->fetch(); $longitudeTo = $row["\154\x6f\x6e\147\x69\x74\165\144\x65"]; $latitudeTo = $row["\154\x61\164\x69\164\165\144\x65"]; $radius = $row["\162\x61\144\151\165\163\x4c\x6f\156\x67\114\x61\164"]; $result["\156\141\155\x61\x5f\154\157\153\x61\x73\151"] = $row["\x6e\x61\155\141"]; $id_lokasi = $row["\151\144"]; $id_user = $request->getHeaderLine("\110\x54\124\120\x5f\x55\125\111\104"); $distance = 0; if ($distance <= $radius) { $q = "\123\105\x4c\x45\x43\124\xa\11\x9\11\x6b\x6f\x6e\164\x65\156\x2e\x69\144\x2c\xa\x9\x9\11\x6b\157\156\164\x65\x6e\x2e\153\157\x64\x65\x2c\xa\11\x9\11\x6b\157\x6e\164\145\x6e\56\152\165\x64\x75\154\x2c\xa\x9\x9\11\111\x46\116\x55\x4c\x4c\x28\153\157\x6e\x74\145\x6e\x2e\164\141\150\x75\x6e\x5f\x74\145\x72\x62\x69\x74\x2c\47\55\47\x29\40\x74\x61\x68\x75\156\x5f\x74\x65\x72\x62\x69\164\54\12\x9\11\x9\153\157\x6e\x74\x65\x6e\137\163\165\x62\x5f\x6b\141\164\145\147\x6f\x72\151\x2e\151\144\x20\101\123\x20\x69\144\x5f\163\165\x62\137\x6b\x61\164\145\x67\x6f\x72\x69\x2c\xa\11\11\11\153\x6f\x6e\164\x65\x6e\137\163\165\x62\137\x6b\141\164\x65\x67\x6f\162\x69\x2e\156\141\155\x61\x20\x41\x53\x20\163\165\142\x5f\x6b\x61\164\145\x67\x6f\x72\151\54\12\x9\11\x9\143\157\x6e\x63\141\x74\50\40\x27\x68\x74\164\160\x73\72\57\x2f\153\x75\x62\x75\x6b\165\56\x69\x64\57\x70\162\157\x64\57\151\x6d\x67\x2f\151\x63\x6f\156\57\47\54\x20\153\x6f\x6e\164\145\156\x5f\x6b\141\164\145\147\x6f\x72\x69\x2e\151\143\x6f\156\40\x29\x20\x69\143\x6f\156\x2c\x20\12\11\11\11\153\x6f\x6e\164\145\156\x5f\x6b\x61\x74\145\x67\157\x72\151\x2e\151\x64\40\x41\123\x20\151\144\x5f\153\141\164\145\x67\x6f\x72\x69\54\12\11\11\11\x6b\157\156\x74\x65\x6e\x5f\x6b\x61\164\x65\147\x6f\x72\x69\56\156\x61\x6d\x61\x20\101\123\40\153\141\164\145\147\157\x72\x69\54\12\11\x9\11\x49\106\x4e\125\x4c\x4c\x28\x6b\x6f\156\164\145\x6e\x5f\160\x65\x6e\x65\162\142\151\164\56\156\141\155\141\x2c\x27\55\x27\51\40\x41\x53\40\160\x65\156\145\x72\142\x69\164\x2c\xa\11\x9\x9\111\106\116\x55\114\114\50\153\x6f\x6e\x74\145\x6e\137\x70\145\x6e\x75\154\x69\163\56\x6e\141\x6d\x61\x2c\x27\55\x27\51\40\x41\x53\40\160\x65\x6e\165\x6c\x69\x73\54\12\x9\11\11\111\x46\116\125\114\114\50\x6b\157\156\x74\145\x6e\x2e\151\x73\142\156\x2c\x27\55\x27\x29\40\x41\123\40\151\163\x62\x6e\x2c\12\11\x9\x9\x49\x46\x4e\x55\x4c\114\50\153\x6f\x6e\164\145\156\x2e\x65\151\x73\x62\156\x2c\x27\55\47\x29\x20\101\123\40\145\151\163\142\x6e\x2c\xa\x9\x9\x9\x49\x46\x4e\125\x4c\114\50\153\157\156\x74\x65\x6e\x2e\x73\x69\156\157\160\163\x69\x73\54\x27\x2d\47\x29\40\x61\163\x20\163\x69\156\x6f\x70\163\x69\x73\x2c\xa\x9\x9\11\x43\x4f\x4e\103\x41\x54\x28\x27\143\157\x76\145\x72\x2f\x27\x2c\x6b\x6f\156\164\x65\156\x2e\143\x6f\166\x65\x72\137\146\151\x6c\x65\51\x20\x41\x53\40\x60\143\x6f\x76\145\x72\137\x66\151\154\145\140\54\12\11\11\x9\x6b\157\156\164\x65\156\x2e\x63\157\x76\x65\x72\x5f\146\151\x6c\145\40\x41\x53\40\x60\x69\x6d\x67\x60\54\12\11\11\x9\111\x46\116\x55\114\x4c\50\x6b\157\156\164\x65\x6e\56\153\x65\x79\x77\157\x72\144\54\47\55\47\51\40\x41\x53\x20\x60\153\145\x79\167\157\x72\x64\140\54\xa\x9\x9\11\x73\x75\x6d\50\164\151\x74\151\x6b\x5f\x62\141\143\x61\56\161\x74\x79\51\40\161\164\171\x2c\xa\11\x9\x9\164\151\164\x69\153\137\x62\141\x63\141\x2e\x70\x72\157\x6d\x6f\x74\x65\144\x2c\xa\11\11\x9\164\151\x74\151\153\x5f\142\x61\x63\141\x2e\141\x6c\151\x61\163\54\xa\x9\x9\11\164\x69\x74\x69\x6b\x5f\x62\x61\143\x61\x2e\160\x65\x6e\171\x75\x6d\142\x61\156\x67\x2c\xa\11\x9\x9\x67\162\x6f\x75\x70\x5f\143\x6f\x6e\x63\x61\x74\50\x74\151\164\x69\153\137\142\141\x63\141\x2e\x69\144\x5f\x70\x65\x6e\x79\x75\x6d\142\141\156\x67\51\40\151\x64\137\x70\x65\x6e\171\165\x6d\x62\x61\x6e\147\54\12\x9\11\x9\x28\x9\163\x75\155\x28\x74\151\x74\151\x6b\137\x62\141\x63\x61\x2e\161\x74\x79\x29\51\40\164\145\x72\x70\x61\x6b\x61\x69\x2c\xa\11\11\x9\x61\156\x64\162\157\151\x64\x5f\x66\151\154\x65\12\x9\x9\11\xa\11\11\x9\x46\x52\x4f\115\12\x9\11\x9\x6b\157\x6e\x74\x65\x6e\12\11\x9\11\x4c\x45\106\x54\x20\112\x4f\111\116\40\x6b\x6f\156\164\x65\156\137\163\x75\x62\x5f\153\141\164\145\x67\157\x72\x69\xa\x9\11\11\x4f\116\40\153\157\x6e\164\145\x6e\56\x69\x64\137\163\x75\x62\x5f\153\x61\164\x65\147\157\x72\x69\40\x3d\40\x6b\157\x6e\x74\x65\x6e\x5f\x73\165\x62\137\x6b\x61\164\145\147\157\162\151\x2e\151\x64\x20\12\x9\x9\11\114\x45\106\124\40\x4a\117\x49\116\40\x6b\157\x6e\164\x65\156\x5f\x6b\141\x74\145\x67\157\x72\151\xa\11\x9\x9\117\x4e\40\153\x6f\x6e\164\145\x6e\137\x73\165\142\137\x6b\x61\164\x65\x67\x6f\162\x69\x2e\151\144\x5f\x6b\x61\164\x65\147\x6f\162\151\40\75\40\x6b\157\x6e\x74\145\x6e\137\x6b\x61\164\145\147\157\162\x69\56\151\x64\40\xa\x9\x9\11\x4c\x45\x46\124\40\112\117\111\x4e\x20\153\157\x6e\x74\x65\156\137\144\x65\160\141\x72\x74\x65\x6d\145\156\12\x9\x9\11\x4f\x4e\40\x6b\157\x6e\164\145\156\x5f\153\x61\x74\x65\147\157\162\151\56\x69\144\137\144\145\160\141\x72\164\145\155\x65\x6e\40\75\x20\x6b\157\156\x74\x65\x6e\137\x64\145\160\x61\x72\164\145\x6d\x65\x6e\x2e\151\144\x20\12\x9\11\x9\114\x45\x46\x54\40\x4a\x4f\111\116\x20\x6b\157\x6e\x74\145\x6e\x5f\160\x65\156\x65\162\x62\x69\164\xa\11\x9\x9\x4f\116\x20\153\x6f\156\164\145\x6e\56\x69\x64\137\x70\145\156\x65\x72\x62\x69\x74\x20\75\x20\x6b\157\156\164\x65\156\x5f\160\x65\156\x65\162\x62\151\x74\x2e\x69\144\40\xa\11\x9\11\114\105\x46\124\40\112\117\111\116\x20\153\x6f\156\x74\x65\156\137\160\x65\156\165\154\x69\x73\xa\x9\x9\11\x4f\x4e\40\x6b\x6f\x6e\164\x65\156\56\151\144\137\160\145\156\x75\x6c\151\x73\x20\x3d\40\153\x6f\x6e\164\x65\x6e\137\160\x65\156\x75\154\151\x73\56\151\144\xa\11\11\11\x4c\105\106\x54\x20\152\157\151\156\x20\x28\163\x65\x6c\145\143\164\x20\164\x69\x74\151\x6b\142\x61\x63\x61\x5f\x70\x65\156\x79\x75\155\x62\141\156\x67\56\151\x64\x20\151\x64\137\160\145\156\171\165\x6d\x62\x61\x6e\147\54\x20\164\151\164\x69\x6b\142\x61\x63\141\137\x70\145\x6e\171\x75\x6d\x62\141\x6e\147\56\156\x61\155\141\x20\x70\145\156\x79\165\155\142\141\x6e\147\x2c\x9\x74\x69\164\x69\153\x62\141\143\141\137\x6d\151\164\162\141\x5f\x6c\x6f\x6b\141\x73\x69\x5f\x6b\x6f\x6e\x74\x65\156\x2e\151\x64\x5f\x6b\x6f\156\x74\145\156\54\x20\x74\x69\x74\151\153\142\x61\x63\x61\x5f\x6d\151\x74\162\x61\x5f\154\157\153\x61\x73\x69\137\x6b\157\156\164\x65\156\x2e\161\164\171\x2c\x20\164\x69\x74\x69\x6b\x62\x61\143\x61\x5f\155\x69\164\162\141\137\x6c\157\153\141\x73\x69\137\153\x6f\156\164\x65\156\x2e\160\162\157\155\x6f\164\x65\x64\54\x20\164\151\164\x69\x6b\x62\141\143\x61\x5f\155\151\x74\162\x61\x5f\154\157\x6b\141\163\x69\137\x6b\x6f\156\x74\145\x6e\56\141\x6c\x69\x61\x73\x20\x66\162\x6f\x6d\40\xa\x9\x9\11\164\x69\164\151\x6b\x62\x61\x63\x61\137\x6d\151\164\162\x61\x5f\154\157\x6b\x61\163\x69\40\12\x9\x9\x9\x69\156\156\x65\x72\x20\152\x6f\x69\156\x20\164\151\164\x69\x6b\x62\x61\143\x61\x5f\155\x69\164\162\x61\x5f\x6c\x6f\153\141\x73\151\137\x6b\x6f\156\164\x65\x6e\x20\x6f\156\x20\164\x69\164\151\x6b\142\141\x63\x61\x5f\155\x69\164\x72\141\x5f\x6c\x6f\x6b\141\x73\x69\x5f\153\157\156\x74\x65\x6e\x2e\151\144\137\x6d\151\x74\162\x61\x5f\154\x6f\x6b\x61\x73\151\x20\x3d\164\151\x74\x69\153\x62\x61\143\141\137\x6d\151\x74\162\141\x5f\154\x6f\x6b\141\x73\151\x2e\x69\x64\40\x61\156\x64\x20\164\x69\164\151\153\142\x61\143\141\137\155\151\x74\162\x61\137\x6c\x6f\153\141\x73\x69\x5f\x6b\x6f\156\164\x65\x6e\x2e\163\164\163\75\x27\61\47\xa\x9\11\11\154\x65\x66\164\x20\152\x6f\151\x6e\40\x74\151\x74\151\x6b\142\141\143\x61\x5f\x70\145\156\x79\x75\x6d\142\x61\x6e\x67\40\157\156\40\x74\x69\x74\x69\x6b\x62\141\143\x61\x5f\x70\145\x6e\x79\x75\155\x62\141\156\x67\x2e\151\x64\40\75\40\151\144\x5f\x70\145\156\171\x75\x6d\142\141\x6e\x67\12\11\x9\x9\167\150\x65\162\x65\x20\x74\x69\x74\x69\153\x62\141\x63\x61\137\155\151\x74\x72\141\x5f\154\157\153\141\163\x69\x2e\141\154\151\141\163\x3d\72\141\x6c\151\x61\x73\51\x20\164\x69\164\151\153\x5f\142\x61\x63\141\40\x6f\x6e\x20\164\151\x74\x69\x6b\137\x62\141\x63\x61\x2e\x69\x64\137\x6b\157\156\164\x65\156\40\x3d\x20\153\x6f\156\x74\x65\x6e\x2e\x69\x64\xa\11\11\11\x6c\145\x66\x74\40\152\157\151\156\x20\50\x73\145\154\x65\x63\x74\x20\x69\144\137\153\x6f\x6e\164\x65\x6e\137\154\x6f\153\141\x73\151\54\40\143\x6f\x75\156\x74\50\x2a\x29\x20\164\x65\x72\142\141\143\x61\x20\146\x72\x6f\x6d\x20\164\x69\164\x69\x6b\x62\141\x63\141\137\x74\162\170\x5f\x62\141\x63\141\40\167\150\x65\x72\145\x20\x73\164\x73\x3d\61\40\x67\x72\157\x75\x70\x20\x62\171\40\151\144\x5f\x6b\x6f\156\164\145\x6e\x5f\154\157\153\141\x73\151\x29\x20\164\x69\164\x69\x6b\142\x61\x63\141\137\164\162\170\x5f\142\x61\x63\x61\40\157\x6e\40\x74\151\x74\151\x6b\142\x61\143\x61\x5f\x74\x72\x78\137\x62\141\x63\x61\x2e\151\144\137\x6b\x6f\156\164\145\156\x5f\154\157\153\141\163\151\40\75\40\x74\151\164\151\x6b\137\x62\x61\x63\141\56\x69\x64\137\x6b\157\x6e\164\145\x6e\12\12\11\11\x9\127\x48\x45\122\x45\xa\x9\11\11\x6b\157\156\x74\145\x6e\x2e\163\x74\x73\x20\x3d\x20\47\x31\x27\12\x9\x9\x9\x61\x6e\x64\40\50\x6b\x6f\x6e\x74\x65\x6e\56\x6a\165\x64\165\x6c\40\154\x69\153\x65\40\72\163\x65\x61\x72\x63\150\40\157\x72\x20\x6b\157\156\164\x65\156\x5f\160\x65\x6e\165\154\x69\163\x2e\x6e\x61\x6d\x61\x20\x6c\x69\x6b\145\x20\72\x73\145\141\x72\x63\x68\x20\x6f\162\x20\x6b\157\156\x74\x65\x6e\137\160\145\156\145\162\x62\x69\164\56\x6e\141\x6d\141\40\x6c\151\153\145\x20\x3a\x73\145\x61\x72\x63\150\51\40\x20\xa\11\11\11\x67\x72\x6f\x75\160\x20\142\x79\x20\x6b\157\156\x74\x65\x6e\56\151\x64\x2c\40\12\11\11\11\x9\11\11\x6b\157\x6e\x74\145\156\56\x6b\157\x64\x65\x2c\xa\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\x20\x9\x9\11\153\x6f\x6e\x74\x65\x6e\x2e\x6a\x75\x64\x75\154\54\12\x9\11\x9\11\x9\x9\164\x61\x68\x75\x6e\137\x74\x65\162\x62\x69\x74\x2c\12\x9\x9\x9\11\x9\11\x69\144\137\163\x75\x62\x5f\153\141\164\145\147\157\162\151\x2c\12\x9\11\11\11\x9\11\x73\165\142\x5f\x6b\141\164\145\x67\x6f\x72\151\54\xa\x9\x9\11\11\x9\x9\x69\143\157\x6e\x2c\12\11\x9\11\x9\11\x9\x69\x64\x5f\153\x61\164\145\x67\x6f\162\x69\54\xa\11\x9\x9\x9\11\11\x6b\x61\x74\145\147\157\162\x69\54\12\11\x9\11\11\x9\11\x70\145\x6e\145\162\x62\x69\164\54\12\11\x9\x9\11\x9\11\x70\145\x6e\165\154\151\163\x2c\xa\11\x9\11\11\x9\x9\x69\163\x62\156\x2c\xa\x9\x9\x9\11\x9\11\x65\x69\x73\x62\156\x2c\xa\x9\x9\11\11\11\11\x73\151\x6e\157\160\x73\151\163\x2c\xa\11\x9\11\x9\11\11\143\157\166\x65\x72\137\x66\151\x6c\x65\x2c\12\x9\11\11\x9\x9\11\x69\x6d\147\54\12\11\x9\11\11\11\11\153\x65\171\x77\157\x72\x64\x2c\xa\x9\x9\x9\x9\11\x9\161\164\x79\x2c\12\11\11\x9\x9\11\11\160\x72\x6f\155\157\x74\145\144\54\xa\x9\x9\x9\x9\x9\11\141\x6c\151\141\163\54\12\x9\11\11\11\11\x9\x70\x65\x6e\171\165\155\x62\x61\156\147\x2c\12\11\x9\11\x9\x9\x9\x69\x64\x5f\x70\x65\156\171\x75\155\x62\141\156\x67\54\12\11\x9\11\x9\11\11\141\x6e\x64\162\157\x69\x64\x5f\146\151\x6c\x65\12\11\11\x9\x6f\x72\x64\145\162\x20\x62\x79\40\x70\x72\x6f\155\x6f\x74\145\144\40\144\x65\163\x63\x20\xa\x9\11\11\x6c\x69\155\151\x74\40" . ($halaman - 1) * $limit . "\54{$limit}"; $stmt = $this->db->prepare($q); $stmt->bindParam("\x3a\x61\x6c\x69\141\x73", $token); $stmt->bindValue("\x3a\163\x65\141\x72\x63\150", "\x25" . $search . "\x25"); $stmt->execute(); $result["\143\x6f\144\x65"] = 200; $result["\x64\141\x74\x61"] = $stmt->fetchAll(); $result["\x74\x6f\153\x65\156"] = $token; } else { $result["\143\157\x64\x65"] = 400; $result["\144\141\164\141"] = array(); $coverageArea = ($distance - $radius) / 1000; $result["\x6d\163\147"] = "\104\x69\154\165\141\x72\x20\x6a\x61\156\147\153\x61\x75\141\x6e\40\154\157\153\x61\163\151\40{$result["\x6e\141\x6d\141\137\154\157\x6b\x61\x73\x69"]}\54\40\163\x65\x6a\141\165\x68\40" . number_format($coverageArea) . "\40\x4b\x6d\x2c\40\x3c\x70\76\x3c\x61\40\x68\x72\x65\146\x3d\x27\150\164\164\160\x73\x3a\x2f\x2f\x77\x77\167\x2e\x67\x6f\157\x67\154\145\56\x63\157\x6d\57\x6d\141\160\163\x2f\x40{$latitudeFrom}\54{$longitudeFrom}\54\x31\71\x7a\47\x3e\x20\114\157\x6b\141\163\151\40\101\156\x64\x61\x3c\57\x61\76\x3c\x2f\x70\x3e"; $result["\143\157\x76\x65\162\141\147\145"] = number_format($coverageArea); $result["\x6c\x61\164\x69\x74\165\x64\x65\106\162\157\x6d"] = $latitudeFrom; $result["\154\x6f\x6e\x67\x69\164\165\144\145\x46\x72\157\155"] = $longitudeFrom; $result["\147\157\157\x67\x6c\x65\x5f\155\x61\160\163"] = "\150\164\164\160\x73\72\x2f\x2f\x77\167\167\x2e\x67\157\x6f\147\x6c\x65\x2e\x63\157\x6d\x2f\x6d\x61\x70\x73\x2f\x40{$latitudeFrom}\54{$longitudeFrom}\54\x31\71\172"; } return echoResponse($response, $result, 200); } else { $result["\143\x6f\144\x65"] = "\64\x30\64"; $result["\155\x73\x67"] = "\150\x70\40\157\x6e\154\x79"; return echoResponse($response, $result, 200); } }); goto uRAj4; fyRYD: if (isset($_SERVER["\110\124\124\x50\137\117\122\111\x47\111\116"])) { $http_origin = $_SERVER["\x48\124\x54\120\137\117\x52\111\107\111\x4e"]; header("\101\143\143\145\x73\163\x2d\103\x6f\x6e\164\162\157\154\x2d\x41\154\154\x6f\x77\55\x4f\162\151\x67\x69\156\x3a\x20\52"); header("\x41\143\143\145\163\163\55\103\x6f\x6e\x74\162\x6f\x6c\x2d\x41\154\x6c\x6f\167\x2d\x4d\145\164\x68\x6f\144\x73\x3a\x20\107\x45\124\54\x50\117\x53\x54\x2c\117\120\124\111\117\x4e\123\x2c\x50\x55\124\x2c\104\x45\x4c\x45\124\x45\x2c\x50\x41\124\103\110"); header("\101\x63\143\145\163\163\55\103\157\x6e\x74\x72\x6f\x6c\55\x41\154\154\157\x77\55\110\145\x61\144\145\162\x73\72\40\x41\x75\x74\150\x6f\162\151\x7a\141\x74\x69\x6f\x6e\x2c\x41\x63\x63\x65\160\164\x2c\117\x72\x69\147\151\x6e\x2c\104\x4e\124\x2c\x58\55\103\x75\163\x74\x6f\155\110\145\x61\144\145\x72\54\x4b\145\145\x70\x2d\x41\x6c\151\166\x65\54\125\x73\x65\x72\55\x41\147\145\156\164\54\130\x2d\122\145\x71\165\145\163\164\x65\144\x2d\127\x69\164\x68\54\111\146\x2d\115\x6f\x64\151\146\x69\x65\144\55\123\151\156\143\145\54\x43\x61\143\150\x65\x2d\103\157\x6e\x74\x72\157\x6c\54\x43\157\x6e\x74\145\x6e\x74\x2d\124\171\160\145\54\x43\x6f\x6e\164\145\x6e\164\x2d\x52\x61\156\147\145\x2c\x52\141\x6e\147\145\54\x55\125\111\104\54\x55\x49\104\54\x43\x4c\x49\105\116\124\111\x44\x2c\x4f\x53\x2c\126\105\x52\x53\x49\x4f\116\103\x4f\104\105\54\115\101\x58\103\117\116\x54\105\x4e\x54\54\115\x41\x58\104\101\131\x2c\x55\x53\105\122\x4e\x41\x4d\x45\54\125\123\x45\x52\111\x44\54\x4b\x45\131\x2c\125\123\105\122\114\105\126\x45\114"); Header("\x41\x63\143\x65\x73\x73\55\x43\157\x6e\164\162\157\x6c\55\122\x65\161\165\145\163\x74\x2d\110\x65\x61\x64\145\x72\x73\72\40\x41\x75\x74\150\157\162\x69\x7a\141\x74\151\157\156\x2c\101\x63\143\x65\160\164\x2c\117\162\151\x67\151\x6e\54\104\x4e\124\54\130\55\103\165\163\x74\157\155\110\x65\x61\x64\x65\x72\x2c\113\145\x65\x70\55\101\154\x69\166\145\x2c\x55\163\145\x72\55\x41\x67\x65\x6e\x74\x2c\130\x2d\x52\x65\x71\x75\145\x73\x74\145\x64\x2d\x57\x69\x74\x68\54\111\146\x2d\115\157\144\x69\x66\151\145\x64\55\123\151\156\x63\x65\x2c\x43\141\x63\x68\145\x2d\x43\x6f\x6e\164\162\x6f\x6c\54\103\x6f\x6e\x74\145\156\x74\55\x54\x79\160\145\54\x43\157\x6e\x74\145\156\x74\x2d\x52\x61\x6e\x67\145\x2c\x52\x61\x6e\x67\x65\x2c\x55\125\111\x44\54\x55\111\x44\x2c\x43\114\111\x45\x4e\x54\111\104\54\117\123\54\126\x45\122\123\x49\x4f\x4e\x43\117\104\105\54\x4d\101\x58\x43\117\x4e\x54\x45\x4e\124\54\x4d\x41\x58\x44\101\131\54\125\123\x45\122\116\101\x4d\x45\x2c\125\123\105\x52\x49\x44\54\x4b\105\x59\x2c\x55\123\105\122\x4c\x45\126\105\x4c"); Header("\x41\x63\143\x65\x73\x73\x2d\103\157\x6e\164\162\157\x6c\55\x41\x6c\154\157\167\55\103\162\x65\x64\x65\156\x74\x69\x61\154\x73\72\x20\164\162\x75\145"); } goto Lm0Vf; oCU8v: $app->get("\57", function () { echo "\110\x65\154\x6c\x6f\40\x57\157\162\154\144"; }); goto IOMv1; KeIVJ: $app->get("\x2f\160\x69\x6e\147\x52\x65\x61\x64\x2f\173\151\x64\137\164\162\x78\137\x62\x61\x63\141\x7d", function ($request, $response, $args) { $id_trx_baca = $args["\x69\144\137\x74\162\x78\137\142\x61\x63\x61"]; $q = "\x75\160\x64\141\x74\145\40\x74\x69\x74\x69\x6b\x62\141\143\141\x5f\164\x72\x78\137\142\x61\x63\141\40\x73\x65\x74\40\12\x20\x20\x20\x20\x74\x67\x6c\x5f\x73\145\x6c\145\x73\141\151\137\x62\141\x63\x61\x3d\x6e\157\x77\x28\51\x2c\x20\144\x75\x72\141\163\x69\40\x3d\x20\x74\151\x6d\x65\x73\x74\141\155\160\144\x69\x66\146\x28\123\x45\103\x4f\116\104\54\x74\x67\x6c\137\x6d\x75\154\141\151\137\142\141\x63\141\x2c\x6e\x6f\x77\50\51\x29\12\x20\x20\40\40\x77\150\145\162\145\x20\x69\x64\x3d\72\x69\144\137\x74\x72\170\x5f\x62\x61\x63\x61\x20\141\156\144\40\x73\164\163\x3d\47\x31\47"; $stmt = $this->db->prepare($q); $stmt->bindParam("\x3a\151\x64\x5f\164\x72\x78\x5f\142\x61\x63\x61", $id_trx_baca); $stmt->execute(); $result["\143\157\144\145"] = CODE_SUCCESS; $result["\155\x73\x67"] = "\x4f\x6b"; return echoResponse($response, $result, 200); }); goto KYJpR; To5rl: define("\103\117\x56\x45\122\x5f\x46\111\114\105", "\143\x6f\x76\x65\162\x2f"); goto g1WGa; CT_Y4: $app->run();

Function Calls

None

Variables

None

Stats

MD5 fbbc83ac3a05b447898e2937b0714d33
Eval Count 0
Decode Time 169 ms