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 defined("\x42\101\123\105\120\x41\124\x48") or die("\x4e\157\x20\x64\151\x72\x65\1..
Decoded Output download
<?php
defined("BASEPATH") or die("No direct script access allowed"); class Ajax_load extends CI_Controller { public function __construct() { parent::__construct(); date_default_timezone_set("Asia/Bangkok"); $this->load->helper("url"); $this->load->library(array("session")); $this->load->library("scb_app_lib"); $this->load->helper("form"); $this->load->library("form_validation"); $this->load->model("user_model"); $this->load->model("main_model"); $this->load->model("line_model"); $this->load->model("line_model_flex"); $this->load->model("credit_model"); $this->load->model("agent_model"); $this->load->model("promotion_model"); $this->url_prefix = "player"; $this->theme = "EzslotPurple"; } public function lostcredit($act = NULL) { ini_set("display_errors", 0); ini_set("display_startup_errors", 0); error_reporting(E_ALL); header("Content-Type: application/json; charset=utf-8"); $user = $this->user_model->get_user($_SESSION["user"]["username"]); $percentoflost = (double) json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "percent_of_lostcredit")))["value"], true)["value"]; if (isset($user)) { if ($act === "get") { $today = date("Y-m-d") . " 12:00:00"; $next = date("Y-m-d", strtotime("+1 days")) . " 12:00:00"; $gettedBack = $this->main_model->custom_query_result("SELECT * FROM report_transaction WHERE username = '" . $user["mobile_no"] . "' AND (transaction_type = 'LOST_BACK') AND (date >= '{$today}' AND date <= '{$next}')"); if ($gettedBack) { print_r(json_encode(array("status" => false, "message" => "Already received"), 4)); return; } $now = date("Y-m-d") . " 12:00:00"; $yest = date("Y-m-d", strtotime("-1 days")) . " 12:00:00"; $withdraws = $this->main_model->custom_query_result("SELECT SUM(credit) as credit FROM report_transaction WHERE username = '" . $user["mobile_no"] . "' AND (transaction_type = 'WITHDRAW') AND (date >= '{$yest}' AND date <= '{$now}') ORDER BY date DESC"); $deposits = $this->main_model->custom_query_result("SELECT SUM(credit) as credit FROM report_transaction WHERE username = '" . $user["mobile_no"] . "' AND (transaction_type = 'DEPOSIT' OR transaction_type = 'DEPOSITM') AND (date >= '{$yest}' AND date <= '{$now}') ORDER BY date DESC"); $withdraw_credit = $withdraws[0]["credit"] === null ? 0 : (double) $withdraws[0]["credit"]; $deposit_credit = $deposits[0]["credit"] === null ? 0 : (double) $deposits[0]["credit"]; $lost = ($withdraw_credit - $deposit_credit - (double) $user["credit"]) * ((int) $percentoflost / 100); if ($lost <= 0) { print_r(json_encode(array("status" => false, "message" => "Lost credit is 0 no need to get them"), 4)); return; } $date = date("Y-m-d H:i:s"); $tmp_data = array("id" => "LOB" . floor(microtime(true) * 1000), "username" => $user["mobile_no"], "credit" => (double) number_format($lost, 2), "credit_bonus" => 0, "credit_before" => $user["credit"], "credit_after" => $user["credit"] + (double) number_format($lost, 2), "transaction_type" => "LOST_BACK", "date" => $date, "note" => "\340\270\x84\xe0\270\267\340\270\x99\340\xb8\242\xe0\270\255\340\270\x94\xe0\271\x80\xe0\xb8\xaa\xe0\270\265\340\270\xa2"); $this->main_model->create($tmp_data, "report_transaction"); $pushCredit = $this->credit_model->RawCreditPush((double) number_format($lost, 2), $user); $isTransfered = false; if ($pushCredit) { $isTransfered = true; } print_r(json_encode(array("status" => true, "data" => array("account" => $user["mobile_no"], "from" => $yest, "to" => $now, "withdraw" => $withdraw_credit, "deposit" => $deposit_credit, "lost" => (double) number_format($lost, 2) > 0 ? (double) number_format($lost, 2) : 0, "isTransfered" => $isTransfered)), 4)); return; } } else { } print_r(json_encode(array("status" => false), 4)); return; } public function aff() { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; $menu = $this->load->view("panel_user/{$theme}/ajax_load/account/menu", $data, true); $data["menu"] = $menu; $data["mobile"] = isset($_POST["mobile"]) ? true : false; if (empty($_SESSION["user"]["logged_in"])) { header("HTTP/1.1 401 Unauthorized"); } else { $row_user = $this->user_model->get_user($_SESSION["user"]["username"]); $data["user"] = $row_user; $this->form_validation->set_error_delimiters('', "<br>"); $this->form_validation->set_rules("aff", "aff", "trim|required", array("required" => "\xe0\270\202\340\271\211\340\xb8\255\340\270\241\xe0\xb8\271\xe0\270\245\xe0\xb9\x84\xe0\270\241\340\271\x88\xe0\270\x84\340\270\243\340\270\232\340\xb8\x96\340\271\211\340\xb8\xa7\xe0\xb8\231 \xe0\270\201\340\270\xa3\340\xb8\270\340\xb8\223\xe0\270\262\xe0\xb9\x83\340\xb8\252\340\271\210\340\270\202\xe0\271\211\xe0\xb8\255\340\xb8\xa1\340\xb8\xb9\xe0\xb8\245\340\271\203\340\xb8\253\xe0\xb9\211\340\270\x96\340\270\xb9\340\270\x81\xe0\xb8\225\xe0\271\x89\340\xb8\xad\xe0\270\207")); if ($this->form_validation->run() === false) { $d = array("status" => "error", "message" => "\340\xb8\201\340\xb8\xa3\340\270\xb8\xe0\xb8\x93\xe0\xb8\262\340\271\203\340\270\252\340\xb9\x88\xe0\xb8\202\340\xb9\x89\xe0\xb8\xad\xe0\270\xa1\xe0\270\271\xe0\270\xa5\340\271\203\340\xb8\253\xe0\xb9\x89\xe0\270\x96\340\xb8\271\340\270\x81\xe0\270\225\xe0\271\x89\xe0\xb8\255\340\xb8\x87"); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/aff-info", $data, true); } else { $aff = $this->input->post("aff"); $row_user_aff = $this->user_model->get_user($aff); if (empty($row_user_aff)) { $d = array("status" => "error", "message" => "\340\271\204\xe0\270\xa1\340\271\210\xe0\270\xa1\340\xb8\265\340\xb8\xa3\xe0\270\xab\xe0\270\261\xe0\270\xaa\xe0\271\x81\xe0\xb8\231\340\270\260\340\xb8\x99\xe0\xb8\xb3\xe0\271\200\xe0\xb8\236\xe0\xb8\267\340\271\x88\xe0\xb8\xad\xe0\270\231\340\xb8\231\xe0\270\265\xe0\271\x89\340\xb9\x83\xe0\270\x99\340\xb8\243\xe0\xb8\xb0\xe0\270\x9a\xe0\270\x9a"); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/aff-info", $data, true); } else { if ($row_user_aff["id"] == $row_user["id"]) { $d = array("status" => "error", "message" => "\xe0\270\x84\340\xb8\270\340\270\223\xe0\xb9\x84\xe0\xb8\241\xe0\271\210\340\xb8\252\xe0\270\262\xe0\270\xa1\340\270\xb2\xe0\270\xa3\xe0\xb8\226\340\xb9\x83\xe0\xb8\252\340\xb9\210\xe0\270\243\340\270\253\xe0\xb8\261\340\xb8\252\340\xb8\x95\340\270\261\340\xb8\247\340\271\x80\340\xb8\255\xe0\xb8\207\xe0\xb9\204\340\270\224\340\271\x89"); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/aff-info", $data, true); } else { if (is_null($row_user["aff"])) { $this->main_model->custom_query("\xa \x9\x9\x9\x9 \x9UPDATE sl_users
\x9 \x9\x9 \x9SET aff = '{$row_user_aff["id"]}'
\x9 \x9\x9\x9WHERE id = '{$row_user["id"]}'
\x9 \x9\x9 \x9"); $row_user = $this->user_model->get_user($_SESSION["user"]["username"]); $data["user"] = $row_user; echo $this->load->view("panel_user/{$theme}/ajax_load/account/aff-info", $data, true); } else { $d = array("status" => "error", "message" => "\xe0\xb8\x84\340\xb8\xb8\340\270\x93\340\xb8\xa1\340\xb8\xb5\340\270\x81\340\xb8\262\340\270\xa3\xe0\271\201\xe0\270\231\340\xb8\xb0\340\xb8\x99\xe0\xb8\xb3\340\xb8\255\340\270\xa2\xe0\270\xb9\xe0\271\x88\xe0\xb9\x81\xe0\270\245\xe0\271\x89\xe0\xb8\xa7"); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/aff-info", $data, true); } } } } } } public function live_withdrawal() { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; $sql = "\xa\xa\x9\x9\x9SELECT *\xa\xa\x9 \x9FROM report_transaction
\xa \x9\x9where transaction_type = 'withdraw'\xa\xa \x9 order by date DESC
\xa\x9\x9\x9limit 10
\x9\x9"; $lists = $this->main_model->custom_query_result("\xa\xa \x9{$sql}
"); $data["lists"] = $lists; echo $this->load->view("panel_user/{$theme}/ajax_load/live_withdrawal", $data, true); } public function live_commission() { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; $sql = "
\x9\x9 SELECT *\xa
\x9 FROM report_transaction
\x9 \x9where transaction_type = 'deposit'\xa
order by date DESC
\xa \x9 limit 10\xa\xa "; $lists = $this->main_model->custom_query_result("
\x9\x9\x9{$sql}\xa
"); $data["lists"] = $lists; echo $this->load->view("panel_user/{$theme}/ajax_load/live_commission", $data, true); } public function withdraw($type = "do") { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; if (empty($_SESSION["user"]["logged_in"])) { header("HTTP/1.1 401 Unauthorized"); } else { $this->form_validation->set_error_delimiters('', "<br>"); $this->form_validation->set_rules("withdraw", "withdraw", "trim|required", array("required" => "\xe0\xb8\x82\340\271\211\340\xb8\255\340\xb8\xa1\340\xb8\xb9\xe0\270\xa5\340\271\204\340\xb8\241\340\271\210\xe0\xb8\204\340\xb8\xa3\xe0\xb8\x9a\xe0\xb8\226\340\271\211\xe0\270\247\xe0\270\231 \xe0\xb8\201\340\270\xa3\340\xb8\270\340\270\223\xe0\270\262\340\xb9\x83\xe0\xb8\252\xe0\xb9\x88\xe0\xb8\x82\xe0\271\x89\340\270\255\340\xb8\241\340\xb8\271\340\xb8\xa5\xe0\271\203\340\xb8\xab\340\271\x89\xe0\270\x96\xe0\xb8\271\xe0\270\201\xe0\xb8\x95\340\271\x89\340\270\xad\xe0\270\207")); if ($type === "check") { $user_info = $this->user_model->get_user($_SESSION["user"]["id"]); $check = $this->main_model->custom_query_row("SELECT * FROM main_wallet_withdraw WHERE mobile_no = '{$user_info["mobile_no"]}' AND status IS NULL"); if (!empty($check)) { $d = array("status" => "warning", "message" => "\340\xb8\xa1\xe0\270\265\340\xb8\xa3\340\270\262\340\270\242\340\xb8\x81\xe0\270\xb2\xe0\270\xa3\xe0\270\243\340\270\255\xe0\xb8\xad\340\xb8\x99\340\xb8\xb8\xe0\xb8\xa1\xe0\xb8\261\xe0\xb8\x95\340\270\264", "data" => $check); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); } else { $d = array("status" => "success", "message" => "\340\xb9\204\xe0\xb8\xa1\340\271\x88\340\270\241\340\270\265\xe0\270\xa3\340\270\262\xe0\xb8\242\xe0\270\x81\340\270\262\xe0\270\243\340\xb8\243\340\xb8\255\340\xb8\255\xe0\270\x99\xe0\270\xb8\340\xb8\xa1\xe0\270\xb1\xe0\270\225\xe0\270\xb4"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); } } if ($this->form_validation->run() === false) { $d = array("status" => "error", "message" => validation_errors()); $data["error"] = $d["message"]; if ($d["message"] == '') { $d["message"] = "\340\270\x82\340\xb9\x89\xe0\xb8\255\340\xb8\xa1\340\xb8\271\340\270\xa5\340\271\204\340\xb8\xa1\xe0\xb9\x88\340\xb8\x84\xe0\270\xa3\340\xb8\232\xe0\xb8\x96\xe0\xb9\211\xe0\270\xa7\xe0\270\x99 \340\xb8\201\340\xb8\243\xe0\xb8\xb8\340\270\223\xe0\xb8\xb2\340\xb9\203\xe0\270\252\340\271\x88\xe0\xb8\202\xe0\xb9\x89\xe0\xb8\xad\340\xb8\xa1\xe0\270\271\xe0\xb8\xa5\340\271\203\xe0\xb8\xab\xe0\271\211\340\xb8\226\xe0\xb8\xb9\340\xb8\x81\340\270\225\340\271\x89\xe0\xb8\xad\xe0\xb8\x87"; header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); } $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/withdraw", $data, true); } else { $withdraw_amount = (double) str_replace(",", '', $this->input->post("withdraw")); $user_info = $this->user_model->get_user($_SESSION["user"]["id"]); $withdraw_setting = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "withdraw_setting")))["value"], true); if ($withdraw_setting["enable"] == 0) { $d = array("status" => "error", "message" => "\xe0\270\243\xe0\xb8\260\xe0\xb8\232\340\xb8\x9a\340\270\233\xe0\xb8\xb4\xe0\xb8\x94\xe0\270\x81\340\270\xb2\xe0\xb8\243\xe0\xb8\226\xe0\270\xad\xe0\270\x99\xe0\xb9\x80\340\270\207\xe0\270\xb4\340\xb8\231 \xe0\xb8\212\xe0\xb8\261\340\271\x88\340\270\247\340\270\x84\xe0\270\243\xe0\xb8\xb2\xe0\270\xa7"); $data["error"] = $d["message"]; header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); die; } if ($withdraw_amount < $withdraw_setting["MinWithdraw"]) { $d = array("status" => "error", "message" => "\340\270\xa2\xe0\270\xad\xe0\xb8\x94\340\xb9\x80\340\xb8\x87\xe0\270\xb4\340\270\231\xe0\270\202\340\270\255\xe0\xb8\207\xe0\270\204\xe0\270\xb8\xe0\xb8\x93\xe0\xb8\242\xe0\xb8\xb1\340\270\207\340\271\204\xe0\xb8\xa1\xe0\xb9\x88\xe0\270\x96\340\270\266\340\xb8\x87\340\270\242\340\270\xad\340\xb8\224\340\xb8\x82\xe0\xb8\xb1\xe0\xb9\211\340\xb8\231\xe0\xb8\x95\xe0\xb9\x88\xe0\xb8\xb3\xe0\270\227\xe0\xb8\xb5\340\271\210\340\270\x96\340\270\255\xe0\xb8\231\xe0\xb9\204\xe0\xb8\x94\xe0\xb9\211"); $data["error"] = $d["message"]; header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); die; } if ($withdraw_amount > 0) { $this->agent_model->reset_turn($user_info); if ($user_info["turn_date"] == null) { $turn_date = date_format(date_create($user_info["create_at"]), "Y-m-d"); } else { $turn_date = date("Y-m-d", strtotime($user_info["turn_date"] . "- 1 days")); } $row = $this->main_model->get_row("sl_users", array("where" => array("col" => "id", "val" => $_SESSION["user"]["id"]))); if ($withdraw_setting["withdraw_type"] == "turnover") { if ($row["turn"] != 0) { $bet = 0; $tmp_data = $this->main_model->custom_query_row("
\x9\x9 \x9\x9\x9\x9select *
\x9\x9 \x9 from report_transaction\xa\x9\x9\x9 \x9 where username = '" . $row["mobile_no"] . "' and ( transaction_type = 'DEPOSIT' or transaction_type = 'CRF' or transaction_type = 'DEPOSITM' or transaction_type = 'BONUSM' )
\x9\x9\x9\x9\x9 \x9 order by date desc\xa \x9\x9\x9 "); $tmp_agents = $this->main_model->get_result("agent_account"); foreach ($tmp_agents as $val) { if ($val["provider"] == "amb" && $val["status"] == 1) { $api_data = array("method" => "GWL", "user" => $row["amb_id"], "ref" => $tmp_data["id"]); $res = $this->amb_model->SendApi($api_data); } else { if ($val["provider"] == "betflix" && $val["status"] == 1) { $api_data = array("method" => "GWL", "username" => $row["betflix_id"], "start" => $turn_date, "end" => date("Y-m-d")); $res = $this->betflix_model->SendApi($api_data); } } } foreach ($res["result"]["data"] as $tmp) { $bet += $tmp["validAmount"]; } $this->main_model->update("id", $user_info["id"], "sl_users", array("bet" => $bet)); $row = $this->main_model->get_row("sl_users", array("where" => array("col" => "id", "val" => $_SESSION["user"]["id"]))); if ($row["bet"] < $row["turn"]) { $d = array("status" => "error", "message" => "\xe0\xb8\242\xe0\xb8\xad\xe0\270\224\340\271\200\340\xb8\x94\xe0\xb8\xb4\340\270\xa1\340\xb8\x9e\xe0\270\xb1\xe0\xb8\x99\340\xb8\x82\340\xb8\255\xe0\270\207\340\270\204\xe0\270\xb8\xe0\xb8\223 \340\270\231\xe0\xb9\x89\340\270\255\xe0\xb8\242\340\xb8\x81\340\xb8\xa7\xe0\271\210\340\270\262\xe0\xb8\242\340\xb8\xad\xe0\xb8\x94\340\xb9\x80\340\xb8\x97\340\xb8\264\340\270\xa3\xe0\xb9\x8c\340\xb8\x99\xe0\271\x82\xe0\xb8\255\340\271\200\340\xb8\xa7\xe0\xb8\xad\xe0\270\xa3\340\271\x8c<br>\340\270\201\340\270\243\340\xb8\270\340\xb8\x93\xe0\xb8\xb2\xe0\xb9\x80\340\xb8\x94\340\xb8\xb4\340\xb8\xa1\340\270\x9e\340\270\xb1\xe0\270\231\340\xb8\x95\340\xb9\x88\xe0\xb8\xad\340\270\255\xe0\xb8\265\340\xb8\201 " . ($row["turn"] - $bet) . " \340\270\232\340\xb8\262\xe0\270\x97"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/withdraw", $data, true); die; } } } else { if ($withdraw_setting["withdraw_type"] == "credit") { if ($row["credit"] < $row["turn"]) { $d = array("status" => "error", "message" => "\xe0\xb8\242\340\xb8\xad\xe0\xb8\x94\340\xb8\204\340\270\x87\xe0\xb9\x80\xe0\xb8\253\340\xb8\xa5\340\xb8\267\340\xb8\xad\xe0\xb8\x95\340\271\x89\340\xb8\xad\340\270\x87\340\xb8\241\xe0\270\xb2\340\270\201\340\xb8\x81\340\270\247\xe0\271\210\xe0\xb8\xb2\340\xb8\242\340\xb8\255\340\xb8\x94\340\271\x80\xe0\xb8\x97\xe0\xb8\xb4\340\xb8\243\xe0\271\214\340\xb8\x99"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/withdraw", $data, true); die; } } } if ($row["credit"] >= $withdraw_amount && $row["credit"] != 0) { $id = $this->user_model->generateRequestID("withdraw"); $row_user = $this->user_model->get_user($_SESSION["user"]["id"]); $note = ''; $MaxWithdraw = $withdraw_amount; $tmp_check_promotion = $this->main_model->custom_query_row("
\x9\x9\x9\x9 \x9select *
\x9\x9\x9\x9from meta_promotion
\x9\x9 \x9 where u_mobile = '" . $row["mobile_no"] . "' and status = 1
\x9 "); if (!empty($tmp_check_promotion)) { $tmp_pro = json_decode($tmp_check_promotion["value"], true); $tmp_pro["MaxWithdraw"] = isset($tmp_pro["MaxWithdraw"]) ? $tmp_pro["MaxWithdraw"] : 0; if ($tmp_pro["MaxWithdraw"] != 0 && $MaxWithdraw > $tmp_pro["MaxWithdraw"]) { $MaxWithdraw = $tmp_pro["MaxWithdraw"]; } $note = "\xe0\270\xa5\340\270\271\xe0\xb8\x81\xe0\270\204\xe0\xb9\211\340\xb8\xb2\xe0\xb8\225\xe0\xb8\xb4\xe0\270\x94\xe0\xb9\202\340\xb8\233\xe0\xb8\xa3 " . $tmp_pro["bonus_name"] . " \340\xb8\x96\340\270\xad\340\xb8\231\xe0\xb9\x84\xe0\xb8\x94\xe0\xb9\211\xe0\xb8\252\xe0\xb8\xb9\340\xb8\207\340\270\xaa\xe0\270\270\xe0\270\x94 " . $tmp_pro["MaxWithdraw"] . " \340\xb8\xa2\xe0\270\255\xe0\xb8\224\xe0\270\xab\340\270\261\xe0\270\x81\340\270\x88\340\xb8\xa3\340\270\264\xe0\270\x87 " . $withdraw_amount; } $tmp_check_codefree = $this->main_model->custom_query_row("
\x9\x9 \x9select * \xa \x9 from code_free_used
\x9\x9where username = '" . $row["mobile_no"] . "' and status = 1\xa\x9\x9\x9\x9 "); if (!empty($tmp_check_codefree)) { if ($tmp_check_codefree["type"] == "normal") { $tmp_get_codefree = $this->main_model->custom_query_row("\xa\x9\x9 \x9\x9 \x9\x9\x9select *
\x9\x9 \x9from code_free
\x9\x9 \x9 \x9where code = '{$tmp_check_codefree["code"]}'
\x9\x9\x9 \x9 \x9 "); if (!empty($tmp_get_codefree)) { $tmp_max_withdraw = isset($tmp_get_codefree["max_withdraw"]) ? $tmp_get_codefree["max_withdraw"] : 0; if ($tmp_max_withdraw != 0 && $MaxWithdraw > $tmp_max_withdraw) { $MaxWithdraw = $tmp_max_withdraw; } $note = "\340\xb8\245\340\270\xb9\340\270\201\340\270\204\xe0\xb9\211\xe0\270\262\xe0\xb9\x83\340\xb8\x8a\xe0\xb9\211\340\271\x82\340\270\204\340\271\211\340\270\x94 " . $tmp_check_codefree["code"] . " \xe0\270\226\xe0\xb8\xad\340\xb8\231\340\271\x84\xe0\270\224\xe0\271\211\xe0\xb8\xaa\340\270\271\340\270\x87\xe0\xb8\xaa\340\xb8\270\340\xb8\x94 " . $tmp_max_withdraw . " \340\xb8\xa2\xe0\270\255\340\xb8\x94\xe0\xb8\xab\340\270\261\xe0\270\x81\xe0\xb8\210\xe0\xb8\xa3\xe0\270\264\340\xb8\207 " . $withdraw_amount; } } else { if ($tmp_check_codefree["type"] == "user_code") { $tmp_get_codefree = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "codefree_user")))["value"], true); if (!empty($tmp_get_codefree)) { $tmp_max_withdraw = isset($tmp_get_codefree["max_withdraw"]) ? $tmp_get_codefree["max_withdraw"] : 0; if ($tmp_max_withdraw != 0 && $MaxWithdraw > $tmp_max_withdraw) { $MaxWithdraw = $tmp_max_withdraw; } $note = "\xe0\xb8\245\xe0\270\xb9\340\270\x81\340\270\204\xe0\271\211\xe0\270\262\xe0\xb9\x83\xe0\xb8\x8a\340\271\x89\340\xb9\x82\xe0\270\204\xe0\271\x89\xe0\270\x94 " . $row["codefree"] . " \xe0\xb8\x96\340\270\255\340\270\231\340\xb9\204\xe0\xb8\x94\xe0\xb9\x89\340\xb8\xaa\340\xb8\271\xe0\xb8\x87\xe0\270\xaa\xe0\xb8\xb8\340\xb8\x94 " . $tmp_max_withdraw . " \xe0\270\242\xe0\270\255\340\270\224\xe0\270\253\xe0\xb8\xb1\340\270\201\340\xb8\210\xe0\xb8\243\340\xb8\xb4\xe0\270\x87 " . $withdraw_amount; } } } } $agent_data = array("agent_method" => "WC", "agent_data" => array("user" => $row_user, "credit" => $withdraw_amount, "id" => $id)); $res = $this->agent_model->process($agent_data); if ($res["status"]) { $this->main_model->custom_query("\xa \x9\x9 \x9UPDATE meta_promotion
\x9\x9 \x9 SET status = 0
\x9 \x9 \x9 \x9WHERE u_mobile = '{$row["mobile_no"]}'
\x9\x9\x9\x9\x9"); $this->main_model->custom_query("
\x9 \x9\x9UPDATE code_free_used\xa \x9 \x9\x9SET status = 0\xa \x9\x9\x9\x9\x9\x9 WHERE username = '{$row["mobile_no"]}'\xa\x9\x9 \x9 "); $date = date("Y-m-d H:i:s"); $tmp_insert = array("id" => $id, "mobile_no" => $row["mobile_no"], "fullname" => $row["fullname"], "credit_before" => $row["credit"], "credit_after" => $row["credit"] - $withdraw_amount, "withdraw_amount" => $MaxWithdraw, "u_bank_name" => $this->main_model->get_bank_info($row["bank_id"])["bank_name"], "u_bank_acc" => $row["bank_acc_no"], "withdraw_time" => $date, "status" => null, "notice" => 1, "approve_date" => null, "approve_admin" => null, "note" => $note); $this->main_model->create($tmp_insert, "main_wallet_withdraw"); $this->main_model->update("id", $row_user["id"], "sl_users", array("credit" => $row["credit"] - $withdraw_amount)); $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $line_token = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "line_token")))["value"], true)["Withdraw"]; if (!empty($line_token)) { $line_flex = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "line_flex_enable")))["value"], true); $line_flex_open = false; if (isset($line_flex["enable"])) { if ($line_flex["enable"] == 1) { $line_flex_open = true; } } if (!$line_flex_open) { $this->line_model->setToken($line_token); $this->line_model->addMsg("\342\x95\x90\342\225\220\xe2\x95\x90\342\225\220\342\225\220\xe2\225\220\342\225\220\xe2\225\x90\342\x95\x90\342\x95\220\342\x95\x90\342\x95\220\342\x95\220"); $this->line_model->addMsg("\360\x9f\231\201 \xe0\xb8\xa1\xe0\xb8\265\340\xb8\xa3\xe0\270\xb2\340\270\242\xe0\xb8\x81\340\270\xb2\xe0\270\xa3\340\271\x81\340\270\x88\340\271\211\xe0\xb8\207\xe0\xb8\x96\340\270\xad\xe0\xb8\231 \xf0\237\231\x81"); $this->line_model->addMsg(''); $this->line_model->addMsg("\360\237\230\241 \340\270\226\340\xb8\255\xe0\270\x99\340\270\210\340\270\xb3\xe0\xb8\231\xe0\270\247\xe0\xb8\231: " . $withdraw_amount . " \360\237\x98\xa1"); $this->line_model->addMsg(''); $this->line_model->addMsg("Username : " . $row["id"]); $this->line_model->addMsg("\340\xb9\x80\xe0\xb8\x9a\340\xb8\xad\xe0\xb8\243\340\xb9\214\xe0\xb8\241\xe0\270\xb7\340\270\255\340\xb8\226\xe0\270\267\xe0\270\xad : " . $row["mobile_no"]); $this->line_model->addMsg("\xe0\270\x8a\xe0\xb8\267\340\271\x88\xe0\xb8\255 : " . $row["fullname"]); $this->line_model->addMsg("\xe0\271\x80\xe0\270\xa5\340\xb8\x82\340\270\x9a\340\xb8\xb1\340\270\x8d\340\xb8\212\xe0\xb8\265 : " . $row["bank_acc_no"]); $this->line_model->addMsg("\340\270\230\xe0\xb8\x99\340\270\xb2\xe0\270\204\340\xb8\xb2\xe0\270\243 : " . $row["bank_name"]); $this->line_model->addMsg("\xe0\271\x80\xe0\270\227\340\xb8\264\340\xb8\xa3\340\271\x8c\340\xb8\x99 : " . $row["turn"]); $this->line_model->addMsg("\xe0\270\xa7\340\xb8\xb1\xe0\270\x99\xe0\xb8\x97\340\xb8\265\xe0\271\x88 : " . $date); $this->line_model->addMsg("\342\225\220\342\x95\220\342\x95\x90\xe2\x95\220\342\x95\x90\xe2\225\220\xe2\x95\x90\xe2\x95\220\xe2\225\220\xe2\225\220\342\x95\220\342\225\x90\342\x95\220"); $this->line_model->sendNotify(); } else { $this->line_model_flex->setToken($line_token, "withdraw"); $this->line_model_flex->addReplacer("withdraw_amount", $withdraw_amount); $this->line_model_flex->addReplacer("id", $row["id"]); $this->line_model_flex->addReplacer("mobile_no", $row["mobile_no"]); $this->line_model_flex->addReplacer("fullname", $row["fullname"]); $this->line_model_flex->addReplacer("bank_acc_no", $row["bank_acc_no"]); $this->line_model_flex->addReplacer("bank_name", $row["bank_name"]); $this->line_model_flex->addReplacer("turn", $row["turn"]); $this->line_model_flex->addReplacer("date", $date); $this->line_model_flex->sendNotify(); } } $tmp_data = array("id" => null, "username" => $row["mobile_no"], "icon" => "info", "title" => "\340\270\x82\xe0\270\255\340\270\x96\340\xb8\xad\xe0\xb8\231\xe0\xb9\200\340\270\x87\340\xb8\264\xe0\xb8\231", "text" => "\340\xb8\210\xe0\xb8\263\340\270\x99\xe0\270\xa7\340\270\x99 : " . $withdraw_amount . " \xe0\xb8\x9a\xe0\xb8\xb2\xe0\270\227 <br>\340\270\xa3\xe0\xb8\xab\xe0\xb8\xb1\340\270\252\340\xb8\x97\xe0\270\xb3\340\xb8\xa3\340\270\xb2\340\xb8\242\340\270\x81\340\270\262\xe0\xb8\243 : " . $id, "meta_data" => '', "date" => date("Y-m-d H:i:s"), "status" => 1); $this->main_model->create($tmp_data, "notice_admin"); $check["withdraw_amount"] = $withdraw_amount; $data["withdraw"] = $check; $data["user"] = $row; $bank_info = $this->main_model->get_bank_info($row["bank_id"]); $data["user"]["bank_info"] = $bank_info; $d = array("status" => "success", "message" => "\340\xb8\243\340\xb8\xad\340\xb8\201\xe0\xb8\262\340\270\243\340\xb8\224\xe0\xb8\263\340\271\200\xe0\270\x99\340\xb8\264\xe0\xb8\x99\340\xb8\x81\xe0\xb8\xb2\340\270\xa3 \340\xb8\xa0\340\270\xb2\340\xb8\xa2\340\271\x83\340\xb8\231 15 \xe0\xb8\231\xe0\270\262\xe0\xb8\x97\340\270\265!", "data" => $bank_info); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); echo $this->load->view("panel_user/{$theme}/ajax_load/account/withdraw_wait.php", $data, true); } else { $d = array("status" => "error", "message" => "\340\xb8\204\340\270\270\340\xb8\223\xe0\270\x97\xe0\xb8\xb3\340\xb8\243\340\270\262\340\270\xa2\340\270\201\xe0\xb8\262\340\xb8\243\xe0\271\x80\340\xb8\243\xe0\271\207\xe0\xb8\247\340\271\x80\xe0\xb8\x81\xe0\xb8\264\340\xb8\231\xe0\271\204\xe0\270\x9b \340\271\x82\340\xb8\x9b\xe0\270\xa3\xe0\xb8\x94\xe0\xb8\243\340\270\255\xe0\xb8\252\340\xb8\261\340\xb8\x81\340\xb8\204\340\xb8\xa3\xe0\xb8\xb9\xe0\xb9\210 \340\xb9\201\xe0\xb8\245\xe0\270\260\xe0\270\224\340\270\263\xe0\xb9\x80\xe0\xb8\x99\xe0\xb8\xb4\xe0\270\231\340\xb8\x81\xe0\xb8\xb2\xe0\270\xa3\xe0\271\x83\xe0\270\xab\xe0\xb8\241\340\xb9\x88\xe0\270\xad\xe0\xb8\xb5\xe0\xb8\201\xe0\xb8\204\340\270\243\340\xb8\261\xe0\xb9\x89\340\270\207!"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/withdraw", $data, true); } } else { $d = array("status" => "error", "message" => "\340\xb8\242\xe0\xb8\255\xe0\270\x94\xe0\xb8\x84\340\270\207\340\xb9\x80\340\270\253\xe0\xb8\245\340\xb8\267\340\xb8\255\xe0\xb8\225\340\271\211\340\xb8\xad\xe0\270\x87\340\xb8\xa1\xe0\xb8\xb2\340\xb8\x81\xe0\xb8\x81\xe0\xb8\xa7\340\xb9\x88\xe0\270\xb2\xe0\270\xa2\340\270\255\340\xb8\224\xe0\xb8\226\340\xb8\xad\340\xb8\231"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/withdraw", $data, true); } } else { $d = array("status" => "error", "message" => "\xe0\270\xa2\xe0\xb8\xad\340\xb8\x94\340\270\x96\xe0\xb8\xad\xe0\270\231\340\270\225\xe0\271\x89\340\xb8\xad\340\270\207\340\xb8\241\340\270\262\xe0\270\201\340\xb8\201\340\270\xa7\340\271\x88\xe0\270\262 1 \340\xb8\232\340\270\xb2\xe0\270\x97"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/withdraw", $data, true); } } } } public function logingame_betflix($gamekey = false, $gameid = false) { if (empty($_SESSION["user"]["logged_in"])) { $_SESSION["error"]["game"] = "Please login"; echo "<script> location.href = '" . base_url() . "'; </script>"; } else { $tmp_agents = $this->main_model->get_result("agent_account"); $agents = array(); $i = 0; foreach ($tmp_agents as $row) { $agents[$i] = $row; foreach (json_decode($row["meta_data"], true) as $key => $val) { $agents[$i][$key] = $val; } unset($agents[$i]["meta_data"]); $i++; } foreach ($agents as $key => $val) { if ($val["provider"] == "amb") { continue; } $agentss[$val["provider"]] = $val; } unset($agent["meta_data"]); $agent = $agentss["betflix"]; if ($gamekey == false) { $d = array("status" => "error", "message" => "\xe0\xb9\x83\340\xb8\252\340\271\x88\xe0\xb9\x80\340\xb8\201\340\270\241\340\xb8\227\340\xb8\265\xe0\xb9\210\340\xb8\x95\340\271\211\340\xb8\xad\340\270\207\xe0\270\201\340\270\xb2\340\xb8\xa3"); $_SESSION["error"]["game"] = "\xe0\271\x83\340\xb8\252\xe0\271\x88\xe0\xb9\200\340\xb8\201\xe0\270\241\340\xb8\x97\340\270\265\xe0\271\210\340\xb8\225\xe0\xb9\211\340\270\xad\xe0\xb8\207\xe0\xb8\x81\340\270\262\xe0\270\xa3"; echo "<script> location.href = '" . base_url() . "'; </script>"; die; } $row_user = $this->user_model->get_user($_SESSION["user"]["id"]); $sql = "
\x9\x9 SELECT * \xa
\x9\x9\x9 FROM report_transaction\xa\xa\x9 where username = '" . $row_user["mobile_no"] . "' and transaction_type = 'deposit' limit 1
\xa\x9\x9\x9"; $deposit_ingame = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "deposit_ingame")))["value"], true); $check_dep = true; if (isset($deposit_ingame["enable"])) { if ($deposit_ingame["enable"] != 1) { $check_dep = false; } } if ($check_dep) { $check_deposit = $this->main_model->custom_query_row("
\x9\x9\x9{$sql}\xa\xa \x9"); } $tmp5 = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "betflix_game_setting")))["value"], true); $tmp = array(); foreach ($tmp5 as $key => $val) { $tmp[] = $key; } $gamekey = strtolower($gamekey); if (!in_array(strtolower($gamekey), $tmp) && strtolower($gamekey) != "qtech") { $d = array("status" => "error", "message" => "\xe0\xb9\x80\xe0\270\x81\xe0\xb8\xa1\340\270\231\340\270\xb5\340\xb9\x89\xe0\xb8\242\xe0\xb8\261\340\270\x87\xe0\271\204\340\xb8\xa1\340\271\x88\xe0\271\x80\340\xb8\x9b\xe0\xb8\264\xe0\270\224\xe0\271\203\340\xb8\xab\xe0\xb9\x89\340\xb9\x80\xe0\xb8\245\xe0\271\x88\340\270\231"); $_SESSION["error"]["game"] = "\xe0\xb9\x80\xe0\xb8\x81\xe0\270\241\xe0\xb8\231\xe0\270\xb5\xe0\xb9\x89\340\xb8\242\xe0\270\261\xe0\xb8\x87\xe0\271\204\xe0\270\241\xe0\xb9\210\xe0\xb9\x80\xe0\270\233\xe0\270\264\340\xb8\224\xe0\271\x83\340\270\253\xe0\xb9\211\340\xb9\200\340\270\xa5\xe0\xb9\x88\xe0\270\x99"; echo "<script> location.href = '" . base_url() . "'; </script>"; die; } $tmp_check_promotion = $this->main_model->custom_query_row("
\x9\x9\x9\x9select *
\x9\x9 from meta_promotion\xa\x9\x9 \x9where u_mobile = '" . $row_user["mobile_no"] . "' and status = 1
\x9 \x9"); if (!empty($tmp_check_promotion)) { $tmp_pro = json_decode($tmp_check_promotion["value"], true); $list_not_slot = array("amb", "sexy", "sa", "ag", "gd88", "wm", "dg", "bg", "gdg"); $game_type_pro = isset($tmp_pro["GameType"]) ? $tmp_pro["GameType"] : "all"; if ($game_type_pro == "slot") { if (in_array($gamekey, $list_not_slot)) { $_SESSION["error"]["game"] = "\340\270\241\340\270\265\340\270\232\340\xb8\262\340\xb8\207\340\xb8\xad\xe0\xb8\242\xe0\xb9\x88\340\xb8\262\xe0\270\x87\340\xb8\x9c\340\270\264\xe0\270\x94\340\xb8\236\340\270\xa5\340\270\xb2\340\xb8\224 \xe0\270\204\xe0\270\xb8\xe0\270\x93\xe0\xb8\243\340\270\261\340\xb8\x9a\340\271\202\340\xb8\233\340\270\243\xe0\271\x82\340\xb8\241\340\xb8\212\340\270\261\340\xb9\x88\xe0\xb8\231\340\xb8\255\xe0\270\xa2\xe0\270\271\340\xb9\210 \340\xb8\210\340\xb8\xb0\xe0\271\x80\340\xb8\x82\xe0\xb9\211\340\270\xb2\xe0\271\200\xe0\xb8\245\340\xb9\210\xe0\xb8\x99\340\271\x84\340\270\224\340\xb9\x89\xe0\271\x80\340\xb8\211\340\xb8\236\340\270\xb2\340\270\xb0\xe0\xb8\252\xe0\270\245\340\xb9\x87\xe0\xb8\255\xe0\xb8\x95"; echo "<script> location.href = '" . base_url() . "'; </script>"; die; } } elseif ($game_type_pro == "baccarat") { if (!in_array($gamekey, $list_not_slot)) { $_SESSION["error"]["game"] = "\xe0\xb8\xa1\xe0\270\265\340\270\x9a\340\270\xb2\xe0\270\x87\xe0\xb8\xad\340\xb8\242\340\xb9\210\xe0\xb8\262\xe0\xb8\x87\xe0\270\234\xe0\xb8\264\xe0\xb8\x94\340\270\x9e\340\xb8\xa5\340\270\xb2\340\270\224 \xe0\270\204\xe0\270\270\xe0\xb8\x93\340\xb8\xa3\xe0\xb8\xb1\340\270\232\xe0\271\202\340\270\233\340\xb8\243\xe0\271\202\340\xb8\241\340\270\212\340\xb8\xb1\340\271\x88\340\270\231\xe0\xb8\xad\340\xb8\xa2\340\xb8\xb9\340\xb9\210 \340\270\210\xe0\270\260\340\271\200\340\xb8\202\340\271\211\340\xb8\262\340\xb9\x80\xe0\xb8\xa5\xe0\271\210\xe0\270\x99\340\271\204\340\270\224\340\271\211\xe0\271\x80\xe0\270\x89\340\xb8\x9e\340\270\xb2\xe0\270\xb0\xe0\270\x9a\340\xb8\xb2\xe0\xb8\x84\340\xb8\xb2\xe0\xb8\xa3\xe0\xb9\x88\xe0\270\262"; echo "<script> location.href = '" . base_url() . "'; </script>"; die; } } else { } } if ($gameid != false) { $api_data = array("method" => "GLI", "username" => $row_user["betflix_id"], "provider" => strtolower($gamekey), "gamecode" => strtolower($gameid), "language" => "thai", "openGame" => "true"); } else { $api_data = array("method" => "GLI", "username" => $row_user["betflix_id"], "provider" => strtolower($gamekey), "gamecode" => "none", "language" => "thai", "openGame" => "true"); } $res = $this->betflix_model->SendApi($api_data); if (isset($res["code"])) { if ($res["code"] == "0") { $d = array("status" => "success", "message" => "\340\271\200\340\xb8\202\xe0\xb9\x89\340\xb8\262\340\xb8\252\xe0\270\271\340\xb9\x88\xe0\270\243\xe0\xb8\260\340\xb8\232\340\xb8\x9a\340\xb9\x80\340\270\201\xe0\270\241\340\270\xaa\xe0\271\x8c", "data" => $res["url"]); echo "<script> location.href = '" . $d["data"] . "'; </script>"; } else { $d = array("status" => "error", "message" => "\340\270\xa1\xe0\xb8\265\xe0\270\232\340\xb8\xb2\xe0\xb8\x87\340\xb8\255\340\xb8\xa2\xe0\271\x88\340\xb8\xb2\340\xb8\x87\xe0\xb8\234\xe0\xb8\xb4\xe0\xb8\224\340\xb8\x9e\xe0\xb8\245\340\xb8\xb2\xe0\xb8\224 \xe0\xb8\x81\xe0\270\xa3\xe0\270\270\340\270\223\340\xb8\262\xe0\xb8\xa3\340\xb8\xad\340\xb8\213\340\xb8\261\xe0\xb8\201\xe0\270\204\340\xb8\243\xe0\xb8\271\340\xb9\x88\xe0\xb9\x81\xe0\270\xa5\xe0\270\xb0\340\xb8\245\340\270\255\xe0\270\207\xe0\xb8\xad\xe0\270\xb5\340\270\201\340\270\x84\340\270\xa3\xe0\xb8\xb1\340\xb9\211\xe0\270\x87"); $_SESSION["error"]["game"] = "\xe0\xb8\241\340\270\xb5\340\xb8\x9a\340\270\xb2\xe0\270\207\340\xb8\255\340\xb8\xa2\xe0\271\x88\340\270\xb2\340\xb8\207\xe0\270\234\xe0\xb8\xb4\xe0\270\224\340\270\236\340\xb8\xa5\340\270\xb2\340\270\x94 \xe0\270\x81\340\270\243\340\xb8\270\xe0\270\223\340\270\262\xe0\270\xa3\340\xb8\xad\xe0\270\x8b\340\270\xb1\340\xb8\201\340\270\204\xe0\xb8\xa3\340\270\xb9\340\271\x88\xe0\271\201\xe0\270\xa5\xe0\270\260\340\xb8\245\xe0\xb8\xad\xe0\270\207\xe0\270\255\xe0\xb8\xb5\xe0\xb8\201\340\xb8\204\xe0\xb8\243\340\xb8\xb1\340\271\211\340\270\207 >>" . $res["message"]; echo "<script> location.href = '" . base_url() . "'; </script>"; } } else { $d = array("status" => "error", "message" => "No code."); $_SESSION["error"]["game"] = "No code."; echo "<script> location.href = '" . base_url() . "'; </script>"; } } } public function logingame_betflix_lobby($gamekey = false, $gameid = false) { if (empty($_SESSION["user"]["logged_in"])) { $_SESSION["error"]["game"] = "Please login"; echo "<script> location.href = '" . base_url() . "'; </script>"; } else { $tmp_agents = $this->main_model->get_result("agent_account"); $agents = array(); $i = 0; foreach ($tmp_agents as $row) { $agents[$i] = $row; foreach (json_decode($row["meta_data"], true) as $key => $val) { $agents[$i][$key] = $val; } unset($agents[$i]["meta_data"]); $i++; } foreach ($agents as $key => $val) { if ($val["provider"] == "amb") { continue; } $agentss[$val["provider"]] = $val; } unset($agent["meta_data"]); $agent = $agentss["betflix"]; $row_user = $this->user_model->get_user($_SESSION["user"]["id"]); $tmp5 = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "betflix_game_setting")))["value"], true); $tmp = array(); foreach ($tmp5 as $key => $val) { $tmp[] = $key; } $api_data = array("method" => "GLILB", "username" => $row_user["betflix_id"]); $res = $this->betflix_model->SendApi($api_data); if (isset($res["code"])) { if ($res["code"] == "0") { $d = array("status" => "success", "message" => "\xe0\xb9\x80\340\270\202\340\271\x89\xe0\xb8\262\xe0\270\xaa\xe0\270\271\340\xb9\x88\340\270\243\340\xb8\260\xe0\270\x9a\340\xb8\232\340\xb9\x80\xe0\270\x81\xe0\270\xa1\340\xb8\xaa\xe0\xb9\214", "data" => json_decode($tmp_agents[0]["meta_data"])->end_point_game . "/login/apilogin/" . $res["token"]); echo "<script> location.href = '" . $d["data"] . "'; </script>"; } else { $d = array("status" => "error", "message" => "\340\xb8\xa1\xe0\270\265\340\270\x9a\340\270\xb2\xe0\xb8\x87\xe0\270\255\xe0\270\242\xe0\271\210\340\xb8\262\340\xb8\x87\xe0\270\x9c\340\xb8\xb4\xe0\270\224\340\270\x9e\xe0\270\xa5\340\270\xb2\xe0\270\224 \340\xb8\201\xe0\xb8\xa3\xe0\xb8\270\340\270\x93\xe0\270\xb2\340\xb8\243\xe0\xb8\255\340\270\213\340\270\261\xe0\270\201\340\xb8\x84\340\xb8\243\340\270\271\xe0\xb9\x88\340\271\x81\340\270\245\340\xb8\260\xe0\270\xa5\xe0\270\xad\xe0\270\207\340\270\xad\xe0\xb8\xb5\xe0\xb8\201\340\270\204\xe0\xb8\243\340\xb8\xb1\340\xb9\x89\340\270\x87"); $_SESSION["error"]["game"] = "\xe0\xb8\241\340\xb8\265\xe0\270\232\340\270\262\340\xb8\x87\xe0\270\xad\340\xb8\xa2\xe0\xb9\x88\340\270\262\340\270\x87\340\xb8\x9c\340\270\xb4\xe0\xb8\224\xe0\270\236\340\270\245\340\270\xb2\340\xb8\x94 \340\270\x81\xe0\270\243\xe0\270\xb8\xe0\xb8\x93\340\xb8\262\340\xb8\243\340\xb8\255\xe0\270\x8b\xe0\xb8\261\xe0\xb8\201\340\xb8\204\340\xb8\xa3\340\270\xb9\340\271\x88\340\271\x81\xe0\270\245\340\270\260\340\xb8\xa5\xe0\270\xad\340\270\x87\xe0\270\255\340\270\265\340\xb8\x81\xe0\270\x84\xe0\xb8\xa3\340\xb8\261\340\271\211\xe0\xb8\x87 >>" . $res["message"]; echo "<script> location.href = '" . base_url() . "'; </script>"; } } else { $d = array("status" => "error", "message" => "No code."); $_SESSION["error"]["game"] = "No code."; echo "<script> location.href = '" . base_url() . "'; </script>"; } } } public function logingame($gamekey = false, $gameid = false) { if (empty($_SESSION["user"]["logged_in"])) { $_SESSION["error"]["game"] = "Please login"; echo "<script> location.href = '" . base_url() . "'; </script>"; } else { $agent = $this->main_model->custom_query_row("\xa\xa \x9 select *
\xa\x9 \x9from agent_account
\x9\x9\x9 where status = 1
\x9\x9\x9"); foreach (json_decode($agent["meta_data"], true) as $key => $val) { $agent[$key] = $val; } unset($agent["meta_data"]); if ($gamekey == false) { $d = array("status" => "error", "message" => "\xe0\xb9\x83\xe0\270\xaa\xe0\xb9\210\340\xb9\x80\xe0\270\201\xe0\xb8\241\xe0\270\x97\xe0\270\265\340\271\x88\xe0\xb8\x95\340\xb9\211\xe0\270\255\340\xb8\207\340\270\x81\xe0\xb8\262\xe0\xb8\xa3"); $_SESSION["error"]["game"] = "\340\271\x83\xe0\xb8\xaa\340\271\210\xe0\xb9\200\xe0\xb8\x81\340\270\xa1\xe0\270\227\340\xb8\xb5\340\271\210\xe0\xb8\225\340\xb9\x89\340\xb8\255\340\270\207\xe0\270\201\340\270\xb2\340\270\xa3"; echo "<script> location.href = '" . base_url() . "'; </script>"; die; } $row_user = $this->user_model->get_user($_SESSION["user"]["id"]); $sql = "
\xa\x9 \x9 SELECT * \xa
\x9\x9\x9\x9FROM report_transaction\xa\xa\x9 \x9 where username = '" . $row_user["mobile_no"] . "' and transaction_type = 'deposit' limit 1\xa\xa\x9 "; $deposit_ingame = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "deposit_ingame")))["value"], true); $check_dep = true; if (isset($deposit_ingame["enable"])) { if ($deposit_ingame["enable"] != 1) { $check_dep = false; } } if ($check_dep) { $check_deposit = $this->main_model->custom_query_row("\xa
\x9\x9\x9 \x9{$sql}\xa\xa\x9 \x9\x9"); if (empty($check_deposit)) { $d = array("status" => "error", "message" => "\340\xb9\204\340\xb8\241\340\xb9\x88\340\xb8\252\xe0\270\262\340\270\241\340\xb8\262\xe0\xb8\243\xe0\270\226\xe0\xb9\x80\xe0\270\202\xe0\xb9\x89\xe0\270\xb2\340\xb9\x80\xe0\xb8\245\xe0\271\210\340\270\231\340\271\x84\340\xb8\x94\xe0\271\x89 \340\270\x81\xe0\xb8\xa3\340\270\270\340\xb8\223\xe0\xb8\262\xe0\xb8\x9d\xe0\xb8\xb2\xe0\xb8\201\xe0\xb9\x80\340\xb8\207\xe0\xb8\264\xe0\270\231\xe0\271\200\340\270\x9e\340\xb8\xb7\xe0\271\210\xe0\xb8\255\340\271\200\340\270\202\xe0\xb9\211\xe0\270\262\xe0\xb9\200\xe0\xb8\xa5\xe0\xb9\210\340\270\x99\xe0\271\200\340\270\x81\xe0\xb8\241"); echo json_encode($d, JSON_UNESCAPED_UNICODE); $_SESSION["error"]["game"] = "\340\xb9\x84\xe0\xb8\241\xe0\xb9\210\340\270\xaa\xe0\270\262\xe0\270\241\340\270\xb2\xe0\270\xa3\340\270\x96\xe0\271\x80\340\xb8\x82\xe0\xb9\211\xe0\270\262\340\271\x80\xe0\xb8\xa5\xe0\xb9\210\xe0\270\231\340\271\x84\xe0\xb8\x94\340\xb9\211 \340\270\201\340\xb8\xa3\xe0\270\xb8\xe0\xb8\x93\340\270\262\340\xb8\235\xe0\270\xb2\340\270\x81\xe0\xb9\x80\xe0\xb8\207\340\xb8\xb4\340\xb8\231\xe0\xb9\x80\xe0\xb8\x9e\340\xb8\267\xe0\xb9\210\340\xb8\255\340\xb9\x80\xe0\xb8\202\340\271\211\340\xb8\xb2\xe0\271\200\xe0\xb8\xa5\xe0\271\x88\xe0\xb8\x99\340\271\200\xe0\270\x81\340\270\xa1"; echo "<script> location.href = '" . base_url() . "'; </script>"; die; } } $tmp5 = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "amb_game_setting")))["value"], true); $tmp = array(); foreach ($tmp5 as $key => $val) { $tmp[] = $key; } if (!in_array($gamekey, $tmp)) { $d = array("status" => "error", "message" => "\xe0\xb9\x80\xe0\270\x81\xe0\270\xa1\xe0\xb8\x99\xe0\xb8\265\340\xb9\x89\340\xb8\242\340\270\xb1\340\xb8\207\340\271\204\xe0\xb8\241\xe0\xb9\x88\340\271\200\xe0\270\233\340\270\xb4\xe0\270\x94\xe0\271\x83\340\270\xab\340\271\x89\340\271\200\340\270\245\340\xb9\210\xe0\xb8\231"); $_SESSION["error"]["game"] = "\xe0\xb9\x80\340\270\x81\xe0\xb8\xa1\xe0\xb8\x99\340\270\265\xe0\xb9\211\xe0\xb8\xa2\xe0\xb8\261\xe0\xb8\207\xe0\271\204\xe0\xb8\xa1\xe0\xb9\x88\xe0\xb9\x80\xe0\xb8\233\340\270\264\xe0\xb8\224\xe0\xb9\203\340\xb8\xab\340\xb9\x89\340\271\x80\340\270\245\xe0\271\210\340\xb8\231"; echo "<script> location.href = '" . base_url() . "'; </script>"; die; } $tmp_check_promotion = $this->main_model->custom_query_row("\xa \x9\x9 select *
from meta_promotion\xa \x9 where u_mobile = '" . $row_user["mobile_no"] . "' and status = 1\xa \x9\x9"); if (!empty($tmp_check_promotion)) { $tmp_pro = json_decode($tmp_check_promotion["value"], true); $list_not_slot = array("amb", "sexy", "sa", "ag", "gd88", "wm", "dg", "bg", "gdg"); $game_type_pro = isset($tmp_pro["GameType"]) ? $tmp_pro["GameType"] : "all"; if ($game_type_pro == "slot") { if (in_array($gamekey, $list_not_slot)) { $_SESSION["error"]["game"] = "\xe0\xb8\xa1\xe0\xb8\265\340\xb8\232\340\270\262\340\270\207\xe0\xb8\xad\xe0\270\xa2\340\271\x88\340\xb8\xb2\340\xb8\207\xe0\xb8\234\340\270\xb4\340\xb8\224\xe0\xb8\x9e\xe0\xb8\xa5\340\270\xb2\340\xb8\224 \340\270\x84\xe0\xb8\270\340\xb8\223\xe0\xb8\xa3\340\xb8\261\xe0\xb8\x9a\340\xb9\x82\340\xb8\233\340\xb8\243\340\271\202\340\xb8\241\340\xb8\212\340\270\xb1\340\271\x88\340\270\231\340\270\255\xe0\270\xa2\340\xb8\xb9\340\271\210 \xe0\270\210\340\xb8\xb0\340\xb9\x80\340\270\202\xe0\xb9\211\340\xb8\262\xe0\xb9\x80\xe0\270\xa5\xe0\271\210\340\270\231\340\271\x84\340\270\x94\340\271\211\xe0\xb9\200\xe0\xb8\x89\xe0\270\x9e\340\xb8\xb2\xe0\270\260\340\270\xaa\xe0\xb8\245\xe0\271\x87\340\270\255\340\270\x95"; echo "<script> location.href = '" . base_url() . "'; </script>"; die; } } elseif ($game_type_pro == "baccarat") { if (!in_array($gamekey, $list_not_slot)) { $_SESSION["error"]["game"] = "\xe0\270\241\340\xb8\xb5\340\xb8\x9a\xe0\xb8\xb2\xe0\270\x87\xe0\xb8\255\xe0\xb8\242\340\xb9\210\xe0\xb8\262\xe0\xb8\207\340\xb8\234\340\xb8\264\340\270\x94\xe0\270\236\xe0\xb8\xa5\340\270\xb2\xe0\xb8\224 \340\xb8\x84\xe0\270\xb8\340\270\x93\xe0\270\243\340\xb8\261\340\270\232\340\271\202\xe0\270\x9b\340\270\243\340\xb9\x82\xe0\270\xa1\xe0\xb8\212\xe0\xb8\261\xe0\271\210\xe0\xb8\x99\xe0\xb8\255\xe0\xb8\xa2\xe0\270\271\340\xb9\210 \xe0\xb8\210\xe0\270\xb0\xe0\xb9\200\xe0\270\202\340\xb9\211\340\270\262\xe0\xb9\x80\340\xb8\245\340\xb9\x88\xe0\270\231\xe0\271\x84\xe0\270\x94\340\271\211\xe0\xb9\200\xe0\xb8\211\340\xb8\x9e\xe0\xb8\xb2\340\xb8\260\340\xb8\x9a\340\xb8\xb2\340\270\204\340\xb8\xb2\340\270\xa3\xe0\271\210\xe0\xb8\xb2"; echo "<script> location.href = '" . base_url() . "'; </script>"; die; } } else { } } if ($gamekey == "sport") { $d = array("status" => "success", "message" => "\xe0\271\200\340\xb8\x82\xe0\xb9\x89\340\xb8\262\xe0\xb8\252\xe0\270\xb9\340\271\x88\340\270\243\xe0\xb8\260\xe0\270\x9a\340\270\x9a\340\270\xaa\340\xb8\263\xe0\xb9\200\xe0\270\xa3\340\271\207\xe0\xb8\210", "data" => $agent["end_point_game"] . "/login/auto/?username=" . $row_user["id"] . "&password=" . $row_user["password"] . "&url=" . base_url() . "&hash=" . $agent["hash"] . "&state=sport&lang=th"); echo "<script> location.href = '" . $d["data"] . "'; </script>"; die; } if ($gameid != false) { $api_data = array("method" => "GLI", "username" => $row_user["amb_id"], "password" => $row_user["password"], "isMobile" => false, "gameId" => $gameid, "game_key" => $gamekey); } else { $api_data = array("method" => "GLI", "username" => $row_user["amb_id"], "password" => $row_user["password"], "isMobile" => false, "game_key" => $gamekey); } $res = $this->amb_model->SendApi($api_data); if (isset($res["code"])) { if ($res["code"] == "0") { $d = array("status" => "success", "message" => "\340\xb9\x80\340\270\x82\xe0\xb9\x89\340\270\xb2\xe0\270\252\xe0\270\271\340\271\x88\340\270\243\340\xb8\xb0\xe0\xb8\232\340\xb8\232\340\271\200\xe0\270\x81\xe0\270\xa1\340\270\xaa\340\271\214", "data" => $res["url"]); echo "<script> location.href = '" . $d["data"] . "'; </script>"; } else { $d = array("status" => "error", "message" => "\340\270\xa1\xe0\xb8\xb5\xe0\xb8\x9a\340\270\xb2\xe0\xb8\x87\xe0\xb8\255\340\xb8\242\xe0\271\x88\340\xb8\262\xe0\xb8\207\340\xb8\234\xe0\xb8\xb4\xe0\270\224\340\270\x9e\xe0\270\xa5\340\270\xb2\xe0\270\x94 \340\270\x81\340\xb8\243\340\xb8\xb8\340\xb8\223\340\270\xb2\xe0\270\xa3\xe0\270\255\xe0\270\x8b\xe0\270\261\xe0\xb8\x81\340\xb8\204\xe0\xb8\243\340\xb8\271\xe0\271\210\xe0\271\x81\xe0\270\xa5\xe0\xb8\260\340\xb8\xa5\xe0\270\255\xe0\xb8\x87\xe0\xb8\xad\xe0\270\xb5\xe0\270\x81\xe0\xb8\204\xe0\xb8\xa3\xe0\xb8\xb1\xe0\271\211\xe0\xb8\x87"); $_SESSION["error"]["game"] = "\340\270\241\xe0\xb8\xb5\340\xb8\x9a\xe0\270\xb2\340\xb8\x87\xe0\xb8\xad\xe0\xb8\xa2\340\xb9\210\340\xb8\xb2\xe0\xb8\x87\xe0\xb8\234\xe0\270\xb4\xe0\270\x94\xe0\270\x9e\xe0\xb8\245\xe0\270\262\xe0\xb8\x94 \xe0\270\x81\340\xb8\xa3\xe0\270\xb8\xe0\xb8\223\xe0\xb8\xb2\xe0\270\xa3\xe0\xb8\255\340\270\x8b\340\270\261\xe0\xb8\201\340\xb8\204\340\270\243\xe0\270\xb9\340\271\210\340\271\201\340\xb8\245\340\xb8\xb0\340\270\xa5\xe0\xb8\255\xe0\xb8\207\xe0\270\255\340\xb8\xb5\xe0\xb8\201\340\270\x84\xe0\270\xa3\xe0\270\261\340\xb9\x89\340\xb8\x87"; echo "<script> location.href = '" . base_url() . "'; </script>"; } } else { $d = array("status" => "error", "message" => "No code."); $_SESSION["error"]["game"] = "No code."; echo "<script> location.href = '" . base_url() . "'; </script>"; } } } public function logingame2($gamekey = false, $gameid = false) { if (empty($_SESSION["user"]["logged_in"])) { $d = array("status" => "error", "msg" => "Please login", "data" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); } else { $agent = $this->main_model->custom_query_row("
\xa \x9\x9select *
\xa\x9\x9\x9\x9from agent_account
\xa \x9 where status = 1
\xa\x9\x9\x9"); foreach (json_decode($agent["meta_data"], true) as $key => $val) { $agent[$key] = $val; } unset($agent["meta_data"]); if ($gamekey == false) { $d = array("status" => "error", "message" => "\340\271\x83\xe0\xb8\252\xe0\271\x88\340\xb9\200\340\xb8\201\xe0\xb8\xa1\340\270\227\xe0\xb8\265\xe0\271\x88\xe0\xb8\225\340\271\211\340\xb8\xad\xe0\270\207\xe0\xb8\x81\340\xb8\xb2\xe0\xb8\243"); $d = array("status" => "error", "msg" => "\xe0\271\x83\340\270\xaa\xe0\xb9\210\xe0\xb9\x80\xe0\270\201\340\xb8\xa1\xe0\xb8\x97\xe0\270\xb5\xe0\271\210\340\xb8\225\xe0\271\211\340\270\xad\xe0\270\207\xe0\xb8\201\340\270\xb2\xe0\xb8\xa3", "data" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); die; } $row_user = $this->user_model->get_user($_SESSION["user"]["id"]); $sql = "\xa
\x9 \x9\x9SELECT * \xa\xa\x9 \x9\x9FROM report_transaction
\x9 where username = '" . $row_user["mobile_no"] . "' and transaction_type = 'deposit' limit 1\xa\xa\x9 \x9"; $deposit_ingame = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "deposit_ingame")))["value"], true); $check_dep = true; if (isset($deposit_ingame["enable"])) { if ($deposit_ingame["enable"] != 1) { $check_dep = false; } } if ($check_dep) { $check_deposit = $this->main_model->custom_query_row("\xa
\x9\x9{$sql}\xa\xa\x9 \x9\x9"); if (empty($check_deposit)) { $d = array("status" => "error", "message" => "\xe0\xb9\204\340\xb8\241\340\xb9\x88\340\270\252\340\270\xb2\340\270\241\xe0\xb8\262\xe0\270\243\340\270\x96\340\xb9\x80\340\xb8\x82\340\271\211\xe0\270\262\340\271\x80\xe0\xb8\xa5\xe0\xb9\210\340\xb8\x99\xe0\271\204\xe0\270\224\340\271\211 \xe0\xb8\201\340\270\xa3\xe0\270\270\xe0\270\223\xe0\270\xb2\340\xb8\x9d\340\270\xb2\xe0\270\201\340\xb9\x80\xe0\270\x87\340\xb8\264\340\270\x99\340\xb9\200\xe0\xb8\236\340\xb8\xb7\xe0\271\210\xe0\xb8\xad\340\xb9\200\xe0\270\x82\340\271\211\xe0\270\262\340\xb9\200\340\xb8\245\340\271\210\xe0\xb8\x99\340\271\200\340\270\x81\xe0\xb8\xa1"); $d = array("status" => "error", "msg" => "\340\xb9\x84\340\xb8\241\xe0\xb9\210\xe0\270\252\xe0\270\xb2\340\xb8\241\xe0\xb8\262\340\xb8\243\340\xb8\226\340\271\200\xe0\270\202\xe0\xb9\211\340\270\262\340\271\x80\340\270\xa5\xe0\271\210\340\270\231\xe0\271\x84\xe0\xb8\x94\340\xb9\211 \xe0\270\201\340\270\xa3\xe0\xb8\270\340\270\x93\340\xb8\xb2\340\xb8\x9d\xe0\270\262\340\270\x81\xe0\xb9\200\xe0\270\207\340\xb8\xb4\340\xb8\231\xe0\271\x80\340\270\236\340\xb8\267\340\xb9\210\340\270\255\340\xb9\200\xe0\xb8\x82\xe0\271\211\340\xb8\xb2\340\271\200\340\270\xa5\340\271\x88\340\270\x99\xe0\xb9\x80\xe0\xb8\201\xe0\xb8\241", "data" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); die; } } $tmp5 = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "betflix_game_setting")))["value"], true); $tmp = array(); foreach ($tmp5 as $key => $val) { $tmp[] = $key; } if (!in_array($gamekey, $tmp)) { $d = array("status" => "error", "message" => "\340\xb9\x80\xe0\xb8\201\xe0\270\xa1\xe0\xb8\x99\340\270\xb5\xe0\xb9\211\xe0\xb8\242\340\270\261\xe0\xb8\207\xe0\xb9\x84\340\270\xa1\340\xb9\210\340\xb9\200\xe0\xb8\x9b\xe0\270\264\xe0\270\x94\340\xb9\203\xe0\270\253\xe0\271\x89\340\271\200\340\xb8\245\340\271\x88\xe0\xb8\231"); $d = array("status" => "error", "msg" => "\xe0\271\200\340\270\x81\xe0\270\xa1\340\270\x99\xe0\270\xb5\xe0\xb9\x89\xe0\xb8\242\340\xb8\xb1\xe0\270\x87\xe0\271\204\340\xb8\241\340\271\210\xe0\xb9\x80\xe0\xb8\x9b\xe0\270\xb4\340\xb8\224\xe0\271\203\340\xb8\xab\340\xb9\211\340\271\200\xe0\270\xa5\xe0\271\x88\xe0\xb8\x99", "data" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); die; } $tmp_check_promotion = $this->main_model->custom_query_row("\xa \x9\x9\x9select *
\x9\x9 from meta_promotion\xa\x9\x9 where u_mobile = '" . $row_user["mobile_no"] . "' and status = 1\xa\x9\x9\x9"); if (!empty($tmp_check_promotion)) { $tmp_pro = json_decode($tmp_check_promotion["value"], true); $list_not_slot = array("amb", "sexy", "sa", "ag", "gd88", "wm", "dg", "bg", "gdg"); $game_type_pro = isset($tmp_pro["GameType"]) ? $tmp_pro["GameType"] : "all"; if ($game_type_pro == "slot") { if (in_array($gamekey, $list_not_slot)) { $d = array("status" => "error", "msg" => "\xe0\270\xa1\340\270\xb5\340\270\x9a\xe0\270\xb2\xe0\xb8\207\xe0\xb8\255\xe0\270\xa2\xe0\xb9\210\340\270\262\340\270\x87\xe0\270\234\xe0\xb8\xb4\340\270\x94\xe0\xb8\236\xe0\xb8\xa5\xe0\xb8\xb2\340\xb8\224 \xe0\270\x84\xe0\270\270\xe0\xb8\223\xe0\xb8\xa3\xe0\xb8\xb1\340\270\x9a\340\xb9\202\340\xb8\x9b\xe0\270\xa3\340\271\x82\xe0\xb8\241\340\xb8\212\xe0\xb8\261\xe0\271\210\xe0\270\231\xe0\xb8\xad\340\270\xa2\xe0\270\271\xe0\271\210 \xe0\xb8\210\xe0\270\xb0\340\xb9\200\xe0\xb8\x82\340\271\x89\340\xb8\xb2\340\xb9\x80\xe0\xb8\xa5\340\xb9\210\xe0\270\x99\xe0\271\x84\340\xb8\x94\340\271\211\xe0\xb9\200\xe0\xb8\x89\340\xb8\x9e\xe0\270\xb2\340\xb8\260\xe0\270\xaa\xe0\270\xa5\xe0\271\207\340\xb8\xad\340\270\x95", "data" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); die; } } elseif ($game_type_pro == "baccarat") { if (!in_array($gamekey, $list_not_slot)) { $d = array("status" => "error", "msg" => "\340\xb8\241\340\270\265\340\270\x9a\xe0\xb8\262\xe0\270\207\340\xb8\xad\340\270\242\xe0\271\210\340\270\xb2\xe0\xb8\x87\xe0\xb8\x9c\340\270\264\340\270\x94\xe0\270\236\xe0\xb8\xa5\xe0\270\262\340\270\x94 \340\270\204\340\xb8\xb8\340\270\x93\xe0\270\xa3\340\270\261\340\xb8\x9a\xe0\xb9\x82\340\xb8\233\340\270\243\xe0\xb9\202\340\xb8\xa1\xe0\xb8\212\340\xb8\xb1\340\xb9\210\xe0\xb8\231\xe0\270\255\340\270\xa2\340\xb8\xb9\340\271\x88 \xe0\xb8\x88\xe0\270\xb0\340\271\x80\xe0\270\x82\340\271\x89\xe0\xb8\262\340\271\200\340\270\245\340\xb9\210\340\270\231\340\xb9\204\340\270\224\340\271\x89\340\271\200\340\xb8\211\xe0\xb8\x9e\xe0\xb8\262\340\xb8\260\340\xb8\232\340\xb8\262\340\xb8\x84\xe0\270\262\340\270\243\xe0\271\210\340\270\262", "data" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); die; } } else { } } if ($gamekey == "sport") { $d = array("status" => "success", "msg" => "\340\271\x80\xe0\xb8\x82\xe0\271\211\xe0\xb8\xb2\xe0\xb8\xaa\340\xb8\271\340\xb9\x88\xe0\270\xa3\xe0\xb8\260\xe0\xb8\x9a\340\xb8\232\xe0\xb8\xaa\340\xb8\xb3\340\271\200\xe0\xb8\243\xe0\271\207\340\xb8\210", "data" => $agent["end_point_game"] . "/login/auto/?username=" . $row_user["id"] . "&password=" . $row_user["password"] . "&url=" . base_url() . "&hash=" . $agent["hash"] . "&state=sport&lang=th"); echo json_encode($d, JSON_UNESCAPED_UNICODE); die; } if ($gameid != false) { $api_data = array("method" => "GLI", "username" => $row_user["amb_id"], "password" => $row_user["password"], "isMobile" => false, "gameId" => $gameid, "game_key" => $gamekey); } else { $api_data = array("method" => "GLI", "username" => $row_user["amb_id"], "password" => $row_user["password"], "isMobile" => false, "game_key" => $gamekey); } $res = $this->amb_model->SendApi($api_data); if (isset($res["code"])) { if ($res["code"] == "0") { $d = array("status" => "success", "msg" => "\xe0\xb9\200\xe0\xb8\x82\340\271\211\340\xb8\xb2\xe0\270\252\340\xb8\271\340\xb9\210\xe0\xb8\243\340\270\260\xe0\xb8\232\xe0\xb8\232\340\271\x80\xe0\270\201\340\270\241\340\xb8\xaa\xe0\271\x8c", "data" => $res["url"]); echo json_encode($d, JSON_UNESCAPED_UNICODE); } else { $d = array("status" => "error", "message" => "\340\270\241\340\270\265\xe0\270\232\340\270\262\xe0\xb8\x87\xe0\xb8\xad\xe0\270\xa2\xe0\271\210\340\xb8\xb2\xe0\xb8\207\xe0\270\234\340\270\xb4\xe0\xb8\224\340\xb8\x9e\340\270\245\xe0\xb8\xb2\xe0\xb8\x94 \340\270\201\xe0\xb8\243\xe0\xb8\xb8\xe0\270\223\xe0\xb8\262\340\xb8\243\xe0\xb8\255\xe0\270\x8b\xe0\xb8\xb1\xe0\270\x81\340\xb8\204\340\xb8\243\xe0\xb8\xb9\xe0\xb9\210\340\271\201\xe0\270\245\xe0\xb8\260\xe0\270\xa5\340\xb8\xad\xe0\270\207\340\270\xad\340\270\265\xe0\xb8\201\xe0\xb8\x84\xe0\xb8\243\xe0\xb8\261\340\271\211\340\xb8\x87"); $d = array("status" => "error", "msg" => "\xe0\270\xa1\xe0\xb8\xb5\340\270\x9a\340\xb8\262\340\270\207\xe0\xb8\255\xe0\270\242\340\271\x88\340\270\xb2\xe0\270\207\340\270\x9c\xe0\xb8\xb4\xe0\270\224\xe0\xb8\x9e\xe0\270\245\xe0\270\xb2\xe0\270\224 \xe0\270\x81\xe0\xb8\243\xe0\270\270\340\270\223\xe0\270\xb2\xe0\270\xa3\xe0\xb8\255\340\270\213\340\xb8\xb1\340\270\x81\xe0\270\204\xe0\xb8\243\xe0\270\271\340\xb9\x88\340\271\201\xe0\xb8\245\xe0\270\260\340\xb8\245\340\270\255\xe0\xb8\207\xe0\270\255\340\xb8\xb5\xe0\xb8\201\xe0\xb8\204\xe0\270\243\340\270\261\340\271\211\340\xb8\x87", "data" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); } } else { $d = array("status" => "error", "message" => "No code."); $d = array("status" => "error", "msg" => "No code.", "data" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); } } } public function game($id) { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; $api_data = array("method" => "GLIS", "game_key" => $id); $game_list = $this->amb_model->SendApi($api_data); if (isset($_GET["test"])) { echo "<pre>"; print_r($game_list); echo "</pre>"; die; } $data["game_key"] = $id; $data["game"] = isset($game_list["data"]["lists"]) ? $game_list["data"]["lists"] : array(); $data["game_data"] = $game_list; $this->load->view("panel_user/{$theme}/ajax_load/game", $data); } public function promotion($id = 0) { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; $tmp_pro = $this->main_model->get_row("meta_promotion_setting", array("where" => array("col" => "id", "val" => $id))); $data["promotion"] = json_decode($tmp_pro["meta"], true); $data["promotion"]["id"] = $tmp_pro["id"]; header("Content-Type: application/json"); if (empty($_SESSION["user"]["logged_in"])) { header("HTTP/1.1 401 Unauthorized"); } else { $accept_promotion = $id; $tmp_data = array("accept_promotion" => $accept_promotion); $row_user = $this->user_model->get_user($_SESSION["user"]["username"]); $check_promotion = $this->promotion_model->CheckPromotion($row_user["mobile_no"], $accept_promotion); if ($check_promotion) { $tmp_data = array("accept_promotion" => $accept_promotion); if ($this->main_model->update("id", $row_user["id"], "sl_users", $tmp_data)) { $d = array("status" => "success", "message" => " \xe0\xb9\x80\xe0\xb8\233\xe0\270\245\340\270\265\340\xb9\210\340\270\242\xe0\270\231\xe0\271\x82\340\xb8\x9b\340\xb8\243\340\xb9\x82\340\270\xa1\xe0\270\x8a\340\270\xb1\340\271\210\xe0\270\x99\xe0\271\x81\xe0\270\245\340\271\211\xe0\xb8\247"); if ($id == 0) { $res = array("promotion" => "\xe0\271\x84\xe0\270\241\340\xb9\210\340\xb8\243\340\xb8\261\xe0\270\x9a\xe0\xb9\202\340\270\233\xe0\270\243", "type" => "deposit", "has_customer" => 1, "promotion_active_html" => ''); } else { $res = array("promotion" => $data["promotion"]["Title"], "type" => "deposit", "has_customer" => 1, "promotion_active_html" => "
\xa \x9\x9 <div class="py-3">\xa
\x9\x9\x9\x9\x9\x9 \x9\x9<div class="text-center">\xa
\x9 \x9\x9 \x9\x9 <span class="-text-container">\340\xb9\x82\xe0\xb8\x9b\340\270\243\xe0\271\202\xe0\xb8\xa1\xe0\xb8\212\340\xb8\261\340\xb9\210\xe0\270\231\340\270\227\340\270\xb5\340\xb9\x88\xe0\xb8\xa3\xe0\270\xb1\340\270\x9a : <b class="-detail">" . $data["promotion"]["Title"] . "</b></span>
\xa\x9\x9\x9 \x9\x9\x9\x9</div>
\xa\x9\x9\x9\x9\x9 <div data-ajax-calculate-deposit="/account/_ajax_/deposit-calculate?promotion=14"></div>\xa\xa \x9 \x9\x9<div class="js-turnover d-none text-center -turn-over-container">\xa
\x9 \x9 \x9\x9\x9Turnover: <span>" . $data["promotion"]["TurnOver"] . "</span>\xa\xa\x9 \x9\x9\x9 \x9\x9</div>
\x9 \x9 \x9 \x9 </div>
\x9 \x9 \x9"); } echo json_encode($res, JSON_UNESCAPED_UNICODE); } else { header("HTTP/1.1 400 Bad Request"); $d = array("status" => "error", "message" => "\xe0\xb8\255\xe0\xb8\261\xe0\xb8\x9e\340\271\x80\340\xb8\x94\xe0\xb8\225\xe0\271\x82\xe0\270\x9b\340\270\xa3\xe0\271\x82\340\270\241\xe0\xb8\212\xe0\xb8\xb1\xe0\xb9\210\xe0\xb8\231\340\271\204\xe0\xb8\241\xe0\xb9\210\340\xb8\xaa\340\270\xb3\340\271\200\340\270\243\340\271\207\340\xb8\x88"); echo json_encode($d, JSON_UNESCAPED_UNICODE); } } else { header("HTTP/1.1 400 Bad Request"); $d = array("status" => "error", "message" => "\xe0\270\x84\xe0\xb8\270\340\270\x93\340\271\x84\340\270\xa1\xe0\xb9\210\340\xb8\xaa\340\270\xb2\340\xb8\xa1\xe0\xb8\262\340\270\243\340\270\x96\xe0\xb8\243\xe0\xb8\xb1\xe0\xb8\x9a\340\271\202\340\xb8\233\xe0\xb8\xa3\340\xb9\202\xe0\270\xa1\xe0\xb8\x8a\340\270\xb1\340\271\x88\340\270\231\340\270\x99\340\270\xb5\xe0\xb9\x89\340\xb9\204\340\xb8\224\xe0\271\x89"); echo json_encode($d, JSON_UNESCAPED_UNICODE); } } } public function promotion_show($id) { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; $tmp_pro = $this->main_model->get_row("meta_promotion_setting", array("where" => array("col" => "id", "val" => $id))); $data["promotion"] = json_decode($tmp_pro["meta"], true); $data["promotion"]["id"] = $tmp_pro["id"]; $this->load->view("panel_user/{$theme}/ajax_load/promotion", $data); } public function page($page = false) { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $agentss["betflix"]["status"] = 0; $agentss["amb"]["status"] = 0; $tmp_agents = $this->main_model->get_result("agent_account"); $agents = array(); $i = 0; foreach ($tmp_agents as $row) { $agents[$i] = $row; foreach (json_decode($row["meta_data"], true) as $key => $val) { $agents[$i][$key] = $val; } unset($agents[$i]["meta_data"]); $i++; } foreach ($agents as $key => $val) { $agentss[$val["provider"]] = $val; } $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $otp_register = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "otp_register")))["value"], true); $otp_open = false; if (isset($otp_register["enable"])) { if ($otp_register["enable"] == 1) { $otp_open = true; $_SESSION["register"]["otp_open"] = true; } } $data["data"] = $tmp; $data["agent"] = $agentss; if (urldecode($page) == "\xe0\xb8\xaa\xe0\270\245\xe0\271\x87\xe0\xb8\xad\340\xb8\x95") { $page = "slot"; } elseif (urldecode($page) == "\340\270\232\xe0\xb8\xb2\340\xb8\204\340\270\xb2\340\xb8\xa3\xe0\271\210\340\xb8\xb2") { $page = "casino"; } elseif (urldecode($page) == "\xe0\xb8\x81\340\xb8\265\340\xb8\xac\xe0\xb8\xb2") { $page = "sport"; } elseif (urldecode($page) == "\xe0\xb8\xaa\340\270\x81\xe0\xb8\xb4\340\xb8\xa5\340\xb9\200\340\270\201\340\270\241\xe0\270\252\xe0\xb9\x8c") { $page = "skill-game"; } elseif (urldecode($page) == "\xe0\270\242\xe0\xb8\xb4\xe0\270\x87\340\270\233\340\xb8\245\xe0\xb8\xb2") { $page = "fishing"; } if ($agentss["amb"]["status"] == 1) { if ($page == "skill-game") { $id = "ambgame"; $api_data = array("method" => "GLIS", "game_key" => $id); $game_list = $this->amb_model->SendApi($api_data); $data["game_key"] = $id; $data["game"] = isset($game_list["data"]["lists"]) ? $game_list["data"]["lists"] : array(); } elseif ($page == "fishing") { $api_data = array("method" => "GLIS", "game_key" => "jili"); $game_list = $this->amb_model->SendApi($api_data); $data_game = array(); $i = 0; foreach ($game_list["data"]["lists"] as $row) { if ($row["gameType"] == "Fishing" || strpos($row["gameName"], "Fish") !== false) { $data_game[$i] = array("game_key" => $row["productCode"], "game_code" => $row["gameId"], "game_img" => $row["imgUrl"], "game_name" => $row["gameName"]); $i++; } } $api_data = array("method" => "GLIS", "game_key" => "ambgame"); $game_list = $this->amb_model->SendApi($api_data); foreach ($game_list["data"]["lists"] as $row) { if (strpos($row["name"]["en"], "fish") !== false) { $data_game[$i] = array("game_key" => "ambgame", "game_code" => $row["gameId"], "game_img" => $row["thumbnail"], "game_name" => $row["name"]["th"]); $i++; } } $api_data = array("method" => "GLIS", "game_key" => "askmebetslot"); $game_list = $this->amb_model->SendApi($api_data); foreach ($game_list["data"]["lists"] as $row) { if ($row["gameType"] == "Fishing" || strpos($row["gameName"], "Fish") !== false) { $data_game[$i] = array("game_key" => "askmebetslot", "game_code" => $row["gameId"], "game_img" => $row["imgUrl"], "game_name" => $row["gameName"]); $i++; } } $api_data = array("method" => "GLIS", "game_key" => "spg"); $game_list = $this->amb_model->SendApi($api_data); foreach ($game_list["data"]["lists"] as $row) { if ($row["gameType"] == "Fishing" || strpos($row["gameName"], "Fish") !== false) { $data_game[$i] = array("game_key" => $row["productCode"], "game_code" => $row["gameId"], "game_img" => $row["imgUrl"], "game_name" => $row["gameName"]); $i++; } } $api_data = array("method" => "GLIS", "game_key" => "slotxo"); $game_list = $this->amb_model->SendApi($api_data); foreach ($game_list["data"]["lists"] as $row) { if ($row["gameType"] == "Fishing" || strpos($row["gameName"], "Fish") !== false) { $data_game[$i] = array("game_key" => $row["productCode"], "game_code" => $row["gameId"], "game_img" => $row["imgUrl"], "game_name" => $row["gameName"]); $i++; } } $api_data = array("method" => "GLIS", "game_key" => "ganapati"); $game_list = $this->amb_model->SendApi($api_data); foreach ($game_list["data"]["lists"] as $row) { if ($row["gameType"] == "Fishing" || strpos($row["gameName"], "Fish") !== false) { $data_game[$i] = array("game_key" => $row["productCode"], "game_code" => $row["gameId"], "game_img" => $row["imgUrl"], "game_name" => $row["gameName"]); $i++; } } $data["game"] = $data_game; } } if ($agentss["betflix"]["status"] == 1) { $game_casino = array(array("DG", "dg", "none", "https://www.083514.com/assets/logo/dg.png"), array("WE Entertainment", "we", "none", "https://www.083514.com/icons/logo/we.png"), array("Evolution Gaming", "eg", "none", "https://www.083514.com/icons/logo/eg.png"), array("Xtream Gaming", "xg", "none", "https://www.083514.com/icons/logo/xg.png"), array("SkyWind Group", "swg", "swg.txt", "https://www.083514.com/icons/logo/swg.png"), array("CQ9", "cq9", "none", "https://www.083514.com/assets/logo/cq9.png"), array("Rich88", "r88", "none", "https://www.083514.com/assets/logo/r88.png"), array("JILI", "jl", "jl.txt", "https://www.083514.com/assets/logo/jl.png"), array("KINGMAKER", "km", "km.txt", "https://ardmhzelxcmj.ocrazeckyunc.com/icons/logo/kingmaker.png"), array("Sexy", "sexy", "none", "https://ardmhzelxcmj.ocrazeckyunc.com/icons/logo/AE-Sexy-Logo.png"), array("BG", "bg", "none", "https://www.083514.com/assets/logo/bg.png"), array("AMB Poker", "amb", "none", "https://easyslotonline.games/assets/img/imgprovider/AMBPoker.png"), array("WM", "wm", "none", "https://www.083514.com/assets/logo/wm.png"), array("Asia Gaming", "ag", "none", "https://www.083514.com/assets/logo/asia%20gaming.png"), array("SA Gaming", "sa", "none", "https://www.083514.com/assets/logo/saGame.png")); $data["game_casino"] = $game_casino; $game_fishing = array(array("SkyWind Group", "swg", "swg.txt", "https://www.083514.com/icons/logo/swg.png"), array("CQ9", "cq9", "none", "https://www.083514.com/assets/logo/cq9.png"), array("JILI", "jl", "jl.txt", "https://www.083514.com/assets/logo/jl.png"), array("KINGMAKER", "km", "km.txt", "https://www.083514.com/assets/logo/km.png"), array("Fachai", "fc", "fc.txt", "https://www.083514.com/assets/logo/fc.png"), array("Funky Games", "funky", "funky.txt", "https://www.083514.com/assets/logo/funky.png"), array("BG", "bg", "none", "https://www.083514.com/assets/logo/bg.png"), array("SimplePlay", "sp", "none", "https://www.083514.com/assets/logo/simpler%20play.png"), array("EvoPlay", "ep", "ep.txt", "https://www.083514.com/assets/logo/evoplay2.png"), array("AMB Poker", "amb", "none", "https://www.083514.com/assets/logo/amb.png"), array("Joker", "joker", "joker.txt", "https://www.083514.com/assets/logo/joker.png")); $data["game_fishing"] = $game_fishing; $game_slot = array(array("Gamatron", "gamatron", "gamatron.txt", "https://www.083514.com/assets/logo/gamatron.png"), array("Gold Diamond", "gdg", "none", "https://www.083514.com/assets/logo/gdg.png"), array("PragmaticPlay", "pp", "pp.txt", "https://www.083514.com/assets/image/pplogo.png"), array("SkyWind Group", "swg", "swg.txt", "https://www.083514.com/icons/logo/swg.png"), array("AE Gaming Slot", "aws", "aws.txt", "https://www.083514.com/icons/logo/aws.png"), array("CQ9", "cq9", "none", "https://www.083514.com/assets/logo/cq9.png"), array("KA Gaming", "kg", "kg.txt", "https://www.083514.com/assets/logo/kg.png"), array("Rich88", "r88", "none", "https://www.083514.com/assets/logo/r88.png"), array("JILI", "jl", "jl.txt", "https://www.083514.com/assets/logo/jl.png"), array("Fachai", "fc", "fc.txt", "https://www.083514.com/assets/logo/fc.png"), array("Funky Games", "funky", "funky.txt", "https://www.083514.com/assets/logo/funky.png"), array("PlayStar", "ps", "none", "https://www.083514.com/assets/logo/ps.png"), array("SimplePlay", "sp", "none", "https://www.083514.com/assets/logo/simpler%20play.png"), array("EvoPlay", "ep", "ep.txt", "https://www.083514.com/assets/logo/evoplay2.png"), array("NetEnt", "netent", "netent.txt", "https://www.083514.com/assets/logo/netent.png"), array("AMB Poker", "amb", "none", "https://www.083514.com/assets/logo/amb.png"), array("TTG", "ttg", "none", "https://www.083514.com/assets/logo/toptrend%20gaming.png"), array("PG", "pg", "none", "https://www.083514.com/assets/logo/pg.png"), array("KINGMAKER", "km", "km.txt", "https://www.083514.com/assets/logo/km.png"), array("Joker", "joker", "joker.txt", "https://www.083514.com/assets/logo/joker.png"), array("Wazdan", "qtech", "waz.txt", "https://www.083514.com/icons/logo/waz.png"), array("1X2 Gaming", "qtech", "1x2.txt", "https://www.083514.com/assets/logo/1x2.png"), array("Hacksaw Gaming", "qtech", "hak.txt", "https://www.083514.com/assets/logo/hak.png"), array("Fastasma Gaming", "qtech", "fng.txt", "https://www.083514.com/assets/logo/fng.png"), array("NetGames Enterainment", "qtech", "nge.txt", "https://www.083514.com/assets/logo/nge.png"), array("Push Gaming", "qtech", "pug.txt", "https://www.083514.com/assets/logo/pug.png"), array("Game Art", "qtech", "ga.txt", "https://www.083514.com/assets/logo/ga.png"), array("Play n Go", "qtech", "png.txt", "https://www.083514.com/assets/logo/png.png"), array("Nolimit City", "qtech", "nlc.txt", "https://www.083514.com/assets/logo/nlc.png"), array("Thunderkick", "qtech", "tk.txt", "https://www.083514.com/assets/logo/tk.png"), array("Yggdrasil", "qtech", "ygg.txt", "https://www.083514.com/assets/logo/ygg.png"), array("Quickspin", "qtech", "qs.txt", "https://www.083514.com/assets/logo/qs.png"), array("Habanero", "qtech", "hab.txt", "https://www.083514.com/assets/logo/hab.png"), array("Relax Gaming", "qtech", "rlx.txt", "https://www.083514.com/assets/logo/rlx.png"), array("Dragoon Soft", "qtech", "ds.txt", "https://www.083514.com/assets/logo/ds.png"), array("Red Tiger", "qtech", "red.txt", "https://www.083514.com/assets/logo/red.png"), array("Booongo", "qtech", "bng.txt", "https://www.083514.com/assets/logo/bng.png"), array("Iron Dog", "qtech", "ids.txt", "https://www.083514.com/assets/logo/ids.png"), array("Kalamba Games", "qtech", "kgl.txt", "https://www.083514.com/assets/logo/kgl.png"), array("Blueprint Gaming", "qtech", "bpg.txt", "https://www.083514.com/assets/logo/bpg.png"), array("Maverick", "qtech", "mav.txt", "https://www.083514.com/assets/logo/mav.png")); $data["game_slot"] = $game_slot; } $this->load->view("panel_user/{$theme}/ajax_load/" . $page, $data); } public function truewallet() { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; $data["mobile"] = isset($_POST["mobile"]) ? true : false; $user_info = $this->user_model->get_user($_SESSION["user"]["id"]); $bank_info = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $user_info["bank_id"]))); $admin_banks = $this->main_model->custom_query_result("
\x9\x9select *\xa\x9 from admin_bank
\x9\x9where status = 1
\x9\x9"); $tmp_bank = array(); $i = 0; foreach ($admin_banks as $tmp) { $tmp_bank[$i] = $tmp; foreach (json_decode($tmp["meta_data"], true) as $key => $val) { $tmp_bank[$i][$key] = $val; } unset($tmp_bank[$i]["meta_data"]); $i++; } $admin_bank = array(); $i = 0; function searchForId($id, $array) { foreach ($array as $key => $val) { if ($val["show_type"] === $id) { return $key; } } return null; } $admin_tws = $this->main_model->custom_query_result("
\x9 \x9select *\xa \x9from admin_truewallet\xa where status = 1
\x9 "); $tmp_tw = array(); $i = 0; foreach ($admin_tws as $tmp) { $tmp_tw[$i] = $tmp; foreach (json_decode($tmp["meta_data"], true) as $key => $val) { $tmp_tw[$i][$key] = $val; } unset($tmp_tw[$i]["meta_data"]); $i++; } $admin_tw = array(); $i = 0; foreach ($tmp_tw as $tmp) { if ($tmp["tw_type"] == "BOTH" || $tmp["tw_type"] == "DEPOSIT") { $admin_tw[$i] = $tmp; $i++; break; } } $bid = null; if (!empty($tmp_bank)) { if ($user_info["bank_id"] == 5) { $bid = searchForId("ONLY_SCB", $tmp_bank); if ($bid == null) { $bid = searchForId("ALL", $tmp_bank); } if ($bid !== null) { $admin_bank[0] = $tmp_bank[$bid]; $tmp_info = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $admin_bank[0]["bank_id"]))); $admin_bank[0]["bank_ico"] = $tmp_info["bank_ico"]; $admin_bank[0]["bank_color"] = $tmp_info["bank_color"]; } } elseif ($user_info["bank_id"] == 1) { $bid = searchForId("ONLY_KBANK", $tmp_bank); if ($bid == null) { $bid = searchForId("ALL", $tmp_bank); } if ($bid !== null) { $admin_bank[0] = $tmp_bank[$bid]; $tmp_info = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $admin_bank[0]["bank_id"]))); $admin_bank[0]["bank_ico"] = $tmp_info["bank_ico"]; $admin_bank[0]["bank_color"] = $tmp_info["bank_color"]; } } elseif ($user_info["bank_id"] == 29) { $admin_bank = array(); } else { if ($bid == null) { $bid = searchForId("ALL", $tmp_bank); } if ($bid !== null) { $admin_bank[0] = $tmp_bank[$bid]; $tmp_info = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $admin_bank[0]["bank_id"]))); $admin_bank[0]["bank_ico"] = $tmp_info["bank_ico"]; $admin_bank[0]["bank_color"] = $tmp_info["bank_color"]; } } if ($user_info["bank_id"] != 29) { $admin_tw = array(); } } $decimal = false; if (!empty($admin_bank)) { if ($admin_bank[0]["change_acc"] == "true") { $page = "deposit-change"; } if ($admin_bank[0]["deposit_decimal"] == "true") { $decimal = true; } } $data["bank"] = array("admin_bank" => $admin_bank, "admin_truewallet" => $admin_tw, "user" => $user_info); $promotion_setting = json_decode($this->main_model->get_row("meta_promotion_setting", array("where" => array("col" => "id", "val" => $user_info["accept_promotion"])))["meta"], true); $data["user"]["promotion"] = $promotion_setting; $data["decimal"] = false; if (empty($_SESSION["user"]["logged_in"])) { header("HTTP/1.1 401 Unauthorized"); } else { $this->form_validation->set_error_delimiters('', "<br>"); $this->form_validation->set_rules("code", "code", "trim|required", array("required" => "\xe0\270\x82\xe0\271\x89\xe0\270\xad\xe0\270\xa1\340\270\271\340\xb8\245\xe0\271\x84\xe0\xb8\xa1\xe0\271\x88\340\xb8\x84\xe0\270\xa3\xe0\270\x9a\340\xb8\226\340\271\x89\340\xb8\xa7\xe0\xb8\x99 \xe0\xb8\201\xe0\270\xa3\xe0\xb8\xb8\340\xb8\223\340\270\xb2\xe0\271\x83\340\270\252\340\xb9\x88\340\270\202\xe0\271\x89\xe0\270\xad\xe0\xb8\241\340\270\271\xe0\270\245\340\271\x83\xe0\270\253\340\xb9\x89\340\xb8\226\xe0\xb8\271\xe0\270\x81\xe0\xb8\225\340\xb9\211\xe0\270\xad\340\xb8\x87")); if ($this->form_validation->run() === false) { $d = array("status" => "error", "message" => "\340\xb8\201\340\xb8\243\xe0\xb8\270\xe0\270\223\xe0\270\262\340\271\x83\xe0\270\252\340\271\x88\xe0\xb8\202\340\271\211\340\xb8\255\340\270\xa1\xe0\270\xb9\xe0\270\245\340\xb9\203\xe0\xb8\253\340\xb9\211\xe0\270\226\340\xb8\271\340\xb8\x81\340\xb8\225\xe0\xb9\211\xe0\270\255\xe0\xb8\207"); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/deposit", $data, true); } else { $code = $this->input->post("code"); $username = $_SESSION["user"]["username"]; $row_user = $this->user_model->get_user($username); $get = $this->main_model->custom_query_row("
SELECT *\xa\x9 \x9 FROM transfer_ref
\x9\x9 \x9\x9WHERE note = '{$code}' AND status = 1
\x9 "); if (empty($get)) { $d = array("status" => "error", "message" => "\xe0\xb9\x84\xe0\xb8\xa1\xe0\xb9\x88\340\270\xa1\340\270\265\340\271\200\xe0\xb8\245\340\xb8\x82\xe0\270\xad\xe0\271\211\xe0\xb8\262\340\270\207\340\xb8\xad\xe0\xb8\xb4\xe0\xb8\207\xe0\xb8\x99\xe0\xb8\xb5\xe0\271\211 \340\xb8\xab\xe0\270\243\xe0\270\xb7\xe0\270\xad \xe0\271\200\xe0\270\xa5\xe0\xb8\202\340\xb8\xad\340\xb9\211\340\270\262\340\xb8\207\xe0\270\255\xe0\xb8\264\340\xb8\x87\340\270\231\340\xb8\xb5\340\271\211\340\270\x96\340\270\271\340\xb8\x81\340\271\x83\340\xb8\212\xe0\271\211\xe0\xb9\x84\xe0\xb8\x9b\xe0\xb9\x81\xe0\270\xa5\340\271\211\xe0\270\247"); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/deposit", $data, true); } else { $data_update = array("status" => 0); if ($this->main_model->update("id", $get["id"], "transfer_ref", $data_update)) { $credit = $get["credit"]; $res = $this->credit_model->Deposit($credit, $row_user, "TW"); $res = json_decode($res, true); $data["text"] = "\xe0\271\x84\340\270\x94\340\xb9\211\xe0\270\xa3\xe0\xb8\261\340\270\x9a\xe0\xb9\200\xe0\270\x87\340\xb8\264\340\xb8\231 " . $credit; echo $this->load->view("panel_user/{$theme}/ajax_load/account/deposit-success", $data, true); } else { $d = array("status" => "error", "message" => "\340\270\xa1\340\270\265\xe0\xb8\x9a\xe0\270\xb2\xe0\270\x87\340\270\xad\xe0\xb8\xa2\xe0\271\x88\340\270\xb2\xe0\xb8\207\340\270\234\xe0\270\264\340\270\224\340\xb8\x9e\340\xb8\xa5\340\270\262\340\xb8\x94"); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/deposit", $data, true); } } } } } public function code_use() { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; $menu = $this->load->view("panel_user/{$theme}/ajax_load/account/menu", $data, true); $data["menu"] = $menu; $data["mobile"] = isset($_POST["mobile"]) ? true : false; if (empty($_SESSION["user"]["logged_in"])) { header("HTTP/1.1 401 Unauthorized"); } else { $this->form_validation->set_error_delimiters('', "<br>"); $this->form_validation->set_rules("code", "code", "trim|required", array("required" => "\xe0\xb8\x82\xe0\271\211\xe0\xb8\255\xe0\xb8\241\xe0\xb8\xb9\340\xb8\245\340\xb9\x84\xe0\xb8\241\340\271\210\340\xb8\x84\xe0\270\243\340\xb8\232\xe0\270\x96\340\271\x89\xe0\xb8\247\xe0\270\231 \340\xb8\201\340\270\243\xe0\270\270\340\270\x93\xe0\270\xb2\340\xb9\x83\340\270\252\340\271\x88\340\xb8\x82\xe0\xb9\211\xe0\xb8\255\340\270\241\xe0\xb8\271\340\xb8\xa5\340\271\203\340\xb8\xab\xe0\xb9\x89\xe0\270\x96\340\xb8\xb9\340\270\201\340\xb8\225\340\xb9\211\xe0\xb8\xad\340\270\207")); if ($this->form_validation->run() === false) { $d = array("status" => "error", "message" => "\340\xb8\x81\xe0\270\xa3\xe0\xb8\270\xe0\270\223\340\xb8\xb2\340\xb9\x83\xe0\270\xaa\xe0\271\210\340\270\202\340\xb9\211\340\270\255\340\270\xa1\340\270\xb9\340\xb8\xa5\340\xb9\x83\340\xb8\253\340\271\211\340\xb8\226\340\270\xb9\340\270\x81\340\xb8\x95\xe0\xb9\x89\xe0\xb8\xad\340\270\x87"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/coupon-apply", $data, true); } else { $code = $this->input->post("code"); $username = $_SESSION["user"]["username"]; $row_user = $this->user_model->get_user($username); $tmp_check_promotion = $this->main_model->custom_query_row("\xa\xa \x9\x9select *
\x9 \x9from meta_promotion
\xa \x9\x9\x9\x9where u_mobile = '" . $username . "' and status = 1
\xa \x9\x9"); if (!empty($tmp_check_promotion)) { $d = array("status" => "error", "message" => "\xe0\xb8\204\340\270\xb8\340\xb8\223\xe0\xb8\xa1\xe0\xb8\xb5\xe0\271\202\xe0\270\233\xe0\xb8\243\340\xb9\202\xe0\270\241\340\270\212\xe0\270\261\xe0\271\x88\340\270\231\xe0\xb8\227\xe0\xb8\265\xe0\271\x88\340\270\243\340\xb8\261\xe0\270\x9a\xe0\270\xad\340\xb8\xa2\xe0\xb8\xb9\340\271\x88 \340\xb9\204\xe0\270\241\xe0\xb9\x88\xe0\270\252\xe0\270\262\340\xb8\241\340\270\xb2\340\270\243\340\xb8\226\340\xb9\203\xe0\xb8\x8a\xe0\xb9\211\340\271\x82\340\xb8\x84\340\xb9\211\xe0\270\224\340\xb8\231\xe0\270\xb5\xe0\271\211\340\xb9\204\340\270\x94\xe0\271\x89"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/coupon-apply", $data, true); die; } $code_type = "normal"; $check_avai = $this->main_model->custom_query_row("\xa\xa\x9 select *
\xa\x9 \x9 from code_free
\x9\x9 \x9where code = '{$code}' and status = 1 and qty > used
\x9\x9 "); if (empty($check_avai)) { $check_avai = $this->main_model->custom_query_row("\xa\xa\x9\x9 \x9\x9SELECT *\xa
\x9 \x9\x9\x9FROM sl_users
\xa\x9 WHERE codefree = '{$code}' AND mobile_no = '{$username}'
\x9 \x9"); $code_type = "user_code"; } if (!empty($check_avai)) { $check = array(); if ($code_type == "normal") { $check = $this->main_model->custom_query_row("
\xa\x9\x9 \x9 select * \xa
\x9\x9 from code_free_used\xa\xa\x9 \x9\x9\x9 where username = '{$username}' and code = '{$code}'\xa\xa \x9\x9\x9\x9"); } elseif ($code_type == "user_code") { $check = $this->main_model->custom_query_row("
\x9\x9 select * \xa
\x9 \x9 \x9\x9from code_free_used\xa\xa \x9 \x9\x9where username = '{$username}' and code = '{$code}'
\xa\x9\x9\x9\x9\x9\x9"); } if (!empty($check)) { $d = array("status" => "error", "message" => "\xe0\xb8\204\340\270\xb8\xe0\xb8\x93\340\271\x83\xe0\270\x8a\xe0\xb9\211\xe0\271\x82\340\xb8\x84\xe0\271\211\xe0\270\224\xe0\xb8\x99\xe0\xb8\xb5\340\271\x89\340\xb9\x84\xe0\xb8\233\340\271\201\340\xb8\245\340\271\x89\340\270\xa7"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/coupon-apply", $data, true); } else { if ($code_type == "normal") { $credit = $check_avai["credit"]; $id = "CRF" . time() . rand(100, 2); $agent_data = array("agent_method" => "DC", "agent_data" => array("user" => $row_user, "credit" => $credit, "id" => $id)); $res = $this->agent_model->process($agent_data); if ($res["status"]) { $id = $res["data"]["ref_id"]; $this->main_model->update("id", $check_avai["id"], "code_free", array("used" => $check_avai["used"] + 1)); $this->main_model->update("id", $row_user["id"], "sl_users", array("turn" => $row_user["turn"] + $check_avai["turn"])); $date = date("Y-m-d H:i:s"); $tmp_data = array("id" => NULL, "username" => $username, "code" => $code, "date" => $date, "note" => '', "type" => "normal", "status" => 1); $this->main_model->create($tmp_data, "code_free_used"); $tmp_data = array("id" => $id, "admin_bank" => "System", "username" => $row_user["mobile_no"], "credit" => $credit, "credit_bonus" => 0, "credit_before" => $row_user["credit"], "credit_after" => $row_user["credit"] + $credit, "transaction_type" => "CRF", "date" => $date, "note" => "\340\271\204\xe0\270\x94\340\271\211\340\270\xa3\xe0\270\261\340\270\x9a\xe0\271\200\xe0\xb8\207\xe0\270\xb4\340\270\231\340\270\x88\xe0\xb8\262\340\270\201\xe0\270\201\340\270\262\340\xb8\xa3\xe0\271\203\340\270\212\340\xb9\211 \xe0\xb9\x82\xe0\xb8\x84\340\271\x89\xe0\270\224"); $this->main_model->create($tmp_data, "report_transaction"); $d = array("status" => "success", "message" => "\340\270\x84\340\xb8\270\340\xb8\223\xe0\xb9\204\xe0\xb8\224\xe0\271\211\xe0\270\243\340\270\261\xe0\270\232 " . $credit . " \xe0\xb9\x80\340\xb8\204\340\xb8\243\xe0\270\224\xe0\270\264\xe0\270\225"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["text"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/coupon-apply-success", $data, true); } else { $d = array("status" => "error", "message" => "\340\270\241\340\xb8\265\xe0\270\x9a\xe0\xb8\262\340\xb8\207\xe0\270\255\xe0\xb8\242\xe0\xb9\210\xe0\xb8\xb2\340\270\x87\xe0\xb8\x9c\340\xb8\xb4\340\270\x94\340\xb8\236\xe0\xb8\245\xe0\270\262\xe0\270\224"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/coupon-apply", $data, true); } } elseif ($code_type == "user_code") { $user_code_setting = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "codefree_user")))["value"], true); if ($user_code_setting["status"] == "on") { $id = "CRFU" . time() . rand(100, 2); $credit = $user_code_setting["credit"]; $agent_data = array("agent_method" => "DC", "agent_data" => array("user" => $row_user, "credit" => $credit, "id" => $id)); $res = $this->agent_model->process($agent_data); if ($res["status"]) { $id = $res["data"]["ref_id"]; $this->main_model->update("id", $row_user["id"], "sl_users", array("turn" => $row_user["turn"] + $user_code_setting["turn"])); $date = date("Y-m-d H:i:s"); $tmp_data = array("id" => NULL, "username" => $username, "code" => $code, "date" => $date, "note" => '', "type" => "user_code", "status" => 1); $this->main_model->create($tmp_data, "code_free_used"); $tmp_data = array("id" => $id, "admin_bank" => "System", "username" => $row_user["mobile_no"], "credit" => $credit, "credit_bonus" => 0, "credit_before" => $row_user["credit"], "credit_after" => $row_user["credit"] + $credit, "transaction_type" => "CRFU", "date" => $date, "note" => "\xe0\xb9\x84\xe0\270\x94\340\xb9\211\340\270\243\xe0\xb8\xb1\xe0\270\x9a\340\xb9\x80\340\xb8\207\340\270\264\340\270\x99\340\xb8\210\xe0\270\262\xe0\270\201\340\xb8\x81\xe0\270\xb2\xe0\xb8\243\xe0\271\203\340\xb8\212\xe0\xb9\211 \xe0\271\x82\340\xb8\x84\xe0\271\211\340\xb8\x94"); $this->main_model->create($tmp_data, "report_transaction"); $tmp_data = array("user_status" => "Free"); $this->main_model->update("id", $row_user["id"], "sl_users", $tmp_data); $d = array("status" => "success", "message" => "\340\xb8\x84\xe0\270\270\xe0\270\223\340\xb9\x84\340\xb8\x94\340\xb9\211\xe0\270\243\340\xb8\xb1\xe0\270\232 " . $credit . " \xe0\xb9\x80\340\xb8\x84\xe0\270\243\340\270\x94\xe0\270\264\xe0\xb8\225"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["text"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/coupon-apply-success", $data, true); } else { $d = array("status" => "error", "message" => "\xe0\270\xa1\340\xb8\265\xe0\xb8\232\340\xb8\262\xe0\270\207\340\xb8\xad\xe0\270\242\xe0\xb9\210\340\270\xb2\340\xb8\x87\340\xb8\234\340\xb8\xb4\xe0\270\x94\340\xb8\236\340\xb8\245\340\xb8\262\340\xb8\224"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/coupon-apply", $data, true); } } else { $d = array("status" => "error", "message" => "\xe0\xb8\xa3\xe0\xb8\xb0\340\270\232\xe0\xb8\232\xe0\xb9\202\xe0\270\x84\xe0\271\211\340\xb8\x94\340\xb8\225\340\xb8\264\xe0\270\x94\xe0\xb8\242\340\270\xb9\340\271\200\340\270\x8b\xe0\270\255\xe0\270\xa3\340\xb9\214\xe0\270\x9b\xe0\270\xb4\340\270\x94\340\xb9\203\xe0\270\x8a\340\271\x89\340\270\x87\xe0\xb8\262\xe0\xb8\231\340\270\x8a\340\270\xb1\340\xb9\210\340\270\247\340\270\x84\340\xb8\243\xe0\xb8\xb2\340\270\247"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/coupon-apply", $data, true); } } } } else { $d = array("status" => "error", "message" => "\xe0\271\204\340\270\241\340\xb9\x88\340\xb8\241\xe0\xb8\xb5\340\xb9\202\xe0\270\x84\xe0\xb9\x89\xe0\xb8\224\340\xb8\x99\340\270\xb5\xe0\271\x89\xe0\271\x83\xe0\270\x99\340\xb8\xa3\xe0\xb8\260\xe0\xb8\232\340\xb8\x9a \340\270\253\xe0\270\xa3\xe0\xb8\xb7\340\xb8\255 \340\xb9\x82\xe0\270\204\xe0\xb9\x89\340\270\x94\340\xb8\x99\xe0\270\xb5\340\xb9\211\340\270\x96\340\xb8\xb9\340\270\x81\xe0\xb9\x83\xe0\270\212\340\271\211\xe0\270\253\xe0\270\xa1\xe0\xb8\x94\xe0\xb9\201\340\270\xa5\xe0\271\x89\xe0\xb8\xa7"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/coupon-apply", $data, true); } } } } public function testr() { header("Content-Type: application/json; charset=utf-8"); print_r(json_encode(array("status" => true, "debug" => array()))); return; } public function tmn_gift() { header("Content-Type: application/json; charset=utf-8"); if ($_SERVER["REQUEST_METHOD"] !== "POST") { print_r(json_encode(array("status" => false, "message" => "Method not allowed!"))); return; } $tmn_gift = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "tmn_gift")))["value"], true); if (empty($_SESSION["user"]["logged_in"])) { header("HTTP/1.1 401 Unauthorized"); } else { if ($tmn_gift["enable"] != 1) { header("HTTP/1.1 400"); print_r(json_encode(array("status" => false, "message" => "\xe0\xb8\212\340\xb9\210\340\xb8\255\340\270\x87\340\270\x97\340\270\xb2\340\xb8\207\340\270\x9d\xe0\270\262\340\xb8\201\xe0\xb9\200\340\270\207\xe0\270\264\340\xb8\231\340\270\226\340\270\271\xe0\xb8\201\340\xb8\x9b\340\xb8\264\340\270\x94\xe0\xb9\203\340\270\x8a\340\271\x89\340\270\x87\340\xb8\xb2\xe0\xb8\231!"))); return; } $url = $this->input->post("refill_tmngift"); if (!isset($url)) { header("HTTP/1.1 400"); return; } $phone = $tmn_gift["phone"]; $url = "https://ki-anime.net/Gift.php?phone={$phone}&hash=" . urlencode($url); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); $data = json_decode($response); if ($data && $data->status && $data->status->code === "SUCCESS") { $amount = str_replace(",", '', $data->data->my_ticket->amount_baht); $row_user = $this->user_model->get_user($_SESSION["user"]["username"]); $Deposit = json_decode($this->credit_model->Deposit((double) $amount, $row_user, "TMNG"), true); if ($Deposit["status"] == "success") { print_r(json_encode(array("status" => true, "message" => "\xe0\xb8\204\340\xb8\270\340\xb8\223\xe0\xb9\x84\340\xb8\224\340\xb9\x89\340\xb8\243\xe0\270\xb1\340\xb8\232\xe0\xb9\x80\xe0\270\x87\xe0\xb8\264\340\270\x99 \xe0\270\210\xe0\270\263\xe0\270\x99\340\270\247\xe0\270\231 " . $amount . " \xe0\270\232\xe0\xb8\xb2\340\270\227"))); return; } else { print_r(json_encode(array("status" => false, "message" => "SYSTEM_ERROR_3:\340\xb9\x82\340\270\x9b\340\xb8\xa3\340\xb8\x94\340\xb8\x95\340\xb8\xb4\xe0\270\224\340\270\x95\xe0\271\210\xe0\xb8\xad\xe0\xb9\200\xe0\270\xa3\340\270\xb2(" . $token . ")"))); return; } } else { print_r(json_encode(array("status" => false, "message" => "Voucher not found!!"))); return; } } } public function slipverify() { header("Content-Type: application/json; charset=utf-8"); if ($_SERVER["REQUEST_METHOD"] !== "POST") { print_r(json_encode(array("status" => false, "message" => "Method not allowed!"))); return; } $slipverify = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "slipverify")))["value"], true); if (empty($_SESSION["user"]["logged_in"])) { header("HTTP/1.1 401 Unauthorized"); } else { $token = $this->input->post("token"); $url = "https://slipsplus.com/api/verify"; $data = array("qrcode_text" => $token, "key_api" => $slipverify["token"], "ip" => $_SERVER["REMOTE_ADDR"]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $response = curl_exec($ch); curl_close($ch); if ($response === false) { print_r(json_encode(array("status" => false, "message" => "SYSTEM_ERROR_1"))); return; } else { $data = json_decode($response, true); if ($data["status"] == 0) { print_r(json_encode(array("status" => false, "message" => "\340\xb9\204\xe0\270\xa1\xe0\271\210\xe0\xb8\x9e\340\xb8\232\xe0\270\xa3\340\xb8\262\xe0\270\242\xe0\xb8\x81\340\xb8\262\340\xb8\243\340\xb9\202\xe0\xb8\xad\340\270\231\340\xb9\x80\340\xb8\x87\xe0\xb8\xb4\340\270\x99 !!"))); return; } else { $BackName = "NONE"; $isFound = false; $admin_banks = $this->main_model->custom_query_result("select * from admin_bank"); foreach ($admin_banks as $value) { if ($value["status"] == 1) { $value = json_decode($value["meta_data"], true); $bank_acc_number = $value["bank_acc_number"]; $back = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $value["bank_id"]))); $scbid = $back["scb_id"]; $banknames = $back["MGBankId"]; if ($scbid == $data["receiver"]["bank_code"] && similar_text($bank_acc_number, $data["receiver"]["acc_no"]) >= 4) { $isFound = true; $BackName = $banknames; break; } } } $slip_transRef = $data["transactionId"]; $slip_from = $data["sender"]["acc_no"]; $slip_from_bank = $data["sender"]["bank_name"]; $slip_date = $data["slip_timestamp"]; $slip_point = $data["amount"]; $check_same = $data["request_same"]; if ($check_same === 0) { print_r(json_encode(array("status" => false, "message" => "\xe0\xb8\xaa\340\xb8\xa5\340\270\264\xe0\270\x9b\340\xb8\x99\340\xb8\xb5\340\xb9\x89\340\xb8\x96\xe0\270\xb9\340\270\201\xe0\xb9\203\xe0\270\212\xe0\xb9\x89\xe0\270\207\xe0\270\xb2\xe0\270\x99\xe0\271\201\xe0\270\xa5\340\271\x89\xe0\270\247 !!"))); return; } else { if (!$isFound) { print_r(json_encode(array("status" => false, "message" => "\xe0\271\204\340\xb8\xa1\340\271\x88\340\270\x9e\340\xb8\232\xe0\270\xa3\xe0\xb8\262\xe0\xb8\xa2\340\270\201\xe0\xb8\262\xe0\270\xa3\xe0\271\x82\340\270\xad\xe0\270\231\340\271\x80\340\270\x87\xe0\xb8\xb4\340\xb8\x99 !!"))); return; } else { $row_user = $this->user_model->get_user($_SESSION["user"]["username"]); $Deposit = json_decode($this->credit_model->Deposit((double) $slip_point, $row_user, "SLIP"), true); if ($Deposit["status"] == "success") { print_r(json_encode(array("status" => true, "message" => "\xe0\270\204\340\xb8\xb8\xe0\xb8\x93\xe0\xb9\204\xe0\270\x94\xe0\xb9\211\340\xb8\xa3\340\270\xb1\340\270\x9a\340\271\x80\xe0\xb8\207\xe0\270\264\340\xb8\231 \340\xb8\x88\xe0\270\xb3\340\270\231\340\270\xa7\340\xb8\x99 " . $slip_point . " \340\xb8\232\xe0\xb8\262\340\xb8\227"))); return; } else { print_r(json_encode(array("status" => false, "message" => "SYSTEM_ERROR_3:\340\xb9\202\xe0\270\x9b\340\270\243\340\xb8\224\340\xb8\225\xe0\xb8\264\340\270\x94\340\270\x95\340\xb9\210\xe0\xb8\xad\xe0\271\200\xe0\270\243\340\xb8\262(" . $token . ")"))); return; } } } } } } } public function qrpaypoint() { header("Content-Type: application/json; charset=utf-8"); if ($_SERVER["REQUEST_METHOD"] !== "POST") { print_r(json_encode(array("status" => false, "message" => "Method not allowed!"))); return; } $inputJSON = file_get_contents("php://input"); $input = json_decode($inputJSON, true); $status = $input["status"]; $qrCodeTransactionId = $input["qrCodeTransactionId"]; $message = $input["message"]; $string = $qrCodeTransactionId; preg_match("/_(\d+)/", $string, $matches); if ($status == 200) { $row_user = $this->user_model->get_user($matches[1]); $row_point = $this->user_model->get_point($qrCodeTransactionId); $Deposit = json_decode($this->credit_model->Deposit((double) $row_point["amount"], $row_user, "QRPAY"), true); if ($Deposit["status"] == "success") { print_r(json_encode(array("status" => 200, "qrCodeTransactionId" => $qrCodeTransactionId, "message" => "Successfully received Payment Notification Callback"))); return; } else { print_r(json_encode(array("status" => 400, "qrCodeTransactionId" => $qrCodeTransactionId, "message" => "Fail received Payment Notification Callback"))); return; } } else { print_r(json_encode(array("status" => 400, "qrCodeTransactionId" => $qrCodeTransactionId, "message" => "Fail received Payment Notification Callback"))); return; } } public function scbslip() { header("Content-Type: application/json; charset=utf-8"); $row_user = $this->user_model->get_user($_SESSION["user"]["username"]); $Deposit = json_decode($this->credit_model->Deposit((double) 1000.0, $row_user, "QRPAY"), true); if ($Deposit["status"] == "success") { print_r(json_encode(array("status" => 200, "message" => "Successfully received Payment Notification Callback"))); return; } else { print_r(json_encode(array("status" => 400, "qrCodeTransactionId" => $qrCodeTransactionId, "message" => "Fail received Payment Notification Callback"))); return; } } public function callqrpaypoint() { header("Content-Type: application/json; charset=utf-8"); if ($_SERVER["REQUEST_METHOD"] !== "POST") { print_r(json_encode(array("status" => false, "message" => "Method not allowed!"))); return; } $inputJSON = file_get_contents("php://input"); $input = json_decode($inputJSON, true); $status = $input["status"]; $type = $input["type"]; $callbackStatus = $input["callbackStatus"]; $amount = $input["amount"]; $fees = $input["fees"]; $currencyCode = $input["currencyCode"]; $qrCodeTransactionId = $input["qrCodeTransactionId"]; $transactionRef1 = $input["transactionRef1"]; $transactionRef2 = $input["transactionRef2"]; $transactionRef3 = $input["transactionRef3"]; $merchant = $input["merchant"]; $createdAt = $input["createdAt"]; $updatedAt = $input["updatedAt"]; $qrPayBankRef = $input["qrPayBankRef"]; $id = $input["id"]; $tmp_data["status"] = $status; $tmp_data["type"] = $type; $tmp_data["callbackStatus"] = $callbackStatus; $tmp_data["amount"] = $amount; $tmp_data["fees"] = $fees; $tmp_data["currencyCode"] = $currencyCode; $tmp_data["qrCodeTransactionId"] = $qrCodeTransactionId; $tmp_data["transactionRef1"] = $transactionRef1; $tmp_data["transactionRef2"] = $transactionRef2; $tmp_data["transactionRef3"] = $transactionRef3; $tmp_data["merchant"] = $merchant; $tmp_data["createdAt"] = $createdAt; $tmp_data["updatedAt"] = $updatedAt; $tmp_data["qrPayBankRef"] = $qrPayBankRef; $tmp_data["pid"] = $id; $this->user_model->create_qrpayment($tmp_data); if ($status == "02_Paid") { $string = $qrCodeTransactionId; preg_match("/_(\d+)/", $string, $matches); $row_user = $this->user_model->get_user($matches[1]); $Deposit = json_decode($this->credit_model->Deposit((double) $amount, $row_user, "QRPAY"), true); $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "card_setting")))["value"], true); $ticket_total = floor($amount / $tmp["credit_collect"]); if ($ticket_total > 0 && $tmp["enable"] == 1) { $this->main_model->update("mobile_no", $row_user["mobile_no"], "sl_users", array("ticket_card" => $row_user["ticket_card"] + $ticket_total)); } $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "wheel_setting")))["value"], true); $ticket_total = floor($amount / $tmp["credit_collect"]); if ($ticket_total > 0 && $tmp["enable"] == 1) { $this->main_model->update("mobile_no", $row_user["mobile_no"], "sl_users", array("ticket_wheel" => $row_user["ticket_wheel"] + $ticket_total)); } if ($Deposit["status"] == "success") { print_r(json_encode(array("status" => "success", "message" => "Callback received successfully"))); return; } else { print_r(json_encode(array("status" => "error", "message" => "Callback received fail"))); return; } } else { print_r(json_encode(array("status" => "error", "message" => "Callback received fail"))); return; } } public function change_password() { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; if (empty($_SESSION["user"]["logged_in"])) { header("HTTP/1.1 401 Unauthorized"); } else { $tmp_data = $this->input->post(); if (empty($tmp_data)) { $data["error"] = "\xe0\xb9\202\xe0\270\x9b\340\xb8\xa3\340\270\224\340\270\201\xe0\270\243\340\xb8\255\xe0\xb8\201\340\270\202\340\xb9\x89\340\270\xad\340\270\241\340\xb8\xb9\340\xb8\245"; $d = array("status" => "error", "message" => "\xe0\xb9\202\340\270\x9b\340\270\xa3\340\270\x94\340\xb8\x81\340\xb8\xa3\340\xb8\255\340\270\201\xe0\xb8\x82\340\271\211\340\270\xad\340\270\xa1\xe0\xb8\271\340\xb8\xa5"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); echo $this->load->view("panel_user/{$theme}/ajax_load/account/change-password", $data, true); die; } $tmp_data = array("current_password" => $tmp_data["sylius_user_change_password"]["currentPassword"], "new_password" => $tmp_data["sylius_user_change_password"]["newPassword"]["first"], "new_password_confirmation" => $tmp_data["sylius_user_change_password"]["newPassword"]["second"]); if ($this->user_model->resolve_user_login($_SESSION["user"]["mobile"], $tmp_data["current_password"])) { if ($tmp_data["new_password"] == $tmp_data["new_password_confirmation"]) { $validatePassword = $this->user_model->validatePassword($tmp_data["new_password"]); if ($validatePassword == false) { $row_user = $this->user_model->get_user($_SESSION["user"]["id"]); $agent_data = array("agent_method" => "SP", "agent_data" => array("user" => $row_user, "new_password" => $tmp_data["new_password"])); $res = $this->agent_model->process($agent_data); if ($res["status"]) { $new_data["password"] = $tmp_data["new_password"]; if ($this->main_model->update("id", $_SESSION["user"]["id"], "sl_users", $new_data)) { $d = array("status" => "success", "message" => "\xe0\xb9\200\xe0\270\233\340\xb8\xa5\340\270\xb5\340\xb9\x88\340\xb8\242\xe0\xb8\231\xe0\xb8\xa3\xe0\xb8\253\340\270\261\340\270\252\340\xb8\x9c\340\271\x88\340\xb8\262\xe0\270\x99\340\271\x80\xe0\270\243\340\270\xb5\340\270\242\xe0\xb8\232\340\270\243\340\271\x89\340\270\xad\340\xb8\xa2"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/password_success", $data, true); } else { $d = array("status" => "error", "message" => "\xe0\270\241\340\xb8\265\xe0\xb8\232\340\xb8\262\xe0\270\207\xe0\270\255\xe0\270\242\xe0\271\x88\xe0\270\xb2\340\270\207\340\xb8\234\xe0\xb8\xb4\340\270\x94\xe0\270\236\340\270\xa5\340\xb8\xb2\340\270\224 \xe0\xb8\x81\xe0\xb8\243\340\xb8\270\xe0\xb8\x93\340\270\xb2\xe0\xb8\245\340\270\xad\340\270\x87\340\xb8\255\xe0\xb8\xb5\340\270\201\340\270\x84\340\270\243\340\270\261\340\271\211\340\270\207 <br> Code : 1000"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/change-password", $data, true); } } else { $d = array("status" => "error", "message" => "\xe0\270\241\340\xb8\265\xe0\270\232\xe0\xb8\xb2\340\xb8\x87\xe0\xb8\xad\xe0\270\xa2\xe0\xb9\210\xe0\xb8\xb2\xe0\xb8\207\340\xb8\234\340\270\xb4\xe0\xb8\224\340\xb8\x9e\340\xb8\245\340\xb8\xb2\xe0\270\224 <br> Code : 2000 <br> Msg : " . $res["msg"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/change-password", $data, true); } } else { $d = array("status" => "error", "message" => $validatePassword); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/change-password", $data, true); } } else { $d = array("status" => "error", "message" => "\340\xb8\xa3\xe0\270\253\340\xb8\xb1\340\xb8\252\340\xb8\234\xe0\xb9\x88\340\xb8\xb2\xe0\xb8\x99\340\xb9\x84\340\270\xa1\340\271\210\xe0\xb8\x95\340\xb8\243\340\xb8\x87\xe0\270\201\340\270\xb1\340\270\x99"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/change-password", $data, true); } } else { $d = array("status" => "error", "message" => "\340\270\243\340\270\xab\xe0\xb8\xb1\xe0\xb8\xaa\xe0\xb8\x9c\340\271\210\340\270\xb2\340\xb8\231\340\271\200\340\xb8\x94\340\xb8\264\xe0\xb8\241\340\xb9\x84\340\270\241\340\271\210\340\270\226\xe0\270\271\xe0\270\x81\340\270\x95\xe0\xb9\x89\340\xb8\xad\340\270\207"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $data["error"] = $d["message"]; echo $this->load->view("panel_user/{$theme}/ajax_load/account/change-password", $data, true); } } } public function account($page = false) { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; if (empty($_SESSION["user"]["logged_in"])) { echo "<script>location.href = "" . base_url() . "";</script>"; } else { $row_user = $this->user_model->get_user($_SESSION["user"]["id"]); $bank_info = $this->main_model->get_bank_info($row_user["bank_id"]); $data["user"] = $row_user; $data["user"]["bank_info"] = $bank_info; $data["mobile"] = isset($_GET["isMobileView"]) ? true : false; $menu = $this->load->view("panel_user/{$theme}/ajax_load/account/menu", $data, true); $data["menu"] = $menu; if ($page == "cancle-promotion") { $this->main_model->custom_query("
\x9\x9\x9\x9 UPDATE meta_promotion
\x9\x9 SET status = 0\xa\x9\x9\x9\x9 WHERE u_mobile = '{$row_user["mobile_no"]}'\xa\x9 \x9\x9"); $this->main_model->custom_query("\xa\x9 \x9 \x9UPDATE sl_users\xa \x9\x9 SET accept_promotion = 0
WHERE mobile_no = '{$row_user["mobile_no"]}'
\x9"); $page = "promotion"; echo "Cancelled"; return; } if ($page == "customer-info") { } else { if ($page == "in-deposit") { $tmp = $this->main_model->get_result("meta_promotion_setting"); $tmp_data = array(); $i = 0; foreach ($tmp as $row) { $tmp_row = json_decode($row["meta"], true); if ($tmp_row["status"] == 1) { $tmp_data[$i] = $tmp_row; $tmp_data[$i]["id"] = $row["id"]; $i++; } } $data["pro"] = $tmp_data; } else { if ($page == "deposit") { $user_info = $this->user_model->get_user($_SESSION["user"]["id"]); if ($user_info["bank_id"] == 5) { } $bank_info = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $user_info["bank_id"]))); $admin_banks = $this->main_model->custom_query_result("
\x9 select *\xa\x9 \x9\x9\x9from admin_bank\xa\x9 \x9 where status = 1\xa\x9\x9 "); $tmp_bank = array(); $i = 0; foreach ($admin_banks as $tmp) { $tmp_bank[$i] = $tmp; foreach (json_decode($tmp["meta_data"], true) as $key => $val) { $tmp_bank[$i][$key] = $val; } unset($tmp_bank[$i]["meta_data"]); $i++; } $admin_bank = array(); $i = 0; function searchForId($id, $array) { foreach ($array as $key => $val) { if ($val["show_type"] === $id) { return $key; } } return null; } $admin_tws = $this->main_model->custom_query_result("\xa\x9\x9\x9 select *\xa\x9 \x9\x9from admin_truewallet\xa\x9\x9\x9 \x9where status = 1\xa\x9\x9\x9 "); $tmp_tw = array(); $i = 0; foreach ($admin_tws as $tmp) { $tmp_tw[$i] = $tmp; foreach (json_decode($tmp["meta_data"], true) as $key => $val) { $tmp_tw[$i][$key] = $val; } unset($tmp_tw[$i]["meta_data"]); $i++; } $admin_tw = array(); $i = 0; foreach ($tmp_tw as $tmp) { if ($tmp["tw_type"] == "BOTH" || $tmp["tw_type"] == "DEPOSIT") { $admin_tw[$i] = $tmp; $i++; break; } } $bid = null; if (!empty($tmp_bank)) { for ($i = 0; $i < count($tmp_bank); $i++) { if ($user_info["bank_id"] == 5) { $bid = searchForId("ONLY_SCB", $tmp_bank); if ($bid == null) { $bid = searchForId("ALL", $tmp_bank); } if ($bid !== null) { $admin_bank[$i] = $tmp_bank[$bid]; $tmp_info = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $admin_bank[$i]["bank_id"]))); $admin_bank[$i]["bank_ico"] = $tmp_info["bank_ico"]; $admin_bank[$i]["bank_color"] = $tmp_info["bank_color"]; } } else { if ($user_info["bank_id"] == 1) { $bid = searchForId("ONLY_KBANK", $tmp_bank); if ($bid == null) { $bid = searchForId("ALL", $tmp_bank); } if ($bid !== null) { $admin_bank[$i] = $tmp_bank[$bid]; $tmp_info = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $admin_bank[$i]["bank_id"]))); $admin_bank[$i]["bank_ico"] = $tmp_info["bank_ico"]; $admin_bank[$i]["bank_color"] = $tmp_info["bank_color"]; } } else { if ($user_info["bank_id"] == 29) { $admin_bank = array(); } else { if ($bid == null) { $bid = searchForId("ALL", $tmp_bank); } if ($bid !== null) { $admin_bank[$i] = $tmp_bank[$bid]; $tmp_info = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $admin_bank[$i]["bank_id"]))); $admin_bank[$i]["bank_ico"] = $tmp_info["bank_ico"]; $admin_bank[$i]["bank_color"] = $tmp_info["bank_color"]; } } } } } } $decimal = false; if (!empty($admin_bank)) { if ($admin_bank[0]["change_acc"] == "true") { $page = "deposit-change"; } if ($admin_bank[0]["deposit_decimal"] == "true") { $decimal = true; } } $page = "deposit-change"; $user_info["bank_ico"] = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $user_info["bank_id"])))["bank_ico"]; $data["decimal"] = $decimal; $data["bank"] = array("admin_bank" => $tmp_bank, "admin_truewallet" => $admin_tw, "user" => $user_info, "decimal" => $decimal); $check = $this->main_model->custom_query_row("
\x9 \x9 \x9select *\xa from generate_decimal
\x9\x9\x9 where status IS NULL and username = '{$user_info["mobile_no"]}'
\x9\x9\x9"); $data["decimal_credit"] = $check; $promotion_setting = json_decode($this->main_model->get_row("meta_promotion_setting", array("where" => array("col" => "id", "val" => $user_info["accept_promotion"])))["meta"], true); $data["user"]["promotion"] = $promotion_setting; } else { if ($page == "promotion") { $user_info = $this->user_model->get_user($_SESSION["user"]["id"]); if ($user_info["bank_id"] == 5) { } $bank_info = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $user_info["bank_id"]))); $admin_banks = $this->main_model->custom_query_result("
\x9\x9\x9 select *
\x9 from admin_bank
\xa \x9\x9\x9where status = 1\xa
\x9\x9\x9\x9"); $tmp_bank = array(); $i = 0; foreach ($admin_banks as $tmp) { $tmp_bank[$i] = $tmp; foreach (json_decode($tmp["meta_data"], true) as $key => $val) { $tmp_bank[$i][$key] = $val; } unset($tmp_bank[$i]["meta_data"]); $i++; } $admin_bank = array(); $i = 0; foreach ($tmp_bank as $tmp) { if ($tmp["work_type"] == "AUTO_SMS" || $tmp["work_type"] == "BOTH_SMS" || $tmp["work_type"] == "NODE" || $tmp["work_type"] == "ALL") { if ($tmp["bank_type"] == "BOTH" || $tmp["bank_type"] == "DEPOSIT") { $admin_bank[$i] = $tmp; $tmp_info = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $tmp["bank_id"]))); $admin_bank[$i]["bank_ico"] = $tmp_info["bank_ico"]; $admin_bank[$i]["bank_color"] = $tmp_info["bank_color"]; $i++; break; } } } $user_info["bank_ico"] = $this->main_model->get_row("bank_info", array("where" => array("col" => "bank_id", "val" => $user_info["bank_id"])))["bank_ico"]; $data["bank"] = array("admin_bank" => $admin_bank, "user" => $user_info); $promotion_setting = json_decode($this->main_model->get_row("meta_promotion_setting", array("where" => array("col" => "id", "val" => $user_info["accept_promotion"])))["meta"], true); $data["user"]["promotion"] = $promotion_setting; } else { if ($page == "withdraw") { header("Content-Type: application/json; charset=utf-8", true, 200); die("TEST"); $check = $this->main_model->custom_query_row("\xa \x9 \x9 SELECT *\xa \x9 \x9\x9FROM main_wallet_withdraw
\x9\x9\x9 WHERE mobile_no = '{$row_user["mobile_no"]}' AND status IS NULL
\x9 \x9 "); if (!empty($check)) { $page = "withdraw_wait"; $data["withdraw"] = $check; print_r(json_encode(array("status" => "wait", "data" => $check))); return; } print_r(json_encode(array("status" => "noting", "data" => $check))); return; } else { if ($page == "aff-his") { $user_info = $this->user_model->get_user($_SESSION["user"]["id"]); $tmp = $this->main_model->custom_query_row("\xa\x9\x9\x9\x9\x9SELECT count(*) CU\xa \x9 \x9\x9FROM sl_users
\x9\x9 \x9WHERE aff = '{$user_info["id"]}'\xa\x9 \x9\x9"); $tmp2 = $this->main_model->custom_query_row("
\x9\x9SELECT sum(credit_bonus) SBN
\x9\x9\x9 FROM report_transaction
WHERE transaction_type = 'AFF' and username = '{$user_info["mobile_no"]}'\xa\x9 "); $tmp3 = $this->main_model->custom_query_row("\xa \x9\x9 \x9SELECT sum(credit_bonus) SBN
\x9\x9\x9\x9FROM report_transaction\xa\x9\x9\x9\x9 WHERE transaction_type = 'REFUND' and username = '{$user_info["mobile_no"]}'\xa \x9 "); $tmp4 = $this->main_model->custom_query_result("
\x9\x9 \x9 SELECT id,betflix_id,amb_id\xa \x9\x9 FROM sl_users\xa\x9 \x9\x9WHERE aff = '{$user_info["id"]}'\xa \x9\x9 "); $data["aff"]["c_user"] = isset($tmp["CU"]) ? $tmp["CU"] : "0"; $data["aff"]["aff_credit"] = isset($tmp2["SBN"]) ? $tmp2["SBN"] : "0.00"; $data["aff"]["refund_credit"] = isset($tmp3["SBN"]) ? $tmp3["SBN"] : "0.00"; $data["aff"]["user_list"] = $tmp4; } else { if ($page == "dep-his") { $user_info = $this->user_model->get_user($_SESSION["user"]["id"]); $tmp = $this->main_model->custom_query_result("
\x9 \x9\x9SELECT *
\x9\x9 \x9 FROM report_transaction\xa \x9 \x9where username = '{$user_info["mobile_no"]}' and (transaction_type = 'DEPOSIT' OR transaction_type = 'WITHDRAW' OR transaction_type = 'DEPOSITM' OR transaction_type = 'WITHDRAWM')\xa\x9 "); $data["list"] = $tmp; } } } } } } } $this->load->view("panel_user/{$theme}/ajax_load/account/" . $page, $data); } } public function balance() { if (empty($_SESSION["user"]["logged_in"])) { echo "<span class="-amount">0.00</span>"; } else { $row = $this->main_model->get_row("sl_users", array("where" => array("col" => "id", "val" => $_SESSION["user"]["id"]))); $this->agent_model->reset_turn($row); if ($row["turn_date"] == null) { $turn_date = date_format(date_create($row["create_at"]), "Y-m-d"); } else { $turn_date = date("Y-m-d", strtotime($row["turn_date"] . "- 1 days")); } $row = $this->main_model->get_row("sl_users", array("where" => array("col" => "id", "val" => $row["id"]))); $d = array("status" => "success", "message" => "\340\270\224\340\270\xb6\xe0\270\207\340\270\202\340\xb9\211\340\xb8\255\xe0\xb8\241\340\270\xb9\xe0\270\xa5\340\xb8\xaa\xe0\270\263\340\271\200\xe0\270\xa3\340\xb9\207\340\xb8\x88", "data" => array("id" => $row["id"], "credit" => $row["credit"])); echo "<span class="-amount">" . $row["credit"] . "</span>"; } } public function login() { header("Content-Type: application/json"); if (empty($_SESSION["user"]["logged_in"])) { $post = json_decode(file_get_contents("php://input"), true); $username = isset($post["username"]) ? $post["username"] : ''; $password = isset($post["password"]) ? $post["password"] : ''; if ($this->user_model->resolve_user_login($username, $password)) { $row = $this->user_model->get_user($username); if ($row["status"] < 1) { $d = array("status" => "error", "message" => "\340\270\x9a\xe0\xb8\261\340\xb8\215\340\xb8\212\xe0\270\xb5\340\xb8\x84\xe0\xb8\xb8\340\xb8\223\340\271\x82\340\270\224\340\270\231\xe0\xb9\201\340\xb8\232\340\270\x99"); header("HTTP/1.1 404 Unauthorized2"); echo "{"success":false,"message":"Account is disabled."}"; die; } if ($row["admin_bank_id"] == 0) { $bankDefault = ''; $getDefaultBank = $this->main_model->custom_query_result("SELECT * FROM admin_bank WHERE status = 1"); foreach ($getDefaultBank as $item) { $formatItem = json_decode($item["meta_data"], true); if ($formatItem["bank_type"] == "DEPOSIT") { if ($formatItem["bank_default"] == 1) { $bankDefault = $item["id"]; } } } $temp_data = array("admin_bank_id" => $bankDefault); $this->main_model->update("id", $row["id"], "sl_users", $temp_data); } $this->user_model->update_last_login($username); $_SESSION["user"]["logged_in"] = true; $_SESSION["user"]["mobile"] = $row["mobile_no"]; $_SESSION["user"]["username"] = $row["mobile_no"]; $_SESSION["user"]["id"] = $row["id"]; $_SESSION["user"]["fullname"] = $row["fullname"]; $_SESSION["user"]["admin_bank_id"] = $row["admin_bank_id"]; echo "{"success":true,"username":"" . $row["mobile_no"] . ""}"; } else { header("HTTP/1.1 402 Unauthorized3"); echo "{"success":false,"message":"Invalid credentials."}"; } } else { header("HTTP/1.1 403 Unauthorized4"); echo "{"success":false,"message":"Invalid credentials."}"; } } public function check_mobile_1() { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; unset($_SESSION["register"]); if (empty($_SESSION["user"]["logged_in"])) { $this->form_validation->set_error_delimiters('', "<br>"); $this->form_validation->set_rules("key_valid", "key_valid", "trim|required", array("required" => "\xe0\270\x82\340\xb9\211\xe0\xb8\xad\xe0\xb8\241\xe0\xb8\xb9\xe0\xb8\xa5\340\271\204\340\270\241\340\xb9\210\xe0\270\204\xe0\xb8\243\340\270\232\340\xb8\x96\xe0\271\211\xe0\xb8\xa7\340\xb8\231 \340\270\x81\xe0\270\243\340\xb8\xb8\340\270\x93\340\xb8\262\xe0\xb9\x83\xe0\270\xaa\340\271\210\xe0\xb8\x82\340\xb9\x89\340\xb8\255\xe0\270\241\xe0\270\271\xe0\xb8\xa5\xe0\271\x83\340\270\xab\xe0\271\211\xe0\270\x96\340\xb8\271\340\270\x81\340\xb8\225\340\271\211\xe0\270\xad\340\270\x87")); if ($this->form_validation->run() === false) { $this->load->view("panel_user/{$theme}/ajax_load/register", $data); } else { $input = $this->input->post(); $mobile_no = isset($input["request_otp"]["phoneNumber"]) ? $input["request_otp"]["phoneNumber"] : null; if (empty($mobile_no)) { $data["error"] = "\xe0\270\201\xe0\270\xa3\xe0\270\xb8\340\270\223\340\xb8\xb2\xe0\270\x81\xe0\xb8\243\xe0\270\255\xe0\270\201\xe0\xb9\200\xe0\xb8\x9a\xe0\270\xad\340\270\243\340\xb9\x8c\340\xb9\x82\xe0\270\227\xe0\270\xa3"; $this->load->view("panel_user/{$theme}/ajax_load/register", $data); } else { if (strlen($mobile_no) < 10 || !is_numeric($mobile_no)) { $data["error"] = "\340\270\x81\xe0\xb8\xa3\xe0\270\xb8\340\270\x93\xe0\270\xb2\xe0\270\x81\xe0\xb8\xa3\340\xb8\xad\340\270\201\340\xb9\200\xe0\xb8\x9a\xe0\270\255\xe0\xb8\243\xe0\xb9\x8c\xe0\xb9\202\xe0\270\x97\340\270\xa3\xe0\270\250\xe0\270\xb1\xe0\xb8\236\xe0\xb8\227\xe0\271\x8c\xe0\xb9\203\xe0\xb8\xab\xe0\271\211\xe0\270\226\340\270\xb9\xe0\270\201\xe0\270\225\xe0\271\211\340\270\xad\340\270\207"; $this->load->view("panel_user/{$theme}/ajax_load/register", $data); } else { $row_user = $this->user_model->get_user($mobile_no); if (!empty($row_user)) { $data["mobile_no"] = $mobile_no; $this->load->view("panel_user/{$theme}/ajax_load/registed", $data); } else { $_SESSION["register"]["mobile_no"] = $mobile_no; $this->load->view("panel_user/{$theme}/ajax_load/password_input", $data); } } } } } else { echo "<script>location.href = "" . base_url() . "";</script>"; } } public function check_mobile() { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; unset($_SESSION["register"]); if (empty($_SESSION["user"]["logged_in"])) { $this->form_validation->set_error_delimiters('', "<br>"); $this->form_validation->set_rules("key_valid", "key_valid", "trim|required", array("required" => "\xe0\xb8\x82\340\xb9\211\xe0\xb8\255\340\xb8\xa1\340\xb8\xb9\xe0\270\245\xe0\xb9\204\xe0\270\241\xe0\271\210\xe0\xb8\x84\340\xb8\243\xe0\270\232\xe0\270\x96\340\271\211\xe0\xb8\xa7\340\xb8\231 \340\270\201\xe0\270\xa3\xe0\270\xb8\340\270\223\xe0\270\xb2\xe0\xb9\203\340\xb8\252\340\xb9\210\xe0\270\x82\340\xb9\x89\xe0\xb8\xad\340\270\241\340\270\271\xe0\270\xa5\xe0\271\203\340\xb8\253\xe0\xb9\x89\xe0\270\226\xe0\270\271\340\xb8\201\xe0\xb8\x95\xe0\xb9\211\xe0\xb8\xad\340\xb8\207")); if ($this->form_validation->run() === false) { $this->load->view("panel_user/{$theme}/ajax_load/register", $data); } else { $input = $this->input->post(); $mobile_no = isset($input["request_otp"]["phoneNumber"]) ? $input["request_otp"]["phoneNumber"] : null; $aff = isset($input["request_otp"]["aff"]) ? $input["request_otp"]["aff"] : null; if (empty($mobile_no)) { $data["error"] = "\xe0\xb8\201\340\xb8\243\340\xb8\xb8\340\270\223\xe0\270\xb2\340\270\201\340\xb8\xa3\340\xb8\255\xe0\xb8\201\340\271\x80\340\270\232\xe0\xb8\xad\xe0\xb8\xa3\340\271\x8c\340\271\x82\xe0\xb8\x97\340\xb8\xa3"; $d = array("status" => "error", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); if ($aff) { $this->load->view("panel_user/{$theme}/ajax_load/register?aff=" . $aff, $data); } else { $this->load->view("panel_user/{$theme}/ajax_load/register", $data); } } else { if (strlen($mobile_no) < 10 || !is_numeric($mobile_no)) { $data["error"] = "\340\xb8\201\340\xb8\243\xe0\270\xb8\xe0\270\x93\340\xb8\262\340\xb8\201\340\xb8\243\340\xb8\255\340\270\x81\340\271\x80\xe0\xb8\x9a\340\270\255\340\270\243\xe0\xb9\x8c\340\271\202\xe0\270\x97\340\270\243\xe0\xb8\xa8\xe0\270\261\xe0\xb8\236\340\270\x97\340\271\214\340\xb9\x83\xe0\270\xab\340\xb9\211\xe0\270\x96\340\xb8\xb9\340\xb8\201\xe0\270\225\xe0\271\x89\xe0\270\255\xe0\xb8\207"; $d = array("status" => "error", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); if ($aff) { $this->load->view("panel_user/{$theme}/ajax_load/register?aff=" . $aff, $data); } else { $this->load->view("panel_user/{$theme}/ajax_load/register", $data); } } else { $row_user = $this->user_model->get_user($mobile_no); if (!empty($row_user)) { $data["mobile_no"] = $mobile_no; $d = array("status" => "error", "message" => "\340\xb8\241\340\270\xb5\xe0\270\232\xe0\270\xb1\340\xb8\215\xe0\xb8\x8a\xe0\xb8\xb5\340\xb8\xad\xe0\xb8\xa2\xe0\270\xb9\xe0\271\x88\xe0\271\201\xe0\xb8\xa5\340\xb9\x89\xe0\270\247"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); if ($aff) { $this->load->view("panel_user/{$theme}/ajax_load/registed?aff=" . $aff, $data); } else { $this->load->view("panel_user/{$theme}/ajax_load/registed", $data); } } else { $otp_register = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "otp_register")))["value"], true); $otp_open = false; if (isset($otp_register["enable"])) { if ($otp_register["enable"] == 1) { $otp_open = true; $_SESSION["register"]["otp_open"] = true; } } if ($otp_open) { $header = array("Content-Type: application/x-www-form-urlencoded"); $data_otp = array("key" => $otp_register["otp_key"], "secret" => $otp_register["otp_secret"], "msisdn" => $mobile_no); $data_otp = http_build_query($data_otp); $res = $this->agent_model->Curl("POST", "https://otp.thaibulksms.com/v1/otp/request", $header, $data_otp, false); $res = json_decode($res, true); if (isset($res["data"]["status"])) { if ($res["data"]["status"] == "success") { $_SESSION["otp"]["token"] = $res["data"]["token"]; if ($aff) { $_SESSION["register"]["aff"] = $aff; $row_user_aff = $this->user_model->get_user($aff); if (empty($row_user_aff)) { $data["error"] = "\340\xb9\x84\xe0\270\241\xe0\271\210\340\xb8\xa1\340\270\xb5\340\xb8\xa3\340\270\xab\340\270\261\340\xb8\252\340\271\201\xe0\270\231\340\270\xb0\xe0\270\x99\xe0\270\xb3\xe0\271\x80\340\270\236\xe0\270\xb7\xe0\xb9\x88\xe0\270\255\340\xb8\x99\340\270\231\xe0\xb8\xb5\xe0\271\x89\340\xb9\203\340\xb8\x99\xe0\xb8\243\340\270\260\xe0\270\232\340\270\232"; $d = array("status" => "success", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); echo $this->load->view("panel_user/{$theme}/ajax_load/register", $data); die; } } $_SESSION["register"]["mobile_no"] = $mobile_no; $this->load->view("panel_user/{$theme}/ajax_load/otp_input", $data); } else { $data["error"] = "\xe0\xb9\204\xe0\xb8\241\340\271\x88\340\270\252\340\270\262\340\xb8\xa1\xe0\xb8\262\340\270\xa3\xe0\xb8\226\340\xb8\x82\xe0\xb8\255 OTP \xe0\xb9\x84\340\xb8\224\xe0\xb9\x89<br>\xe0\270\x81\xe0\270\xa3\340\xb8\270\xe0\xb8\x93\xe0\270\xb2\xe0\xb9\x80\340\xb8\x8a\xe0\xb9\x87\340\xb8\204\340\xb9\200\340\270\x9a\xe0\270\xad\340\270\xa3\340\271\214\340\271\202\340\xb8\x97\xe0\270\xa3\xe0\xb8\xa8\340\270\261\xe0\270\x9e\340\xb8\x97\xe0\271\214 \340\xb8\253\xe0\270\xa3\340\xb8\xb7\340\xb8\255 \340\xb8\225\340\xb8\264\xe0\270\224\340\270\x95\xe0\xb9\210\340\xb8\xad\xe0\271\x81\xe0\xb8\255\340\xb8\x94\340\270\241\xe0\270\xb4\340\xb8\x99"; $d = array("status" => "success", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); if ($aff) { $this->load->view("panel_user/{$theme}/ajax_load/register?aff=" . $aff, $data); } else { $this->load->view("panel_user/{$theme}/ajax_load/register", $data); } } } else { $data["error"] = "\340\271\204\xe0\xb8\xa1\340\271\210\xe0\270\252\xe0\xb8\262\340\270\xa1\340\270\262\340\xb8\xa3\340\270\x96\xe0\xb8\x82\xe0\270\255 OTP \xe0\271\204\xe0\270\x94\xe0\xb9\x89 \xe0\xb8\201\340\xb8\xa3\xe0\xb8\270\340\270\223\xe0\270\262\340\271\200\340\xb8\212\xe0\271\207\340\270\204\340\xb9\x80\340\xb8\x9a\340\270\xad\340\270\243\xe0\271\214\xe0\xb9\202\xe0\xb8\x97\340\xb8\xa3\xe0\xb8\xa8\xe0\xb8\xb1\340\xb8\x9e\340\xb8\x97\xe0\271\214 \xe0\270\xab\xe0\xb8\xa3\xe0\xb8\xb7\340\xb8\xad \340\270\x95\xe0\xb8\264\xe0\xb8\x94\340\xb8\x95\xe0\xb9\210\xe0\xb8\xad\340\271\x81\340\270\xad\xe0\270\224\xe0\xb8\241\xe0\270\xb4\xe0\xb8\231"; $d = array("status" => "success", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); if ($aff) { $this->load->view("panel_user/{$theme}/ajax_load/register?aff=" . $aff, $data); } else { $this->load->view("panel_user/{$theme}/ajax_load/register", $data); } } } else { if ($aff) { $_SESSION["register"]["aff"] = $aff; $row_user_aff = $this->user_model->get_user($aff); if (empty($row_user_aff)) { $data["error"] = "\340\271\204\xe0\270\xa1\xe0\xb9\x88\340\270\xa1\xe0\xb8\xb5\340\xb8\243\xe0\xb8\253\xe0\270\xb1\xe0\270\xaa\xe0\271\x81\xe0\270\231\xe0\270\260\xe0\xb8\x99\xe0\xb8\xb3\xe0\xb9\200\xe0\270\236\340\270\267\340\xb9\210\340\270\255\xe0\270\231\340\xb8\231\340\xb8\xb5\340\271\x89\340\xb9\x83\340\270\231\340\270\243\xe0\270\260\xe0\270\x9a\xe0\270\x9a"; $d = array("status" => "success", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); echo $this->load->view("panel_user/{$theme}/ajax_load/register", $data); die; } } $_SESSION["register"]["mobile_no"] = $mobile_no; $d = array("status" => "success", "message" => "section_password"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $this->load->view("panel_user/{$theme}/ajax_load/password_input", $data); } } } } } } else { $d = array("status" => "success", "message" => "\340\270\x84\xe0\270\270\340\270\223\340\xb9\x80\xe0\xb8\x82\340\xb9\x89\xe0\xb8\262\xe0\270\xaa\340\xb8\xb9\xe0\xb9\x88\340\xb8\243\xe0\xb8\xb0\xe0\270\x9a\xe0\xb8\232\340\xb8\xad\340\xb8\242\340\xb8\xb9\340\xb9\210\xe0\271\x81\xe0\xb8\245\xe0\271\211\340\270\xa7!"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); echo "<script>location.href = "" . base_url() . "";</script>"; } } public function check_otp() { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; if (empty($_SESSION["user"]["logged_in"])) { $this->form_validation->set_error_delimiters('', "<br>"); $this->form_validation->set_rules("key_valid", "key_valid", "trim|required", array("required" => "\xe0\270\202\xe0\271\x89\340\270\xad\340\xb8\241\xe0\xb8\271\xe0\xb8\245\340\xb9\x84\340\xb8\xa1\340\xb9\x88\xe0\xb8\204\340\270\243\340\xb8\x9a\340\270\x96\340\271\211\340\270\xa7\340\270\x99 \xe0\xb8\201\xe0\xb8\243\xe0\270\270\xe0\270\223\340\xb8\xb2\xe0\xb9\203\340\xb8\xaa\340\xb9\x88\xe0\270\202\xe0\xb9\211\xe0\270\xad\xe0\xb8\xa1\340\270\xb9\xe0\270\245\340\271\x83\xe0\270\253\340\xb9\x89\340\xb8\x96\340\xb8\xb9\xe0\xb8\x81\xe0\xb8\x95\340\xb9\211\xe0\xb8\xad\340\270\207")); if ($this->form_validation->run() === false) { $this->load->view("panel_user/{$theme}/ajax_load/otp_input", $data); } else { $input = $this->input->post(); $otp[0] = isset($input["check_otp"]["otp0"]) ? $input["check_otp"]["otp0"] : null; $otp[1] = isset($input["check_otp"]["otp1"]) ? $input["check_otp"]["otp1"] : null; $otp[2] = isset($input["check_otp"]["otp2"]) ? $input["check_otp"]["otp2"] : null; $otp[3] = isset($input["check_otp"]["otp3"]) ? $input["check_otp"]["otp3"] : null; $otp = $otp[0] . $otp[1] . $otp[2] . $otp[3]; if (empty($otp)) { $data["error"] = "\340\270\201\xe0\xb8\243\340\270\270\xe0\270\x93\xe0\xb8\xb2\340\270\201\340\xb8\243\340\270\255\xe0\270\201 OTP"; $this->load->view("panel_user/{$theme}/ajax_load/otp_input", $data); } else { if (strlen($otp) < 4 || !is_numeric($otp)) { $data["error"] = "\xe0\270\x81\xe0\270\xa3\xe0\xb8\xb8\xe0\xb8\x93\340\xb8\xb2\xe0\270\x81\340\270\243\xe0\270\255\xe0\xb8\x81 OTP \xe0\271\203\xe0\270\xab\xe0\xb9\x89\340\xb8\x96\340\xb8\271\340\270\x81\340\xb8\x95\xe0\271\x89\340\xb8\xad\340\xb8\207"; $this->load->view("panel_user/{$theme}/ajax_load/otp_input", $data); } else { $otp_register = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "otp_register")))["value"], true); $otp_open = false; if (isset($otp_register["enable"])) { if ($otp_register["enable"] == 1) { $otp_open = true; } } if ($otp_open) { $header = array("Content-Type: application/x-www-form-urlencoded"); $data_otp = array("key" => $otp_register["otp_key"], "secret" => $otp_register["otp_secret"], "token" => $_SESSION["otp"]["token"], "pin" => $otp); $data_otp = http_build_query($data_otp); $res = $this->agent_model->Curl("POST", "https://otp.thaibulksms.com/v1/otp/verify", $header, $data_otp, false); $res = json_decode($res, true); if (isset($res["data"]["status"])) { if ($res["data"]["status"] == "success") { $this->load->view("panel_user/{$theme}/ajax_load/password_input", $data); } else { $data["error"] = "OTP \xe0\271\204\340\270\xa1\340\271\210\340\270\x96\xe0\xb8\xb9\xe0\xb8\x81\340\xb8\225\340\xb9\211\340\270\255\340\270\207"; $this->load->view("panel_user/{$theme}/ajax_load/otp_input", $data); } } else { $data["error"] = "OTP \340\271\x84\340\270\xa1\xe0\xb9\210\340\270\226\xe0\270\271\340\xb8\201\340\270\x95\xe0\271\x89\xe0\xb8\xad\340\xb8\x87"; $this->load->view("panel_user/{$theme}/ajax_load/otp_input", $data); } } else { $data["error"] = "\340\270\243\xe0\xb8\xb0\xe0\xb8\x9a\xe0\xb8\232\xe0\xb9\x84\340\270\xa1\xe0\xb9\210\340\271\x84\xe0\270\224\xe0\xb9\x89\340\xb9\200\340\270\x9b\xe0\270\264\340\270\224 OTP"; echo $this->load->view("panel_user/{$theme}/ajax_load/register", $data); die; } } } } } else { echo "<script>location.href = "" . base_url() . "";</script>"; } } public function set_password() { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; if (empty($_SESSION["user"]["logged_in"])) { $this->form_validation->set_error_delimiters('', "<br>"); $this->form_validation->set_rules("key_valid", "key_valid", "trim|required", array("required" => "\xe0\270\x82\xe0\xb9\x89\340\xb8\xad\xe0\xb8\xa1\xe0\xb8\271\xe0\xb8\245\xe0\271\204\340\270\241\340\271\x88\340\270\204\xe0\270\243\xe0\270\x9a\xe0\270\x96\340\271\211\340\xb8\xa7\xe0\270\x99 \340\270\x81\xe0\xb8\xa3\340\xb8\270\340\270\x93\xe0\xb8\262\xe0\271\203\xe0\xb8\252\340\xb9\210\340\270\x82\340\271\x89\xe0\270\255\xe0\270\xa1\xe0\xb8\271\340\xb8\xa5\340\xb9\203\xe0\xb8\xab\340\xb9\211\xe0\xb8\226\xe0\xb8\271\340\270\201\xe0\270\x95\xe0\xb9\211\340\xb8\xad\xe0\xb8\207")); if ($this->form_validation->run() === false) { $this->load->view("panel_user/{$theme}/ajax_load/password_input", $data); } else { $input = $this->input->post(); $password_first = isset($input["set_password"]["password"]["first"]) ? $input["set_password"]["password"]["first"] : null; $password_second = isset($input["set_password"]["password"]["second"]) ? $input["set_password"]["password"]["second"] : null; if (empty($password_first) || empty($password_second) || $password_first != $password_second) { $data["error"] = "\xe0\270\x9e\340\xb8\262\340\xb8\xaa\xe0\271\200\340\270\247\340\xb8\xb4\xe0\xb8\xa3\340\271\214\340\270\x94\340\xb9\x84\xe0\270\xa1\340\xb9\x88\340\270\225\xe0\270\243\xe0\xb8\207\340\xb8\x81\xe0\270\261\xe0\xb8\231"; $d = array("status" => "error", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $this->load->view("panel_user/{$theme}/ajax_load/password_input", $data); } else { if ($this->user_model->validatePassword($password_first)) { $data["error"] = $this->user_model->validatePassword($password_first); $d = array("status" => "error", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $this->load->view("panel_user/{$theme}/ajax_load/password_input", $data); } else { $_SESSION["register"]["password"] = $password_first; $d = array("status" => "success", "message" => "bank_input"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $this->load->view("panel_user/{$theme}/ajax_load/bank_input", $data); } } } } else { echo "<script>location.href = "" . base_url() . "";</script>"; } } public function anon_bankaccount() { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; if (empty($_SESSION["user"]["logged_in"])) { $this->form_validation->set_error_delimiters('', "<br>"); $this->form_validation->set_rules("key_valid", "key_valid", "trim|required", array("required" => "\340\xb8\x82\xe0\271\211\xe0\270\255\340\xb8\241\340\270\271\340\xb8\xa5\340\271\204\340\xb8\xa1\340\xb9\210\xe0\270\204\340\xb8\xa3\340\270\232\xe0\xb8\226\xe0\271\x89\340\270\xa7\340\xb8\x99 \340\270\x81\340\xb8\xa3\340\xb8\270\340\xb8\x93\xe0\270\262\340\xb9\203\xe0\xb8\252\340\xb9\x88\340\xb8\202\340\271\211\xe0\xb8\xad\xe0\270\xa1\xe0\xb8\xb9\340\270\245\340\271\x83\xe0\xb8\253\340\271\211\340\270\x96\340\xb8\271\xe0\270\x81\xe0\270\x95\340\xb9\211\340\xb8\255\340\xb8\x87")); if ($this->form_validation->run() === false) { $this->load->view("panel_user/{$theme}/ajax_load/bank_input", $data); } else { $input = $this->input->post(); $bank_acc_no = isset($input["customer_bank_account"]["number"]) ? $input["customer_bank_account"]["number"] : null; $bank_id = isset($input["customer_bank_account"]["bank"]) ? $input["customer_bank_account"]["bank"] : null; if ($bank_id == 29) { $_SESSION["register"]["bank_acc_no"] = $_SESSION["register"]["mobile_no"]; $_SESSION["register"]["bank_id"] = $bank_id; $d = array("status" => "success", "message" => "input_name"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); echo $this->load->view("panel_user/{$theme}/ajax_load/name_input", $data, true); die; } if (empty($bank_acc_no) || empty($bank_id)) { $data["error"] = "\xe0\270\201\xe0\270\243\340\xb8\xb8\xe0\xb8\x93\xe0\xb8\xb2\340\xb8\x81\340\xb8\243\xe0\270\xad\340\270\x81\340\xb8\x9a\xe0\xb8\xb1\xe0\270\215\340\270\x8a\340\xb8\xb5\xe0\270\x98\340\xb8\x99\xe0\270\262\xe0\xb8\204\340\270\262\340\xb8\xa3"; $d = array("status" => "error", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $this->load->view("panel_user/{$theme}/ajax_load/bank_input", $data); } else { if (strlen($bank_acc_no) < 10 || !is_numeric($bank_acc_no)) { $data["error"] = "\xe0\xb8\x81\340\xb8\243\xe0\270\xb8\xe0\270\x93\340\270\262\340\xb8\x81\xe0\xb8\xa3\xe0\xb8\255\xe0\270\x81\340\270\x9a\xe0\xb8\261\xe0\xb8\x8d\xe0\270\212\340\xb8\xb5\340\xb8\x98\xe0\xb8\x99\340\xb8\262\xe0\xb8\204\xe0\270\xb2\xe0\xb8\xa3\340\xb9\x83\xe0\xb8\253\xe0\271\211\xe0\270\x96\xe0\xb8\xb9\xe0\xb8\201\340\xb8\x95\xe0\xb9\x89\xe0\270\255\xe0\270\207"; $d = array("status" => "error", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $this->load->view("panel_user/{$theme}/ajax_load/bank_input", $data); } else { $bank_check = $this->main_model->custom_query_row("\xa \x9 \x9 select *\xa \x9 \x9\x9from sl_users\xa \x9 \x9 where bank_acc_no = '{$bank_acc_no}' and bank_id = '{$bank_id}'\xa \x9\x9\x9\x9 "); if (empty($bank_check)) { $_SESSION["register"]["bank_acc_no"] = $bank_acc_no; $_SESSION["register"]["bank_id"] = $bank_id; $getname_auto = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "getname_auto")))["value"], true); $getname_auto_c = false; if (isset($getname_auto["enable"])) { if ($getname_auto["enable"] == 1) { } } if (!$getname_auto_c) { $get_name = "manaul"; } else { $get_name = false; if (date("Y-m-d H:i:s") > "2021-06-12 07:00:00") { $bank_id = $this->main_model->get_bank_info($bank_id)["scb_id"]; $bankDefault = ''; $getDefaultBank = $this->main_model->custom_query_result("SELECT * FROM admin_bank WHERE status = 1"); foreach ($getDefaultBank as $item) { $formatItem = json_decode($item["meta_data"], true); if ($formatItem["bank_type"] == "DEPOSIT" || $formatItem["bank_type"] == "BOTH") { if ($formatItem["bank_default"] == 1) { $bankDefault = $item["id"]; } } } $admin_banks = $this->main_model->custom_query_result("\xa\x9\x9 \x9 \x9 \x9 select *
\x9 \x9\x9 \x9\x9 \x9from admin_bank\xa \x9\x9 \x9\x9 \x9where status = 1\xa\x9\x9\x9 \x9\x9 "); $tmp_bank = array(); $i = 0; foreach ($admin_banks as $tmp) { $tmp_bank[$i] = $tmp; foreach (json_decode($tmp["meta_data"], true) as $key => $val) { $tmp_bank[$i][$key] = $val; } unset($tmp_bank[$i]["meta_data"]); $i++; } $admin_info = array(); foreach ($tmp_bank as $tmp) { if ($tmp["bank_type"] == "BOTH" || $tmp["bank_type"] == "DEPOSIT") { if ($tmp["bank_id"] == 5) { $admin_info = $tmp; break; } } } if (!empty($admin_info)) { if ($admin_info["bank_id"] == "5") { if ($admin_info["work_type"] == "NODE") { $token = isset($admin_info["scb_app_token"]) ? $this->main_model->decrypt($admin_info["scb_app_token"]) : ''; if ($bank_id == 0) { $bank_id = "014"; } if ($bank_id != "014" && $bank_id != "0") { $api_data = array("accountFrom" => $admin_info["bank_acc_number"], "accountTo" => $bank_acc_no, "accountToBankCode" => $bank_id, "amount" => 1, "transferType" => "ORFT", "annotation" => '', "accountFromType" => 2); } else { $api_data = array("accountFrom" => $admin_info["bank_acc_number"], "accountTo" => $bank_acc_no, "accountToBankCode" => $bank_id, "amount" => 1, "transferType" => "3RD", "annotation" => '', "accountFromType" => 2); } $res = $this->scb_app_lib->Transfer($token, $api_data); if (isset($res["status"]["code"])) { if ($res["status"]["code"] == 1000) { $fullname = isset($res["data"]["accountToName"]) ? $res["data"]["accountToName"] : null; $tmp = explode(" ", $fullname); $fname = isset($tmp[0]) ? $tmp[0] : ''; $lname = isset($tmp[1]) ? $tmp[1] : ''; $get_name = true; } } } } } } } if ($get_name == false) { $data["error"] = "\xe0\xb9\x84\xe0\270\241\340\271\x88\xe0\xb8\252\340\270\xb2\340\270\241\xe0\xb8\262\340\270\xa3\340\270\x96\xe0\270\224\340\xb8\xb6\xe0\xb8\x87\340\270\202\340\271\211\xe0\xb8\xad\xe0\270\xa1\340\270\xb9\xe0\xb8\xa5\340\271\x84\xe0\270\224\xe0\xb9\211\xe0\xb8\x81\xe0\xb8\xa3\340\xb8\270\xe0\xb8\x93\340\xb8\262\xe0\xb8\x95\340\270\243\xe0\270\xa7\340\xb8\x88\340\xb8\252\340\xb8\xad\xe0\270\232\340\271\200\xe0\270\245\340\xb8\202\xe0\xb8\x9a\340\xb8\261\340\270\215\340\270\212\xe0\xb8\xb5 \340\270\xab\340\xb8\xa3\340\xb8\xb7\340\270\xad \340\270\x95\340\xb8\264\340\270\x94\xe0\270\x95\340\xb9\x88\340\270\255\340\xb9\x81\xe0\270\xad\xe0\xb8\x94\xe0\xb8\241\340\270\xb4\xe0\xb8\x99"; $d = array("status" => "error", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); echo $this->load->view("panel_user/{$theme}/ajax_load/bank_input", $data, true); die; } else { if ($get_name === "manaul") { $d = array("status" => "success", "message" => "input_name"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $this->load->view("panel_user/{$theme}/ajax_load/name_input", $data); } else { $date = date("Y-m-d H:i:s"); $tmp_data = array("mobile_no" => $_SESSION["register"]["mobile_no"], "lineid" => '', "password" => $_SESSION["register"]["password"], "fullname" => $fullname, "turn" => 0, "turn_date" => NULL, "bet" => 0, "credit" => 0, "credit_free" => 0, "credit_free_check" => NULL, "credit_aff" => 0, "bank_name" => $this->main_model->get_bank_info($_SESSION["register"]["bank_id"])["bank_name"], "bank_acc_no" => $_SESSION["register"]["bank_acc_no"], "bank_id" => $_SESSION["register"]["bank_id"], "admin_bank_id" => $bankDefault, "accept_promotion" => 0, "aff" => NULL, "last_check_aff" => date("Y-m-d"), "create_at" => $date, "last_login" => date("Y-m-d"), "note" => '', "ticket_wheel" => 0, "ticket_wheel_used" => 0, "ticket_card" => 0, "ticket_card_used" => 0, "rank" => 1, "rank_note" => '', "knowus" => '', "last_edit" => '', "last_edit_note" => '', "game_login" => NULL, "codefree" => '', "status" => 1, "user_status" => "\xe0\xb9\x80\340\xb8\233\340\271\207\xe0\270\231\xe0\xb8\xaa\340\xb8\xa1\xe0\270\262\xe0\270\x8a\340\xb8\264\xe0\270\201\xe0\xb9\x81\340\270\245\340\xb9\211\xe0\xb8\xa7"); if (isset($_SESSION["register"]["aff"])) { $tmp_data["aff"] = $_SESSION["register"]["aff"]; } else { $tmp_data["aff"] = null; } function generateRandomString($length = 10) { $characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $charactersLength = strlen($characters); $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, $charactersLength - 1)]; } return $randomString; } $tmp_data["codefree"] = generateRandomString(6) . "-" . $tmp_data["mobile_no"]; if (empty($tmp_data["aff"]) || $tmp_data["aff"] == '') { $tmp_data["aff"] = null; } $agent_data = array("agent_method" => "CU", "agent_data" => $tmp_data); $res = $this->agent_model->process($agent_data); if ($res["status"]) { $tmp_data["amb_id"] = $res["data"]["amb_id"]; $tmp_data["betflix_id"] = $res["data"]["betflix_id"]; $tmp_data["uid"] = $res["data"]["uid"]; if ($this->user_model->create_user($tmp_data)) { $row = $this->user_model->get_user($tmp_data["mobile_no"]); $this->user_model->update_last_login($tmp_data["mobile_no"]); $row = $this->user_model->get_user($tmp_data["mobile_no"]); $this->user_model->update_last_login($tmp_data["mobile_no"]); $_SESSION["user"]["logged_in"] = true; $_SESSION["user"]["mobile"] = $row["mobile_no"]; $_SESSION["user"]["username"] = $row["mobile_no"]; $_SESSION["user"]["id"] = $row["id"]; $_SESSION["user"]["fullname"] = $row["fullname"]; $_SESSION["user"]["admin_bank_id"] = $row["admin_bank_id"]; $this->user_model->create_last_login_ip(array("id" => null, "u_id" => $_SESSION["user"]["id"], "ip" => $this->main_model->getUserIP(), "date" => date("Y-m-d H:i:s"), "ci_sessions" => $_COOKIE["ci_sessions"])); $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $line_token = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "line_token")))["value"], true)["Register"]; if (!empty($line_token)) { $line_flex = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "line_flex_enable")))["value"], true); $line_flex_open = false; if (isset($line_flex["enable"])) { if ($line_flex["enable"] == 1) { $line_flex_open = true; } } if (!$line_flex_open) { $this->line_model->setToken($line_token); $this->line_model->addMsg("\xe2\x9d\x84 \xe0\270\252\340\xb8\241\xe0\xb8\261\340\270\204\340\270\243\340\270\252\xe0\270\xa1\340\270\xb2\340\270\x8a\340\xb8\264\340\xb8\201\340\xb9\203\340\270\xab\340\xb8\241\xe0\xb9\x88 \342\x9d\x84"); $this->line_model->addMsg("\xe2\x95\220\xe2\x95\x90\342\x95\220\xe2\x95\220\xe2\225\220\342\225\220\342\225\220\342\x95\220\xe2\225\x90\xe2\x95\220\xe2\x95\220\342\x95\220\342\x95\220"); $this->line_model->addMsg("\xe0\271\x80\340\xb8\232\xe0\270\xad\340\270\xa3\xe0\xb9\x8c\340\270\xa1\340\xb8\xb7\xe0\270\255\xe0\270\226\340\xb8\xb7\xe0\270\xad : " . $row["mobile_no"]); $this->line_model->addMsg("Username : " . $row["id"]); $this->line_model->addMsg("\xe0\xb8\212\340\270\xb7\340\271\210\340\xb8\xad : " . $row["fullname"]); $this->line_model->addMsg("\xe0\xb8\x98\xe0\270\x99\340\xb8\262\xe0\xb8\204\xe0\xb8\xb2\xe0\xb8\xa3 : " . $row["bank_name"]); $this->line_model->addMsg("\xe0\271\200\340\270\245\340\270\x82\340\270\232\340\xb8\xb1\340\xb8\215\340\270\x8a\xe0\270\265 : " . $row["bank_acc_no"]); $this->line_model->addMsg("ip: " . $this->main_model->getUserIP()); $this->line_model->addMsg("\340\xb8\247\340\270\xb1\340\xb8\231\xe0\270\227\340\xb8\xb5\340\xb9\x88 : " . $date); $this->line_model->addMsg("\xe2\x95\x90\xe2\225\220\342\x95\220\xe2\x95\220\342\x95\x90\342\225\220\342\225\220\xe2\x95\x90\xe2\225\220\342\x95\220\xe2\225\x90\xe2\225\220\xe2\225\220"); $this->line_model->sendNotify(); } else { $this->line_model_flex->setToken($line_token, "register"); $this->line_model_flex->addReplacer("mobile_no", $row["mobile_no"]); $this->line_model_flex->addReplacer("id", $row["id"]); $this->line_model_flex->addReplacer("fullname", $row["fullname"]); $this->line_model_flex->addReplacer("bank_name", $row["bank_name"]); $this->line_model_flex->addReplacer("bank_acc_no", $row["bank_acc_no"]); $this->line_model_flex->addReplacer("date", $date); $this->line_model_flex->sendNotify(); } } $tmp_data = array("id" => null, "username" => $row["mobile_no"], "icon" => "success", "title" => '', "text" => "\340\xb8\252\340\270\241\xe0\xb8\xb1\340\270\x84\340\xb8\243\xe0\xb8\xaa\xe0\xb8\241\xe0\xb8\xb2\xe0\xb8\x8a\xe0\xb8\xb4\xe0\270\201\xe0\xb9\x80\xe0\270\243\340\270\xb5\340\270\242\340\xb8\x9a\340\270\243\340\xb9\x89\340\xb8\255\340\270\242\xe0\xb9\x81\xe0\xb8\245\xe0\xb9\x89\340\270\xa7", "meta_data" => '', "date" => date("Y-m-d H:i:s"), "status" => 1); $this->main_model->create($tmp_data, "notice_admin"); $tmp_data = array("user" => $row["id"], "pass" => $row["password"]); $tmp_data = http_build_query($tmp_data); $d = array("status" => "success", "message" => "\340\270\xaa\340\270\xa1\340\270\xb1\xe0\270\204\340\xb8\243\xe0\270\252\340\xb8\xa1\340\270\262\xe0\270\x8a\340\xb8\264\340\270\201\340\xb9\200\xe0\270\xa3\xe0\xb8\xb5\340\xb8\242\340\270\232\xe0\xb8\xa3\340\xb9\x89\340\270\xad\340\xb8\242\340\271\201\340\270\245\xe0\xb9\211\xe0\270\xa7"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $this->load->view("panel_user/{$theme}/ajax_load/success", $data); } else { $data["error"] = "\xe0\270\241\340\xb8\xb5\xe0\270\232\xe0\xb8\262\xe0\xb8\x87\340\270\xad\xe0\270\242\xe0\271\210\xe0\xb8\xb2\340\270\207\340\270\x9c\340\xb8\264\xe0\xb8\224\xe0\xb8\236\xe0\xb8\xa5\xe0\270\262\340\xb8\224 \xe0\270\201\340\xb8\243\340\xb8\270\xe0\270\223\340\270\xb2\xe0\270\245\340\xb8\255\340\xb8\207\340\xb8\xad\xe0\xb8\xb5\xe0\270\x81\340\xb8\x84\xe0\xb8\243\340\xb8\261\xe0\271\211\xe0\xb8\x87 <br> Code : 1000"; $d = array("status" => "error", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $this->load->view("panel_user/{$theme}/ajax_load/register", $data); } } else { header("HTTP/1.1 401 Unauthorized"); } } } } else { $data["error"] = "\340\271\200\xe0\270\xa5\xe0\xb8\202\340\xb8\x9a\340\270\xb1\xe0\xb8\215\340\270\x8a\xe0\270\xb5\340\xb9\210\xe0\270\231\xe0\270\265\xe0\271\211\340\xb8\x96\340\270\271\340\270\x81\xe0\271\x83\340\270\x8a\xe0\271\211\340\xb9\x81\340\270\245\xe0\271\211\340\270\247"; $d = array("status" => "error", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $this->load->view("panel_user/{$theme}/ajax_load/bank_input", $data); } } } } } else { echo "<script>location.href = "" . base_url() . "";</script>"; } } public function set_fullname() { $theme = $this->theme; $theme_path = base_url() . "assets_user/" . $theme; $data = array(); $data["theme_path"] = $theme_path; $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $data["data"] = $tmp; if (empty($_SESSION["user"]["logged_in"])) { $this->form_validation->set_error_delimiters('', "<br>"); $this->form_validation->set_rules("key_valid", "key_valid", "trim|required", array("required" => "\340\270\202\xe0\xb9\x89\xe0\xb8\255\xe0\xb8\xa1\340\xb8\xb9\xe0\270\xa5\340\xb9\204\xe0\270\xa1\xe0\271\210\xe0\xb8\204\340\xb8\243\340\xb8\x9a\340\270\226\340\xb9\x89\xe0\270\xa7\340\xb8\231 \xe0\xb8\x81\xe0\xb8\243\xe0\270\xb8\xe0\270\223\xe0\270\xb2\xe0\271\203\340\xb8\xaa\xe0\271\x88\xe0\xb8\202\340\271\211\340\270\255\xe0\xb8\241\340\270\xb9\xe0\270\245\340\271\203\340\xb8\xab\340\xb9\x89\340\xb8\x96\340\270\xb9\340\270\201\xe0\270\225\xe0\xb9\x89\xe0\270\xad\340\270\207")); if ($this->form_validation->run() === false) { $this->load->view("panel_user/{$theme}/ajax_load/name_input", $data); } else { $input = $this->input->post(); $fullname = isset($input["fullname"]) ? $input["fullname"] : null; if (empty($fullname)) { $this->load->view("panel_user/{$theme}/ajax_load/name_input", $data); } else { $bankDefault = ''; $getDefaultBank = $this->main_model->custom_query_result("SELECT * FROM admin_bank WHERE status = 1"); foreach ($getDefaultBank as $item) { $formatItem = json_decode($item["meta_data"], true); if ($formatItem["bank_type"] == "DEPOSIT" || $formatItem["bank_type"] == "BOTH") { if ($formatItem["bank_default"] == 1) { $bankDefault = $item["id"]; } } } $_SESSION["register"]["fullname"] = $fullname; $date = date("Y-m-d H:i:s"); $tmp_data = array("mobile_no" => $_SESSION["register"]["mobile_no"], "lineid" => '', "password" => $_SESSION["register"]["password"], "fullname" => $fullname, "turn" => 0, "turn_date" => NULL, "bet" => 0, "credit" => 0, "credit_free" => 0, "credit_free_check" => NULL, "credit_aff" => 0, "bank_name" => $this->main_model->get_bank_info($_SESSION["register"]["bank_id"])["bank_name"], "bank_acc_no" => $_SESSION["register"]["bank_acc_no"], "bank_id" => $_SESSION["register"]["bank_id"], "admin_bank_id" => $bankDefault, "accept_promotion" => 0, "aff" => NULL, "last_check_aff" => date("Y-m-d"), "create_at" => $date, "last_login" => date("Y-m-d"), "note" => '', "ticket_wheel" => 0, "ticket_wheel_used" => 0, "ticket_card" => 0, "ticket_card_used" => 0, "rank" => 1, "rank_note" => '', "knowus" => '', "last_edit" => '', "last_edit_note" => '', "game_login" => NULL, "codefree" => '', "status" => 1, "user_status" => "\340\xb9\x80\340\270\x9b\xe0\271\207\340\270\231\xe0\270\252\xe0\270\241\340\xb8\xb2\xe0\xb8\x8a\xe0\270\xb4\340\xb8\x81\xe0\271\201\xe0\xb8\245\xe0\271\211\340\270\xa7"); if (isset($_SESSION["register"]["aff"])) { $tmp_data["aff"] = $_SESSION["register"]["aff"]; } else { $tmp_data["aff"] = null; } function generateRandomString($length = 10) { $characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $charactersLength = strlen($characters); $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, $charactersLength - 1)]; } return $randomString; } $tmp_data["codefree"] = generateRandomString(6) . "-" . $tmp_data["mobile_no"]; $agent_data = array("agent_method" => "CU", "agent_data" => $tmp_data); $res = $this->agent_model->process($agent_data); if ($res["status"]) { $tmp_data["amb_id"] = $res["data"]["amb_id"]; $tmp_data["betflix_id"] = $res["data"]["betflix_id"]; $tmp_data["uid"] = $res["data"]["uid"]; if ($this->user_model->create_user($tmp_data)) { $row = $this->user_model->get_user($tmp_data["mobile_no"]); $this->user_model->update_last_login($tmp_data["mobile_no"]); $row = $this->user_model->get_user($tmp_data["mobile_no"]); $this->user_model->update_last_login($tmp_data["mobile_no"]); $_SESSION["user"]["logged_in"] = true; $_SESSION["user"]["mobile"] = $row["mobile_no"]; $_SESSION["user"]["username"] = $row["mobile_no"]; $_SESSION["user"]["id"] = $row["id"]; $_SESSION["user"]["fullname"] = $row["fullname"]; $_SESSION["user"]["admin_bank_id"] = $row["admin_bank_id"]; $this->user_model->create_last_login_ip(array("id" => null, "u_id" => $_SESSION["user"]["id"], "ip" => $this->main_model->getUserIP(), "date" => date("Y-m-d H:i:s"), "ci_sessions" => $_COOKIE["ci_sessions"])); $tmp = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "brand_setting")))["value"], true); $line_token = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "line_token")))["value"], true)["Register"]; if (!empty($line_token)) { $line_flex = json_decode($this->main_model->get_row("meta_setting", array("where" => array("col" => "id", "val" => "line_flex_enable")))["value"], true); $line_flex_open = false; if (isset($line_flex["enable"])) { if ($line_flex["enable"] == 1) { $line_flex_open = true; } } if (!$line_flex_open) { $this->line_model->setToken($line_token); $this->line_model->addMsg("\342\x9d\x84 \340\270\xaa\340\xb8\xa1\xe0\xb8\261\xe0\270\204\xe0\xb8\243\xe0\270\xaa\xe0\xb8\241\340\xb8\262\xe0\xb8\212\xe0\270\264\xe0\xb8\x81\340\271\x83\xe0\270\xab\340\xb8\xa1\xe0\xb9\x88 \xe2\235\x84"); $this->line_model->addMsg("\342\225\220\342\225\x90\xe2\225\220\xe2\x95\220\342\x95\220\342\x95\x90\342\x95\220\342\225\x90\342\x95\x90\342\225\220\xe2\225\220\342\x95\220\xe2\x95\220"); $this->line_model->addMsg("\340\271\200\340\xb8\232\xe0\270\xad\340\270\xa3\340\271\x8c\340\270\241\340\xb8\xb7\xe0\270\255\xe0\270\226\340\xb8\267\340\270\xad : " . $row["mobile_no"]); $this->line_model->addMsg("Username : " . $row["id"]); $this->line_model->addMsg("\340\xb8\212\340\270\267\340\xb9\210\340\270\255 : " . $row["fullname"]); $this->line_model->addMsg("\xe0\xb8\230\340\270\231\xe0\xb8\262\340\xb8\x84\340\xb8\xb2\340\270\243 : " . $row["bank_name"]); $this->line_model->addMsg("\340\271\200\xe0\xb8\245\340\270\202\340\xb8\232\340\270\xb1\xe0\xb8\x8d\xe0\270\212\xe0\xb8\xb5 : " . $row["bank_acc_no"]); $this->line_model->addMsg("ip: " . $this->main_model->getUserIP()); $this->line_model->addMsg("\340\xb8\247\xe0\270\261\xe0\xb8\231\xe0\xb8\227\xe0\xb8\xb5\xe0\271\210 : " . $date); $this->line_model->addMsg("\342\x95\220\342\225\x90\xe2\x95\x90\xe2\225\x90\xe2\x95\x90\342\225\x90\xe2\x95\x90\xe2\225\x90\xe2\x95\220\342\225\220\xe2\225\220\xe2\225\220\xe2\x95\220"); $this->line_model->sendNotify(); } else { $this->line_model->setToken($line_token, "register"); $this->line_model_flex->addReplacer("mobile_no", $row["mobile_no"]); $this->line_model_flex->addReplacer("id", $row["id"]); $this->line_model_flex->addReplacer("fullname", $row["fullname"]); $this->line_model_flex->addReplacer("bank_name", $row["bank_name"]); $this->line_model_flex->addReplacer("bank_acc_no", $row["bank_acc_no"]); $this->line_model_flex->addReplacer("ip", $row["mobile_no"]); $this->line_model_flex->addReplacer("date", $date); $this->line_model_flex->sendNotify(); } } $tmp_data = array("id" => null, "username" => $row["mobile_no"], "icon" => "success", "title" => '', "text" => "\xe0\xb8\252\340\xb8\xa1\xe0\270\261\340\270\x84\340\xb8\xa3\xe0\xb8\xaa\xe0\xb8\241\xe0\xb8\xb2\xe0\270\212\340\270\xb4\340\270\201\340\271\200\xe0\xb8\xa3\xe0\270\xb5\340\xb8\xa2\xe0\xb8\x9a\340\270\xa3\xe0\271\211\xe0\270\255\xe0\xb8\xa2\340\271\x81\xe0\270\xa5\xe0\xb9\211\xe0\270\xa7", "meta_data" => '', "date" => date("Y-m-d H:i:s"), "status" => 1); $this->main_model->create($tmp_data, "notice_admin"); $tmp_data = array("user" => $row["id"], "pass" => $row["password"]); $tmp_data = http_build_query($tmp_data); $d = array("status" => "success", "message" => "\340\xb8\xaa\xe0\270\xa1\xe0\xb8\xb1\xe0\270\x84\xe0\xb8\xa3\340\xb8\252\xe0\xb8\241\xe0\270\262\xe0\xb8\x8a\xe0\270\xb4\xe0\270\201\xe0\xb9\x80\xe0\xb8\xa3\xe0\xb8\265\340\xb8\242\340\xb8\x9a\340\xb8\xa3\340\271\211\xe0\xb8\xad\xe0\xb8\242\xe0\271\201\340\xb8\245\xe0\271\211\340\xb8\247"); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $this->load->view("panel_user/{$theme}/ajax_load/success", $data); } else { $data["error"] = "\xe0\270\241\340\270\265\340\xb8\x9a\xe0\270\xb2\340\270\207\340\270\xad\xe0\xb8\242\xe0\271\210\xe0\xb8\xb2\340\270\207\340\xb8\x9c\340\xb8\xb4\340\xb8\224\340\xb8\x9e\340\270\245\xe0\270\262\340\xb8\224 \xe0\270\x81\xe0\xb8\xa3\340\xb8\xb8\340\xb8\x93\340\270\xb2\xe0\270\xa5\xe0\xb8\xad\xe0\xb8\x87\340\270\255\340\270\xb5\340\270\x81\340\270\204\340\xb8\xa3\340\270\xb1\xe0\xb9\211\340\xb8\x87 <br> Code : 1000"; $d = array("status" => "error", "message" => $data["error"]); header("Content-Type: application/json; charset=utf-8", true, 200); die(json_encode($d)); $this->load->view("panel_user/{$theme}/ajax_load/register", $data); } } else { header("HTTP/1.1 401 Unauthorized"); } } } } else { echo "<script>location.href = "" . base_url() . "";</script>"; } } } ?>
Did this file decode correctly?
Original Code
<?php
defined("\x42\101\123\105\120\x41\124\x48") or die("\x4e\157\x20\x64\151\x72\x65\143\x74\40\163\143\x72\151\160\x74\x20\x61\x63\x63\145\x73\x73\40\141\x6c\x6c\x6f\167\145\x64"); class Ajax_load extends CI_Controller { public function __construct() { parent::__construct(); date_default_timezone_set("\101\163\151\x61\x2f\102\x61\156\x67\x6b\x6f\x6b"); $this->load->helper("\x75\162\154"); $this->load->library(array("\x73\145\163\x73\x69\x6f\x6e")); $this->load->library("\x73\143\x62\x5f\x61\x70\x70\x5f\154\x69\x62"); $this->load->helper("\146\157\162\155"); $this->load->library("\x66\157\x72\155\x5f\x76\x61\x6c\151\x64\141\x74\x69\157\156"); $this->load->model("\165\x73\145\x72\x5f\x6d\157\144\x65\154"); $this->load->model("\x6d\x61\x69\x6e\x5f\x6d\157\144\x65\154"); $this->load->model("\154\151\156\145\x5f\155\x6f\x64\x65\x6c"); $this->load->model("\x6c\151\x6e\x65\137\x6d\x6f\144\x65\154\137\x66\154\145\x78"); $this->load->model("\x63\162\145\144\x69\164\x5f\x6d\x6f\144\145\x6c"); $this->load->model("\x61\147\145\x6e\164\137\x6d\157\144\145\154"); $this->load->model("\160\x72\157\155\x6f\x74\151\x6f\x6e\137\x6d\157\144\x65\154"); $this->url_prefix = "\x70\154\x61\171\x65\162"; $this->theme = "\x45\172\x73\x6c\157\x74\x50\x75\x72\x70\154\x65"; } public function lostcredit($act = NULL) { ini_set("\144\151\x73\160\x6c\141\171\137\145\162\162\x6f\162\x73", 0); ini_set("\x64\x69\x73\x70\154\x61\x79\x5f\x73\164\141\162\x74\165\x70\137\145\x72\x72\157\162\x73", 0); error_reporting(E_ALL); header("\x43\157\x6e\164\145\x6e\164\55\124\x79\160\x65\x3a\40\141\x70\x70\x6c\x69\143\141\x74\151\x6f\156\57\152\x73\157\156\73\x20\143\150\141\162\x73\145\x74\x3d\x75\x74\146\55\70"); $user = $this->user_model->get_user($_SESSION["\x75\163\145\162"]["\165\x73\145\162\x6e\x61\x6d\x65"]); $percentoflost = (double) json_decode($this->main_model->get_row("\x6d\145\164\141\137\163\x65\164\164\151\156\147", array("\167\150\145\162\145" => array("\143\x6f\x6c" => "\x69\144", "\166\x61\x6c" => "\160\x65\x72\143\145\156\164\x5f\x6f\x66\x5f\x6c\x6f\163\164\143\162\x65\x64\151\164")))["\166\x61\x6c\x75\x65"], true)["\x76\x61\x6c\x75\x65"]; if (isset($user)) { if ($act === "\x67\x65\164") { $today = date("\x59\x2d\155\55\x64") . "\x20\x31\62\x3a\60\60\72\60\60"; $next = date("\131\55\155\55\x64", strtotime("\53\x31\40\144\141\x79\x73")) . "\40\61\x32\72\x30\x30\72\x30\x30"; $gettedBack = $this->main_model->custom_query_result("\123\x45\x4c\105\103\x54\40\52\x20\x46\x52\117\x4d\x20\162\145\x70\157\x72\164\x5f\164\162\141\x6e\x73\141\x63\x74\x69\x6f\156\x20\127\110\x45\122\105\x20\x75\163\x65\162\156\x61\x6d\x65\x20\75\40\x27" . $user["\x6d\x6f\x62\x69\154\x65\x5f\x6e\x6f"] . "\47\40\101\x4e\104\x20\x28\x74\x72\x61\156\x73\x61\143\164\151\x6f\x6e\137\x74\x79\160\x65\x20\75\40\47\114\117\123\124\137\102\x41\x43\x4b\x27\51\x20\101\116\104\40\x28\x64\141\164\145\40\76\75\x20\x27{$today}\x27\40\101\116\x44\40\x64\x61\164\x65\x20\74\x3d\40\47{$next}\47\x29"); if ($gettedBack) { print_r(json_encode(array("\163\x74\141\164\x75\x73" => false, "\155\x65\x73\163\141\147\x65" => "\x41\x6c\162\x65\x61\144\x79\40\x72\x65\x63\x65\x69\x76\x65\144"), 4)); return; } $now = date("\131\55\155\55\x64") . "\40\61\62\x3a\60\60\72\x30\60"; $yest = date("\x59\x2d\x6d\x2d\144", strtotime("\x2d\x31\40\144\x61\171\x73")) . "\40\x31\x32\x3a\60\x30\x3a\60\60"; $withdraws = $this->main_model->custom_query_result("\x53\105\114\105\x43\124\40\123\x55\x4d\x28\x63\x72\145\x64\x69\x74\x29\x20\x61\x73\40\x63\162\x65\144\x69\x74\40\x46\x52\x4f\115\40\162\145\160\157\x72\x74\137\x74\x72\x61\156\x73\x61\143\164\151\x6f\156\40\127\110\105\122\105\40\40\x75\x73\145\162\156\x61\155\145\x20\75\x20\x27" . $user["\x6d\x6f\142\151\154\x65\x5f\156\157"] . "\47\40\101\x4e\x44\40\x28\164\x72\141\156\x73\141\143\164\x69\x6f\156\x5f\x74\x79\x70\x65\40\x3d\40\47\127\111\124\x48\x44\122\x41\127\x27\x29\x20\x41\x4e\104\40\x28\x64\141\x74\145\40\76\75\40\x27{$yest}\47\x20\x41\x4e\104\40\x64\141\x74\145\x20\x3c\75\40\x27{$now}\x27\x29\40\x4f\x52\x44\x45\122\x20\102\131\x20\x64\141\164\145\40\104\105\123\x43"); $deposits = $this->main_model->custom_query_result("\123\105\114\105\103\x54\40\123\x55\x4d\x28\143\162\x65\x64\151\x74\51\40\x61\x73\40\x63\x72\x65\x64\151\164\40\106\122\x4f\115\40\x72\145\160\x6f\162\x74\137\164\162\141\x6e\x73\141\143\x74\151\157\156\40\127\110\x45\122\105\40\40\165\163\145\x72\156\x61\x6d\145\40\x3d\40\47" . $user["\x6d\x6f\x62\x69\154\145\137\x6e\157"] . "\x27\x20\101\x4e\104\x20\50\164\162\141\156\163\x61\x63\x74\151\157\x6e\137\164\x79\160\145\40\75\x20\x27\x44\105\120\117\123\x49\x54\x27\x20\117\122\x20\164\162\x61\156\x73\x61\x63\164\x69\157\x6e\137\164\171\160\x65\40\75\40\x27\104\x45\x50\117\x53\x49\x54\115\47\x29\x20\101\x4e\104\x20\x28\x64\141\164\145\x20\x3e\75\x20\47{$yest}\47\40\101\116\x44\40\144\141\x74\145\40\74\x3d\x20\x27{$now}\x27\51\x20\x4f\122\x44\105\x52\x20\102\131\x20\144\x61\164\x65\x20\104\105\123\103"); $withdraw_credit = $withdraws[0]["\x63\x72\x65\x64\x69\x74"] === null ? 0 : (double) $withdraws[0]["\143\162\x65\144\151\164"]; $deposit_credit = $deposits[0]["\143\162\x65\144\151\x74"] === null ? 0 : (double) $deposits[0]["\143\x72\145\x64\151\164"]; $lost = ($withdraw_credit - $deposit_credit - (double) $user["\143\x72\145\144\151\164"]) * ((int) $percentoflost / 100); if ($lost <= 0) { print_r(json_encode(array("\x73\164\141\164\165\x73" => false, "\155\145\x73\x73\141\x67\145" => "\114\x6f\x73\x74\40\x63\x72\145\x64\151\x74\40\x69\x73\40\60\40\156\x6f\40\156\145\145\x64\40\x74\x6f\40\147\x65\x74\x20\164\150\x65\155"), 4)); return; } $date = date("\x59\55\x6d\55\x64\40\x48\72\x69\72\163"); $tmp_data = array("\151\x64" => "\x4c\x4f\102" . floor(microtime(true) * 1000), "\x75\x73\145\x72\x6e\x61\155\145" => $user["\155\x6f\142\151\154\145\x5f\x6e\157"], "\x63\162\x65\x64\151\x74" => (double) number_format($lost, 2), "\143\x72\145\x64\151\164\x5f\142\157\x6e\165\x73" => 0, "\x63\x72\x65\144\151\x74\x5f\142\145\146\x6f\162\x65" => $user["\143\x72\x65\144\151\164"], "\x63\x72\x65\144\151\x74\137\141\146\x74\x65\162" => $user["\x63\162\145\x64\151\164"] + (double) number_format($lost, 2), "\x74\162\x61\156\163\141\143\x74\x69\157\x6e\x5f\x74\171\x70\x65" => "\114\117\123\124\137\102\x41\x43\x4b", "\x64\141\x74\x65" => $date, "\156\x6f\x74\145" => "\340\270\x84\xe0\270\267\340\270\x99\340\xb8\242\xe0\270\255\340\270\x94\xe0\271\x80\xe0\xb8\xaa\xe0\270\265\340\270\xa2"); $this->main_model->create($tmp_data, "\x72\145\160\x6f\162\x74\137\164\162\141\x6e\x73\141\x63\164\x69\157\156"); $pushCredit = $this->credit_model->RawCreditPush((double) number_format($lost, 2), $user); $isTransfered = false; if ($pushCredit) { $isTransfered = true; } print_r(json_encode(array("\x73\x74\x61\x74\165\x73" => true, "\144\x61\x74\141" => array("\x61\143\x63\157\x75\156\x74" => $user["\155\x6f\x62\x69\154\145\137\x6e\157"], "\x66\162\157\155" => $yest, "\x74\x6f" => $now, "\167\x69\x74\150\144\162\141\167" => $withdraw_credit, "\144\145\160\x6f\163\151\x74" => $deposit_credit, "\x6c\x6f\x73\x74" => (double) number_format($lost, 2) > 0 ? (double) number_format($lost, 2) : 0, "\x69\163\x54\x72\x61\x6e\163\146\x65\x72\145\x64" => $isTransfered)), 4)); return; } } else { } print_r(json_encode(array("\x73\x74\x61\x74\165\x73" => false), 4)); return; } public function aff() { $theme = $this->theme; $theme_path = base_url() . "\141\163\163\x65\164\x73\137\165\163\x65\162\x2f" . $theme; $data = array(); $data["\x74\x68\x65\x6d\x65\x5f\x70\141\x74\x68"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\x6d\x65\164\x61\137\163\145\x74\164\x69\x6e\x67", array("\167\150\145\162\x65" => array("\143\157\154" => "\x69\x64", "\x76\141\x6c" => "\x62\x72\x61\156\144\x5f\163\145\x74\164\151\x6e\147")))["\x76\141\154\165\145"], true); $data["\144\x61\x74\x61"] = $tmp; $menu = $this->load->view("\160\x61\x6e\145\x6c\x5f\165\x73\x65\x72\x2f{$theme}\57\141\152\x61\170\137\154\157\x61\144\57\x61\x63\143\157\x75\x6e\x74\57\155\145\156\165", $data, true); $data["\155\145\x6e\165"] = $menu; $data["\155\x6f\x62\151\154\145"] = isset($_POST["\155\157\142\x69\x6c\145"]) ? true : false; if (empty($_SESSION["\165\163\145\x72"]["\x6c\x6f\147\147\x65\x64\x5f\151\156"])) { header("\x48\124\x54\120\x2f\61\x2e\x31\40\x34\60\x31\x20\x55\156\141\x75\x74\x68\x6f\x72\151\x7a\145\x64"); } else { $row_user = $this->user_model->get_user($_SESSION["\165\163\145\x72"]["\x75\163\145\x72\156\x61\155\x65"]); $data["\165\163\x65\x72"] = $row_user; $this->form_validation->set_error_delimiters('', "\x3c\142\x72\x3e"); $this->form_validation->set_rules("\x61\146\146", "\141\146\x66", "\164\162\x69\x6d\174\162\145\x71\165\x69\162\145\x64", array("\x72\x65\161\x75\x69\x72\145\144" => "\xe0\270\202\340\271\211\340\xb8\255\340\270\241\xe0\xb8\271\xe0\270\245\xe0\xb9\x84\xe0\270\241\340\271\x88\xe0\270\x84\340\270\243\340\270\232\340\xb8\x96\340\271\211\340\xb8\xa7\xe0\xb8\231\40\xe0\270\201\340\270\xa3\340\xb8\270\340\xb8\223\xe0\270\262\xe0\xb9\x83\340\xb8\252\340\271\210\340\270\202\xe0\271\211\xe0\xb8\255\340\xb8\xa1\340\xb8\xb9\xe0\xb8\245\340\271\203\340\xb8\253\xe0\xb9\211\340\270\x96\340\270\xb9\340\270\x81\xe0\xb8\225\xe0\271\x89\340\xb8\xad\xe0\270\207")); if ($this->form_validation->run() === false) { $d = array("\x73\x74\x61\164\165\163" => "\x65\162\162\x6f\162", "\x6d\x65\163\163\141\x67\x65" => "\340\xb8\201\340\xb8\xa3\340\270\xb8\xe0\xb8\x93\xe0\xb8\262\340\271\203\340\270\252\340\xb9\x88\xe0\xb8\202\340\xb9\x89\xe0\xb8\xad\xe0\270\xa1\xe0\270\271\xe0\270\xa5\340\271\203\340\xb8\253\xe0\xb9\x89\xe0\270\x96\340\xb8\271\340\270\x81\xe0\270\225\xe0\271\x89\xe0\xb8\255\340\xb8\x87"); $data["\145\162\x72\157\x72"] = $d["\155\x65\x73\163\141\x67\145"]; echo $this->load->view("\x70\x61\x6e\145\x6c\137\165\163\145\162\57{$theme}\57\x61\152\141\x78\137\x6c\157\141\144\x2f\141\143\x63\157\165\x6e\x74\57\141\146\x66\x2d\151\156\x66\x6f", $data, true); } else { $aff = $this->input->post("\141\x66\146"); $row_user_aff = $this->user_model->get_user($aff); if (empty($row_user_aff)) { $d = array("\163\164\141\164\x75\163" => "\x65\x72\162\x6f\x72", "\155\x65\x73\163\x61\x67\x65" => "\340\271\204\xe0\270\xa1\340\271\210\xe0\270\xa1\340\xb8\265\340\xb8\xa3\xe0\270\xab\xe0\270\261\xe0\270\xaa\xe0\271\x81\xe0\xb8\231\340\270\260\340\xb8\x99\xe0\xb8\xb3\xe0\271\200\xe0\xb8\236\xe0\xb8\267\340\271\x88\xe0\xb8\xad\xe0\270\231\340\xb8\231\xe0\270\265\xe0\271\x89\340\xb9\x83\xe0\270\x99\340\xb8\243\xe0\xb8\xb0\xe0\270\x9a\xe0\270\x9a"); $data["\x65\162\x72\157\x72"] = $d["\x6d\145\163\163\141\x67\x65"]; echo $this->load->view("\x70\x61\156\145\154\137\165\163\145\162\x2f{$theme}\x2f\141\x6a\141\x78\x5f\154\x6f\x61\144\57\141\x63\143\157\165\156\x74\x2f\141\x66\146\55\x69\x6e\146\x6f", $data, true); } else { if ($row_user_aff["\151\x64"] == $row_user["\151\144"]) { $d = array("\163\164\141\x74\165\163" => "\x65\x72\x72\157\162", "\x6d\x65\x73\x73\x61\x67\x65" => "\xe0\270\x84\340\xb8\270\340\270\223\xe0\xb9\x84\xe0\xb8\241\xe0\271\210\340\xb8\252\xe0\270\262\xe0\270\xa1\340\270\xb2\xe0\270\xa3\xe0\xb8\226\340\xb9\x83\xe0\xb8\252\340\xb9\210\xe0\270\243\340\270\253\xe0\xb8\261\340\xb8\252\340\xb8\x95\340\270\261\340\xb8\247\340\271\x80\340\xb8\255\xe0\xb8\207\xe0\xb9\204\340\270\224\340\271\x89"); $data["\145\x72\x72\x6f\162"] = $d["\155\145\x73\x73\x61\147\145"]; echo $this->load->view("\x70\x61\156\x65\x6c\x5f\165\163\x65\x72\x2f{$theme}\57\141\152\141\x78\137\154\x6f\x61\144\57\x61\x63\143\x6f\165\156\x74\57\141\146\x66\55\151\156\146\157", $data, true); } else { if (is_null($row_user["\x61\x66\146"])) { $this->main_model->custom_query("\xa\11\11\x9\x9\x9\x9\11\x9\125\120\104\101\x54\x45\40\x73\154\137\165\163\145\162\x73\12\11\x9\11\11\x9\x9\11\x9\x53\x45\124\x20\x61\x66\146\40\75\40\x27{$row_user_aff["\151\144"]}\x27\12\11\x9\11\11\11\x9\x9\x9\127\110\105\x52\x45\x20\x69\x64\40\75\40\x27{$row_user["\x69\144"]}\47\12\x9\11\11\x9\x9\11\x9"); $row_user = $this->user_model->get_user($_SESSION["\x75\163\145\x72"]["\165\x73\x65\x72\x6e\141\x6d\145"]); $data["\x75\x73\145\x72"] = $row_user; echo $this->load->view("\160\141\x6e\x65\154\x5f\165\163\145\162\57{$theme}\57\x61\x6a\141\x78\137\x6c\157\x61\x64\x2f\x61\143\143\x6f\165\x6e\164\x2f\x61\x66\146\x2d\x69\156\x66\157", $data, true); } else { $d = array("\163\x74\x61\x74\165\163" => "\145\162\x72\x6f\162", "\155\145\163\163\141\147\145" => "\xe0\xb8\x84\340\xb8\xb8\340\270\x93\340\xb8\xa1\340\xb8\xb5\340\270\x81\340\xb8\262\340\270\xa3\xe0\271\201\xe0\270\231\340\xb8\xb0\340\xb8\x99\xe0\xb8\xb3\340\xb8\255\340\270\xa2\xe0\270\xb9\xe0\271\x88\xe0\xb9\x81\xe0\270\245\xe0\271\x89\xe0\xb8\xa7"); $data["\145\162\162\157\162"] = $d["\155\x65\163\163\x61\x67\x65"]; echo $this->load->view("\x70\141\156\x65\154\x5f\x75\x73\145\x72\x2f{$theme}\x2f\141\152\141\170\137\154\157\x61\x64\57\x61\143\143\x6f\x75\156\x74\x2f\x61\x66\x66\x2d\x69\x6e\x66\x6f", $data, true); } } } } } } public function live_withdrawal() { $theme = $this->theme; $theme_path = base_url() . "\141\x73\x73\145\164\x73\x5f\165\x73\x65\162\x2f" . $theme; $data = array(); $data["\164\x68\x65\x6d\x65\137\160\141\164\150"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\155\145\x74\x61\x5f\163\x65\x74\x74\x69\156\147", array("\167\150\145\x72\145" => array("\x63\x6f\x6c" => "\x69\x64", "\x76\141\154" => "\x62\x72\x61\x6e\144\x5f\x73\145\x74\x74\x69\x6e\x67")))["\166\141\x6c\x75\x65"], true); $data["\144\x61\x74\141"] = $tmp; $sql = "\xa\xa\x9\x9\x9\123\105\114\105\x43\x54\x20\x2a\xa\xa\x9\11\x9\x46\x52\117\115\x20\x72\x65\x70\x6f\162\164\x5f\x74\162\x61\x6e\163\141\143\x74\x69\x6f\x6e\12\xa\11\x9\x9\x77\150\x65\x72\x65\x20\x74\162\x61\156\x73\141\143\x74\151\x6f\x6e\137\164\x79\x70\x65\x20\75\x20\x27\167\x69\164\x68\x64\162\x61\167\x27\xa\xa\11\x9\11\157\x72\144\145\162\40\x62\171\40\x64\x61\164\x65\40\104\x45\x53\x43\12\xa\x9\x9\x9\154\151\x6d\151\x74\40\61\60\12\12\x9\x9"; $lists = $this->main_model->custom_query_result("\xa\xa\11\11\x9{$sql}\12\12\11\11"); $data["\154\151\163\x74\163"] = $lists; echo $this->load->view("\160\141\156\x65\x6c\x5f\x75\x73\x65\162\57{$theme}\57\141\152\x61\x78\137\154\x6f\x61\x64\57\154\151\x76\145\137\x77\151\164\x68\144\x72\x61\x77\x61\154", $data, true); } public function live_commission() { $theme = $this->theme; $theme_path = base_url() . "\x61\x73\x73\x65\x74\163\x5f\x75\163\x65\x72\x2f" . $theme; $data = array(); $data["\164\x68\145\155\145\x5f\x70\141\x74\150"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\155\x65\164\x61\137\163\145\x74\164\x69\x6e\147", array("\x77\x68\x65\x72\x65" => array("\143\157\154" => "\x69\x64", "\166\141\x6c" => "\142\x72\x61\156\x64\x5f\163\145\164\x74\151\x6e\147")))["\166\141\154\x75\x65"], true); $data["\144\141\x74\x61"] = $tmp; $sql = "\12\12\x9\x9\11\x53\105\114\x45\103\x54\40\x2a\xa\12\11\x9\11\106\122\117\x4d\x20\162\x65\160\x6f\x72\164\x5f\x74\x72\x61\x6e\163\x61\143\164\151\157\x6e\12\12\x9\11\x9\x77\x68\x65\x72\145\40\164\162\x61\x6e\163\x61\143\x74\151\x6f\x6e\x5f\164\171\160\x65\40\x3d\x20\47\x64\x65\x70\x6f\163\151\164\47\xa\12\11\11\11\x6f\x72\x64\145\162\40\142\x79\40\x64\141\x74\x65\40\104\105\123\103\12\xa\11\x9\11\x6c\x69\x6d\151\164\40\61\60\xa\xa\11\11"; $lists = $this->main_model->custom_query_result("\12\12\x9\x9\x9{$sql}\xa\12\11\11"); $data["\154\151\163\x74\x73"] = $lists; echo $this->load->view("\x70\141\x6e\145\x6c\x5f\x75\x73\145\x72\57{$theme}\x2f\141\152\141\x78\137\154\x6f\x61\144\57\x6c\151\166\145\137\143\157\x6d\x6d\151\163\163\x69\x6f\156", $data, true); } public function withdraw($type = "\x64\x6f") { $theme = $this->theme; $theme_path = base_url() . "\141\163\x73\145\164\x73\137\x75\163\145\x72\57" . $theme; $data = array(); $data["\164\150\x65\x6d\145\x5f\x70\x61\164\150"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\x6d\145\164\141\137\x73\145\x74\x74\x69\x6e\x67", array("\167\150\145\x72\145" => array("\143\157\154" => "\x69\x64", "\x76\141\x6c" => "\x62\x72\141\156\144\x5f\x73\145\164\164\151\x6e\147")))["\x76\141\x6c\x75\x65"], true); $data["\144\x61\164\x61"] = $tmp; if (empty($_SESSION["\165\163\145\x72"]["\154\157\x67\x67\x65\x64\x5f\x69\156"])) { header("\110\124\x54\x50\x2f\x31\x2e\x31\x20\64\x30\61\40\x55\156\x61\165\164\x68\x6f\162\151\172\x65\x64"); } else { $this->form_validation->set_error_delimiters('', "\x3c\142\162\76"); $this->form_validation->set_rules("\167\x69\164\x68\x64\x72\141\167", "\167\151\164\x68\x64\x72\x61\x77", "\164\162\x69\155\x7c\162\x65\x71\x75\151\162\x65\x64", array("\x72\145\x71\x75\x69\x72\x65\x64" => "\xe0\xb8\x82\340\271\211\340\xb8\255\340\xb8\xa1\340\xb8\xb9\xe0\270\xa5\340\271\204\340\xb8\241\340\271\210\xe0\xb8\204\340\xb8\xa3\xe0\xb8\x9a\xe0\xb8\226\340\271\211\xe0\270\247\xe0\270\231\40\xe0\xb8\201\340\270\xa3\340\xb8\270\340\270\223\xe0\270\262\340\xb9\x83\xe0\xb8\252\xe0\xb9\x88\xe0\xb8\x82\xe0\271\x89\340\270\255\340\xb8\241\340\xb8\271\340\xb8\xa5\xe0\271\203\340\xb8\xab\340\271\x89\xe0\270\x96\xe0\xb8\271\xe0\270\201\xe0\xb8\x95\340\271\x89\340\270\xad\xe0\270\207")); if ($type === "\143\150\145\x63\153") { $user_info = $this->user_model->get_user($_SESSION["\165\163\145\x72"]["\x69\x64"]); $check = $this->main_model->custom_query_row("\123\x45\114\105\103\x54\40\x2a\40\x46\122\x4f\x4d\40\155\x61\151\156\137\167\141\154\x6c\x65\164\x5f\167\151\164\x68\144\x72\x61\x77\40\x57\x48\x45\x52\x45\40\155\157\x62\x69\154\145\x5f\x6e\157\x20\75\40\47{$user_info["\155\157\x62\x69\154\x65\x5f\156\157"]}\x27\x20\x41\116\104\x20\x73\164\141\x74\x75\x73\x20\111\x53\40\x4e\x55\x4c\114"); if (!empty($check)) { $d = array("\x73\164\x61\x74\165\163" => "\167\141\162\156\x69\156\x67", "\x6d\x65\x73\x73\141\x67\145" => "\340\xb8\xa1\xe0\270\265\340\xb8\xa3\340\270\262\340\270\242\340\xb8\x81\xe0\270\xb2\xe0\270\xa3\xe0\270\243\340\270\255\xe0\xb8\xad\340\xb8\x99\340\xb8\xb8\xe0\xb8\xa1\xe0\xb8\261\xe0\xb8\x95\340\270\264", "\x64\141\164\141" => $check); header("\103\157\x6e\164\145\156\164\55\124\x79\160\x65\x3a\40\x61\x70\x70\x6c\x69\143\x61\164\x69\x6f\156\x2f\x6a\163\157\x6e\73\x20\x63\150\141\x72\163\145\x74\75\x75\x74\146\x2d\70", true, 200); die(json_encode($d)); } else { $d = array("\163\x74\141\164\x75\163" => "\163\x75\143\x63\145\163\x73", "\155\145\163\x73\x61\x67\x65" => "\340\xb9\204\xe0\xb8\xa1\340\271\x88\340\270\241\340\270\265\xe0\270\xa3\340\270\262\xe0\xb8\242\xe0\270\x81\340\270\262\xe0\270\243\340\xb8\243\340\xb8\255\340\xb8\255\xe0\270\x99\xe0\270\xb8\340\xb8\xa1\xe0\270\xb1\xe0\270\225\xe0\270\xb4"); header("\103\x6f\156\164\x65\156\164\x2d\124\x79\160\145\x3a\40\141\160\x70\154\151\143\x61\164\151\157\156\57\152\x73\x6f\x6e\73\40\x63\x68\141\162\163\145\x74\75\x75\x74\146\x2d\70", true, 200); die(json_encode($d)); } } if ($this->form_validation->run() === false) { $d = array("\x73\x74\141\164\165\163" => "\x65\x72\x72\x6f\x72", "\155\145\x73\163\141\147\145" => validation_errors()); $data["\145\162\x72\157\x72"] = $d["\155\145\163\163\x61\x67\145"]; if ($d["\155\x65\163\x73\x61\x67\145"] == '') { $d["\155\x65\163\163\x61\x67\x65"] = "\340\270\x82\340\xb9\x89\xe0\xb8\255\340\xb8\xa1\340\xb8\271\340\270\xa5\340\271\204\340\xb8\xa1\xe0\xb9\x88\340\xb8\x84\xe0\270\xa3\340\xb8\232\xe0\xb8\x96\xe0\xb9\211\xe0\270\xa7\xe0\270\x99\40\340\xb8\201\340\xb8\243\xe0\xb8\xb8\340\270\223\xe0\xb8\xb2\340\xb9\203\xe0\270\252\340\271\x88\xe0\xb8\202\xe0\xb9\x89\xe0\xb8\xad\340\xb8\xa1\xe0\270\271\xe0\xb8\xa5\340\271\203\xe0\xb8\xab\xe0\271\211\340\xb8\226\xe0\xb8\xb9\340\xb8\x81\340\270\225\340\271\x89\xe0\xb8\xad\xe0\xb8\x87"; header("\x43\x6f\156\x74\145\x6e\164\55\124\x79\x70\145\x3a\x20\141\x70\160\x6c\x69\143\x61\164\151\157\x6e\x2f\x6a\163\x6f\x6e\x3b\x20\x63\x68\x61\162\163\x65\x74\75\165\164\x66\55\x38", true, 200); die(json_encode($d)); } $data["\145\162\x72\x6f\x72"] = $d["\x6d\145\x73\x73\141\147\x65"]; echo $this->load->view("\160\141\x6e\145\154\x5f\x75\x73\x65\162\x2f{$theme}\x2f\x61\x6a\x61\x78\137\154\157\141\144\57\x61\x63\143\x6f\x75\156\164\x2f\167\x69\x74\x68\144\x72\141\x77", $data, true); } else { $withdraw_amount = (double) str_replace("\54", '', $this->input->post("\x77\151\164\150\x64\x72\141\x77")); $user_info = $this->user_model->get_user($_SESSION["\165\163\x65\x72"]["\151\x64"]); $withdraw_setting = json_decode($this->main_model->get_row("\x6d\145\164\141\137\163\145\x74\164\151\x6e\x67", array("\x77\150\145\x72\145" => array("\143\x6f\x6c" => "\151\144", "\166\141\x6c" => "\x77\x69\x74\x68\144\162\141\167\x5f\163\x65\164\x74\x69\x6e\x67")))["\x76\141\154\165\145"], true); if ($withdraw_setting["\x65\156\141\142\154\145"] == 0) { $d = array("\x73\164\141\x74\165\163" => "\145\162\x72\157\162", "\155\145\x73\163\x61\147\x65" => "\xe0\270\243\xe0\xb8\260\xe0\xb8\232\340\xb8\x9a\340\270\233\xe0\xb8\xb4\xe0\xb8\x94\xe0\270\x81\340\270\xb2\xe0\xb8\243\xe0\xb8\226\xe0\270\xad\xe0\270\x99\xe0\xb9\x80\340\270\207\xe0\270\xb4\340\xb8\231\40\xe0\xb8\212\xe0\xb8\261\340\271\x88\340\270\247\340\270\x84\xe0\270\243\xe0\xb8\xb2\xe0\270\xa7"); $data["\x65\x72\x72\x6f\x72"] = $d["\155\x65\163\x73\x61\x67\x65"]; header("\103\x6f\x6e\164\x65\156\x74\55\x54\x79\160\145\x3a\40\141\160\x70\x6c\x69\x63\141\x74\x69\157\156\x2f\x6a\163\x6f\156\x3b\x20\x63\150\141\162\163\x65\x74\75\165\x74\x66\55\x38", true, 200); die(json_encode($d)); die; } if ($withdraw_amount < $withdraw_setting["\115\x69\156\x57\x69\x74\150\144\162\x61\167"]) { $d = array("\x73\x74\141\x74\165\x73" => "\x65\x72\x72\x6f\162", "\x6d\x65\163\x73\x61\147\x65" => "\340\270\xa2\xe0\270\xad\xe0\xb8\x94\340\xb9\x80\340\xb8\x87\xe0\270\xb4\340\270\231\xe0\270\202\340\270\255\xe0\xb8\207\xe0\270\204\xe0\270\xb8\xe0\xb8\x93\xe0\xb8\242\xe0\xb8\xb1\340\270\207\340\271\204\xe0\xb8\xa1\xe0\xb9\x88\xe0\270\x96\340\270\266\340\xb8\x87\340\270\242\340\270\xad\340\xb8\224\340\xb8\x82\xe0\xb8\xb1\xe0\xb9\211\340\xb8\231\xe0\xb8\x95\xe0\xb9\x88\xe0\xb8\xb3\xe0\270\227\xe0\xb8\xb5\340\271\210\340\270\x96\340\270\255\xe0\xb8\231\xe0\xb9\204\xe0\xb8\x94\xe0\xb9\211"); $data["\x65\162\x72\x6f\162"] = $d["\155\145\163\x73\x61\147\x65"]; header("\103\157\x6e\164\x65\x6e\x74\55\124\x79\160\x65\x3a\x20\x61\x70\160\x6c\x69\143\x61\x74\151\x6f\156\57\152\x73\x6f\x6e\x3b\40\x63\x68\141\x72\163\145\164\x3d\165\x74\x66\x2d\x38", true, 200); die(json_encode($d)); die; } if ($withdraw_amount > 0) { $this->agent_model->reset_turn($user_info); if ($user_info["\x74\165\162\156\137\x64\x61\x74\145"] == null) { $turn_date = date_format(date_create($user_info["\143\162\145\x61\164\145\137\x61\x74"]), "\x59\55\155\55\144"); } else { $turn_date = date("\131\55\x6d\55\144", strtotime($user_info["\x74\165\x72\156\137\x64\141\x74\x65"] . "\x2d\40\61\40\144\141\x79\163")); } $row = $this->main_model->get_row("\163\154\x5f\x75\163\145\162\163", array("\167\x68\145\162\x65" => array("\x63\x6f\154" => "\x69\144", "\166\x61\x6c" => $_SESSION["\x75\x73\x65\x72"]["\x69\144"]))); if ($withdraw_setting["\x77\151\x74\x68\144\x72\x61\167\x5f\164\x79\x70\x65"] == "\x74\165\x72\x6e\157\x76\145\162") { if ($row["\164\165\162\x6e"] != 0) { $bet = 0; $tmp_data = $this->main_model->custom_query_row("\12\11\x9\x9\11\x9\x9\x9\x9\x73\x65\154\x65\143\x74\x20\52\x20\12\x9\x9\11\11\11\11\x9\11\146\x72\157\155\40\x72\145\160\157\162\x74\137\x74\162\141\x6e\x73\141\143\x74\151\157\x6e\xa\x9\x9\x9\11\11\x9\11\11\x77\150\145\x72\x65\40\165\163\145\162\156\x61\x6d\145\x20\x3d\40\x27" . $row["\x6d\x6f\142\151\x6c\x65\137\156\x6f"] . "\x27\40\x61\x6e\x64\40\x28\40\164\x72\x61\x6e\163\x61\143\x74\x69\157\x6e\x5f\x74\171\160\x65\40\x3d\40\x27\x44\x45\120\x4f\123\x49\124\47\40\x6f\162\40\164\x72\x61\156\163\141\x63\164\x69\x6f\x6e\x5f\x74\171\160\145\x20\x3d\x20\47\103\x52\106\x27\x20\157\x72\x20\164\x72\141\156\163\141\143\164\151\157\x6e\x5f\164\x79\160\145\40\x3d\x20\47\x44\x45\120\117\x53\x49\x54\x4d\47\x20\157\162\40\164\162\x61\156\163\x61\x63\164\151\x6f\x6e\137\x74\171\160\145\40\x3d\40\x27\102\117\x4e\x55\x53\x4d\47\40\51\12\x9\x9\x9\x9\x9\11\x9\11\157\x72\x64\x65\162\x20\142\x79\40\144\x61\164\x65\40\x64\x65\163\143\xa\11\x9\x9\x9\11\11\11"); $tmp_agents = $this->main_model->get_result("\x61\x67\145\x6e\x74\137\141\143\143\157\165\x6e\164"); foreach ($tmp_agents as $val) { if ($val["\160\162\x6f\x76\151\144\x65\x72"] == "\x61\x6d\142" && $val["\x73\x74\x61\x74\165\x73"] == 1) { $api_data = array("\x6d\145\164\150\x6f\144" => "\107\127\114", "\165\163\x65\x72" => $row["\x61\x6d\x62\x5f\x69\144"], "\x72\145\146" => $tmp_data["\151\x64"]); $res = $this->amb_model->SendApi($api_data); } else { if ($val["\x70\x72\x6f\x76\151\144\x65\x72"] == "\x62\x65\164\146\154\x69\170" && $val["\163\164\141\x74\165\163"] == 1) { $api_data = array("\x6d\x65\x74\150\157\144" => "\107\x57\114", "\165\163\145\162\156\141\x6d\145" => $row["\x62\x65\x74\146\154\151\170\x5f\x69\x64"], "\x73\x74\x61\162\164" => $turn_date, "\145\x6e\x64" => date("\x59\x2d\155\x2d\x64")); $res = $this->betflix_model->SendApi($api_data); } } } foreach ($res["\x72\x65\x73\165\154\x74"]["\144\x61\x74\141"] as $tmp) { $bet += $tmp["\x76\x61\x6c\x69\144\101\x6d\x6f\165\156\x74"]; } $this->main_model->update("\x69\x64", $user_info["\x69\x64"], "\x73\x6c\x5f\165\163\145\x72\x73", array("\x62\x65\x74" => $bet)); $row = $this->main_model->get_row("\163\x6c\137\x75\x73\145\x72\x73", array("\x77\150\x65\x72\145" => array("\x63\157\x6c" => "\151\x64", "\x76\x61\154" => $_SESSION["\165\x73\x65\x72"]["\151\x64"]))); if ($row["\142\145\x74"] < $row["\164\x75\x72\x6e"]) { $d = array("\x73\x74\141\164\x75\x73" => "\x65\162\x72\x6f\x72", "\x6d\145\163\x73\x61\x67\145" => "\xe0\xb8\242\xe0\xb8\xad\xe0\270\224\340\271\200\340\xb8\x94\xe0\xb8\xb4\340\270\xa1\340\xb8\x9e\xe0\270\xb1\xe0\xb8\x99\340\xb8\x82\340\xb8\255\xe0\270\207\340\270\204\xe0\270\xb8\xe0\xb8\223\40\340\270\231\xe0\xb9\x89\340\270\255\xe0\xb8\242\340\xb8\x81\340\xb8\xa7\xe0\271\210\340\270\262\xe0\xb8\242\340\xb8\xad\xe0\xb8\x94\340\xb9\x80\340\xb8\x97\340\xb8\264\340\270\xa3\xe0\xb9\x8c\340\xb8\x99\xe0\271\x82\xe0\xb8\255\340\271\200\340\xb8\xa7\xe0\xb8\xad\xe0\270\xa3\340\271\x8c\74\142\162\x3e\340\270\201\340\270\243\340\xb8\270\340\xb8\x93\xe0\xb8\xb2\xe0\xb9\x80\340\xb8\x94\340\xb8\xb4\340\xb8\xa1\340\270\x9e\340\270\xb1\xe0\270\231\340\xb8\x95\340\xb9\x88\xe0\xb8\xad\340\270\255\xe0\xb8\265\340\xb8\201\x20" . ($row["\x74\165\162\156"] - $bet) . "\x20\340\270\232\340\xb8\262\xe0\270\x97"); header("\103\157\x6e\x74\145\x6e\x74\x2d\124\171\x70\145\72\x20\x61\x70\160\154\151\x63\141\x74\151\x6f\x6e\x2f\152\x73\157\156\x3b\x20\x63\x68\141\162\163\145\x74\x3d\165\x74\x66\55\x38", true, 200); die(json_encode($d)); $data["\x65\162\x72\157\x72"] = $d["\155\145\163\x73\x61\147\145"]; echo $this->load->view("\x70\141\156\145\x6c\137\x75\x73\145\162\57{$theme}\57\x61\152\141\x78\x5f\154\x6f\x61\x64\57\x61\x63\143\x6f\x75\x6e\164\57\167\x69\x74\150\144\162\x61\167", $data, true); die; } } } else { if ($withdraw_setting["\x77\x69\164\x68\144\x72\x61\x77\137\x74\171\x70\x65"] == "\x63\x72\x65\144\151\x74") { if ($row["\x63\x72\x65\144\x69\x74"] < $row["\164\165\162\156"]) { $d = array("\163\164\141\164\165\x73" => "\x65\x72\162\157\162", "\155\x65\x73\163\x61\147\145" => "\xe0\xb8\242\340\xb8\xad\xe0\xb8\x94\340\xb8\204\340\270\x87\xe0\xb9\x80\xe0\xb8\253\340\xb8\xa5\340\xb8\267\340\xb8\xad\xe0\xb8\x95\340\271\x89\340\xb8\xad\340\270\x87\340\xb8\241\xe0\270\xb2\340\270\201\340\xb8\x81\340\270\247\xe0\271\210\xe0\xb8\xb2\340\xb8\242\340\xb8\255\340\xb8\x94\340\271\x80\xe0\xb8\x97\xe0\xb8\xb4\340\xb8\243\xe0\271\214\340\xb8\x99"); header("\103\x6f\156\164\x65\156\164\x2d\x54\x79\x70\x65\x3a\x20\141\x70\x70\154\x69\143\x61\164\x69\157\x6e\57\152\x73\x6f\x6e\73\40\x63\x68\x61\x72\x73\x65\x74\75\x75\x74\146\x2d\x38", true, 200); die(json_encode($d)); $data["\x65\162\x72\x6f\x72"] = $d["\155\x65\x73\163\141\147\x65"]; echo $this->load->view("\x70\x61\156\x65\154\137\x75\x73\145\162\x2f{$theme}\x2f\x61\x6a\141\170\137\x6c\157\141\144\57\141\143\143\x6f\x75\156\x74\57\167\x69\164\150\144\x72\141\167", $data, true); die; } } } if ($row["\143\x72\145\x64\151\164"] >= $withdraw_amount && $row["\143\162\145\x64\151\x74"] != 0) { $id = $this->user_model->generateRequestID("\167\151\164\x68\144\162\x61\x77"); $row_user = $this->user_model->get_user($_SESSION["\165\163\x65\x72"]["\151\x64"]); $note = ''; $MaxWithdraw = $withdraw_amount; $tmp_check_promotion = $this->main_model->custom_query_row("\12\x9\x9\x9\x9\11\11\x9\163\145\154\145\143\164\x20\x2a\40\12\11\11\11\x9\x9\x9\x9\x66\162\x6f\x6d\40\155\145\x74\141\137\x70\x72\157\155\157\x74\151\157\156\12\x9\x9\11\11\x9\11\11\x77\150\145\x72\145\40\x75\137\155\x6f\142\x69\x6c\x65\x20\75\40\x27" . $row["\x6d\x6f\x62\151\154\x65\137\x6e\157"] . "\x27\x20\x61\x6e\x64\40\163\x74\141\164\x75\x73\40\75\x20\61\12\x9\11\11\11\11\11"); if (!empty($tmp_check_promotion)) { $tmp_pro = json_decode($tmp_check_promotion["\166\141\154\x75\x65"], true); $tmp_pro["\x4d\141\x78\127\151\x74\x68\144\x72\141\x77"] = isset($tmp_pro["\115\141\170\127\151\164\x68\x64\162\141\167"]) ? $tmp_pro["\115\141\170\127\x69\x74\150\x64\162\x61\x77"] : 0; if ($tmp_pro["\x4d\x61\x78\x57\151\164\x68\144\162\141\x77"] != 0 && $MaxWithdraw > $tmp_pro["\x4d\141\x78\127\x69\164\x68\144\x72\x61\167"]) { $MaxWithdraw = $tmp_pro["\115\141\170\127\151\x74\150\x64\x72\x61\167"]; } $note = "\xe0\270\xa5\340\270\271\xe0\xb8\x81\xe0\270\204\xe0\xb9\211\340\xb8\xb2\xe0\xb8\225\xe0\xb8\xb4\xe0\270\x94\xe0\xb9\202\340\xb8\233\xe0\xb8\xa3\x20" . $tmp_pro["\142\x6f\x6e\165\x73\137\156\141\x6d\145"] . "\x20\340\xb8\x96\340\270\xad\340\xb8\231\xe0\xb9\x84\xe0\xb8\x94\xe0\xb9\211\xe0\xb8\252\xe0\xb8\xb9\340\xb8\207\340\270\xaa\xe0\270\270\xe0\270\x94\40" . $tmp_pro["\115\141\x78\x57\151\164\x68\144\162\141\x77"] . "\x20\340\xb8\xa2\xe0\270\255\xe0\xb8\224\xe0\270\xab\340\270\261\xe0\270\x81\340\270\x88\340\xb8\xa3\340\270\264\xe0\270\x87\40" . $withdraw_amount; } $tmp_check_codefree = $this->main_model->custom_query_row("\12\11\x9\x9\11\11\11\x9\x73\x65\x6c\x65\143\x74\40\x2a\x20\xa\11\11\11\x9\11\11\11\x66\162\x6f\155\40\143\157\144\x65\137\x66\162\x65\x65\x5f\x75\163\145\144\12\11\11\11\11\11\x9\x9\167\x68\x65\x72\x65\40\165\x73\x65\162\156\141\155\x65\40\x3d\40\47" . $row["\x6d\x6f\x62\x69\x6c\145\x5f\156\157"] . "\x27\x20\x61\156\144\x20\x73\x74\141\164\x75\163\x20\75\x20\61\xa\x9\x9\x9\x9\11\11"); if (!empty($tmp_check_codefree)) { if ($tmp_check_codefree["\x74\171\x70\145"] == "\156\157\x72\x6d\141\x6c") { $tmp_get_codefree = $this->main_model->custom_query_row("\xa\x9\x9\11\x9\x9\11\x9\x9\x9\163\x65\x6c\x65\x63\164\40\x2a\x20\12\11\11\11\x9\x9\11\11\11\x9\x66\162\157\x6d\40\x63\157\144\145\137\x66\162\145\x65\12\11\x9\x9\11\x9\11\11\11\x9\x77\150\x65\x72\145\40\143\157\x64\x65\40\x3d\40\47{$tmp_check_codefree["\x63\157\144\x65"]}\47\12\x9\x9\x9\11\x9\11\x9\11"); if (!empty($tmp_get_codefree)) { $tmp_max_withdraw = isset($tmp_get_codefree["\x6d\141\x78\x5f\x77\151\x74\150\x64\x72\x61\167"]) ? $tmp_get_codefree["\x6d\x61\x78\x5f\167\x69\164\150\144\162\x61\x77"] : 0; if ($tmp_max_withdraw != 0 && $MaxWithdraw > $tmp_max_withdraw) { $MaxWithdraw = $tmp_max_withdraw; } $note = "\340\xb8\245\340\270\xb9\340\270\201\340\270\204\xe0\xb9\211\xe0\270\262\xe0\xb9\x83\340\xb8\x8a\xe0\xb9\211\340\271\x82\340\270\204\340\271\211\340\270\x94\40" . $tmp_check_codefree["\143\157\x64\x65"] . "\x20\xe0\270\226\xe0\xb8\xad\340\xb8\231\340\271\x84\xe0\270\224\xe0\271\211\xe0\xb8\xaa\340\270\271\340\270\x87\xe0\xb8\xaa\340\xb8\270\340\xb8\x94\40" . $tmp_max_withdraw . "\x20\340\xb8\xa2\xe0\270\255\340\xb8\x94\xe0\xb8\xab\340\270\261\xe0\270\x81\xe0\xb8\210\xe0\xb8\xa3\xe0\270\264\340\xb8\207\x20" . $withdraw_amount; } } else { if ($tmp_check_codefree["\164\171\x70\145"] == "\165\163\x65\162\137\x63\157\x64\x65") { $tmp_get_codefree = json_decode($this->main_model->get_row("\x6d\x65\164\141\x5f\x73\x65\x74\164\151\x6e\x67", array("\167\x68\x65\x72\x65" => array("\143\x6f\154" => "\x69\x64", "\x76\x61\x6c" => "\143\157\144\x65\146\x72\145\145\x5f\165\x73\x65\162")))["\x76\141\154\x75\x65"], true); if (!empty($tmp_get_codefree)) { $tmp_max_withdraw = isset($tmp_get_codefree["\x6d\x61\x78\x5f\167\x69\164\x68\x64\x72\x61\167"]) ? $tmp_get_codefree["\155\141\x78\137\x77\151\x74\x68\144\162\x61\167"] : 0; if ($tmp_max_withdraw != 0 && $MaxWithdraw > $tmp_max_withdraw) { $MaxWithdraw = $tmp_max_withdraw; } $note = "\xe0\xb8\245\xe0\270\xb9\340\270\x81\340\270\204\xe0\271\211\xe0\270\262\xe0\xb9\x83\xe0\xb8\x8a\340\271\x89\340\xb9\x82\xe0\270\204\xe0\271\x89\xe0\270\x94\40" . $row["\143\157\144\145\146\x72\x65\x65"] . "\40\xe0\xb8\x96\340\270\255\340\270\231\340\xb9\204\xe0\xb8\x94\xe0\xb9\x89\340\xb8\xaa\340\xb8\271\xe0\xb8\x87\xe0\270\xaa\xe0\xb8\xb8\340\xb8\x94\x20" . $tmp_max_withdraw . "\x20\xe0\270\242\xe0\270\255\340\270\224\xe0\270\253\xe0\xb8\xb1\340\270\201\340\xb8\210\xe0\xb8\243\340\xb8\xb4\xe0\270\x87\x20" . $withdraw_amount; } } } } $agent_data = array("\x61\147\145\x6e\164\137\x6d\x65\164\150\157\x64" => "\x57\103", "\141\x67\145\x6e\164\137\144\141\164\141" => array("\165\x73\x65\162" => $row_user, "\x63\162\x65\144\x69\164" => $withdraw_amount, "\151\144" => $id)); $res = $this->agent_model->process($agent_data); if ($res["\x73\x74\141\x74\x75\x73"]) { $this->main_model->custom_query("\xa\11\11\x9\x9\11\11\11\x9\125\x50\x44\101\x54\105\x20\x6d\x65\x74\x61\137\160\x72\x6f\x6d\x6f\x74\151\x6f\156\12\x9\x9\11\x9\11\11\11\11\123\x45\x54\x20\163\x74\141\164\x75\163\40\75\x20\60\12\x9\11\x9\11\x9\11\11\x9\x57\110\105\122\x45\x20\165\x5f\155\x6f\x62\151\x6c\145\40\x3d\x20\x27{$row["\x6d\x6f\142\x69\154\x65\x5f\156\157"]}\x27\12\11\11\x9\x9\x9\x9\x9"); $this->main_model->custom_query("\12\11\x9\11\11\11\11\x9\x9\x55\x50\x44\101\x54\x45\x20\x63\157\x64\145\x5f\x66\162\x65\145\137\x75\163\145\144\xa\11\x9\11\11\11\11\x9\x9\x53\x45\x54\40\x73\164\x61\x74\165\x73\x20\x3d\x20\60\xa\11\x9\x9\x9\x9\x9\x9\11\x57\110\105\x52\105\40\165\x73\x65\x72\156\x61\x6d\145\40\x3d\x20\x27{$row["\155\157\x62\151\x6c\145\x5f\x6e\157"]}\47\xa\x9\x9\11\11\11\x9\11"); $date = date("\131\x2d\x6d\55\x64\x20\110\x3a\x69\x3a\163"); $tmp_insert = array("\151\x64" => $id, "\155\x6f\142\151\x6c\x65\137\156\x6f" => $row["\155\x6f\x62\151\154\x65\x5f\x6e\157"], "\146\165\154\154\x6e\141\x6d\x65" => $row["\146\165\x6c\x6c\x6e\x61\x6d\145"], "\143\x72\145\144\x69\x74\137\142\145\146\157\x72\145" => $row["\143\162\x65\144\x69\164"], "\x63\x72\145\144\x69\164\x5f\x61\x66\164\145\162" => $row["\143\x72\x65\144\x69\164"] - $withdraw_amount, "\x77\151\164\x68\x64\162\141\167\x5f\141\x6d\157\x75\156\164" => $MaxWithdraw, "\165\x5f\142\x61\156\x6b\137\x6e\141\x6d\x65" => $this->main_model->get_bank_info($row["\142\141\x6e\x6b\137\x69\144"])["\142\x61\156\153\137\x6e\141\155\x65"], "\165\x5f\142\x61\x6e\153\x5f\x61\x63\143" => $row["\x62\x61\x6e\x6b\x5f\141\143\x63\x5f\x6e\x6f"], "\x77\x69\164\x68\x64\x72\x61\167\137\164\x69\x6d\x65" => $date, "\163\164\141\164\165\163" => null, "\156\x6f\164\x69\x63\145" => 1, "\141\160\x70\x72\157\166\x65\x5f\144\x61\x74\145" => null, "\141\160\160\162\157\x76\145\137\141\x64\x6d\151\156" => null, "\156\157\164\145" => $note); $this->main_model->create($tmp_insert, "\x6d\x61\151\156\137\167\141\154\x6c\145\x74\x5f\167\151\x74\x68\144\162\141\167"); $this->main_model->update("\151\144", $row_user["\151\144"], "\163\x6c\137\165\163\x65\x72\x73", array("\143\x72\x65\x64\x69\x74" => $row["\x63\x72\145\x64\151\x74"] - $withdraw_amount)); $tmp = json_decode($this->main_model->get_row("\155\x65\x74\x61\137\x73\x65\x74\x74\x69\x6e\147", array("\167\x68\x65\x72\145" => array("\x63\x6f\x6c" => "\151\x64", "\166\x61\x6c" => "\x62\x72\x61\156\144\x5f\x73\x65\164\x74\x69\x6e\147")))["\x76\x61\x6c\165\x65"], true); $line_token = json_decode($this->main_model->get_row("\x6d\x65\164\x61\x5f\x73\x65\x74\164\151\156\147", array("\x77\x68\x65\162\x65" => array("\x63\157\154" => "\x69\144", "\x76\x61\x6c" => "\x6c\x69\156\x65\x5f\164\x6f\x6b\x65\156")))["\x76\141\154\x75\x65"], true)["\127\x69\164\x68\x64\162\141\x77"]; if (!empty($line_token)) { $line_flex = json_decode($this->main_model->get_row("\x6d\145\x74\x61\137\163\x65\164\164\x69\156\x67", array("\167\x68\x65\162\145" => array("\143\157\x6c" => "\x69\144", "\x76\x61\x6c" => "\x6c\x69\x6e\145\x5f\146\x6c\x65\x78\137\x65\156\x61\x62\x6c\x65")))["\x76\x61\154\x75\x65"], true); $line_flex_open = false; if (isset($line_flex["\x65\156\141\142\x6c\145"])) { if ($line_flex["\x65\156\x61\x62\x6c\x65"] == 1) { $line_flex_open = true; } } if (!$line_flex_open) { $this->line_model->setToken($line_token); $this->line_model->addMsg("\342\x95\x90\342\225\220\xe2\x95\x90\342\225\220\342\225\220\xe2\225\220\342\225\220\xe2\225\x90\342\x95\x90\342\x95\220\342\x95\x90\342\x95\220\342\x95\220"); $this->line_model->addMsg("\360\x9f\231\201\x20\xe0\xb8\xa1\xe0\xb8\265\340\xb8\xa3\xe0\270\xb2\340\270\242\xe0\xb8\x81\340\270\xb2\xe0\270\xa3\340\271\x81\340\270\x88\340\271\211\xe0\xb8\207\xe0\xb8\x96\340\270\xad\xe0\xb8\231\x20\xf0\237\231\x81"); $this->line_model->addMsg(''); $this->line_model->addMsg("\360\237\230\241\x20\340\270\226\340\xb8\255\xe0\270\x99\340\270\210\340\270\xb3\xe0\xb8\231\xe0\270\247\xe0\xb8\231\72\x20" . $withdraw_amount . "\x20\360\237\x98\xa1"); $this->line_model->addMsg(''); $this->line_model->addMsg("\125\x73\x65\162\x6e\x61\155\145\x20\72\40" . $row["\151\x64"]); $this->line_model->addMsg("\340\xb9\x80\xe0\xb8\x9a\340\xb8\xad\xe0\xb8\243\340\xb9\214\xe0\xb8\241\xe0\270\xb7\340\270\255\340\xb8\226\xe0\270\267\xe0\270\xad\40\72\40" . $row["\x6d\x6f\x62\151\x6c\145\x5f\x6e\157"]); $this->line_model->addMsg("\xe0\270\x8a\xe0\xb8\267\340\271\x88\xe0\xb8\255\x20\x3a\40" . $row["\146\x75\x6c\x6c\x6e\141\x6d\x65"]); $this->line_model->addMsg("\xe0\271\x80\xe0\270\xa5\340\xb8\x82\340\270\x9a\340\xb8\xb1\340\270\x8d\340\xb8\212\xe0\xb8\265\40\72\x20" . $row["\x62\141\156\153\137\141\x63\x63\137\156\x6f"]); $this->line_model->addMsg("\340\270\230\xe0\xb8\x99\340\270\xb2\xe0\270\204\340\xb8\xb2\xe0\270\243\40\x3a\x20" . $row["\x62\141\156\153\137\x6e\141\x6d\x65"]); $this->line_model->addMsg("\xe0\271\x80\xe0\270\227\340\xb8\264\340\xb8\xa3\340\271\x8c\340\xb8\x99\x20\72\40" . $row["\164\x75\x72\x6e"]); $this->line_model->addMsg("\xe0\270\xa7\340\xb8\xb1\xe0\270\x99\xe0\xb8\x97\340\xb8\265\xe0\271\x88\40\x3a\x20" . $date); $this->line_model->addMsg("\342\225\220\342\x95\220\342\x95\x90\xe2\x95\220\342\x95\x90\xe2\225\220\xe2\x95\x90\xe2\x95\220\xe2\225\220\xe2\225\220\342\x95\220\342\225\x90\342\x95\220"); $this->line_model->sendNotify(); } else { $this->line_model_flex->setToken($line_token, "\x77\151\x74\150\144\x72\141\167"); $this->line_model_flex->addReplacer("\x77\151\x74\x68\144\x72\141\167\x5f\x61\x6d\157\x75\156\164", $withdraw_amount); $this->line_model_flex->addReplacer("\151\x64", $row["\x69\144"]); $this->line_model_flex->addReplacer("\x6d\157\142\x69\x6c\x65\x5f\x6e\157", $row["\155\157\142\151\154\x65\137\x6e\157"]); $this->line_model_flex->addReplacer("\146\165\x6c\x6c\156\141\155\145", $row["\146\165\154\x6c\156\x61\x6d\x65"]); $this->line_model_flex->addReplacer("\x62\x61\x6e\153\x5f\x61\x63\143\137\x6e\157", $row["\142\x61\156\153\x5f\x61\x63\x63\x5f\x6e\157"]); $this->line_model_flex->addReplacer("\x62\141\x6e\x6b\x5f\156\141\x6d\145", $row["\x62\141\156\x6b\137\156\141\155\x65"]); $this->line_model_flex->addReplacer("\164\165\162\156", $row["\164\x75\162\156"]); $this->line_model_flex->addReplacer("\x64\x61\164\145", $date); $this->line_model_flex->sendNotify(); } } $tmp_data = array("\x69\x64" => null, "\x75\163\x65\x72\156\141\155\145" => $row["\x6d\157\x62\151\154\145\x5f\x6e\157"], "\x69\143\x6f\156" => "\x69\156\146\x6f", "\164\x69\164\x6c\145" => "\340\270\x82\xe0\270\255\340\270\x96\340\xb8\xad\xe0\xb8\231\xe0\xb9\200\340\270\x87\340\xb8\264\xe0\xb8\231", "\x74\x65\170\x74" => "\340\xb8\210\xe0\xb8\263\340\270\x99\xe0\270\xa7\340\270\x99\x20\72\x20" . $withdraw_amount . "\40\xe0\xb8\x9a\xe0\xb8\xb2\xe0\270\227\x20\74\x62\162\x3e\340\270\xa3\xe0\xb8\xab\xe0\xb8\xb1\340\270\252\340\xb8\x97\xe0\270\xb3\340\xb8\xa3\340\270\xb2\340\xb8\242\340\270\x81\340\270\262\xe0\xb8\243\40\72\40" . $id, "\155\x65\164\x61\137\x64\141\164\x61" => '', "\144\x61\164\145" => date("\131\55\x6d\x2d\144\x20\x48\72\151\x3a\163"), "\x73\164\x61\x74\165\x73" => 1); $this->main_model->create($tmp_data, "\156\x6f\x74\x69\143\x65\137\x61\x64\155\x69\x6e"); $check["\x77\151\x74\x68\144\162\141\x77\137\x61\x6d\x6f\x75\x6e\164"] = $withdraw_amount; $data["\167\x69\164\150\x64\162\x61\167"] = $check; $data["\x75\x73\x65\x72"] = $row; $bank_info = $this->main_model->get_bank_info($row["\x62\x61\156\x6b\x5f\151\x64"]); $data["\165\x73\145\162"]["\x62\x61\156\153\x5f\151\x6e\146\x6f"] = $bank_info; $d = array("\x73\164\x61\164\x75\x73" => "\163\165\x63\143\145\163\163", "\x6d\x65\x73\163\x61\x67\145" => "\340\xb8\243\340\xb8\xad\340\xb8\201\xe0\xb8\262\340\270\243\340\xb8\224\xe0\xb8\263\340\271\200\xe0\270\x99\340\xb8\264\xe0\xb8\x99\340\xb8\x81\xe0\xb8\xb2\340\270\xa3\x20\340\xb8\xa0\340\270\xb2\340\xb8\xa2\340\271\x83\340\xb8\231\40\x31\65\40\xe0\xb8\231\xe0\270\262\xe0\xb8\x97\340\270\265\x21", "\144\x61\164\x61" => $bank_info); header("\103\x6f\x6e\x74\x65\x6e\164\x2d\124\171\x70\145\72\40\141\x70\160\x6c\151\x63\141\164\151\x6f\x6e\57\152\163\x6f\x6e\73\x20\x63\150\x61\x72\163\145\x74\x3d\165\164\x66\55\70", true, 200); die(json_encode($d)); echo $this->load->view("\x70\x61\x6e\145\154\137\165\163\145\x72\57{$theme}\57\x61\x6a\x61\170\137\x6c\x6f\x61\144\x2f\141\143\143\x6f\165\x6e\164\57\x77\151\164\150\144\162\141\167\137\x77\x61\x69\x74\56\160\150\160", $data, true); } else { $d = array("\x73\x74\x61\164\x75\163" => "\x65\162\162\x6f\x72", "\155\145\x73\x73\141\147\x65" => "\340\xb8\204\340\270\270\340\xb8\223\xe0\270\x97\xe0\xb8\xb3\340\xb8\243\340\270\262\340\270\xa2\340\270\201\xe0\xb8\262\340\xb8\243\xe0\271\x80\340\xb8\243\xe0\271\207\xe0\xb8\247\340\271\x80\xe0\xb8\x81\xe0\xb8\264\340\xb8\231\xe0\271\204\xe0\270\x9b\x20\340\271\x82\340\xb8\x9b\xe0\270\xa3\xe0\xb8\x94\xe0\xb8\243\340\270\255\xe0\xb8\252\340\xb8\261\340\xb8\x81\340\xb8\204\340\xb8\xa3\xe0\xb8\xb9\xe0\xb9\210\x20\340\xb9\201\xe0\xb8\245\xe0\270\260\xe0\270\224\340\270\263\xe0\xb9\x80\xe0\xb8\x99\xe0\xb8\xb4\xe0\270\231\340\xb8\x81\xe0\xb8\xb2\xe0\270\xa3\xe0\271\x83\xe0\270\xab\xe0\xb8\241\340\xb9\x88\xe0\270\xad\xe0\xb8\xb5\xe0\xb8\201\xe0\xb8\204\340\270\243\340\xb8\261\xe0\xb9\x89\340\270\207\x21"); header("\103\157\x6e\164\145\x6e\164\55\124\x79\160\145\x3a\x20\141\x70\160\154\x69\x63\x61\164\151\157\156\57\152\163\157\x6e\73\x20\143\150\x61\x72\163\x65\x74\75\x75\x74\x66\x2d\70", true, 200); die(json_encode($d)); $data["\145\x72\162\x6f\x72"] = $d["\155\x65\x73\x73\x61\x67\x65"]; echo $this->load->view("\x70\141\156\145\154\137\x75\x73\145\162\57{$theme}\57\141\x6a\141\170\137\x6c\157\x61\144\x2f\141\143\x63\157\165\156\164\57\x77\151\164\x68\144\x72\141\167", $data, true); } } else { $d = array("\x73\x74\141\164\x75\163" => "\145\x72\x72\x6f\x72", "\x6d\145\163\163\x61\x67\145" => "\340\xb8\242\xe0\xb8\255\xe0\270\x94\xe0\xb8\x84\340\270\207\340\xb9\x80\340\270\253\xe0\xb8\245\340\xb8\267\340\xb8\255\xe0\xb8\225\340\271\211\340\xb8\xad\xe0\270\x87\340\xb8\xa1\xe0\xb8\xb2\340\xb8\x81\xe0\xb8\x81\xe0\xb8\xa7\340\xb9\x88\xe0\270\xb2\xe0\270\xa2\340\270\255\340\xb8\224\xe0\xb8\226\340\xb8\xad\340\xb8\231"); header("\103\157\x6e\164\x65\156\164\55\x54\171\160\x65\72\40\x61\x70\x70\x6c\x69\143\141\x74\x69\x6f\156\x2f\152\163\x6f\x6e\x3b\x20\143\150\x61\x72\x73\x65\x74\x3d\x75\164\x66\x2d\x38", true, 200); die(json_encode($d)); $data["\145\162\x72\x6f\162"] = $d["\155\145\x73\163\x61\147\145"]; echo $this->load->view("\160\141\156\145\x6c\x5f\x75\x73\x65\x72\x2f{$theme}\57\141\x6a\141\x78\x5f\154\x6f\141\144\57\x61\143\x63\157\x75\x6e\x74\57\x77\151\x74\150\144\x72\x61\167", $data, true); } } else { $d = array("\163\164\141\x74\165\163" => "\145\162\x72\x6f\x72", "\155\x65\163\163\141\x67\145" => "\xe0\270\xa2\xe0\xb8\xad\340\xb8\x94\340\270\x96\xe0\xb8\xad\xe0\270\231\340\270\225\xe0\271\x89\340\xb8\xad\340\270\207\340\xb8\241\340\270\262\xe0\270\201\340\xb8\201\340\270\xa7\340\271\x88\xe0\270\262\x20\40\61\40\340\xb8\232\340\270\xb2\xe0\270\x97"); header("\103\x6f\156\x74\x65\x6e\x74\x2d\x54\x79\160\145\72\40\141\160\x70\x6c\151\143\x61\x74\151\157\156\57\152\x73\157\156\x3b\x20\143\150\x61\x72\163\x65\164\75\x75\164\x66\x2d\x38", true, 200); die(json_encode($d)); $data["\145\x72\x72\157\162"] = $d["\x6d\145\163\163\141\147\145"]; echo $this->load->view("\160\x61\156\145\x6c\137\165\163\145\162\x2f{$theme}\x2f\141\x6a\141\x78\137\154\x6f\141\144\57\141\x63\143\x6f\165\x6e\164\x2f\x77\151\164\x68\144\x72\x61\x77", $data, true); } } } } public function logingame_betflix($gamekey = false, $gameid = false) { if (empty($_SESSION["\x75\163\x65\x72"]["\154\157\147\147\x65\144\137\151\156"])) { $_SESSION["\x65\x72\162\x6f\162"]["\x67\x61\x6d\x65"] = "\x50\x6c\145\141\x73\x65\40\154\157\x67\151\x6e"; echo "\74\163\143\162\151\x70\164\x3e\x20\154\x6f\x63\x61\x74\x69\157\156\56\x68\162\x65\146\x20\75\40\x27" . base_url() . "\x27\73\x20\74\x2f\x73\x63\x72\x69\x70\x74\76"; } else { $tmp_agents = $this->main_model->get_result("\x61\x67\145\x6e\x74\137\141\x63\143\x6f\x75\x6e\164"); $agents = array(); $i = 0; foreach ($tmp_agents as $row) { $agents[$i] = $row; foreach (json_decode($row["\155\145\x74\x61\137\x64\x61\x74\141"], true) as $key => $val) { $agents[$i][$key] = $val; } unset($agents[$i]["\x6d\145\164\x61\137\x64\x61\x74\x61"]); $i++; } foreach ($agents as $key => $val) { if ($val["\x70\162\157\166\151\x64\145\162"] == "\141\155\x62") { continue; } $agentss[$val["\x70\x72\157\166\151\144\x65\162"]] = $val; } unset($agent["\155\x65\x74\x61\137\144\x61\x74\141"]); $agent = $agentss["\x62\x65\164\146\154\x69\170"]; if ($gamekey == false) { $d = array("\163\x74\141\x74\x75\163" => "\145\162\x72\x6f\x72", "\155\x65\163\x73\x61\x67\145" => "\xe0\xb9\x83\340\xb8\252\340\271\x88\xe0\xb9\x80\340\xb8\201\340\270\241\340\xb8\227\340\xb8\265\xe0\xb9\210\340\xb8\x95\340\271\211\340\xb8\xad\340\270\207\xe0\270\201\340\270\xb2\340\xb8\xa3"); $_SESSION["\x65\162\162\157\162"]["\147\141\x6d\145"] = "\xe0\271\x83\340\xb8\252\xe0\271\x88\xe0\xb9\200\340\xb8\201\xe0\270\241\340\xb8\x97\340\270\265\xe0\271\210\340\xb8\225\xe0\xb9\211\340\270\xad\xe0\xb8\207\xe0\xb8\x81\340\270\262\xe0\270\xa3"; echo "\x3c\x73\143\162\151\160\x74\x3e\40\154\x6f\x63\141\164\x69\157\x6e\x2e\150\162\145\x66\x20\x3d\x20\47" . base_url() . "\47\x3b\40\x3c\57\163\x63\x72\x69\160\164\x3e"; die; } $row_user = $this->user_model->get_user($_SESSION["\x75\x73\145\162"]["\151\x64"]); $sql = "\12\12\11\x9\x9\11\x53\x45\114\105\103\124\40\52\x20\xa\12\x9\x9\x9\11\106\x52\117\115\x20\162\145\160\157\162\x74\137\x74\162\141\156\163\141\143\x74\x69\x6f\x6e\xa\xa\x9\11\11\11\x77\x68\x65\x72\145\40\x75\163\145\x72\x6e\141\x6d\x65\40\75\40\x27" . $row_user["\x6d\x6f\142\x69\x6c\x65\x5f\156\157"] . "\x27\x20\141\x6e\x64\x20\164\x72\x61\156\x73\141\x63\164\151\x6f\x6e\x5f\164\171\x70\x65\40\x3d\x20\x27\144\145\x70\157\x73\151\x74\47\x20\x6c\151\155\x69\164\40\x31\12\xa\x9\x9\x9"; $deposit_ingame = json_decode($this->main_model->get_row("\155\145\x74\141\x5f\163\x65\x74\x74\151\156\x67", array("\167\x68\145\x72\145" => array("\x63\x6f\x6c" => "\151\x64", "\x76\141\154" => "\144\x65\x70\x6f\163\x69\164\137\x69\156\147\141\155\x65")))["\166\x61\x6c\x75\145"], true); $check_dep = true; if (isset($deposit_ingame["\145\156\141\142\154\x65"])) { if ($deposit_ingame["\145\156\141\142\154\x65"] != 1) { $check_dep = false; } } if ($check_dep) { $check_deposit = $this->main_model->custom_query_row("\12\12\11\11\x9\x9\x9{$sql}\xa\xa\11\11\11\x9"); } $tmp5 = json_decode($this->main_model->get_row("\155\x65\164\x61\x5f\163\145\x74\164\x69\156\x67", array("\x77\x68\145\x72\145" => array("\x63\157\154" => "\x69\x64", "\166\141\x6c" => "\142\145\x74\x66\154\151\x78\137\x67\141\x6d\145\x5f\163\x65\x74\164\x69\156\x67")))["\x76\x61\x6c\x75\145"], true); $tmp = array(); foreach ($tmp5 as $key => $val) { $tmp[] = $key; } $gamekey = strtolower($gamekey); if (!in_array(strtolower($gamekey), $tmp) && strtolower($gamekey) != "\x71\164\145\x63\150") { $d = array("\x73\164\x61\x74\x75\x73" => "\145\162\162\x6f\x72", "\155\145\x73\163\141\147\x65" => "\xe0\xb9\x80\xe0\270\x81\xe0\xb8\xa1\340\270\231\340\270\xb5\340\xb9\x89\xe0\xb8\242\xe0\xb8\261\340\270\x87\xe0\271\204\340\xb8\xa1\340\271\x88\xe0\271\x80\340\xb8\x9b\xe0\xb8\264\xe0\270\224\xe0\271\203\340\xb8\xab\xe0\xb9\x89\340\xb9\x80\xe0\xb8\245\xe0\271\x88\340\270\231"); $_SESSION["\x65\162\x72\x6f\162"]["\147\x61\x6d\145"] = "\xe0\xb9\x80\xe0\xb8\x81\xe0\270\241\xe0\xb8\231\xe0\270\xb5\xe0\xb9\x89\340\xb8\242\xe0\270\261\xe0\xb8\x87\xe0\271\204\xe0\270\241\xe0\xb9\210\xe0\xb9\x80\xe0\270\233\xe0\270\264\340\xb8\224\xe0\271\x83\340\270\253\xe0\xb9\211\340\xb9\200\340\270\xa5\xe0\xb9\x88\xe0\270\x99"; echo "\x3c\x73\x63\x72\x69\x70\x74\76\40\x6c\x6f\x63\x61\164\151\x6f\x6e\56\x68\x72\145\146\40\75\x20\x27" . base_url() . "\x27\73\x20\74\57\163\x63\x72\x69\160\x74\x3e"; die; } $tmp_check_promotion = $this->main_model->custom_query_row("\12\x9\x9\x9\x9\x73\145\x6c\145\x63\x74\x20\52\12\x9\x9\11\11\x66\x72\157\155\40\x6d\x65\164\x61\137\160\x72\157\155\157\x74\x69\x6f\x6e\xa\x9\x9\11\x9\x77\150\x65\x72\x65\40\x75\x5f\155\x6f\x62\151\x6c\145\x20\75\40\47" . $row_user["\155\157\x62\151\x6c\x65\x5f\156\157"] . "\47\40\141\156\144\40\x73\x74\x61\164\165\163\40\x3d\x20\61\12\x9\11\x9"); if (!empty($tmp_check_promotion)) { $tmp_pro = json_decode($tmp_check_promotion["\166\x61\154\x75\145"], true); $list_not_slot = array("\x61\x6d\x62", "\163\145\170\171", "\163\141", "\x61\x67", "\x67\x64\70\x38", "\167\155", "\144\x67", "\142\x67", "\x67\144\x67"); $game_type_pro = isset($tmp_pro["\107\141\155\145\x54\171\x70\x65"]) ? $tmp_pro["\107\x61\155\x65\x54\171\x70\145"] : "\x61\x6c\x6c"; if ($game_type_pro == "\163\154\x6f\164") { if (in_array($gamekey, $list_not_slot)) { $_SESSION["\145\x72\162\x6f\162"]["\147\141\155\145"] = "\340\270\241\340\270\265\340\270\232\340\xb8\262\340\xb8\207\340\xb8\xad\xe0\xb8\242\xe0\xb9\x88\340\xb8\262\xe0\270\x87\340\xb8\x9c\340\270\264\xe0\270\x94\340\xb8\236\340\270\xa5\340\270\xb2\340\xb8\224\40\xe0\270\204\xe0\270\xb8\xe0\270\x93\xe0\xb8\243\340\270\261\340\xb8\x9a\340\271\202\340\xb8\233\340\270\243\xe0\271\x82\340\xb8\241\340\xb8\212\340\270\261\340\xb9\x88\xe0\xb8\231\340\xb8\255\xe0\270\xa2\xe0\270\271\340\xb9\210\40\340\xb8\210\340\xb8\xb0\xe0\271\x80\340\xb8\x82\xe0\xb9\211\340\270\xb2\xe0\271\200\xe0\xb8\245\340\xb9\210\xe0\xb8\x99\340\271\x84\340\270\224\340\xb9\x89\xe0\271\x80\340\xb8\211\340\xb8\236\340\270\xb2\340\270\xb0\xe0\xb8\252\xe0\270\245\340\xb9\x87\xe0\xb8\255\xe0\xb8\x95"; echo "\74\163\143\x72\x69\x70\x74\76\x20\154\x6f\143\141\x74\x69\x6f\156\x2e\x68\162\145\x66\x20\75\x20\x27" . base_url() . "\x27\x3b\40\74\x2f\163\x63\x72\151\x70\x74\x3e"; die; } } elseif ($game_type_pro == "\x62\141\x63\143\141\162\x61\164") { if (!in_array($gamekey, $list_not_slot)) { $_SESSION["\x65\162\162\157\x72"]["\147\x61\x6d\x65"] = "\xe0\xb8\xa1\xe0\270\265\340\270\x9a\340\270\xb2\xe0\270\x87\xe0\xb8\xad\340\xb8\242\340\xb9\210\xe0\xb8\262\xe0\xb8\x87\xe0\270\234\xe0\xb8\264\xe0\xb8\x94\340\270\x9e\340\xb8\xa5\340\270\xb2\340\270\224\40\xe0\270\204\xe0\270\270\xe0\xb8\x93\340\xb8\xa3\xe0\xb8\xb1\340\270\232\xe0\271\202\340\270\233\340\xb8\243\xe0\271\202\340\xb8\241\340\270\212\340\xb8\xb1\340\271\x88\340\270\231\xe0\xb8\xad\340\xb8\xa2\340\xb8\xb9\340\xb9\210\40\340\270\210\xe0\270\260\340\271\200\340\xb8\202\340\271\211\340\xb8\262\340\xb9\x80\xe0\xb8\xa5\xe0\271\210\xe0\270\x99\340\271\204\340\270\224\340\271\211\xe0\271\x80\xe0\270\x89\340\xb8\x9e\340\270\xb2\xe0\270\xb0\xe0\270\x9a\340\xb8\xb2\xe0\xb8\x84\340\xb8\xb2\xe0\xb8\xa3\xe0\xb9\x88\xe0\270\262"; echo "\74\163\x63\x72\151\160\x74\76\40\154\x6f\x63\141\164\x69\157\x6e\56\x68\x72\145\x66\x20\x3d\x20\47" . base_url() . "\x27\73\40\74\x2f\163\143\x72\x69\160\164\x3e"; die; } } else { } } if ($gameid != false) { $api_data = array("\155\145\164\150\157\x64" => "\107\x4c\x49", "\x75\x73\x65\x72\x6e\x61\155\x65" => $row_user["\142\x65\x74\x66\x6c\151\x78\x5f\151\144"], "\x70\x72\157\x76\151\144\x65\162" => strtolower($gamekey), "\147\141\155\145\143\x6f\x64\x65" => strtolower($gameid), "\x6c\x61\156\147\165\141\x67\145" => "\164\150\141\151", "\x6f\x70\x65\156\107\141\x6d\145" => "\164\162\x75\x65"); } else { $api_data = array("\155\145\164\150\157\144" => "\107\114\x49", "\x75\x73\145\162\x6e\x61\155\145" => $row_user["\142\145\x74\146\x6c\151\x78\x5f\151\144"], "\160\x72\157\x76\x69\144\145\x72" => strtolower($gamekey), "\x67\x61\x6d\x65\143\x6f\x64\145" => "\156\x6f\156\145", "\154\x61\x6e\x67\x75\141\147\145" => "\164\150\141\x69", "\x6f\x70\x65\x6e\x47\x61\155\x65" => "\x74\162\x75\x65"); } $res = $this->betflix_model->SendApi($api_data); if (isset($res["\143\157\x64\x65"])) { if ($res["\143\157\144\x65"] == "\x30") { $d = array("\x73\x74\141\x74\165\x73" => "\163\x75\x63\x63\145\x73\x73", "\x6d\x65\163\163\x61\147\145" => "\340\271\200\340\xb8\202\xe0\xb9\x89\340\xb8\262\340\xb8\252\xe0\270\271\340\xb9\x88\xe0\270\243\xe0\xb8\260\340\xb8\232\340\xb8\x9a\340\xb9\x80\340\270\201\xe0\270\241\340\270\xaa\xe0\271\x8c", "\144\141\x74\x61" => $res["\165\x72\x6c"]); echo "\x3c\163\143\162\x69\x70\164\76\40\x6c\157\x63\141\x74\x69\x6f\156\56\150\162\x65\146\x20\x3d\x20\47" . $d["\x64\141\164\141"] . "\47\73\40\x3c\57\x73\143\162\x69\160\x74\76"; } else { $d = array("\x73\x74\141\164\x75\163" => "\x65\162\162\157\x72", "\x6d\x65\x73\x73\141\x67\x65" => "\340\270\xa1\xe0\xb8\265\xe0\270\232\340\xb8\xb2\xe0\xb8\x87\340\xb8\255\340\xb8\xa2\xe0\271\x88\340\xb8\xb2\340\xb8\x87\xe0\xb8\234\xe0\xb8\xb4\xe0\xb8\224\340\xb8\x9e\xe0\xb8\245\340\xb8\xb2\xe0\xb8\224\x20\xe0\xb8\x81\xe0\270\xa3\xe0\270\270\340\270\223\340\xb8\262\xe0\xb8\xa3\340\xb8\xad\340\xb8\213\340\xb8\261\xe0\xb8\201\xe0\270\204\340\xb8\243\xe0\xb8\271\340\xb9\x88\xe0\xb9\x81\xe0\270\xa5\xe0\270\xb0\340\xb8\245\340\270\255\xe0\270\207\xe0\xb8\xad\xe0\270\xb5\340\270\201\340\270\x84\340\270\xa3\xe0\xb8\xb1\340\xb9\211\xe0\270\x87"); $_SESSION["\145\162\x72\x6f\x72"]["\x67\141\x6d\x65"] = "\xe0\xb8\241\340\270\xb5\340\xb8\x9a\340\270\xb2\xe0\270\207\340\xb8\255\340\xb8\xa2\xe0\271\x88\340\270\xb2\340\xb8\207\xe0\270\234\xe0\xb8\xb4\xe0\270\224\340\270\236\340\xb8\xa5\340\270\xb2\340\270\x94\x20\xe0\270\x81\340\270\243\340\xb8\270\xe0\270\223\340\270\262\xe0\270\xa3\340\xb8\xad\xe0\270\x8b\340\270\xb1\340\xb8\201\340\270\204\xe0\xb8\xa3\340\270\xb9\340\271\x88\xe0\271\201\xe0\270\xa5\xe0\270\260\340\xb8\245\xe0\xb8\xad\xe0\270\207\xe0\270\255\xe0\xb8\xb5\xe0\xb8\201\340\xb8\204\xe0\xb8\243\340\xb8\xb1\340\271\211\340\270\207\40\76\76" . $res["\x6d\x65\163\163\141\147\145"]; echo "\x3c\x73\x63\x72\x69\x70\x74\x3e\x20\x6c\157\x63\x61\164\151\x6f\x6e\x2e\x68\x72\x65\x66\40\x3d\x20\x27" . base_url() . "\47\73\40\x3c\x2f\x73\143\162\x69\160\x74\x3e"; } } else { $d = array("\163\x74\141\164\x75\163" => "\145\162\x72\x6f\162", "\x6d\145\x73\163\141\147\145" => "\116\x6f\40\143\157\x64\145\x2e"); $_SESSION["\145\x72\x72\x6f\162"]["\147\141\x6d\145"] = "\x4e\157\x20\x63\x6f\x64\x65\x2e"; echo "\x3c\x73\143\162\151\x70\164\76\40\154\x6f\143\x61\x74\x69\157\156\56\x68\162\145\x66\x20\75\x20\x27" . base_url() . "\x27\x3b\x20\74\57\163\x63\x72\151\160\x74\76"; } } } public function logingame_betflix_lobby($gamekey = false, $gameid = false) { if (empty($_SESSION["\165\x73\145\x72"]["\x6c\x6f\x67\147\x65\144\137\151\156"])) { $_SESSION["\145\162\x72\157\x72"]["\147\x61\155\145"] = "\120\x6c\x65\x61\x73\145\x20\154\157\x67\x69\x6e"; echo "\74\163\x63\162\x69\160\x74\x3e\40\x6c\x6f\143\x61\164\x69\x6f\156\x2e\150\162\145\146\40\x3d\40\47" . base_url() . "\x27\x3b\x20\74\x2f\163\143\162\x69\160\164\x3e"; } else { $tmp_agents = $this->main_model->get_result("\x61\x67\x65\x6e\164\x5f\141\143\x63\x6f\x75\x6e\x74"); $agents = array(); $i = 0; foreach ($tmp_agents as $row) { $agents[$i] = $row; foreach (json_decode($row["\155\145\164\141\x5f\144\x61\164\141"], true) as $key => $val) { $agents[$i][$key] = $val; } unset($agents[$i]["\155\x65\164\x61\x5f\144\141\164\141"]); $i++; } foreach ($agents as $key => $val) { if ($val["\160\162\x6f\x76\151\x64\x65\162"] == "\141\x6d\x62") { continue; } $agentss[$val["\x70\162\x6f\166\151\x64\x65\x72"]] = $val; } unset($agent["\155\145\x74\x61\x5f\x64\x61\x74\141"]); $agent = $agentss["\x62\x65\164\146\x6c\151\x78"]; $row_user = $this->user_model->get_user($_SESSION["\x75\x73\x65\162"]["\x69\x64"]); $tmp5 = json_decode($this->main_model->get_row("\155\x65\164\141\137\163\x65\x74\x74\x69\x6e\147", array("\167\150\x65\x72\145" => array("\143\157\x6c" => "\x69\x64", "\166\x61\154" => "\x62\145\164\146\154\151\170\137\x67\x61\x6d\x65\x5f\163\x65\164\x74\x69\x6e\x67")))["\166\x61\x6c\x75\x65"], true); $tmp = array(); foreach ($tmp5 as $key => $val) { $tmp[] = $key; } $api_data = array("\x6d\145\x74\x68\x6f\x64" => "\x47\114\x49\114\x42", "\x75\x73\145\162\x6e\141\155\x65" => $row_user["\x62\x65\164\x66\154\151\x78\x5f\151\144"]); $res = $this->betflix_model->SendApi($api_data); if (isset($res["\x63\157\x64\x65"])) { if ($res["\143\157\144\145"] == "\x30") { $d = array("\x73\164\x61\x74\x75\x73" => "\163\x75\143\x63\145\x73\163", "\155\x65\163\x73\x61\x67\145" => "\xe0\xb9\x80\340\270\202\340\271\x89\xe0\xb8\262\xe0\270\xaa\xe0\270\271\340\xb9\x88\340\270\243\340\xb8\260\xe0\270\x9a\340\xb8\232\340\xb9\x80\xe0\270\x81\xe0\270\xa1\340\xb8\xaa\xe0\xb9\214", "\144\141\x74\141" => json_decode($tmp_agents[0]["\155\145\164\x61\x5f\144\141\x74\141"])->end_point_game . "\x2f\154\x6f\x67\x69\156\x2f\x61\160\x69\154\x6f\x67\x69\x6e\57" . $res["\x74\x6f\x6b\145\156"]); echo "\74\163\x63\x72\x69\x70\164\x3e\x20\x6c\x6f\143\141\164\151\157\x6e\56\x68\162\145\x66\40\75\40\47" . $d["\144\x61\164\141"] . "\47\73\40\x3c\x2f\163\143\162\x69\x70\164\x3e"; } else { $d = array("\x73\x74\x61\x74\x75\163" => "\x65\162\162\x6f\162", "\x6d\145\x73\x73\x61\147\145" => "\340\xb8\xa1\xe0\270\265\340\270\x9a\340\270\xb2\xe0\xb8\x87\xe0\270\255\xe0\270\242\xe0\271\210\340\xb8\262\340\xb8\x87\xe0\270\x9c\340\xb8\xb4\xe0\270\224\340\270\x9e\xe0\270\xa5\340\270\xb2\xe0\270\224\x20\340\xb8\201\xe0\xb8\xa3\xe0\xb8\270\340\270\x93\xe0\270\xb2\340\xb8\243\xe0\xb8\255\340\270\213\340\270\261\xe0\270\201\340\xb8\x84\340\xb8\243\340\270\271\xe0\xb9\x88\340\271\x81\340\270\245\340\xb8\260\xe0\270\xa5\xe0\270\xad\xe0\270\207\340\270\xad\xe0\xb8\xb5\xe0\xb8\201\340\270\204\xe0\xb8\243\340\xb8\xb1\340\xb9\x89\340\270\x87"); $_SESSION["\x65\162\x72\x6f\x72"]["\x67\141\155\145"] = "\xe0\xb8\241\340\xb8\265\xe0\270\232\340\270\262\340\xb8\x87\xe0\270\xad\340\xb8\xa2\xe0\xb9\x88\340\270\262\340\270\x87\340\xb8\x9c\340\270\xb4\xe0\xb8\224\xe0\270\236\340\270\245\340\270\xb2\340\xb8\x94\40\340\270\x81\xe0\270\243\xe0\270\xb8\xe0\xb8\x93\340\xb8\262\340\xb8\243\340\xb8\255\xe0\270\x8b\xe0\xb8\261\xe0\xb8\201\340\xb8\204\340\xb8\xa3\340\270\xb9\340\271\x88\340\271\x81\xe0\270\245\340\270\260\340\xb8\xa5\xe0\270\xad\340\270\x87\xe0\270\255\340\270\265\340\xb8\x81\xe0\270\x84\xe0\xb8\xa3\340\xb8\261\340\271\211\xe0\xb8\x87\40\76\x3e" . $res["\155\x65\x73\163\141\x67\x65"]; echo "\74\x73\x63\x72\151\x70\164\76\x20\x6c\157\143\141\164\151\x6f\x6e\56\150\x72\145\146\40\75\40\x27" . base_url() . "\47\x3b\40\x3c\x2f\x73\x63\x72\151\160\164\76"; } } else { $d = array("\163\164\141\x74\165\x73" => "\145\x72\x72\157\x72", "\x6d\x65\163\163\141\147\145" => "\116\x6f\40\x63\157\x64\x65\x2e"); $_SESSION["\x65\162\x72\157\162"]["\147\141\155\145"] = "\116\x6f\x20\x63\157\x64\x65\56"; echo "\x3c\163\143\162\151\160\x74\76\x20\154\x6f\143\x61\164\151\x6f\x6e\x2e\x68\x72\x65\146\x20\x3d\x20\x27" . base_url() . "\47\x3b\x20\74\x2f\x73\x63\x72\x69\160\164\76"; } } } public function logingame($gamekey = false, $gameid = false) { if (empty($_SESSION["\165\163\x65\x72"]["\x6c\157\x67\x67\145\x64\x5f\151\156"])) { $_SESSION["\145\162\x72\157\162"]["\x67\x61\x6d\x65"] = "\x50\x6c\145\141\163\x65\x20\x6c\x6f\x67\151\x6e"; echo "\x3c\163\x63\162\151\160\x74\76\40\x6c\x6f\143\141\164\151\157\156\56\x68\x72\x65\x66\x20\75\x20\47" . base_url() . "\x27\73\x20\x3c\57\163\x63\x72\151\x70\164\x3e"; } else { $agent = $this->main_model->custom_query_row("\xa\xa\11\x9\11\11\163\145\x6c\145\x63\x74\x20\52\12\xa\x9\11\11\x9\x66\162\157\155\x20\141\x67\145\x6e\164\137\x61\x63\143\x6f\165\156\x74\12\12\x9\x9\x9\11\167\x68\145\x72\x65\x20\x73\x74\141\164\x75\163\40\x3d\x20\61\12\12\x9\x9\x9"); foreach (json_decode($agent["\155\145\x74\141\x5f\x64\x61\x74\141"], true) as $key => $val) { $agent[$key] = $val; } unset($agent["\155\145\x74\x61\x5f\x64\x61\164\141"]); if ($gamekey == false) { $d = array("\163\x74\x61\x74\x75\163" => "\145\162\162\157\162", "\x6d\x65\x73\163\x61\x67\x65" => "\xe0\xb9\x83\xe0\270\xaa\xe0\xb9\210\340\xb9\x80\xe0\270\201\xe0\xb8\241\xe0\270\x97\xe0\270\265\340\271\x88\xe0\xb8\x95\340\xb9\211\xe0\270\255\340\xb8\207\340\270\x81\xe0\xb8\262\xe0\xb8\xa3"); $_SESSION["\145\162\x72\157\x72"]["\x67\141\x6d\145"] = "\340\271\x83\xe0\xb8\xaa\340\271\210\xe0\xb9\200\xe0\xb8\x81\340\270\xa1\xe0\270\227\340\xb8\xb5\340\271\210\xe0\xb8\225\340\xb9\x89\340\xb8\255\340\270\207\xe0\270\201\340\270\xb2\340\270\xa3"; echo "\x3c\x73\143\162\151\160\x74\x3e\40\x6c\x6f\x63\141\x74\151\157\156\56\x68\162\x65\146\x20\x3d\x20\47" . base_url() . "\x27\x3b\x20\74\57\163\143\162\151\160\164\x3e"; die; } $row_user = $this->user_model->get_user($_SESSION["\x75\163\x65\162"]["\x69\x64"]); $sql = "\12\xa\x9\11\x9\11\x53\105\x4c\105\x43\x54\40\x2a\40\xa\12\x9\x9\x9\x9\x46\x52\117\x4d\40\162\x65\x70\157\162\164\x5f\x74\162\141\156\163\x61\x63\164\x69\x6f\156\xa\xa\x9\11\x9\11\167\x68\145\162\x65\x20\x75\163\x65\x72\x6e\141\x6d\145\x20\75\40\47" . $row_user["\x6d\157\x62\151\x6c\145\x5f\x6e\x6f"] . "\47\x20\141\x6e\x64\40\164\162\x61\x6e\x73\x61\143\x74\151\x6f\156\x5f\164\171\160\x65\x20\x3d\x20\x27\x64\x65\x70\157\x73\151\x74\47\40\x6c\x69\155\151\164\40\x31\xa\xa\x9\11\11"; $deposit_ingame = json_decode($this->main_model->get_row("\x6d\145\164\141\x5f\163\145\164\164\151\x6e\x67", array("\x77\x68\x65\162\x65" => array("\143\157\154" => "\151\x64", "\166\141\154" => "\x64\x65\x70\157\163\151\164\137\x69\x6e\147\141\x6d\x65")))["\x76\141\x6c\x75\x65"], true); $check_dep = true; if (isset($deposit_ingame["\145\156\141\142\154\145"])) { if ($deposit_ingame["\145\x6e\141\x62\154\x65"] != 1) { $check_dep = false; } } if ($check_dep) { $check_deposit = $this->main_model->custom_query_row("\xa\12\x9\x9\x9\11\x9{$sql}\xa\xa\x9\11\x9\x9"); if (empty($check_deposit)) { $d = array("\x73\164\141\164\165\163" => "\145\162\162\157\162", "\x6d\x65\163\163\141\x67\145" => "\340\xb9\204\340\xb8\241\340\xb9\x88\340\xb8\252\xe0\270\262\340\270\241\340\xb8\262\xe0\xb8\243\xe0\270\226\xe0\xb9\x80\xe0\270\202\xe0\xb9\x89\xe0\270\xb2\340\xb9\x80\xe0\xb8\245\xe0\271\210\340\270\231\340\271\x84\340\xb8\x94\xe0\271\x89\x20\340\270\x81\xe0\xb8\xa3\340\270\270\340\xb8\223\xe0\xb8\262\xe0\xb8\x9d\xe0\xb8\xb2\xe0\xb8\201\xe0\xb9\x80\340\xb8\207\xe0\xb8\264\xe0\270\231\xe0\271\200\340\270\x9e\340\xb8\xb7\xe0\271\210\xe0\xb8\255\340\271\200\340\270\202\xe0\xb9\211\xe0\270\262\xe0\xb9\200\xe0\xb8\xa5\xe0\xb9\210\340\270\x99\xe0\271\200\340\270\x81\xe0\xb8\241"); echo json_encode($d, JSON_UNESCAPED_UNICODE); $_SESSION["\x65\162\162\157\x72"]["\147\141\x6d\145"] = "\340\xb9\x84\xe0\xb8\241\xe0\xb9\210\340\270\xaa\xe0\270\262\xe0\270\241\340\270\xb2\xe0\270\xa3\340\270\x96\xe0\271\x80\340\xb8\x82\xe0\xb9\211\xe0\270\262\340\271\x80\xe0\xb8\xa5\xe0\xb9\210\xe0\270\231\340\271\x84\xe0\xb8\x94\340\xb9\211\x20\340\270\201\340\xb8\xa3\xe0\270\xb8\xe0\xb8\x93\340\270\262\340\xb8\235\xe0\270\xb2\340\270\x81\xe0\xb9\x80\xe0\xb8\207\340\xb8\xb4\340\xb8\231\xe0\xb9\x80\xe0\xb8\x9e\340\xb8\267\xe0\xb9\210\340\xb8\255\340\xb9\x80\xe0\xb8\202\340\271\211\340\xb8\xb2\xe0\271\200\xe0\xb8\xa5\xe0\271\x88\xe0\xb8\x99\340\271\200\xe0\270\x81\340\270\xa1"; echo "\x3c\x73\143\162\x69\160\164\x3e\x20\154\x6f\143\141\x74\151\157\156\x2e\150\x72\145\146\x20\x3d\40\x27" . base_url() . "\47\x3b\x20\x3c\x2f\x73\x63\x72\x69\160\164\76"; die; } } $tmp5 = json_decode($this->main_model->get_row("\155\x65\x74\141\137\163\x65\x74\x74\x69\x6e\x67", array("\167\150\145\x72\145" => array("\143\157\x6c" => "\x69\144", "\x76\x61\x6c" => "\141\x6d\142\x5f\x67\x61\155\145\137\x73\x65\x74\x74\x69\x6e\147")))["\166\141\154\165\145"], true); $tmp = array(); foreach ($tmp5 as $key => $val) { $tmp[] = $key; } if (!in_array($gamekey, $tmp)) { $d = array("\163\x74\141\164\165\163" => "\145\x72\x72\157\162", "\155\x65\x73\163\141\x67\145" => "\xe0\xb9\x80\xe0\270\x81\xe0\270\xa1\xe0\xb8\x99\xe0\xb8\265\340\xb9\x89\340\xb8\242\340\270\xb1\340\xb8\207\340\271\204\xe0\xb8\241\xe0\xb9\x88\340\271\200\xe0\270\233\340\270\xb4\xe0\270\x94\xe0\271\x83\340\270\xab\340\271\x89\340\271\200\340\270\245\340\xb9\210\xe0\xb8\231"); $_SESSION["\x65\162\x72\157\x72"]["\x67\141\x6d\145"] = "\xe0\xb9\x80\340\270\x81\xe0\xb8\xa1\xe0\xb8\x99\340\270\265\xe0\xb9\211\xe0\xb8\xa2\xe0\xb8\261\xe0\xb8\207\xe0\271\204\xe0\xb8\xa1\xe0\xb9\x88\xe0\xb9\x80\xe0\xb8\233\340\270\264\xe0\xb8\224\xe0\xb9\203\340\xb8\xab\340\xb9\x89\340\271\x80\340\270\245\xe0\271\210\340\xb8\231"; echo "\x3c\163\x63\162\x69\x70\x74\x3e\40\x6c\x6f\x63\141\x74\x69\157\x6e\56\x68\x72\145\x66\x20\x3d\40\x27" . base_url() . "\47\73\40\74\x2f\x73\143\162\151\x70\x74\76"; die; } $tmp_check_promotion = $this->main_model->custom_query_row("\xa\11\x9\x9\11\163\145\x6c\x65\x63\x74\40\52\12\11\11\11\11\146\x72\x6f\x6d\40\x6d\145\x74\141\x5f\160\162\157\x6d\157\164\151\x6f\156\xa\11\11\x9\11\x77\150\x65\162\145\x20\165\x5f\x6d\x6f\x62\x69\154\x65\x20\x3d\x20\47" . $row_user["\155\x6f\x62\x69\154\145\x5f\x6e\x6f"] . "\x27\x20\141\156\x64\40\x73\164\x61\x74\x75\163\40\75\40\x31\xa\11\x9\x9"); if (!empty($tmp_check_promotion)) { $tmp_pro = json_decode($tmp_check_promotion["\166\141\x6c\x75\x65"], true); $list_not_slot = array("\141\x6d\142", "\x73\145\170\171", "\x73\141", "\141\147", "\147\144\x38\x38", "\167\155", "\x64\x67", "\x62\x67", "\147\144\x67"); $game_type_pro = isset($tmp_pro["\107\x61\x6d\145\x54\x79\160\145"]) ? $tmp_pro["\107\x61\155\145\x54\x79\160\x65"] : "\x61\x6c\x6c"; if ($game_type_pro == "\163\x6c\157\164") { if (in_array($gamekey, $list_not_slot)) { $_SESSION["\x65\162\x72\x6f\162"]["\147\x61\155\x65"] = "\xe0\xb8\xa1\xe0\xb8\265\340\xb8\232\340\270\262\340\270\207\xe0\xb8\xad\xe0\270\xa2\340\271\x88\340\xb8\xb2\340\xb8\207\xe0\xb8\234\340\270\xb4\340\xb8\224\xe0\xb8\x9e\xe0\xb8\xa5\340\270\xb2\340\xb8\224\x20\340\270\x84\xe0\xb8\270\340\xb8\223\xe0\xb8\xa3\340\xb8\261\xe0\xb8\x9a\340\xb9\x82\340\xb8\233\340\xb8\243\340\271\202\340\xb8\241\340\xb8\212\340\270\xb1\340\271\x88\340\270\231\340\270\255\xe0\270\xa2\340\xb8\xb9\340\271\210\x20\xe0\270\210\340\xb8\xb0\340\xb9\x80\340\270\202\xe0\xb9\211\340\xb8\262\xe0\xb9\x80\xe0\270\xa5\xe0\271\210\340\270\231\340\271\x84\340\270\x94\340\271\211\xe0\xb9\200\xe0\xb8\x89\xe0\270\x9e\340\xb8\xb2\xe0\270\260\340\270\xaa\xe0\xb8\245\xe0\271\x87\340\270\255\340\270\x95"; echo "\74\163\x63\162\x69\160\164\76\40\x6c\x6f\x63\x61\x74\x69\157\156\x2e\x68\162\x65\146\x20\x3d\x20\x27" . base_url() . "\47\x3b\40\x3c\x2f\x73\143\162\x69\x70\164\x3e"; die; } } elseif ($game_type_pro == "\142\141\x63\x63\x61\162\x61\x74") { if (!in_array($gamekey, $list_not_slot)) { $_SESSION["\145\162\162\x6f\162"]["\x67\x61\155\x65"] = "\xe0\270\241\340\xb8\xb5\340\xb8\x9a\xe0\xb8\xb2\xe0\270\x87\xe0\xb8\255\xe0\xb8\242\340\xb9\210\xe0\xb8\262\xe0\xb8\207\340\xb8\234\340\xb8\264\340\270\x94\xe0\270\236\xe0\xb8\xa5\340\270\xb2\xe0\xb8\224\40\340\xb8\x84\xe0\270\xb8\340\270\x93\xe0\270\243\340\xb8\261\340\270\232\340\271\202\xe0\270\x9b\340\270\243\340\xb9\x82\xe0\270\xa1\xe0\xb8\212\xe0\xb8\261\xe0\271\210\xe0\xb8\x99\xe0\xb8\255\xe0\xb8\xa2\xe0\270\271\340\xb9\210\x20\xe0\xb8\210\xe0\270\xb0\xe0\xb9\200\xe0\270\202\340\xb9\211\340\270\262\xe0\xb9\x80\340\xb8\245\340\xb9\x88\xe0\270\231\xe0\271\x84\xe0\270\x94\340\271\211\xe0\xb9\200\xe0\xb8\211\340\xb8\x9e\xe0\xb8\xb2\340\xb8\260\340\xb8\x9a\340\xb8\xb2\340\270\204\340\xb8\xb2\340\270\xa3\xe0\271\210\xe0\xb8\xb2"; echo "\74\163\x63\162\x69\160\x74\76\x20\154\x6f\x63\141\x74\151\x6f\156\56\150\162\145\146\x20\75\40\47" . base_url() . "\x27\73\x20\x3c\57\x73\143\x72\151\x70\164\76"; die; } } else { } } if ($gamekey == "\x73\x70\157\x72\164") { $d = array("\x73\x74\141\x74\165\x73" => "\x73\165\x63\143\145\163\163", "\155\145\x73\x73\141\147\145" => "\xe0\271\200\340\xb8\x82\xe0\xb9\x89\340\xb8\262\xe0\xb8\252\xe0\270\xb9\340\271\x88\340\270\243\xe0\xb8\260\xe0\270\x9a\340\270\x9a\340\270\xaa\340\xb8\263\xe0\xb9\200\xe0\270\xa3\340\271\207\xe0\xb8\210", "\144\141\164\141" => $agent["\x65\156\144\137\160\157\151\156\x74\x5f\x67\x61\155\145"] . "\57\x6c\x6f\x67\151\156\x2f\141\x75\x74\x6f\57\77\165\x73\x65\x72\156\141\x6d\x65\x3d" . $row_user["\151\x64"] . "\x26\160\141\163\163\167\x6f\162\x64\75" . $row_user["\x70\141\163\x73\167\x6f\162\144"] . "\x26\165\x72\154\75" . base_url() . "\46\x68\x61\x73\x68\75" . $agent["\x68\x61\x73\x68"] . "\46\163\x74\x61\164\145\x3d\163\x70\157\x72\164\46\x6c\141\156\147\75\x74\150"); echo "\x3c\163\143\x72\x69\x70\164\76\40\x6c\157\143\141\164\x69\157\156\x2e\150\162\x65\x66\x20\75\x20\x27" . $d["\144\141\164\141"] . "\47\x3b\40\74\57\163\x63\162\151\x70\x74\76"; die; } if ($gameid != false) { $api_data = array("\155\x65\x74\150\x6f\144" => "\107\114\111", "\165\x73\145\162\x6e\141\x6d\x65" => $row_user["\141\155\142\x5f\151\144"], "\x70\x61\163\163\167\157\x72\x64" => $row_user["\x70\x61\x73\163\167\x6f\x72\144"], "\x69\163\115\157\x62\151\x6c\145" => false, "\147\141\155\145\x49\144" => $gameid, "\147\141\x6d\145\x5f\x6b\x65\171" => $gamekey); } else { $api_data = array("\155\x65\164\150\157\144" => "\x47\114\x49", "\165\163\x65\x72\x6e\x61\x6d\145" => $row_user["\x61\155\142\x5f\151\144"], "\x70\x61\x73\163\x77\x6f\x72\144" => $row_user["\x70\x61\x73\x73\167\157\162\x64"], "\151\163\x4d\157\142\x69\x6c\145" => false, "\x67\x61\155\x65\x5f\153\145\x79" => $gamekey); } $res = $this->amb_model->SendApi($api_data); if (isset($res["\x63\x6f\144\x65"])) { if ($res["\143\157\144\145"] == "\x30") { $d = array("\163\x74\141\x74\165\x73" => "\163\165\143\143\145\x73\163", "\x6d\145\163\x73\141\x67\145" => "\340\xb9\x80\340\270\x82\xe0\xb9\x89\340\270\xb2\xe0\270\252\xe0\270\271\340\271\x88\340\270\243\340\xb8\xb0\xe0\xb8\232\340\xb8\232\340\271\200\xe0\270\x81\xe0\270\xa1\340\270\xaa\340\271\214", "\144\141\x74\141" => $res["\x75\x72\154"]); echo "\74\x73\143\162\x69\x70\x74\76\x20\x6c\157\x63\x61\x74\151\157\x6e\56\150\162\x65\146\40\x3d\x20\47" . $d["\x64\141\164\x61"] . "\x27\73\x20\x3c\x2f\x73\143\162\x69\x70\x74\x3e"; } else { $d = array("\163\x74\141\x74\165\x73" => "\145\x72\162\157\x72", "\x6d\x65\x73\163\141\147\x65" => "\340\270\xa1\xe0\xb8\xb5\xe0\xb8\x9a\340\270\xb2\xe0\xb8\x87\xe0\xb8\255\340\xb8\242\xe0\271\x88\340\xb8\262\xe0\xb8\207\340\xb8\234\xe0\xb8\xb4\xe0\270\224\340\270\x9e\xe0\270\xa5\340\270\xb2\xe0\270\x94\40\340\270\x81\340\xb8\243\340\xb8\xb8\340\xb8\223\340\270\xb2\xe0\270\xa3\xe0\270\255\xe0\270\x8b\xe0\270\261\xe0\xb8\x81\340\xb8\204\xe0\xb8\243\340\xb8\271\xe0\271\210\xe0\271\x81\xe0\270\xa5\xe0\xb8\260\340\xb8\xa5\xe0\270\255\xe0\xb8\x87\xe0\xb8\xad\xe0\270\xb5\xe0\270\x81\xe0\xb8\204\xe0\xb8\xa3\xe0\xb8\xb1\xe0\271\211\xe0\xb8\x87"); $_SESSION["\145\162\x72\157\162"]["\147\x61\x6d\145"] = "\340\270\241\xe0\xb8\xb5\340\xb8\x9a\xe0\270\xb2\340\xb8\x87\xe0\xb8\xad\xe0\xb8\xa2\340\xb9\210\340\xb8\xb2\xe0\xb8\x87\xe0\xb8\234\xe0\270\xb4\xe0\270\x94\xe0\270\x9e\xe0\xb8\245\xe0\270\262\xe0\xb8\x94\40\xe0\270\x81\340\xb8\xa3\xe0\270\xb8\xe0\xb8\223\xe0\xb8\xb2\xe0\270\xa3\xe0\xb8\255\340\270\x8b\340\270\261\xe0\xb8\201\340\xb8\204\340\270\243\xe0\270\xb9\340\271\210\340\271\201\340\xb8\245\340\xb8\xb0\340\270\xa5\xe0\xb8\255\xe0\xb8\207\xe0\270\255\340\xb8\xb5\xe0\xb8\201\340\270\x84\xe0\270\xa3\xe0\270\261\340\xb9\x89\340\xb8\x87"; echo "\x3c\x73\x63\x72\151\160\x74\x3e\40\154\x6f\143\141\164\151\x6f\x6e\x2e\150\x72\145\146\40\x3d\x20\x27" . base_url() . "\47\73\x20\x3c\x2f\x73\x63\162\151\160\164\x3e"; } } else { $d = array("\163\164\141\164\x75\163" => "\145\162\162\x6f\x72", "\x6d\145\x73\163\x61\147\145" => "\116\157\40\143\157\144\145\x2e"); $_SESSION["\x65\x72\x72\157\162"]["\147\141\x6d\145"] = "\x4e\157\40\143\157\144\145\x2e"; echo "\x3c\163\143\162\x69\160\164\x3e\x20\154\157\x63\x61\x74\151\x6f\x6e\56\x68\162\x65\x66\x20\x3d\x20\47" . base_url() . "\x27\x3b\40\74\57\163\143\x72\151\160\x74\x3e"; } } } public function logingame2($gamekey = false, $gameid = false) { if (empty($_SESSION["\165\x73\x65\162"]["\154\x6f\x67\x67\x65\x64\137\151\156"])) { $d = array("\x73\x74\141\x74\165\163" => "\145\x72\x72\157\x72", "\x6d\163\147" => "\x50\154\145\141\x73\145\x20\154\x6f\x67\151\x6e", "\144\141\164\141" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); } else { $agent = $this->main_model->custom_query_row("\12\xa\11\11\x9\x9\x73\x65\154\145\x63\x74\x20\52\12\xa\x9\x9\x9\x9\x66\162\157\155\40\141\x67\x65\x6e\164\137\x61\143\143\157\x75\x6e\164\12\xa\11\x9\11\11\x77\x68\x65\162\145\40\163\164\x61\164\165\x73\40\75\40\61\12\xa\x9\x9\x9"); foreach (json_decode($agent["\x6d\145\x74\x61\x5f\144\141\164\141"], true) as $key => $val) { $agent[$key] = $val; } unset($agent["\x6d\x65\x74\x61\137\144\141\164\141"]); if ($gamekey == false) { $d = array("\x73\x74\141\x74\165\163" => "\145\162\x72\157\x72", "\155\145\163\163\141\x67\145" => "\340\271\x83\xe0\xb8\252\xe0\271\x88\340\xb9\200\340\xb8\201\xe0\xb8\xa1\340\270\227\xe0\xb8\265\xe0\271\x88\xe0\xb8\225\340\271\211\340\xb8\xad\xe0\270\207\xe0\xb8\x81\340\xb8\xb2\xe0\xb8\243"); $d = array("\163\x74\141\x74\x75\163" => "\145\x72\x72\x6f\162", "\x6d\x73\x67" => "\xe0\271\x83\340\270\xaa\xe0\xb9\210\xe0\xb9\x80\xe0\270\201\340\xb8\xa1\xe0\xb8\x97\xe0\270\xb5\xe0\271\210\340\xb8\225\xe0\271\211\340\270\xad\xe0\270\207\xe0\xb8\201\340\270\xb2\xe0\xb8\xa3", "\x64\141\164\141" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); die; } $row_user = $this->user_model->get_user($_SESSION["\x75\163\x65\x72"]["\x69\144"]); $sql = "\xa\12\x9\11\x9\x9\123\105\114\105\103\124\x20\52\40\xa\xa\x9\11\x9\x9\x46\122\x4f\115\40\162\145\160\x6f\162\164\137\164\162\x61\x6e\x73\141\143\164\x69\157\x6e\12\12\11\11\x9\11\167\150\x65\162\x65\x20\x75\163\145\x72\156\x61\155\145\x20\x3d\x20\x27" . $row_user["\x6d\157\x62\151\x6c\x65\x5f\156\157"] . "\47\x20\x61\x6e\144\40\x74\x72\x61\156\x73\141\x63\x74\x69\x6f\156\x5f\164\171\160\x65\x20\x3d\x20\x27\144\145\x70\157\x73\x69\x74\47\x20\154\x69\155\151\164\x20\x31\xa\xa\x9\11\x9"; $deposit_ingame = json_decode($this->main_model->get_row("\x6d\x65\164\x61\x5f\x73\x65\164\x74\x69\x6e\x67", array("\167\150\x65\x72\x65" => array("\143\157\x6c" => "\x69\144", "\166\141\154" => "\144\145\160\157\163\x69\164\137\151\156\147\141\x6d\x65")))["\x76\141\x6c\x75\145"], true); $check_dep = true; if (isset($deposit_ingame["\145\x6e\141\142\x6c\145"])) { if ($deposit_ingame["\x65\x6e\141\x62\x6c\145"] != 1) { $check_dep = false; } } if ($check_dep) { $check_deposit = $this->main_model->custom_query_row("\xa\12\11\11\11\x9\x9{$sql}\xa\xa\x9\11\x9\x9"); if (empty($check_deposit)) { $d = array("\x73\164\x61\164\165\163" => "\x65\162\162\x6f\162", "\x6d\x65\163\x73\x61\x67\x65" => "\xe0\xb9\204\340\xb8\241\340\xb9\x88\340\270\252\340\270\xb2\340\270\241\xe0\xb8\262\xe0\270\243\340\270\x96\340\xb9\x80\340\xb8\x82\340\271\211\xe0\270\262\340\271\x80\xe0\xb8\xa5\xe0\xb9\210\340\xb8\x99\xe0\271\204\xe0\270\224\340\271\211\40\xe0\xb8\201\340\270\xa3\xe0\270\270\xe0\270\223\xe0\270\xb2\340\xb8\x9d\340\270\xb2\xe0\270\201\340\xb9\x80\xe0\270\x87\340\xb8\264\340\270\x99\340\xb9\200\xe0\xb8\236\340\xb8\xb7\xe0\271\210\xe0\xb8\xad\340\xb9\200\xe0\270\x82\340\271\211\xe0\270\262\340\xb9\200\340\xb8\245\340\271\210\xe0\xb8\x99\340\271\200\340\270\x81\xe0\xb8\xa1"); $d = array("\x73\x74\x61\164\165\163" => "\145\x72\162\157\x72", "\155\x73\147" => "\340\xb9\x84\340\xb8\241\xe0\xb9\210\xe0\270\252\xe0\270\xb2\340\xb8\241\xe0\xb8\262\340\xb8\243\340\xb8\226\340\271\200\xe0\270\202\xe0\xb9\211\340\270\262\340\271\x80\340\270\xa5\xe0\271\210\340\270\231\xe0\271\x84\xe0\xb8\x94\340\xb9\211\40\xe0\270\201\340\270\xa3\xe0\xb8\270\340\270\x93\340\xb8\xb2\340\xb8\x9d\xe0\270\262\340\270\x81\xe0\xb9\200\xe0\270\207\340\xb8\xb4\340\xb8\231\xe0\271\x80\340\270\236\340\xb8\267\340\xb9\210\340\270\255\340\xb9\200\xe0\xb8\x82\xe0\271\211\340\xb8\xb2\340\271\200\340\270\xa5\340\271\x88\340\270\x99\xe0\xb9\x80\xe0\xb8\201\xe0\xb8\241", "\144\141\x74\141" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); die; } } $tmp5 = json_decode($this->main_model->get_row("\155\145\164\x61\x5f\x73\145\x74\x74\151\x6e\x67", array("\167\x68\x65\x72\x65" => array("\x63\157\154" => "\x69\144", "\x76\x61\154" => "\142\145\x74\146\x6c\151\170\137\147\141\x6d\145\x5f\x73\x65\x74\164\x69\156\x67")))["\x76\141\x6c\x75\145"], true); $tmp = array(); foreach ($tmp5 as $key => $val) { $tmp[] = $key; } if (!in_array($gamekey, $tmp)) { $d = array("\163\164\141\x74\165\x73" => "\x65\x72\x72\x6f\162", "\155\x65\x73\x73\x61\147\145" => "\340\xb9\x80\xe0\xb8\201\xe0\270\xa1\xe0\xb8\x99\340\270\xb5\xe0\xb9\211\xe0\xb8\242\340\270\261\xe0\xb8\207\xe0\xb9\x84\340\270\xa1\340\xb9\210\340\xb9\200\xe0\xb8\x9b\xe0\270\264\xe0\270\x94\340\xb9\203\xe0\270\253\xe0\271\x89\340\271\200\340\xb8\245\340\271\x88\xe0\xb8\231"); $d = array("\x73\164\141\164\x75\163" => "\x65\162\162\x6f\x72", "\155\163\x67" => "\xe0\271\200\340\270\x81\xe0\270\xa1\340\270\x99\xe0\270\xb5\xe0\xb9\x89\xe0\xb8\242\340\xb8\xb1\xe0\270\x87\xe0\271\204\340\xb8\241\340\271\210\xe0\xb9\x80\xe0\xb8\x9b\xe0\270\xb4\340\xb8\224\xe0\271\203\340\xb8\xab\340\xb9\211\340\271\200\xe0\270\xa5\xe0\271\x88\xe0\xb8\x99", "\144\x61\x74\x61" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); die; } $tmp_check_promotion = $this->main_model->custom_query_row("\xa\11\x9\x9\x9\163\x65\x6c\145\x63\x74\40\52\12\11\x9\x9\11\x66\x72\157\x6d\x20\x6d\x65\x74\141\x5f\x70\x72\x6f\x6d\x6f\164\151\x6f\156\xa\x9\x9\11\11\x77\150\145\162\x65\40\x75\x5f\155\x6f\x62\x69\154\x65\40\75\40\47" . $row_user["\x6d\x6f\x62\151\154\x65\x5f\156\x6f"] . "\x27\40\x61\156\x64\40\x73\164\141\164\165\163\40\x3d\x20\61\xa\x9\x9\x9"); if (!empty($tmp_check_promotion)) { $tmp_pro = json_decode($tmp_check_promotion["\x76\x61\154\165\x65"], true); $list_not_slot = array("\x61\155\142", "\163\145\170\171", "\x73\141", "\141\x67", "\147\144\x38\70", "\167\x6d", "\x64\x67", "\142\x67", "\147\x64\147"); $game_type_pro = isset($tmp_pro["\107\141\155\145\124\x79\160\x65"]) ? $tmp_pro["\107\141\x6d\x65\x54\x79\x70\145"] : "\x61\154\154"; if ($game_type_pro == "\163\154\x6f\x74") { if (in_array($gamekey, $list_not_slot)) { $d = array("\x73\x74\141\x74\x75\x73" => "\145\162\162\157\x72", "\x6d\163\x67" => "\xe0\270\xa1\340\270\xb5\340\270\x9a\xe0\270\xb2\xe0\xb8\207\xe0\xb8\255\xe0\270\xa2\xe0\xb9\210\340\270\262\340\270\x87\xe0\270\234\xe0\xb8\xb4\340\270\x94\xe0\xb8\236\xe0\xb8\xa5\xe0\xb8\xb2\340\xb8\224\x20\xe0\270\x84\xe0\270\270\xe0\xb8\223\xe0\xb8\xa3\xe0\xb8\xb1\340\270\x9a\340\xb9\202\340\xb8\x9b\xe0\270\xa3\340\271\x82\xe0\xb8\241\340\xb8\212\xe0\xb8\261\xe0\271\210\xe0\270\231\xe0\xb8\xad\340\270\xa2\xe0\270\271\xe0\271\210\x20\xe0\xb8\210\xe0\270\xb0\340\xb9\200\xe0\xb8\x82\340\271\x89\340\xb8\xb2\340\xb9\x80\xe0\xb8\xa5\340\xb9\210\xe0\270\x99\xe0\271\x84\340\xb8\x94\340\271\211\xe0\xb9\200\xe0\xb8\x89\340\xb8\x9e\xe0\270\xb2\340\xb8\260\xe0\270\xaa\xe0\270\xa5\xe0\271\207\340\xb8\xad\340\270\x95", "\x64\x61\x74\x61" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); die; } } elseif ($game_type_pro == "\x62\x61\143\x63\x61\162\x61\164") { if (!in_array($gamekey, $list_not_slot)) { $d = array("\x73\164\x61\164\x75\163" => "\x65\162\162\x6f\162", "\x6d\x73\x67" => "\340\xb8\241\340\270\265\340\270\x9a\xe0\xb8\262\xe0\270\207\340\xb8\xad\340\270\242\xe0\271\210\340\270\xb2\xe0\xb8\x87\xe0\xb8\x9c\340\270\264\340\270\x94\xe0\270\236\xe0\xb8\xa5\xe0\270\262\340\270\x94\x20\340\270\204\340\xb8\xb8\340\270\x93\xe0\270\xa3\340\270\261\340\xb8\x9a\xe0\xb9\x82\340\xb8\233\340\270\243\xe0\xb9\202\340\xb8\xa1\xe0\xb8\212\340\xb8\xb1\340\xb9\210\xe0\xb8\231\xe0\270\255\340\270\xa2\340\xb8\xb9\340\271\x88\x20\xe0\xb8\x88\xe0\270\xb0\340\271\x80\xe0\270\x82\340\271\x89\xe0\xb8\262\340\271\200\340\270\245\340\xb9\210\340\270\231\340\xb9\204\340\270\224\340\271\x89\340\271\200\340\xb8\211\xe0\xb8\x9e\xe0\xb8\262\340\xb8\260\340\xb8\232\340\xb8\262\340\xb8\x84\xe0\270\262\340\270\243\xe0\271\210\340\270\262", "\144\x61\x74\141" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); die; } } else { } } if ($gamekey == "\x73\x70\x6f\x72\x74") { $d = array("\163\164\x61\164\x75\x73" => "\163\165\x63\143\x65\x73\163", "\155\163\147" => "\340\271\x80\xe0\xb8\x82\xe0\271\211\xe0\xb8\xb2\xe0\xb8\xaa\340\xb8\271\340\xb9\x88\xe0\270\xa3\xe0\xb8\260\xe0\xb8\x9a\340\xb8\232\xe0\xb8\xaa\340\xb8\xb3\340\271\200\xe0\xb8\243\xe0\271\207\340\xb8\210", "\144\x61\164\x61" => $agent["\145\156\x64\137\160\x6f\x69\x6e\164\x5f\147\x61\x6d\145"] . "\57\154\x6f\147\x69\156\x2f\141\x75\164\157\57\x3f\x75\x73\x65\x72\156\x61\x6d\145\75" . $row_user["\151\144"] . "\x26\160\141\163\x73\x77\157\162\144\75" . $row_user["\x70\x61\163\x73\x77\x6f\162\144"] . "\x26\x75\x72\x6c\x3d" . base_url() . "\x26\150\141\x73\150\75" . $agent["\150\141\x73\150"] . "\x26\x73\x74\141\x74\x65\75\163\160\157\162\x74\46\154\x61\x6e\147\x3d\x74\x68"); echo json_encode($d, JSON_UNESCAPED_UNICODE); die; } if ($gameid != false) { $api_data = array("\x6d\145\x74\150\x6f\x64" => "\107\x4c\x49", "\x75\x73\145\162\x6e\x61\155\145" => $row_user["\x61\x6d\142\137\151\x64"], "\x70\x61\x73\x73\167\x6f\162\144" => $row_user["\x70\x61\163\163\167\157\162\x64"], "\x69\163\115\157\142\x69\154\145" => false, "\x67\x61\155\x65\x49\x64" => $gameid, "\x67\141\x6d\145\x5f\x6b\x65\171" => $gamekey); } else { $api_data = array("\155\x65\164\x68\x6f\x64" => "\107\114\x49", "\165\163\145\x72\156\141\155\x65" => $row_user["\141\x6d\x62\x5f\151\144"], "\160\x61\163\x73\167\x6f\x72\x64" => $row_user["\160\141\163\x73\x77\157\162\x64"], "\x69\163\115\x6f\x62\x69\x6c\x65" => false, "\x67\141\x6d\x65\137\153\x65\171" => $gamekey); } $res = $this->amb_model->SendApi($api_data); if (isset($res["\143\x6f\144\145"])) { if ($res["\x63\157\x64\145"] == "\x30") { $d = array("\163\164\141\164\x75\x73" => "\163\165\x63\x63\x65\163\163", "\155\x73\x67" => "\xe0\xb9\200\xe0\xb8\x82\340\271\211\340\xb8\xb2\xe0\270\252\340\xb8\271\340\xb9\210\xe0\xb8\243\340\270\260\xe0\xb8\232\xe0\xb8\232\340\271\x80\xe0\270\201\340\270\241\340\xb8\xaa\xe0\271\x8c", "\144\x61\164\141" => $res["\x75\x72\154"]); echo json_encode($d, JSON_UNESCAPED_UNICODE); } else { $d = array("\163\x74\141\x74\x75\x73" => "\x65\x72\162\x6f\162", "\x6d\x65\163\163\x61\x67\145" => "\340\270\241\340\270\265\xe0\270\232\340\270\262\xe0\xb8\x87\xe0\xb8\xad\xe0\270\xa2\xe0\271\210\340\xb8\xb2\xe0\xb8\207\xe0\270\234\340\270\xb4\xe0\xb8\224\340\xb8\x9e\340\270\245\xe0\xb8\xb2\xe0\xb8\x94\40\340\270\201\xe0\xb8\243\xe0\xb8\xb8\xe0\270\223\xe0\xb8\262\340\xb8\243\xe0\xb8\255\xe0\270\x8b\xe0\xb8\xb1\xe0\270\x81\340\xb8\204\340\xb8\243\xe0\xb8\xb9\xe0\xb9\210\340\271\201\xe0\270\245\xe0\xb8\260\xe0\270\xa5\340\xb8\xad\xe0\270\207\340\270\xad\340\270\265\xe0\xb8\201\xe0\xb8\x84\xe0\xb8\243\xe0\xb8\261\340\271\211\340\xb8\x87"); $d = array("\163\x74\x61\164\x75\163" => "\145\162\x72\157\x72", "\x6d\x73\x67" => "\xe0\270\xa1\xe0\xb8\xb5\340\270\x9a\340\xb8\262\340\270\207\xe0\xb8\255\xe0\270\242\340\271\x88\340\270\xb2\xe0\270\207\340\270\x9c\xe0\xb8\xb4\xe0\270\224\xe0\xb8\x9e\xe0\270\245\xe0\270\xb2\xe0\270\224\x20\xe0\270\x81\xe0\xb8\243\xe0\270\270\340\270\223\xe0\270\xb2\xe0\270\xa3\xe0\xb8\255\340\270\213\340\xb8\xb1\340\270\x81\xe0\270\204\xe0\xb8\243\xe0\270\271\340\xb9\x88\340\271\201\xe0\xb8\245\xe0\270\260\340\xb8\245\340\270\255\xe0\xb8\207\xe0\270\255\340\xb8\xb5\xe0\xb8\201\xe0\xb8\204\xe0\270\243\340\270\261\340\271\211\340\xb8\x87", "\144\x61\164\141" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); } } else { $d = array("\x73\x74\141\x74\x75\x73" => "\x65\x72\162\157\x72", "\x6d\145\163\x73\141\147\145" => "\x4e\x6f\40\143\157\x64\x65\x2e"); $d = array("\163\x74\x61\164\x75\163" => "\x65\162\x72\157\x72", "\x6d\163\147" => "\x4e\157\40\143\157\x64\x65\x2e", "\x64\x61\164\141" => null); echo json_encode($d, JSON_UNESCAPED_UNICODE); } } } public function game($id) { $theme = $this->theme; $theme_path = base_url() . "\141\163\x73\x65\x74\x73\137\x75\x73\145\162\x2f" . $theme; $data = array(); $data["\x74\x68\x65\155\145\137\x70\x61\x74\x68"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\x6d\x65\164\141\137\x73\145\x74\x74\151\x6e\x67", array("\167\x68\x65\162\x65" => array("\143\157\154" => "\151\x64", "\x76\x61\154" => "\142\162\141\156\x64\137\x73\145\x74\164\x69\x6e\147")))["\166\x61\x6c\165\x65"], true); $data["\x64\x61\x74\141"] = $tmp; $api_data = array("\x6d\145\164\150\x6f\144" => "\107\114\x49\123", "\147\141\x6d\x65\137\153\x65\171" => $id); $game_list = $this->amb_model->SendApi($api_data); if (isset($_GET["\164\x65\163\164"])) { echo "\x3c\x70\162\x65\x3e"; print_r($game_list); echo "\x3c\57\160\x72\145\76"; die; } $data["\x67\x61\x6d\145\137\153\x65\171"] = $id; $data["\x67\141\x6d\x65"] = isset($game_list["\x64\x61\x74\x61"]["\154\x69\163\x74\163"]) ? $game_list["\x64\x61\164\141"]["\154\151\x73\x74\x73"] : array(); $data["\x67\x61\x6d\x65\x5f\144\141\164\141"] = $game_list; $this->load->view("\x70\x61\x6e\145\x6c\137\165\x73\145\162\57{$theme}\57\x61\x6a\141\170\x5f\154\157\x61\144\57\x67\141\x6d\x65", $data); } public function promotion($id = 0) { $theme = $this->theme; $theme_path = base_url() . "\141\163\163\x65\x74\x73\137\x75\x73\x65\x72\x2f" . $theme; $data = array(); $data["\x74\150\145\x6d\145\x5f\x70\x61\164\150"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\155\145\x74\141\137\x73\145\x74\x74\x69\x6e\x67", array("\x77\x68\145\162\145" => array("\143\157\154" => "\x69\x64", "\166\x61\154" => "\x62\162\141\x6e\144\x5f\163\145\x74\164\x69\x6e\147")))["\x76\x61\154\165\145"], true); $data["\144\141\x74\141"] = $tmp; $tmp_pro = $this->main_model->get_row("\155\145\164\x61\x5f\160\162\x6f\x6d\x6f\164\151\x6f\x6e\x5f\163\x65\164\x74\151\156\x67", array("\x77\150\x65\x72\145" => array("\143\x6f\x6c" => "\151\144", "\x76\141\154" => $id))); $data["\x70\x72\x6f\155\157\164\x69\157\156"] = json_decode($tmp_pro["\x6d\x65\x74\141"], true); $data["\160\162\157\x6d\157\x74\x69\157\x6e"]["\x69\x64"] = $tmp_pro["\x69\144"]; header("\103\x6f\156\164\145\156\164\55\x54\x79\160\145\72\40\x61\x70\x70\x6c\151\143\x61\x74\x69\x6f\156\x2f\152\x73\x6f\156"); if (empty($_SESSION["\165\x73\x65\x72"]["\x6c\x6f\147\147\x65\x64\137\x69\x6e"])) { header("\x48\124\124\x50\57\x31\x2e\61\x20\x34\60\61\40\x55\x6e\x61\x75\x74\x68\x6f\162\x69\x7a\x65\144"); } else { $accept_promotion = $id; $tmp_data = array("\141\143\143\145\160\164\137\x70\162\x6f\155\x6f\164\x69\157\156" => $accept_promotion); $row_user = $this->user_model->get_user($_SESSION["\165\x73\145\x72"]["\165\163\x65\162\x6e\x61\x6d\x65"]); $check_promotion = $this->promotion_model->CheckPromotion($row_user["\x6d\x6f\x62\151\x6c\x65\x5f\156\157"], $accept_promotion); if ($check_promotion) { $tmp_data = array("\x61\143\x63\x65\x70\x74\137\x70\x72\x6f\155\x6f\164\151\x6f\x6e" => $accept_promotion); if ($this->main_model->update("\151\x64", $row_user["\x69\144"], "\x73\154\137\165\x73\145\x72\x73", $tmp_data)) { $d = array("\163\x74\x61\x74\x75\163" => "\x73\165\x63\x63\x65\163\x73", "\x6d\145\x73\163\x61\147\145" => "\x20\xe0\xb9\x80\xe0\xb8\233\xe0\270\245\340\270\265\340\xb9\210\340\270\242\xe0\270\231\xe0\271\x82\340\xb8\x9b\340\xb8\243\340\xb9\x82\340\270\xa1\xe0\270\x8a\340\270\xb1\340\271\210\xe0\270\x99\xe0\271\x81\xe0\270\245\340\271\211\xe0\xb8\247"); if ($id == 0) { $res = array("\x70\162\x6f\155\x6f\x74\x69\157\156" => "\xe0\271\x84\xe0\270\241\340\xb9\210\340\xb8\243\340\xb8\261\xe0\270\x9a\xe0\xb9\202\340\270\233\xe0\270\243", "\x74\171\x70\x65" => "\x64\x65\160\x6f\163\x69\x74", "\x68\141\163\x5f\x63\x75\163\x74\x6f\155\145\x72" => 1, "\x70\162\x6f\x6d\157\x74\x69\x6f\x6e\x5f\141\143\x74\x69\x76\x65\x5f\x68\x74\155\x6c" => ''); } else { $res = array("\160\162\157\x6d\x6f\164\x69\x6f\156" => $data["\160\162\x6f\x6d\x6f\x74\x69\157\156"]["\x54\x69\x74\154\145"], "\164\171\x70\x65" => "\x64\145\x70\157\163\x69\164", "\150\141\163\137\x63\x75\x73\164\x6f\155\x65\x72" => 1, "\160\x72\x6f\155\157\x74\151\157\x6e\137\141\143\164\x69\x76\145\x5f\x68\164\155\x6c" => "\12\xa\11\11\11\11\x9\x9\11\11\x3c\x64\151\166\x20\143\x6c\141\x73\x73\75\x22\160\171\55\63\42\76\xa\12\x9\x9\x9\x9\x9\x9\11\x9\x9\x3c\144\151\166\40\x63\x6c\x61\x73\x73\x3d\42\x74\x65\x78\164\x2d\x63\x65\156\164\145\x72\42\76\xa\12\x9\11\x9\x9\11\x9\x9\11\11\11\74\163\x70\141\x6e\x20\x63\x6c\x61\163\x73\x3d\x22\x2d\x74\x65\x78\x74\55\x63\157\156\164\x61\151\x6e\145\162\42\76\340\xb9\x82\xe0\xb8\x9b\340\270\243\xe0\271\202\xe0\xb8\xa1\xe0\xb8\212\340\xb8\261\340\xb9\210\xe0\270\231\340\270\227\340\270\xb5\340\xb9\x88\xe0\xb8\xa3\xe0\270\xb1\340\270\x9a\x20\x3a\40\x3c\142\x20\x63\154\141\163\x73\75\42\x2d\144\145\x74\x61\x69\x6c\x22\x3e" . $data["\160\162\x6f\155\x6f\x74\x69\x6f\x6e"]["\124\x69\x74\x6c\x65"] . "\74\57\x62\76\74\x2f\x73\x70\141\156\x3e\12\xa\x9\x9\x9\11\11\x9\x9\x9\x9\x3c\57\x64\151\166\76\12\xa\x9\x9\x9\x9\x9\11\11\11\11\74\144\x69\166\x20\144\141\x74\141\55\x61\152\x61\170\x2d\x63\x61\x6c\x63\x75\x6c\141\x74\x65\55\x64\145\x70\x6f\163\151\x74\x3d\x22\x2f\x61\x63\143\157\x75\156\x74\57\137\x61\x6a\141\170\x5f\x2f\x64\145\x70\x6f\x73\151\x74\x2d\x63\x61\x6c\143\165\154\x61\x74\x65\x3f\x70\x72\x6f\x6d\157\164\151\x6f\156\75\61\64\x22\76\x3c\x2f\x64\151\166\x3e\xa\xa\11\11\x9\11\11\11\11\x9\x9\74\x64\151\x76\40\x63\154\x61\x73\x73\75\x22\152\163\x2d\164\165\162\156\x6f\166\x65\162\40\144\55\x6e\x6f\156\x65\x20\164\x65\170\164\x2d\143\x65\x6e\x74\x65\x72\x20\x2d\x74\165\x72\156\x2d\x6f\x76\145\162\x2d\143\157\156\x74\x61\x69\156\145\162\x22\x3e\xa\12\x9\11\11\11\x9\11\11\x9\x9\x9\124\x75\162\x6e\157\166\x65\162\72\x20\40\74\163\x70\x61\156\76" . $data["\160\162\157\x6d\x6f\x74\151\x6f\x6e"]["\124\165\x72\x6e\x4f\x76\x65\162"] . "\74\x2f\x73\160\x61\x6e\x3e\xa\xa\x9\11\x9\x9\x9\11\11\x9\x9\74\57\144\x69\166\76\12\12\x9\11\x9\11\x9\11\x9\11\74\x2f\144\x69\166\x3e\12\12\11\11\x9\11\x9\11\x9"); } echo json_encode($res, JSON_UNESCAPED_UNICODE); } else { header("\110\124\x54\x50\x2f\61\56\61\x20\64\60\60\x20\102\141\x64\x20\122\145\161\x75\x65\163\164"); $d = array("\163\164\x61\164\x75\163" => "\145\x72\x72\157\162", "\155\145\x73\x73\141\147\145" => "\xe0\xb8\255\xe0\xb8\261\xe0\xb8\x9e\340\271\x80\340\xb8\x94\xe0\xb8\225\xe0\271\x82\xe0\270\x9b\340\270\xa3\xe0\271\x82\340\270\241\xe0\xb8\212\xe0\xb8\xb1\xe0\xb9\210\xe0\xb8\231\340\271\204\xe0\xb8\241\xe0\xb9\210\340\xb8\xaa\340\270\xb3\340\271\200\340\270\243\340\271\207\340\xb8\x88"); echo json_encode($d, JSON_UNESCAPED_UNICODE); } } else { header("\x48\x54\124\120\57\61\56\61\x20\64\x30\x30\40\102\141\x64\40\x52\x65\161\165\x65\x73\164"); $d = array("\x73\x74\x61\164\165\163" => "\x65\162\x72\x6f\162", "\155\x65\163\163\x61\x67\x65" => "\xe0\270\x84\xe0\xb8\270\340\270\x93\340\271\x84\340\270\xa1\xe0\xb9\210\340\xb8\xaa\340\270\xb2\340\xb8\xa1\xe0\xb8\262\340\270\243\340\270\x96\xe0\xb8\243\xe0\xb8\xb1\xe0\xb8\x9a\340\271\202\340\xb8\233\xe0\xb8\xa3\340\xb9\202\xe0\270\xa1\xe0\xb8\x8a\340\270\xb1\340\271\x88\340\270\231\340\270\x99\340\270\xb5\xe0\xb9\x89\340\xb9\204\340\xb8\224\xe0\271\x89"); echo json_encode($d, JSON_UNESCAPED_UNICODE); } } } public function promotion_show($id) { $theme = $this->theme; $theme_path = base_url() . "\x61\x73\x73\x65\x74\x73\x5f\165\163\145\x72\x2f" . $theme; $data = array(); $data["\164\150\x65\x6d\x65\137\x70\141\x74\x68"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\x6d\x65\x74\141\x5f\163\145\x74\x74\151\x6e\x67", array("\x77\x68\145\x72\x65" => array("\143\x6f\x6c" => "\151\x64", "\x76\x61\154" => "\x62\162\x61\156\144\137\x73\x65\164\164\x69\156\x67")))["\x76\141\154\165\x65"], true); $data["\x64\141\x74\x61"] = $tmp; $tmp_pro = $this->main_model->get_row("\x6d\145\x74\x61\x5f\x70\x72\157\155\157\164\151\x6f\156\137\x73\x65\164\164\x69\x6e\x67", array("\167\150\x65\162\x65" => array("\143\157\154" => "\x69\144", "\x76\141\154" => $id))); $data["\160\162\x6f\x6d\157\164\x69\x6f\x6e"] = json_decode($tmp_pro["\x6d\x65\x74\x61"], true); $data["\x70\162\x6f\155\x6f\x74\x69\157\x6e"]["\151\x64"] = $tmp_pro["\x69\144"]; $this->load->view("\x70\x61\x6e\145\154\x5f\165\x73\x65\x72\57{$theme}\57\141\152\141\170\137\154\157\141\144\57\160\x72\157\x6d\x6f\x74\151\157\156", $data); } public function page($page = false) { $theme = $this->theme; $theme_path = base_url() . "\x61\163\x73\x65\x74\x73\137\x75\163\x65\x72\57" . $theme; $data = array(); $data["\x74\150\145\155\x65\x5f\x70\x61\164\150"] = $theme_path; $agentss["\142\145\164\146\154\x69\x78"]["\x73\x74\141\164\165\163"] = 0; $agentss["\x61\x6d\x62"]["\163\164\x61\x74\165\x73"] = 0; $tmp_agents = $this->main_model->get_result("\141\x67\x65\156\164\x5f\141\143\x63\157\165\156\164"); $agents = array(); $i = 0; foreach ($tmp_agents as $row) { $agents[$i] = $row; foreach (json_decode($row["\155\145\x74\x61\x5f\144\x61\x74\141"], true) as $key => $val) { $agents[$i][$key] = $val; } unset($agents[$i]["\155\145\164\141\x5f\x64\141\x74\141"]); $i++; } foreach ($agents as $key => $val) { $agentss[$val["\x70\x72\x6f\x76\x69\144\145\162"]] = $val; } $tmp = json_decode($this->main_model->get_row("\155\145\x74\141\137\x73\145\164\164\151\x6e\x67", array("\167\150\x65\x72\x65" => array("\x63\157\154" => "\151\144", "\x76\141\154" => "\x62\x72\x61\x6e\144\137\x73\145\x74\164\151\x6e\147")))["\x76\x61\154\x75\x65"], true); $otp_register = json_decode($this->main_model->get_row("\x6d\145\164\x61\x5f\163\x65\x74\164\151\156\147", array("\167\x68\x65\x72\x65" => array("\143\157\154" => "\151\x64", "\x76\141\x6c" => "\157\164\160\x5f\162\x65\147\x69\x73\x74\145\x72")))["\x76\141\x6c\165\145"], true); $otp_open = false; if (isset($otp_register["\145\156\141\x62\154\x65"])) { if ($otp_register["\145\x6e\141\142\x6c\x65"] == 1) { $otp_open = true; $_SESSION["\162\x65\x67\151\163\x74\145\x72"]["\x6f\x74\x70\137\157\160\145\156"] = true; } } $data["\144\x61\x74\x61"] = $tmp; $data["\x61\147\x65\x6e\164"] = $agentss; if (urldecode($page) == "\xe0\xb8\xaa\xe0\270\245\xe0\271\x87\xe0\xb8\xad\340\xb8\x95") { $page = "\x73\154\x6f\x74"; } elseif (urldecode($page) == "\340\270\232\xe0\xb8\xb2\340\xb8\204\340\270\xb2\340\xb8\xa3\xe0\271\210\340\xb8\xb2") { $page = "\143\141\163\x69\156\x6f"; } elseif (urldecode($page) == "\xe0\xb8\x81\340\xb8\265\340\xb8\xac\xe0\xb8\xb2") { $page = "\x73\160\157\x72\x74"; } elseif (urldecode($page) == "\xe0\xb8\xaa\340\270\x81\xe0\xb8\xb4\340\xb8\xa5\340\xb9\200\340\270\201\340\270\241\xe0\270\252\xe0\xb9\x8c") { $page = "\x73\x6b\x69\154\x6c\x2d\x67\x61\x6d\x65"; } elseif (urldecode($page) == "\xe0\270\242\xe0\xb8\xb4\xe0\270\x87\340\270\233\340\xb8\245\xe0\xb8\xb2") { $page = "\x66\151\163\150\x69\156\x67"; } if ($agentss["\x61\x6d\x62"]["\x73\164\141\x74\165\x73"] == 1) { if ($page == "\x73\x6b\151\x6c\154\55\x67\141\155\145") { $id = "\141\x6d\x62\x67\141\x6d\145"; $api_data = array("\155\145\164\x68\x6f\x64" => "\x47\114\x49\123", "\147\141\x6d\x65\x5f\153\145\171" => $id); $game_list = $this->amb_model->SendApi($api_data); $data["\x67\141\x6d\145\137\x6b\145\171"] = $id; $data["\x67\x61\x6d\x65"] = isset($game_list["\x64\x61\x74\x61"]["\x6c\151\163\x74\163"]) ? $game_list["\x64\141\x74\141"]["\154\x69\x73\164\x73"] : array(); } elseif ($page == "\146\151\163\150\151\156\147") { $api_data = array("\x6d\145\164\150\x6f\x64" => "\107\x4c\x49\x53", "\147\x61\x6d\145\137\x6b\145\x79" => "\x6a\151\154\151"); $game_list = $this->amb_model->SendApi($api_data); $data_game = array(); $i = 0; foreach ($game_list["\x64\141\x74\x61"]["\154\x69\163\164\x73"] as $row) { if ($row["\x67\141\x6d\145\x54\x79\x70\x65"] == "\x46\x69\163\150\151\x6e\x67" || strpos($row["\x67\x61\155\x65\116\141\155\145"], "\106\151\163\x68") !== false) { $data_game[$i] = array("\147\141\155\145\x5f\153\145\171" => $row["\160\162\157\144\165\143\x74\103\x6f\x64\x65"], "\x67\x61\x6d\145\137\x63\157\144\x65" => $row["\147\x61\x6d\145\x49\x64"], "\147\141\x6d\145\137\x69\x6d\x67" => $row["\x69\x6d\x67\x55\x72\x6c"], "\147\x61\155\145\137\x6e\x61\155\145" => $row["\147\141\x6d\x65\x4e\x61\155\145"]); $i++; } } $api_data = array("\x6d\145\164\150\x6f\x64" => "\107\114\x49\123", "\x67\x61\x6d\145\137\153\145\171" => "\x61\155\142\147\x61\155\x65"); $game_list = $this->amb_model->SendApi($api_data); foreach ($game_list["\144\141\x74\141"]["\154\151\x73\164\163"] as $row) { if (strpos($row["\x6e\141\x6d\x65"]["\x65\x6e"], "\x66\x69\163\150") !== false) { $data_game[$i] = array("\147\x61\155\x65\137\x6b\x65\171" => "\141\x6d\x62\147\x61\x6d\145", "\x67\141\155\145\x5f\x63\157\x64\145" => $row["\x67\x61\155\x65\x49\144"], "\147\141\155\x65\x5f\x69\x6d\x67" => $row["\164\x68\165\x6d\x62\156\x61\x69\x6c"], "\147\x61\x6d\145\x5f\156\x61\155\x65" => $row["\156\141\155\145"]["\x74\150"]); $i++; } } $api_data = array("\155\145\164\150\x6f\144" => "\107\x4c\x49\x53", "\147\141\x6d\145\x5f\153\145\171" => "\x61\163\153\x6d\145\x62\x65\x74\x73\154\157\164"); $game_list = $this->amb_model->SendApi($api_data); foreach ($game_list["\144\x61\x74\141"]["\154\x69\x73\164\x73"] as $row) { if ($row["\x67\x61\155\145\x54\x79\x70\145"] == "\106\151\163\x68\151\156\x67" || strpos($row["\147\141\155\x65\x4e\141\x6d\x65"], "\106\151\163\150") !== false) { $data_game[$i] = array("\147\x61\x6d\145\137\153\x65\171" => "\x61\163\x6b\155\145\142\145\164\163\x6c\x6f\x74", "\147\x61\x6d\x65\x5f\x63\157\144\145" => $row["\147\x61\x6d\x65\111\144"], "\x67\x61\155\145\x5f\x69\155\147" => $row["\x69\155\x67\x55\162\154"], "\x67\141\155\x65\137\x6e\141\x6d\145" => $row["\x67\141\155\x65\x4e\x61\155\x65"]); $i++; } } $api_data = array("\x6d\145\x74\150\x6f\x64" => "\107\x4c\x49\123", "\147\x61\155\x65\137\x6b\x65\x79" => "\163\160\147"); $game_list = $this->amb_model->SendApi($api_data); foreach ($game_list["\x64\141\x74\x61"]["\154\151\163\164\x73"] as $row) { if ($row["\x67\141\155\145\124\171\160\145"] == "\106\151\163\150\x69\156\147" || strpos($row["\x67\141\155\145\116\141\155\145"], "\106\x69\x73\x68") !== false) { $data_game[$i] = array("\x67\x61\x6d\145\x5f\153\x65\x79" => $row["\160\x72\x6f\144\165\143\164\x43\157\x64\x65"], "\147\x61\155\145\137\143\x6f\x64\x65" => $row["\147\141\x6d\x65\x49\x64"], "\x67\x61\155\x65\x5f\151\155\x67" => $row["\151\155\147\x55\x72\x6c"], "\147\x61\x6d\x65\137\156\141\x6d\145" => $row["\x67\x61\155\145\x4e\x61\x6d\145"]); $i++; } } $api_data = array("\x6d\145\x74\150\x6f\144" => "\107\x4c\x49\123", "\147\141\x6d\x65\137\x6b\x65\171" => "\x73\154\157\164\x78\x6f"); $game_list = $this->amb_model->SendApi($api_data); foreach ($game_list["\x64\x61\164\141"]["\x6c\151\163\164\x73"] as $row) { if ($row["\147\x61\x6d\145\x54\x79\x70\x65"] == "\106\151\163\x68\151\156\x67" || strpos($row["\147\141\x6d\x65\116\141\155\145"], "\106\x69\163\150") !== false) { $data_game[$i] = array("\x67\141\x6d\145\137\x6b\145\x79" => $row["\160\162\x6f\144\x75\x63\164\x43\x6f\x64\145"], "\x67\141\155\145\137\x63\157\x64\x65" => $row["\147\x61\x6d\145\111\x64"], "\x67\x61\x6d\145\137\151\x6d\x67" => $row["\151\155\147\125\162\154"], "\x67\x61\155\x65\137\156\141\155\x65" => $row["\x67\141\x6d\x65\x4e\141\x6d\145"]); $i++; } } $api_data = array("\155\145\x74\150\x6f\144" => "\x47\114\111\123", "\147\x61\155\145\137\x6b\145\x79" => "\x67\141\156\x61\x70\x61\164\151"); $game_list = $this->amb_model->SendApi($api_data); foreach ($game_list["\x64\141\x74\x61"]["\x6c\151\163\164\x73"] as $row) { if ($row["\147\141\x6d\145\124\171\160\x65"] == "\x46\x69\x73\150\x69\156\x67" || strpos($row["\147\x61\155\145\x4e\x61\x6d\x65"], "\x46\151\163\150") !== false) { $data_game[$i] = array("\x67\x61\155\145\137\x6b\x65\x79" => $row["\160\162\x6f\x64\x75\143\164\x43\x6f\x64\145"], "\147\141\155\145\x5f\x63\x6f\144\x65" => $row["\147\141\x6d\145\x49\144"], "\147\141\155\x65\x5f\x69\155\147" => $row["\151\155\147\125\x72\x6c"], "\147\x61\x6d\x65\137\156\x61\x6d\x65" => $row["\x67\141\155\145\x4e\141\155\145"]); $i++; } } $data["\147\x61\x6d\x65"] = $data_game; } } if ($agentss["\142\145\164\146\154\151\170"]["\x73\164\x61\164\165\163"] == 1) { $game_casino = array(array("\104\x47", "\144\147", "\156\x6f\156\x65", "\150\x74\164\x70\x73\x3a\x2f\x2f\167\x77\x77\x2e\60\x38\63\65\61\x34\56\143\157\155\57\x61\x73\163\x65\x74\163\57\x6c\x6f\147\x6f\x2f\x64\147\56\160\x6e\x67"), array("\x57\x45\40\105\x6e\164\x65\162\x74\141\151\x6e\155\x65\x6e\x74", "\167\x65", "\x6e\157\156\x65", "\x68\164\164\x70\x73\x3a\57\57\x77\167\x77\x2e\60\x38\63\65\x31\64\x2e\143\x6f\155\57\x69\143\157\156\163\x2f\154\157\147\x6f\x2f\x77\x65\x2e\x70\x6e\x67"), array("\x45\166\157\154\x75\164\x69\157\156\40\x47\141\155\x69\156\x67", "\x65\x67", "\x6e\x6f\156\x65", "\150\164\x74\x70\163\x3a\x2f\57\167\x77\x77\56\x30\70\63\x35\x31\x34\x2e\x63\157\155\57\151\x63\x6f\156\163\x2f\x6c\157\x67\157\57\145\147\56\x70\156\147"), array("\130\164\162\x65\141\x6d\40\x47\141\155\151\x6e\147", "\170\x67", "\156\x6f\156\145", "\150\164\x74\x70\x73\x3a\x2f\x2f\x77\167\x77\x2e\60\70\63\x35\61\x34\56\x63\157\x6d\57\x69\x63\x6f\x6e\163\57\x6c\x6f\x67\x6f\x2f\x78\x67\56\160\156\147"), array("\x53\x6b\171\x57\151\x6e\x64\40\x47\x72\157\x75\x70", "\x73\167\147", "\163\167\147\x2e\x74\x78\x74", "\x68\164\164\x70\163\x3a\57\57\167\167\167\x2e\x30\70\63\65\61\64\x2e\x63\157\155\x2f\x69\143\x6f\x6e\x73\57\x6c\x6f\x67\157\x2f\x73\167\x67\x2e\160\156\147"), array("\x43\121\71", "\x63\161\71", "\156\157\156\x65", "\x68\x74\x74\x70\163\x3a\x2f\x2f\x77\x77\x77\56\60\70\63\x35\61\64\56\x63\157\x6d\x2f\141\163\x73\145\164\163\57\154\x6f\147\157\57\x63\161\x39\x2e\160\156\x67"), array("\x52\151\143\x68\70\70", "\162\70\x38", "\x6e\157\x6e\x65", "\x68\164\164\160\x73\x3a\x2f\x2f\167\x77\x77\56\60\x38\63\65\61\x34\x2e\x63\x6f\155\57\141\x73\163\145\x74\x73\57\154\x6f\147\157\57\162\70\70\x2e\160\x6e\147"), array("\x4a\x49\x4c\111", "\152\x6c", "\152\154\56\164\170\164", "\x68\x74\164\x70\x73\x3a\x2f\57\x77\x77\x77\x2e\x30\x38\x33\65\61\64\x2e\143\157\155\x2f\x61\163\163\x65\x74\163\57\154\157\x67\157\x2f\152\x6c\56\160\156\x67"), array("\x4b\111\116\107\115\101\x4b\x45\122", "\153\155", "\153\155\56\x74\x78\164", "\x68\164\x74\x70\163\72\57\57\x61\x72\x64\x6d\150\172\145\x6c\170\143\155\152\56\x6f\143\x72\141\172\145\143\153\x79\165\x6e\143\56\143\157\155\57\151\143\x6f\x6e\x73\57\154\x6f\147\x6f\57\153\x69\156\147\155\141\153\145\x72\x2e\x70\156\147"), array("\x53\x65\x78\171", "\163\145\x78\x79", "\x6e\157\156\145", "\150\x74\x74\x70\x73\72\x2f\x2f\141\162\144\x6d\x68\x7a\145\154\170\143\x6d\152\56\x6f\x63\162\141\x7a\x65\x63\x6b\x79\x75\156\x63\56\x63\x6f\x6d\x2f\151\x63\157\x6e\x73\x2f\x6c\x6f\147\x6f\57\101\105\55\x53\145\170\171\55\114\157\147\157\56\160\x6e\147"), array("\102\107", "\142\147", "\156\157\156\x65", "\x68\164\164\x70\x73\72\x2f\57\x77\x77\x77\56\60\x38\x33\65\61\x34\x2e\x63\157\155\57\141\163\163\x65\164\163\57\x6c\157\x67\x6f\x2f\x62\147\56\x70\156\147"), array("\x41\x4d\102\x20\120\157\x6b\x65\x72", "\141\155\x62", "\x6e\157\x6e\x65", "\150\x74\x74\x70\x73\x3a\57\x2f\145\x61\x73\x79\x73\x6c\x6f\x74\157\x6e\154\x69\x6e\x65\x2e\x67\141\155\x65\163\57\x61\x73\163\145\x74\x73\57\151\155\147\57\x69\155\147\x70\x72\157\x76\151\144\145\x72\x2f\101\115\102\x50\x6f\153\145\x72\56\x70\x6e\x67"), array("\127\115", "\x77\155", "\156\x6f\156\145", "\150\164\x74\160\x73\72\57\x2f\167\x77\x77\x2e\x30\x38\x33\x35\61\64\x2e\x63\x6f\x6d\x2f\x61\163\163\145\164\x73\x2f\154\157\147\x6f\x2f\x77\155\x2e\x70\156\x67"), array("\x41\163\x69\141\x20\107\x61\155\x69\x6e\x67", "\x61\x67", "\156\x6f\x6e\145", "\x68\x74\164\160\x73\x3a\57\x2f\x77\167\167\x2e\60\x38\63\65\61\64\56\143\x6f\x6d\x2f\141\163\163\145\164\163\x2f\154\x6f\x67\x6f\x2f\141\163\151\141\x25\x32\60\147\141\155\x69\x6e\147\x2e\160\x6e\x67"), array("\x53\101\40\x47\x61\155\151\156\x67", "\163\141", "\156\x6f\156\x65", "\x68\164\164\160\163\72\x2f\57\x77\167\x77\56\x30\70\x33\x35\61\64\56\143\x6f\155\57\141\163\163\x65\164\163\57\154\x6f\x67\157\x2f\x73\x61\x47\x61\155\145\x2e\x70\x6e\147")); $data["\147\141\155\x65\x5f\143\141\163\x69\156\157"] = $game_casino; $game_fishing = array(array("\123\153\x79\127\151\156\x64\40\x47\162\x6f\165\x70", "\x73\167\x67", "\x73\x77\x67\56\x74\170\x74", "\150\x74\x74\x70\x73\x3a\57\57\167\167\x77\x2e\x30\70\x33\x35\61\x34\x2e\143\x6f\x6d\x2f\151\x63\x6f\x6e\x73\57\154\157\147\157\x2f\163\167\147\56\160\156\x67"), array("\103\x51\x39", "\143\x71\71", "\156\157\156\145", "\150\x74\x74\160\163\72\x2f\57\167\x77\x77\56\x30\70\x33\x35\61\64\56\143\157\x6d\57\x61\x73\x73\145\164\163\57\x6c\157\147\157\57\x63\161\71\x2e\160\156\x67"), array("\x4a\111\114\111", "\152\154", "\x6a\x6c\x2e\x74\x78\x74", "\x68\x74\x74\x70\163\72\x2f\57\x77\x77\x77\x2e\60\x38\63\x35\x31\x34\x2e\143\x6f\155\57\141\x73\163\145\x74\163\x2f\x6c\x6f\x67\157\x2f\152\x6c\56\160\156\x67"), array("\113\111\116\107\x4d\101\x4b\x45\122", "\x6b\x6d", "\153\x6d\x2e\164\170\x74", "\x68\x74\164\x70\x73\x3a\x2f\57\x77\x77\x77\56\60\70\x33\x35\61\x34\56\143\x6f\x6d\57\141\163\x73\x65\x74\x73\57\x6c\x6f\x67\157\x2f\153\155\x2e\x70\156\147"), array("\106\x61\143\x68\141\151", "\x66\143", "\146\143\x2e\164\x78\x74", "\150\x74\164\x70\x73\72\x2f\57\167\x77\167\56\60\70\63\65\61\x34\x2e\x63\x6f\155\57\141\x73\163\x65\x74\163\57\154\x6f\x67\157\57\146\143\56\160\156\x67"), array("\x46\165\x6e\x6b\x79\x20\107\141\x6d\x65\x73", "\146\165\156\153\x79", "\146\165\156\x6b\x79\x2e\164\x78\164", "\150\164\x74\160\163\x3a\x2f\57\x77\167\167\56\x30\x38\63\65\x31\x34\x2e\143\157\155\57\141\163\x73\145\x74\163\57\154\x6f\x67\x6f\x2f\x66\165\x6e\153\171\56\x70\x6e\147"), array("\102\107", "\x62\x67", "\x6e\x6f\156\x65", "\x68\164\x74\160\163\x3a\57\x2f\167\x77\167\56\x30\70\x33\x35\61\64\x2e\143\x6f\155\x2f\141\163\x73\145\x74\x73\x2f\154\157\x67\x6f\x2f\142\x67\56\x70\156\147"), array("\x53\151\155\160\154\145\x50\x6c\x61\x79", "\x73\x70", "\156\157\x6e\x65", "\150\164\x74\160\x73\72\x2f\x2f\167\x77\x77\56\x30\70\x33\65\x31\64\56\x63\x6f\155\57\x61\x73\x73\x65\x74\x73\x2f\154\157\147\157\57\x73\x69\155\x70\154\x65\x72\x25\62\x30\160\154\141\171\56\160\x6e\147"), array("\105\166\157\x50\154\141\171", "\x65\160", "\x65\160\56\x74\170\x74", "\150\164\x74\x70\163\72\x2f\57\x77\x77\x77\x2e\x30\x38\x33\x35\61\64\x2e\x63\157\x6d\57\141\163\163\x65\x74\x73\x2f\x6c\157\x67\x6f\57\x65\x76\157\160\x6c\141\171\x32\x2e\160\156\x67"), array("\101\115\102\x20\120\x6f\x6b\145\162", "\x61\155\x62", "\156\157\156\x65", "\150\164\x74\160\x73\x3a\57\57\167\167\x77\56\x30\x38\x33\x35\61\64\56\143\x6f\155\x2f\141\x73\163\145\x74\x73\57\154\x6f\147\157\x2f\x61\155\x62\56\x70\156\x67"), array("\x4a\x6f\153\145\162", "\152\157\x6b\145\162", "\x6a\x6f\153\145\x72\x2e\x74\170\x74", "\150\x74\164\x70\x73\72\x2f\x2f\x77\167\167\x2e\x30\x38\x33\65\x31\64\56\143\157\x6d\x2f\x61\163\x73\145\164\x73\x2f\x6c\x6f\147\157\57\x6a\157\153\x65\162\x2e\x70\x6e\x67")); $data["\147\x61\x6d\x65\137\146\151\x73\150\x69\x6e\147"] = $game_fishing; $game_slot = array(array("\x47\141\x6d\141\x74\x72\157\x6e", "\x67\141\155\141\164\x72\x6f\156", "\x67\141\155\x61\164\x72\x6f\156\x2e\x74\170\x74", "\x68\x74\164\x70\x73\72\57\57\x77\167\x77\x2e\60\70\x33\x35\x31\64\x2e\143\x6f\x6d\57\141\x73\x73\x65\x74\x73\57\x6c\157\x67\x6f\x2f\x67\x61\x6d\141\x74\x72\x6f\x6e\x2e\x70\x6e\147"), array("\107\x6f\x6c\144\40\104\x69\x61\x6d\157\x6e\144", "\147\144\147", "\x6e\x6f\156\145", "\150\164\x74\x70\163\72\x2f\57\x77\x77\x77\x2e\x30\70\63\x35\61\x34\56\143\x6f\155\x2f\141\x73\163\145\x74\x73\57\x6c\x6f\147\x6f\x2f\147\144\x67\56\160\156\x67"), array("\120\162\x61\x67\x6d\x61\164\x69\143\120\x6c\141\171", "\x70\160", "\x70\x70\x2e\x74\170\x74", "\150\x74\164\x70\163\x3a\x2f\x2f\x77\167\x77\x2e\60\x38\x33\x35\x31\64\56\x63\x6f\x6d\x2f\141\163\163\x65\164\163\x2f\x69\x6d\141\147\145\57\x70\160\x6c\x6f\x67\157\x2e\x70\x6e\x67"), array("\x53\153\x79\127\x69\156\x64\40\x47\x72\157\165\160", "\x73\167\x67", "\163\167\x67\x2e\x74\x78\164", "\x68\164\164\160\163\x3a\x2f\x2f\167\167\x77\x2e\60\70\x33\x35\x31\x34\56\x63\157\155\57\x69\x63\x6f\156\163\x2f\x6c\x6f\147\x6f\57\x73\167\147\56\x70\156\147"), array("\x41\x45\40\x47\x61\x6d\151\x6e\147\40\123\x6c\157\164", "\x61\167\x73", "\x61\x77\x73\56\x74\170\164", "\x68\164\x74\160\163\x3a\57\x2f\167\167\x77\56\60\x38\63\x35\61\64\x2e\x63\x6f\155\57\x69\x63\x6f\x6e\163\57\x6c\x6f\147\x6f\x2f\x61\x77\x73\x2e\160\156\147"), array("\103\121\71", "\x63\161\x39", "\156\x6f\156\x65", "\150\164\164\160\x73\72\57\57\167\x77\x77\x2e\x30\x38\63\65\61\64\x2e\143\157\x6d\57\141\x73\x73\x65\164\163\57\x6c\x6f\x67\157\x2f\x63\x71\x39\56\x70\x6e\x67"), array("\x4b\101\x20\x47\141\x6d\151\156\147", "\153\147", "\x6b\147\x2e\164\170\x74", "\x68\x74\164\x70\x73\72\57\57\x77\167\x77\x2e\60\70\x33\x35\x31\64\x2e\143\157\155\x2f\x61\x73\163\x65\164\163\57\x6c\x6f\x67\x6f\x2f\153\x67\56\x70\x6e\147"), array("\122\x69\x63\150\70\70", "\162\70\x38", "\156\157\156\145", "\150\164\x74\x70\x73\72\57\57\x77\x77\167\x2e\60\x38\x33\65\x31\64\x2e\x63\157\x6d\x2f\x61\x73\163\x65\x74\x73\x2f\x6c\x6f\147\157\57\162\x38\70\x2e\x70\x6e\x67"), array("\112\111\x4c\x49", "\152\x6c", "\x6a\x6c\56\164\x78\164", "\x68\164\x74\160\x73\72\x2f\x2f\x77\x77\x77\56\x30\70\63\65\61\x34\56\x63\x6f\155\x2f\x61\163\163\x65\164\163\x2f\154\x6f\x67\x6f\x2f\x6a\x6c\56\160\156\x67"), array("\x46\x61\143\x68\x61\x69", "\x66\143", "\x66\143\x2e\164\x78\x74", "\x68\x74\x74\160\x73\72\57\57\x77\x77\167\x2e\60\70\x33\x35\61\x34\56\143\x6f\155\x2f\141\163\163\x65\x74\x73\57\x6c\157\x67\157\57\146\143\x2e\x70\x6e\x67"), array("\x46\165\x6e\x6b\x79\40\x47\141\155\145\163", "\146\x75\156\x6b\x79", "\146\x75\x6e\x6b\x79\x2e\164\x78\x74", "\x68\x74\164\160\163\72\57\57\x77\x77\167\56\60\x38\x33\65\x31\x34\x2e\143\157\155\x2f\x61\x73\x73\x65\x74\x73\57\x6c\157\x67\x6f\57\146\x75\x6e\153\171\56\x70\x6e\x67"), array("\x50\154\x61\x79\x53\x74\141\162", "\160\163", "\156\x6f\156\x65", "\150\164\x74\160\x73\x3a\57\x2f\167\x77\x77\x2e\x30\x38\x33\65\61\x34\x2e\x63\x6f\155\x2f\x61\163\x73\x65\164\163\x2f\154\157\147\x6f\57\160\163\x2e\x70\156\147"), array("\x53\x69\155\x70\154\145\x50\x6c\141\171", "\163\160", "\x6e\157\x6e\145", "\x68\x74\164\160\x73\72\x2f\x2f\x77\167\x77\56\60\x38\x33\65\x31\x34\56\x63\157\155\57\x61\163\163\x65\x74\x73\57\154\x6f\x67\x6f\57\x73\x69\x6d\x70\x6c\x65\x72\45\x32\x30\160\x6c\x61\x79\x2e\160\156\147"), array("\105\x76\x6f\x50\154\x61\171", "\145\160", "\x65\160\x2e\x74\170\164", "\x68\164\164\160\163\x3a\57\x2f\167\x77\167\56\x30\x38\x33\x35\x31\x34\56\143\x6f\155\57\x61\x73\x73\145\x74\163\x2f\154\x6f\147\157\x2f\145\166\x6f\160\154\141\x79\x32\x2e\160\x6e\x67"), array("\116\145\164\105\x6e\x74", "\156\145\x74\x65\x6e\x74", "\156\145\x74\145\x6e\164\x2e\164\170\x74", "\150\x74\164\160\163\x3a\x2f\x2f\x77\x77\167\56\x30\x38\63\x35\61\64\56\x63\157\x6d\57\141\x73\x73\x65\164\163\x2f\x6c\x6f\x67\157\x2f\x6e\x65\164\145\156\x74\56\x70\x6e\x67"), array("\x41\x4d\x42\40\120\x6f\153\x65\162", "\141\x6d\x62", "\156\157\156\145", "\150\x74\x74\x70\x73\x3a\x2f\57\x77\167\x77\x2e\60\70\x33\65\61\x34\56\x63\x6f\155\x2f\x61\163\163\x65\x74\163\x2f\x6c\157\x67\157\x2f\141\155\142\x2e\160\156\147"), array("\x54\124\107", "\x74\164\147", "\156\x6f\x6e\x65", "\150\164\164\x70\x73\72\x2f\x2f\x77\167\167\x2e\x30\x38\x33\65\61\x34\56\143\x6f\155\x2f\141\x73\163\145\164\x73\57\154\157\147\157\x2f\x74\x6f\160\164\162\145\x6e\144\x25\x32\60\x67\x61\155\x69\156\147\x2e\x70\x6e\x67"), array("\120\107", "\x70\147", "\x6e\x6f\156\x65", "\150\164\x74\160\x73\72\57\57\167\x77\167\56\x30\x38\x33\65\61\64\56\143\157\155\57\141\x73\163\x65\164\x73\57\154\157\x67\x6f\x2f\160\147\x2e\x70\x6e\147"), array("\x4b\x49\116\x47\115\x41\x4b\105\x52", "\x6b\x6d", "\x6b\x6d\x2e\164\170\x74", "\x68\x74\164\160\x73\72\x2f\57\x77\x77\x77\56\x30\x38\x33\x35\x31\64\56\143\x6f\155\x2f\x61\163\163\x65\x74\163\x2f\154\x6f\x67\x6f\57\x6b\x6d\56\x70\x6e\147"), array("\112\157\x6b\145\x72", "\x6a\x6f\153\x65\x72", "\152\157\x6b\x65\x72\x2e\164\x78\164", "\150\164\164\160\163\72\57\57\x77\x77\x77\x2e\60\70\x33\65\61\64\x2e\143\x6f\x6d\57\141\x73\163\145\164\163\x2f\154\157\x67\157\57\x6a\x6f\x6b\x65\x72\56\160\x6e\x67"), array("\127\141\x7a\x64\x61\x6e", "\161\164\x65\143\150", "\x77\141\x7a\56\164\170\164", "\150\x74\x74\160\x73\x3a\57\57\x77\167\167\56\60\70\63\65\61\x34\x2e\x63\x6f\155\57\x69\x63\157\156\163\x2f\154\157\147\x6f\x2f\x77\x61\172\x2e\x70\x6e\x67"), array("\x31\130\62\40\107\x61\x6d\151\x6e\147", "\161\164\145\x63\x68", "\61\x78\62\56\164\x78\x74", "\x68\x74\164\x70\x73\x3a\57\57\x77\x77\x77\56\x30\x38\x33\x35\61\x34\x2e\x63\157\x6d\57\141\x73\x73\x65\x74\x73\57\x6c\x6f\x67\x6f\57\x31\170\62\x2e\160\156\147"), array("\x48\141\143\153\x73\141\x77\x20\107\141\x6d\x69\156\x67", "\161\164\x65\143\x68", "\x68\141\153\x2e\x74\170\x74", "\x68\164\164\160\x73\72\x2f\x2f\x77\x77\x77\x2e\x30\x38\x33\65\x31\64\56\x63\157\x6d\x2f\x61\x73\x73\145\x74\x73\57\154\157\147\x6f\x2f\150\141\x6b\x2e\x70\x6e\x67"), array("\106\x61\x73\164\141\163\x6d\141\40\107\x61\x6d\151\x6e\x67", "\161\164\145\x63\x68", "\146\x6e\x67\56\164\170\164", "\x68\164\164\x70\163\x3a\57\x2f\167\x77\167\56\60\x38\x33\x35\61\x34\x2e\x63\x6f\155\x2f\141\163\163\x65\x74\x73\x2f\154\x6f\x67\157\57\x66\156\x67\56\160\x6e\x67"), array("\116\145\x74\107\x61\x6d\145\163\x20\x45\x6e\164\145\162\141\x69\156\155\145\x6e\164", "\x71\x74\x65\x63\150", "\x6e\x67\145\56\164\x78\164", "\150\164\164\x70\163\x3a\x2f\57\167\x77\x77\x2e\x30\70\x33\x35\x31\64\x2e\143\x6f\x6d\x2f\141\163\163\x65\164\163\x2f\154\x6f\147\x6f\x2f\x6e\147\145\56\x70\x6e\147"), array("\x50\x75\163\150\x20\107\141\155\x69\x6e\147", "\161\x74\145\143\150", "\x70\165\147\56\x74\170\164", "\x68\x74\x74\160\163\72\x2f\x2f\x77\167\x77\x2e\60\x38\x33\65\61\x34\56\x63\x6f\155\x2f\141\x73\x73\x65\164\163\57\x6c\157\147\x6f\57\160\x75\x67\56\x70\156\147"), array("\107\141\155\145\40\x41\x72\x74", "\x71\x74\145\x63\x68", "\x67\141\x2e\164\x78\164", "\150\164\x74\160\163\72\x2f\x2f\x77\x77\167\x2e\60\x38\x33\65\61\64\56\x63\157\x6d\57\141\x73\163\145\x74\x73\57\x6c\x6f\147\157\57\x67\x61\56\160\156\x67"), array("\x50\x6c\x61\x79\40\156\40\x47\x6f", "\x71\164\145\143\x68", "\x70\156\147\56\164\170\x74", "\150\x74\164\160\163\x3a\x2f\57\167\x77\x77\x2e\60\70\63\65\61\x34\56\143\157\155\57\x61\x73\x73\145\x74\163\x2f\x6c\157\x67\x6f\x2f\x70\x6e\x67\x2e\160\156\x67"), array("\x4e\157\154\x69\155\x69\164\40\x43\x69\164\x79", "\161\x74\x65\143\x68", "\156\x6c\x63\56\x74\x78\x74", "\x68\x74\x74\x70\163\x3a\57\x2f\167\x77\x77\56\x30\x38\x33\x35\x31\x34\56\143\157\155\57\141\163\x73\x65\164\x73\x2f\154\157\x67\157\57\156\x6c\143\56\160\156\x67"), array("\x54\x68\165\156\x64\145\162\153\151\143\x6b", "\161\164\145\x63\150", "\164\x6b\x2e\164\170\164", "\x68\x74\164\x70\x73\72\57\x2f\x77\167\167\56\x30\70\x33\x35\61\x34\x2e\x63\x6f\155\57\141\x73\163\x65\164\163\x2f\154\157\x67\x6f\x2f\164\153\x2e\160\156\147"), array("\x59\147\147\x64\162\141\163\151\x6c", "\x71\x74\145\x63\x68", "\x79\x67\x67\x2e\164\x78\164", "\150\x74\164\x70\163\72\57\57\x77\x77\x77\x2e\60\70\63\x35\61\x34\x2e\x63\157\155\x2f\141\163\163\x65\x74\163\57\x6c\157\147\x6f\x2f\x79\x67\x67\56\x70\x6e\147"), array("\x51\165\151\x63\x6b\x73\160\151\x6e", "\x71\x74\145\x63\150", "\161\163\x2e\x74\170\x74", "\x68\164\164\x70\163\x3a\57\57\167\167\167\56\60\70\x33\x35\61\x34\x2e\x63\157\155\x2f\141\163\163\145\164\163\57\x6c\157\147\157\x2f\x71\163\56\160\x6e\147"), array("\110\141\142\x61\x6e\145\x72\x6f", "\x71\164\145\x63\x68", "\x68\141\142\56\x74\x78\x74", "\150\164\x74\x70\x73\x3a\57\x2f\167\x77\x77\x2e\60\x38\63\x35\61\64\56\143\x6f\155\x2f\x61\x73\163\145\x74\163\57\154\157\x67\x6f\x2f\150\x61\142\56\160\156\x67"), array("\x52\x65\x6c\141\x78\40\107\x61\x6d\x69\156\x67", "\x71\x74\145\x63\150", "\162\154\170\x2e\164\170\x74", "\x68\164\x74\x70\x73\72\57\x2f\167\x77\x77\56\x30\70\63\x35\61\64\56\x63\x6f\x6d\x2f\141\x73\163\145\x74\x73\57\154\157\147\x6f\57\162\154\x78\56\160\156\147"), array("\x44\x72\x61\x67\x6f\x6f\156\40\123\x6f\x66\164", "\x71\x74\145\x63\150", "\x64\163\x2e\x74\170\164", "\150\x74\x74\x70\x73\72\57\57\167\x77\167\x2e\60\70\63\65\x31\64\x2e\143\157\155\x2f\141\x73\x73\x65\x74\x73\57\x6c\157\x67\x6f\x2f\144\163\x2e\x70\156\x67"), array("\x52\145\144\x20\124\x69\x67\145\x72", "\x71\164\x65\143\150", "\162\x65\144\56\x74\x78\164", "\150\x74\164\x70\x73\x3a\57\57\167\167\167\56\x30\x38\x33\x35\x31\x34\56\x63\x6f\x6d\57\x61\163\163\145\x74\x73\x2f\154\157\x67\x6f\57\162\x65\144\56\160\x6e\x67"), array("\x42\157\x6f\x6f\x6e\x67\157", "\x71\x74\145\143\150", "\142\156\147\x2e\164\x78\x74", "\x68\x74\x74\160\x73\x3a\57\57\x77\167\x77\56\x30\70\63\x35\x31\x34\56\x63\x6f\155\57\141\163\163\145\x74\163\x2f\x6c\157\x67\x6f\x2f\142\x6e\x67\x2e\160\x6e\x67"), array("\x49\x72\157\156\x20\104\x6f\x67", "\161\x74\x65\143\x68", "\x69\144\x73\x2e\x74\x78\x74", "\x68\x74\x74\160\163\x3a\57\57\167\x77\x77\56\x30\x38\x33\x35\x31\x34\56\143\157\155\x2f\x61\x73\x73\145\164\163\57\154\157\147\157\x2f\x69\x64\x73\56\x70\x6e\147"), array("\x4b\x61\154\x61\x6d\x62\141\40\x47\x61\155\145\x73", "\161\164\x65\x63\150", "\153\147\x6c\56\164\x78\x74", "\150\x74\164\160\163\72\57\57\x77\167\167\56\60\70\63\65\61\x34\56\143\x6f\155\x2f\141\163\163\145\x74\x73\57\154\157\x67\x6f\x2f\x6b\147\154\x2e\160\x6e\x67"), array("\x42\x6c\x75\145\x70\x72\151\x6e\164\x20\x47\x61\x6d\151\x6e\x67", "\x71\x74\145\143\150", "\142\x70\147\56\x74\x78\x74", "\x68\164\x74\x70\163\x3a\57\x2f\167\167\x77\x2e\x30\70\x33\65\61\64\x2e\143\157\x6d\57\141\163\x73\x65\x74\x73\57\x6c\157\147\x6f\57\142\160\147\x2e\x70\156\147"), array("\115\141\166\x65\x72\151\x63\x6b", "\161\164\145\x63\x68", "\155\141\166\56\x74\170\x74", "\x68\164\x74\x70\x73\72\57\57\x77\x77\167\56\x30\x38\63\x35\x31\64\x2e\143\157\x6d\57\141\163\x73\x65\164\163\57\154\157\147\x6f\x2f\x6d\141\166\56\160\156\147")); $data["\x67\x61\155\x65\x5f\x73\154\x6f\164"] = $game_slot; } $this->load->view("\x70\141\156\x65\154\x5f\x75\x73\x65\162\x2f{$theme}\57\141\152\141\170\137\x6c\x6f\x61\x64\57" . $page, $data); } public function truewallet() { $theme = $this->theme; $theme_path = base_url() . "\141\x73\163\x65\x74\x73\x5f\165\163\x65\x72\57" . $theme; $data = array(); $data["\164\x68\145\155\145\x5f\x70\x61\164\x68"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\x6d\145\x74\x61\137\163\145\164\164\x69\x6e\147", array("\x77\x68\x65\x72\x65" => array("\x63\x6f\154" => "\x69\x64", "\x76\141\x6c" => "\142\x72\141\x6e\x64\137\x73\x65\x74\x74\151\156\147")))["\x76\x61\x6c\165\x65"], true); $data["\x64\141\164\141"] = $tmp; $data["\x6d\x6f\x62\151\154\145"] = isset($_POST["\x6d\x6f\142\151\154\145"]) ? true : false; $user_info = $this->user_model->get_user($_SESSION["\x75\x73\145\162"]["\x69\x64"]); $bank_info = $this->main_model->get_row("\142\141\x6e\153\x5f\151\x6e\x66\x6f", array("\x77\150\x65\162\x65" => array("\143\157\x6c" => "\142\x61\156\x6b\137\151\x64", "\x76\x61\154" => $user_info["\x62\141\156\x6b\x5f\x69\144"]))); $admin_banks = $this->main_model->custom_query_result("\12\11\x9\x9\163\145\154\x65\x63\164\40\52\xa\x9\11\11\x66\x72\157\x6d\x20\x61\144\155\151\156\x5f\x62\x61\x6e\x6b\12\11\x9\x9\x77\150\x65\162\x65\x20\163\x74\141\x74\x75\x73\40\75\40\61\12\x9\x9"); $tmp_bank = array(); $i = 0; foreach ($admin_banks as $tmp) { $tmp_bank[$i] = $tmp; foreach (json_decode($tmp["\155\x65\164\141\137\144\141\164\141"], true) as $key => $val) { $tmp_bank[$i][$key] = $val; } unset($tmp_bank[$i]["\x6d\x65\x74\141\x5f\144\141\x74\141"]); $i++; } $admin_bank = array(); $i = 0; function searchForId($id, $array) { foreach ($array as $key => $val) { if ($val["\163\150\x6f\x77\137\x74\171\160\145"] === $id) { return $key; } } return null; } $admin_tws = $this->main_model->custom_query_result("\12\x9\11\x9\x73\x65\154\x65\143\164\40\52\xa\11\11\x9\146\162\157\x6d\x20\x61\x64\x6d\x69\x6e\137\164\x72\165\x65\167\x61\154\x6c\145\164\xa\11\11\11\x77\150\145\x72\x65\40\163\164\141\x74\x75\163\x20\75\40\x31\12\x9\11"); $tmp_tw = array(); $i = 0; foreach ($admin_tws as $tmp) { $tmp_tw[$i] = $tmp; foreach (json_decode($tmp["\x6d\145\164\x61\137\144\x61\164\141"], true) as $key => $val) { $tmp_tw[$i][$key] = $val; } unset($tmp_tw[$i]["\x6d\145\x74\x61\137\x64\141\164\141"]); $i++; } $admin_tw = array(); $i = 0; foreach ($tmp_tw as $tmp) { if ($tmp["\x74\x77\137\x74\x79\x70\x65"] == "\102\x4f\124\x48" || $tmp["\164\167\x5f\164\x79\x70\x65"] == "\104\x45\x50\x4f\x53\111\124") { $admin_tw[$i] = $tmp; $i++; break; } } $bid = null; if (!empty($tmp_bank)) { if ($user_info["\142\141\156\x6b\x5f\151\x64"] == 5) { $bid = searchForId("\117\116\x4c\x59\x5f\123\x43\102", $tmp_bank); if ($bid == null) { $bid = searchForId("\x41\x4c\x4c", $tmp_bank); } if ($bid !== null) { $admin_bank[0] = $tmp_bank[$bid]; $tmp_info = $this->main_model->get_row("\142\141\156\x6b\x5f\x69\x6e\146\157", array("\167\150\x65\162\x65" => array("\143\x6f\154" => "\x62\x61\156\153\137\151\x64", "\x76\141\x6c" => $admin_bank[0]["\142\141\156\153\x5f\151\144"]))); $admin_bank[0]["\x62\x61\156\153\137\x69\x63\157"] = $tmp_info["\x62\141\156\153\137\x69\x63\x6f"]; $admin_bank[0]["\x62\141\156\153\137\x63\157\154\x6f\x72"] = $tmp_info["\x62\141\x6e\153\x5f\143\x6f\x6c\x6f\162"]; } } elseif ($user_info["\x62\141\156\x6b\137\151\144"] == 1) { $bid = searchForId("\x4f\116\x4c\x59\137\113\102\x41\116\113", $tmp_bank); if ($bid == null) { $bid = searchForId("\101\114\x4c", $tmp_bank); } if ($bid !== null) { $admin_bank[0] = $tmp_bank[$bid]; $tmp_info = $this->main_model->get_row("\142\141\156\153\137\151\156\146\157", array("\x77\x68\x65\162\145" => array("\143\x6f\x6c" => "\142\141\156\153\137\x69\x64", "\166\x61\x6c" => $admin_bank[0]["\142\141\156\x6b\x5f\x69\x64"]))); $admin_bank[0]["\x62\x61\156\x6b\137\x69\143\157"] = $tmp_info["\142\141\156\x6b\x5f\x69\x63\x6f"]; $admin_bank[0]["\x62\x61\x6e\153\137\x63\157\154\157\162"] = $tmp_info["\x62\141\x6e\x6b\x5f\143\157\x6c\x6f\x72"]; } } elseif ($user_info["\142\x61\x6e\x6b\137\151\144"] == 29) { $admin_bank = array(); } else { if ($bid == null) { $bid = searchForId("\x41\114\114", $tmp_bank); } if ($bid !== null) { $admin_bank[0] = $tmp_bank[$bid]; $tmp_info = $this->main_model->get_row("\142\141\x6e\153\137\x69\x6e\x66\157", array("\x77\x68\x65\162\145" => array("\x63\x6f\154" => "\x62\x61\x6e\x6b\x5f\x69\x64", "\166\x61\x6c" => $admin_bank[0]["\x62\141\x6e\x6b\x5f\151\x64"]))); $admin_bank[0]["\x62\x61\156\153\x5f\151\x63\x6f"] = $tmp_info["\x62\x61\x6e\x6b\x5f\x69\143\157"]; $admin_bank[0]["\142\x61\156\153\x5f\x63\157\154\157\x72"] = $tmp_info["\x62\141\156\153\137\x63\x6f\154\157\x72"]; } } if ($user_info["\x62\x61\x6e\153\x5f\x69\x64"] != 29) { $admin_tw = array(); } } $decimal = false; if (!empty($admin_bank)) { if ($admin_bank[0]["\143\150\141\x6e\147\x65\137\x61\x63\x63"] == "\x74\162\165\x65") { $page = "\144\145\x70\x6f\x73\x69\x74\55\143\x68\x61\x6e\147\145"; } if ($admin_bank[0]["\144\145\160\x6f\163\151\164\137\144\145\143\151\x6d\141\x6c"] == "\x74\162\x75\x65") { $decimal = true; } } $data["\142\141\x6e\x6b"] = array("\141\x64\x6d\151\x6e\137\142\x61\x6e\x6b" => $admin_bank, "\141\x64\155\x69\x6e\137\x74\x72\165\x65\x77\x61\x6c\x6c\x65\x74" => $admin_tw, "\x75\x73\x65\x72" => $user_info); $promotion_setting = json_decode($this->main_model->get_row("\x6d\145\164\141\137\x70\x72\157\x6d\x6f\x74\x69\x6f\x6e\137\163\145\164\164\151\156\147", array("\167\x68\145\x72\145" => array("\143\x6f\x6c" => "\151\x64", "\166\141\154" => $user_info["\141\143\143\145\x70\164\137\x70\162\x6f\x6d\x6f\164\x69\x6f\156"])))["\155\x65\164\x61"], true); $data["\x75\163\145\x72"]["\160\x72\157\155\157\164\x69\157\156"] = $promotion_setting; $data["\x64\x65\x63\x69\x6d\141\154"] = false; if (empty($_SESSION["\x75\163\145\162"]["\154\x6f\147\x67\145\144\x5f\151\156"])) { header("\x48\x54\124\x50\57\x31\x2e\61\x20\64\60\x31\x20\x55\156\141\x75\x74\150\157\x72\151\172\x65\x64"); } else { $this->form_validation->set_error_delimiters('', "\74\142\x72\x3e"); $this->form_validation->set_rules("\x63\157\x64\145", "\143\157\144\x65", "\164\x72\151\155\x7c\162\x65\x71\165\151\162\145\144", array("\162\145\161\x75\151\x72\x65\x64" => "\xe0\270\x82\xe0\271\x89\xe0\270\xad\xe0\270\xa1\340\270\271\340\xb8\245\xe0\271\x84\xe0\xb8\xa1\xe0\271\x88\340\xb8\x84\xe0\270\xa3\xe0\270\x9a\340\xb8\226\340\271\x89\340\xb8\xa7\xe0\xb8\x99\x20\xe0\xb8\201\xe0\270\xa3\xe0\xb8\xb8\340\xb8\223\340\270\xb2\xe0\271\x83\340\270\252\340\xb9\x88\340\270\202\xe0\271\x89\xe0\270\xad\xe0\xb8\241\340\270\271\xe0\270\245\340\271\x83\xe0\270\253\340\xb9\x89\340\xb8\226\xe0\xb8\271\xe0\270\x81\xe0\xb8\225\340\xb9\211\xe0\270\xad\340\xb8\x87")); if ($this->form_validation->run() === false) { $d = array("\x73\x74\x61\164\x75\163" => "\x65\x72\162\157\162", "\x6d\x65\163\x73\141\x67\x65" => "\340\xb8\201\340\xb8\243\xe0\xb8\270\xe0\270\223\xe0\270\262\340\271\x83\xe0\270\252\340\271\x88\xe0\xb8\202\340\271\211\340\xb8\255\340\270\xa1\xe0\270\xb9\xe0\270\245\340\xb9\203\xe0\xb8\253\340\xb9\211\xe0\270\226\340\xb8\271\340\xb8\x81\340\xb8\225\xe0\xb9\211\xe0\270\255\xe0\xb8\207"); $data["\145\x72\x72\157\162"] = $d["\x6d\x65\x73\x73\x61\x67\145"]; echo $this->load->view("\160\x61\156\x65\x6c\x5f\x75\x73\145\x72\x2f{$theme}\57\141\x6a\x61\170\137\154\157\x61\144\x2f\141\143\143\157\x75\x6e\164\57\x64\x65\x70\x6f\163\x69\x74", $data, true); } else { $code = $this->input->post("\x63\x6f\144\145"); $username = $_SESSION["\165\163\145\x72"]["\165\163\145\162\x6e\141\x6d\145"]; $row_user = $this->user_model->get_user($username); $get = $this->main_model->custom_query_row("\12\11\11\11\11\11\x53\x45\114\x45\x43\124\40\52\xa\x9\11\x9\11\11\x46\x52\117\x4d\40\x74\162\x61\156\x73\x66\x65\162\x5f\162\145\x66\12\x9\x9\11\x9\x9\127\110\x45\x52\105\x20\x6e\x6f\164\145\x20\75\x20\47{$code}\x27\x20\101\116\x44\40\163\164\x61\164\x75\x73\x20\x3d\x20\61\12\11\11\x9\11"); if (empty($get)) { $d = array("\x73\164\x61\x74\165\163" => "\145\162\162\157\x72", "\155\x65\163\163\x61\147\x65" => "\xe0\xb9\x84\xe0\xb8\xa1\xe0\xb9\x88\340\270\xa1\340\270\265\340\271\200\xe0\xb8\245\340\xb8\x82\xe0\270\xad\xe0\271\211\xe0\xb8\262\340\270\207\340\xb8\xad\xe0\xb8\xb4\xe0\xb8\207\xe0\xb8\x99\xe0\xb8\xb5\xe0\271\211\x20\340\xb8\xab\xe0\270\243\xe0\270\xb7\xe0\270\xad\40\xe0\271\200\xe0\270\xa5\xe0\xb8\202\340\xb8\xad\340\xb9\211\340\270\262\340\xb8\207\xe0\270\255\xe0\xb8\264\340\xb8\x87\340\270\231\340\xb8\xb5\340\271\211\340\270\x96\340\270\271\340\xb8\x81\340\271\x83\340\xb8\212\xe0\271\211\xe0\xb9\x84\xe0\xb8\x9b\xe0\xb9\x81\xe0\270\xa5\340\271\211\xe0\270\247"); $data["\x65\x72\162\x6f\x72"] = $d["\x6d\x65\x73\163\141\147\x65"]; echo $this->load->view("\160\x61\156\x65\154\137\x75\163\x65\x72\57{$theme}\x2f\x61\x6a\141\170\137\x6c\157\x61\144\x2f\x61\x63\x63\x6f\165\156\x74\57\144\145\x70\x6f\163\x69\164", $data, true); } else { $data_update = array("\163\164\x61\x74\x75\163" => 0); if ($this->main_model->update("\151\x64", $get["\x69\144"], "\x74\162\141\156\x73\x66\x65\x72\x5f\x72\x65\x66", $data_update)) { $credit = $get["\143\162\x65\x64\x69\x74"]; $res = $this->credit_model->Deposit($credit, $row_user, "\x54\127"); $res = json_decode($res, true); $data["\x74\145\x78\164"] = "\xe0\271\x84\340\270\x94\340\xb9\211\xe0\270\xa3\xe0\xb8\261\340\270\x9a\xe0\xb9\200\xe0\270\x87\340\xb8\264\340\xb8\231\x20" . $credit; echo $this->load->view("\x70\141\x6e\145\154\x5f\165\x73\x65\162\x2f{$theme}\x2f\x61\x6a\x61\170\137\x6c\x6f\x61\144\x2f\x61\x63\x63\157\165\156\x74\57\x64\145\x70\157\163\x69\164\55\x73\x75\143\143\145\163\x73", $data, true); } else { $d = array("\x73\x74\141\x74\x75\163" => "\x65\x72\162\x6f\162", "\155\x65\x73\x73\x61\147\145" => "\340\270\xa1\340\270\265\xe0\xb8\x9a\xe0\270\xb2\xe0\270\x87\340\270\xad\xe0\xb8\xa2\xe0\271\x88\340\270\xb2\xe0\xb8\207\340\270\234\xe0\270\264\340\270\224\340\xb8\x9e\340\xb8\xa5\340\270\262\340\xb8\x94"); $data["\145\162\162\157\x72"] = $d["\155\x65\163\163\141\x67\x65"]; echo $this->load->view("\160\x61\x6e\x65\x6c\x5f\x75\163\x65\x72\57{$theme}\x2f\141\152\141\x78\137\154\157\141\144\x2f\x61\143\x63\x6f\165\156\x74\x2f\144\145\x70\x6f\163\151\164", $data, true); } } } } } public function code_use() { $theme = $this->theme; $theme_path = base_url() . "\141\x73\x73\145\164\x73\137\165\x73\145\x72\x2f" . $theme; $data = array(); $data["\x74\x68\145\155\145\137\160\x61\x74\x68"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\x6d\145\x74\141\137\163\145\164\x74\x69\156\x67", array("\x77\150\145\x72\x65" => array("\x63\157\x6c" => "\151\144", "\x76\x61\154" => "\x62\162\x61\x6e\144\x5f\163\x65\164\164\x69\x6e\147")))["\166\x61\154\x75\x65"], true); $data["\144\141\164\141"] = $tmp; $menu = $this->load->view("\160\x61\x6e\145\154\x5f\x75\163\145\162\x2f{$theme}\57\141\x6a\x61\170\x5f\x6c\x6f\141\x64\57\x61\x63\143\157\x75\x6e\164\x2f\155\x65\156\x75", $data, true); $data["\155\x65\156\165"] = $menu; $data["\x6d\x6f\x62\151\154\145"] = isset($_POST["\x6d\x6f\142\x69\x6c\x65"]) ? true : false; if (empty($_SESSION["\x75\x73\x65\162"]["\154\157\147\x67\145\144\x5f\151\156"])) { header("\x48\x54\x54\120\x2f\61\56\x31\40\x34\x30\61\x20\125\x6e\141\x75\x74\150\x6f\162\x69\x7a\x65\x64"); } else { $this->form_validation->set_error_delimiters('', "\x3c\x62\162\x3e"); $this->form_validation->set_rules("\143\x6f\144\x65", "\143\x6f\144\145", "\x74\x72\x69\155\x7c\162\145\x71\x75\x69\x72\145\144", array("\162\145\161\165\151\162\x65\144" => "\xe0\xb8\x82\xe0\271\211\xe0\xb8\255\xe0\xb8\241\xe0\xb8\xb9\340\xb8\245\340\xb9\x84\xe0\xb8\241\340\271\210\340\xb8\x84\xe0\270\243\340\xb8\232\xe0\270\x96\340\271\x89\xe0\xb8\247\xe0\270\231\x20\340\xb8\201\340\270\243\xe0\270\270\340\270\x93\xe0\270\xb2\340\xb9\x83\340\270\252\340\271\x88\340\xb8\x82\xe0\xb9\211\xe0\xb8\255\340\270\241\xe0\xb8\271\340\xb8\xa5\340\271\203\340\xb8\xab\xe0\xb9\x89\xe0\270\x96\340\xb8\xb9\340\270\201\340\xb8\225\340\xb9\211\xe0\xb8\xad\340\270\207")); if ($this->form_validation->run() === false) { $d = array("\x73\164\x61\164\165\x73" => "\145\x72\162\x6f\x72", "\x6d\x65\x73\x73\141\x67\x65" => "\340\xb8\x81\xe0\270\xa3\xe0\xb8\270\xe0\270\223\340\xb8\xb2\340\xb9\x83\xe0\270\xaa\xe0\271\210\340\270\202\340\xb9\211\340\270\255\340\270\xa1\340\270\xb9\340\xb8\xa5\340\xb9\x83\340\xb8\253\340\271\211\340\xb8\226\340\270\xb9\340\270\x81\340\xb8\x95\xe0\xb9\x89\xe0\xb8\xad\340\270\x87"); header("\103\157\156\x74\x65\x6e\x74\55\x54\x79\x70\x65\72\x20\x61\160\160\154\151\143\x61\164\151\x6f\x6e\x2f\152\x73\157\156\73\40\x63\x68\141\162\163\145\x74\x3d\165\164\x66\55\70", true, 200); die(json_encode($d)); $data["\x65\x72\162\x6f\162"] = $d["\155\145\163\x73\141\147\x65"]; echo $this->load->view("\x70\x61\156\x65\x6c\x5f\x75\x73\145\x72\57{$theme}\x2f\141\152\x61\x78\137\154\x6f\141\x64\57\141\x63\x63\157\x75\x6e\164\57\143\157\x75\x70\x6f\156\x2d\141\160\160\x6c\x79", $data, true); } else { $code = $this->input->post("\143\x6f\x64\x65"); $username = $_SESSION["\x75\x73\x65\162"]["\x75\163\x65\x72\x6e\x61\x6d\x65"]; $row_user = $this->user_model->get_user($username); $tmp_check_promotion = $this->main_model->custom_query_row("\xa\xa\11\11\11\x9\x9\x73\145\154\x65\x63\164\x20\x2a\x20\12\12\11\x9\11\11\x9\146\x72\157\155\40\x6d\x65\x74\141\137\160\162\x6f\x6d\157\164\151\x6f\x6e\12\xa\11\x9\x9\x9\x9\x77\150\x65\162\145\40\165\x5f\x6d\157\x62\151\x6c\145\x20\x3d\x20\x27" . $username . "\47\x20\141\156\144\x20\x73\164\x61\164\x75\163\x20\x3d\x20\61\12\xa\11\11\x9\x9"); if (!empty($tmp_check_promotion)) { $d = array("\163\x74\141\164\x75\163" => "\x65\162\162\x6f\x72", "\155\x65\163\163\x61\x67\145" => "\xe0\xb8\204\340\270\xb8\340\xb8\223\xe0\xb8\xa1\xe0\xb8\xb5\xe0\271\202\xe0\270\233\xe0\xb8\243\340\xb9\202\xe0\270\241\340\270\212\xe0\270\261\xe0\271\x88\340\270\231\xe0\xb8\227\xe0\xb8\265\xe0\271\x88\340\270\243\340\xb8\261\xe0\270\x9a\xe0\270\xad\340\xb8\xa2\xe0\xb8\xb9\340\271\x88\x20\340\xb9\204\xe0\270\241\xe0\xb9\x88\xe0\270\252\xe0\270\262\340\xb8\241\340\270\xb2\340\270\243\340\xb8\226\340\xb9\203\xe0\xb8\x8a\xe0\xb9\211\340\271\x82\340\xb8\x84\340\xb9\211\xe0\270\224\340\xb8\231\xe0\270\xb5\xe0\271\211\340\xb9\204\340\270\x94\xe0\271\x89"); header("\x43\157\156\164\x65\156\164\x2d\124\x79\x70\x65\72\x20\x61\x70\x70\154\x69\143\141\164\x69\157\156\57\152\163\x6f\x6e\73\40\143\x68\x61\162\x73\x65\x74\75\165\x74\x66\x2d\x38", true, 200); die(json_encode($d)); $data["\x65\162\162\x6f\x72"] = $d["\155\x65\x73\163\x61\x67\x65"]; echo $this->load->view("\160\141\x6e\x65\154\x5f\165\163\x65\162\x2f{$theme}\x2f\x61\x6a\141\x78\137\x6c\157\x61\x64\57\x61\x63\x63\157\x75\156\x74\57\143\x6f\x75\x70\x6f\156\55\x61\160\x70\154\171", $data, true); die; } $code_type = "\156\157\162\x6d\x61\x6c"; $check_avai = $this->main_model->custom_query_row("\xa\xa\x9\11\11\11\11\163\x65\154\145\x63\164\40\x2a\40\12\xa\x9\11\x9\11\11\146\x72\x6f\x6d\40\143\157\x64\x65\x5f\146\x72\145\145\12\12\x9\x9\11\11\x9\x77\x68\x65\x72\145\x20\x63\157\144\145\40\75\40\x27{$code}\47\x20\141\x6e\144\40\x73\164\x61\x74\x75\163\x20\x3d\40\x31\x20\x61\x6e\144\40\161\164\x79\40\x3e\40\x75\163\x65\144\12\12\x9\x9\11\11"); if (empty($check_avai)) { $check_avai = $this->main_model->custom_query_row("\xa\xa\x9\x9\11\11\x9\x9\x53\x45\114\x45\103\x54\x20\52\xa\12\11\x9\11\x9\x9\x9\x46\122\x4f\115\40\x73\x6c\x5f\x75\163\x65\x72\163\12\xa\x9\11\11\11\11\11\127\x48\x45\122\105\40\143\157\x64\145\x66\162\145\145\40\x3d\40\x27{$code}\47\x20\x41\x4e\x44\40\x6d\x6f\142\x69\154\x65\x5f\x6e\x6f\40\x3d\40\47{$username}\x27\12\12\x9\11\11\11\x9"); $code_type = "\165\x73\x65\162\x5f\x63\157\144\145"; } if (!empty($check_avai)) { $check = array(); if ($code_type == "\x6e\157\x72\x6d\141\154") { $check = $this->main_model->custom_query_row("\12\xa\x9\x9\11\11\x9\11\11\163\145\x6c\x65\x63\x74\x20\x2a\40\xa\12\11\11\x9\x9\11\11\11\x66\x72\157\155\x20\x63\x6f\144\145\x5f\146\162\145\x65\137\165\x73\145\x64\xa\xa\x9\11\11\x9\x9\x9\11\x77\x68\x65\x72\145\x20\165\163\145\x72\156\x61\x6d\145\x20\x3d\40\x27{$username}\x27\x20\x61\156\x64\x20\x63\157\144\145\40\75\x20\x27{$code}\47\xa\xa\11\11\x9\x9\x9\x9"); } elseif ($code_type == "\x75\x73\145\x72\x5f\x63\157\144\x65") { $check = $this->main_model->custom_query_row("\12\12\11\11\11\x9\x9\11\11\163\145\x6c\x65\143\x74\x20\52\40\xa\12\x9\11\x9\11\11\x9\x9\146\x72\x6f\155\40\x63\x6f\x64\145\x5f\x66\x72\145\x65\137\165\163\145\x64\xa\xa\11\x9\11\11\11\x9\x9\x77\150\x65\162\145\40\x75\x73\145\162\156\141\155\145\40\75\x20\47{$username}\x27\40\141\156\144\40\143\157\144\x65\x20\x3d\x20\x27{$code}\47\12\xa\x9\x9\x9\x9\x9\x9"); } if (!empty($check)) { $d = array("\x73\164\x61\164\165\x73" => "\x65\x72\162\157\x72", "\155\x65\163\x73\x61\x67\145" => "\xe0\xb8\204\340\270\xb8\xe0\xb8\x93\340\271\x83\xe0\270\x8a\xe0\xb9\211\xe0\271\x82\340\xb8\x84\xe0\271\211\xe0\270\224\xe0\xb8\x99\xe0\xb8\xb5\340\271\x89\340\xb9\x84\xe0\xb8\233\340\271\201\340\xb8\245\340\271\x89\340\270\xa7"); header("\103\x6f\x6e\x74\x65\x6e\164\x2d\x54\171\160\145\x3a\40\x61\160\x70\154\151\143\141\x74\151\157\x6e\57\x6a\163\157\x6e\73\40\143\x68\141\162\x73\x65\164\75\x75\164\x66\x2d\70", true, 200); die(json_encode($d)); $data["\145\162\x72\x6f\x72"] = $d["\155\145\x73\x73\141\x67\145"]; echo $this->load->view("\160\141\156\145\x6c\x5f\165\x73\x65\x72\x2f{$theme}\57\141\x6a\x61\170\137\154\157\x61\x64\x2f\x61\143\x63\157\x75\156\164\x2f\143\157\x75\160\157\x6e\x2d\x61\x70\x70\154\171", $data, true); } else { if ($code_type == "\x6e\x6f\x72\x6d\x61\x6c") { $credit = $check_avai["\143\162\145\144\151\164"]; $id = "\103\122\x46" . time() . rand(100, 2); $agent_data = array("\141\x67\x65\156\x74\137\155\x65\x74\150\157\x64" => "\104\103", "\141\x67\x65\156\164\137\x64\141\x74\141" => array("\165\163\145\x72" => $row_user, "\143\x72\145\144\x69\164" => $credit, "\151\x64" => $id)); $res = $this->agent_model->process($agent_data); if ($res["\163\164\141\x74\x75\x73"]) { $id = $res["\x64\141\164\141"]["\x72\145\146\x5f\151\x64"]; $this->main_model->update("\151\x64", $check_avai["\151\144"], "\143\x6f\144\145\137\x66\162\145\145", array("\165\163\x65\144" => $check_avai["\x75\x73\x65\144"] + 1)); $this->main_model->update("\x69\144", $row_user["\x69\144"], "\x73\154\137\165\x73\145\162\x73", array("\164\165\162\x6e" => $row_user["\164\x75\x72\156"] + $check_avai["\x74\x75\162\x6e"])); $date = date("\131\x2d\155\55\144\40\x48\x3a\x69\72\163"); $tmp_data = array("\x69\144" => NULL, "\165\163\145\x72\156\x61\155\x65" => $username, "\x63\157\144\x65" => $code, "\144\141\164\145" => $date, "\x6e\x6f\164\145" => '', "\x74\171\160\145" => "\x6e\x6f\x72\x6d\x61\154", "\x73\x74\141\x74\x75\x73" => 1); $this->main_model->create($tmp_data, "\143\157\144\145\x5f\x66\x72\145\x65\x5f\165\163\145\x64"); $tmp_data = array("\151\x64" => $id, "\x61\x64\x6d\x69\156\137\142\x61\156\153" => "\123\171\x73\164\x65\x6d", "\165\163\145\162\x6e\141\155\145" => $row_user["\155\157\x62\x69\x6c\145\x5f\156\x6f"], "\x63\162\x65\x64\x69\x74" => $credit, "\143\x72\x65\144\x69\x74\137\x62\157\156\x75\163" => 0, "\x63\162\145\x64\x69\164\137\x62\145\146\x6f\162\x65" => $row_user["\143\162\x65\144\151\x74"], "\x63\162\x65\x64\x69\x74\137\141\x66\164\x65\x72" => $row_user["\143\x72\x65\144\x69\164"] + $credit, "\164\162\x61\x6e\163\141\143\164\151\157\156\137\x74\x79\x70\145" => "\x43\x52\x46", "\144\x61\164\145" => $date, "\x6e\157\164\x65" => "\340\271\204\xe0\270\x94\340\271\211\340\270\xa3\xe0\270\261\340\270\x9a\xe0\271\200\xe0\xb8\207\xe0\270\xb4\340\270\231\340\270\x88\xe0\xb8\262\340\270\201\xe0\270\201\340\270\262\340\xb8\xa3\xe0\271\203\340\270\212\340\xb9\211\40\xe0\xb9\x82\xe0\xb8\x84\340\271\x89\xe0\270\224"); $this->main_model->create($tmp_data, "\162\x65\160\x6f\x72\x74\x5f\164\x72\x61\156\x73\x61\x63\164\x69\157\156"); $d = array("\163\x74\141\x74\165\163" => "\163\x75\x63\143\x65\163\x73", "\155\x65\163\x73\141\x67\x65" => "\340\270\x84\340\xb8\270\340\xb8\223\xe0\xb9\204\xe0\xb8\224\xe0\271\211\xe0\270\243\340\270\261\xe0\270\232\x20" . $credit . "\40\xe0\xb9\x80\340\xb8\204\340\xb8\243\xe0\270\224\xe0\270\264\xe0\270\225"); header("\x43\157\x6e\x74\x65\x6e\164\55\x54\171\x70\x65\72\40\x61\160\x70\154\151\x63\141\164\151\x6f\x6e\57\x6a\x73\x6f\x6e\73\40\x63\x68\x61\x72\x73\145\164\x3d\165\x74\146\55\70", true, 200); die(json_encode($d)); $data["\x74\145\x78\x74"] = $d["\x6d\145\163\x73\x61\x67\x65"]; echo $this->load->view("\x70\x61\x6e\145\154\137\x75\163\x65\x72\x2f{$theme}\57\x61\152\141\170\137\154\157\x61\x64\57\141\x63\143\157\x75\x6e\x74\57\143\x6f\165\160\157\x6e\x2d\x61\160\x70\154\171\x2d\x73\x75\143\143\x65\163\x73", $data, true); } else { $d = array("\x73\x74\x61\164\165\x73" => "\145\x72\162\157\x72", "\x6d\145\163\163\141\x67\145" => "\340\270\241\340\xb8\265\xe0\270\x9a\xe0\xb8\262\340\xb8\207\xe0\270\255\xe0\xb8\242\xe0\xb9\210\xe0\xb8\xb2\340\270\x87\xe0\xb8\x9c\340\xb8\xb4\340\270\x94\340\xb8\236\xe0\xb8\245\xe0\270\262\xe0\270\224"); header("\x43\157\x6e\x74\x65\x6e\164\x2d\124\171\160\x65\72\40\141\160\x70\x6c\x69\143\141\164\x69\157\x6e\57\x6a\x73\x6f\156\x3b\x20\x63\x68\x61\162\163\x65\164\x3d\165\164\146\55\70", true, 200); die(json_encode($d)); $data["\145\x72\162\x6f\162"] = $d["\x6d\x65\163\163\141\147\x65"]; echo $this->load->view("\160\x61\x6e\x65\x6c\x5f\165\x73\x65\x72\x2f{$theme}\x2f\141\152\x61\170\137\x6c\157\x61\x64\57\141\x63\x63\x6f\165\x6e\164\57\143\157\165\160\x6f\x6e\55\x61\x70\x70\x6c\x79", $data, true); } } elseif ($code_type == "\165\163\145\x72\x5f\143\x6f\x64\145") { $user_code_setting = json_decode($this->main_model->get_row("\155\145\164\x61\x5f\x73\145\x74\164\x69\x6e\x67", array("\x77\x68\x65\162\145" => array("\143\x6f\154" => "\x69\144", "\166\x61\154" => "\x63\x6f\144\x65\146\162\145\145\x5f\x75\x73\145\162")))["\166\141\x6c\x75\x65"], true); if ($user_code_setting["\163\x74\x61\x74\x75\163"] == "\157\156") { $id = "\x43\122\x46\x55" . time() . rand(100, 2); $credit = $user_code_setting["\143\162\145\144\151\164"]; $agent_data = array("\x61\147\x65\x6e\x74\x5f\x6d\145\x74\150\157\144" => "\104\103", "\141\147\x65\x6e\x74\137\144\x61\x74\141" => array("\165\x73\x65\162" => $row_user, "\x63\x72\145\144\x69\164" => $credit, "\151\x64" => $id)); $res = $this->agent_model->process($agent_data); if ($res["\163\x74\x61\x74\165\x73"]) { $id = $res["\144\141\x74\x61"]["\162\x65\146\x5f\x69\x64"]; $this->main_model->update("\151\144", $row_user["\x69\144"], "\x73\x6c\137\x75\163\145\162\163", array("\x74\165\162\x6e" => $row_user["\164\165\x72\156"] + $user_code_setting["\164\165\x72\156"])); $date = date("\x59\55\x6d\55\x64\40\110\72\x69\72\x73"); $tmp_data = array("\x69\144" => NULL, "\165\x73\x65\x72\x6e\141\x6d\145" => $username, "\143\x6f\x64\145" => $code, "\144\141\164\x65" => $date, "\156\157\164\x65" => '', "\x74\x79\160\x65" => "\x75\163\145\162\137\x63\x6f\x64\145", "\x73\x74\141\x74\x75\x73" => 1); $this->main_model->create($tmp_data, "\x63\x6f\x64\145\x5f\x66\162\x65\145\x5f\165\x73\145\144"); $tmp_data = array("\151\144" => $id, "\141\144\x6d\x69\156\137\142\141\156\x6b" => "\x53\171\163\x74\145\x6d", "\x75\163\145\x72\x6e\141\155\x65" => $row_user["\155\157\x62\x69\154\145\x5f\x6e\157"], "\x63\x72\145\x64\x69\164" => $credit, "\143\162\x65\144\151\x74\137\142\157\x6e\165\163" => 0, "\x63\162\x65\144\151\x74\137\142\145\x66\157\162\x65" => $row_user["\x63\162\x65\x64\x69\164"], "\x63\162\x65\144\151\164\x5f\x61\146\164\x65\x72" => $row_user["\143\162\145\144\151\x74"] + $credit, "\164\x72\x61\x6e\x73\x61\x63\164\x69\x6f\156\x5f\x74\x79\160\x65" => "\x43\122\106\x55", "\x64\x61\164\145" => $date, "\x6e\157\x74\145" => "\xe0\xb9\x84\xe0\270\x94\340\xb9\211\340\270\243\xe0\xb8\xb1\xe0\270\x9a\340\xb9\x80\340\xb8\207\340\270\264\340\270\x99\340\xb8\210\xe0\270\262\xe0\270\201\340\xb8\x81\xe0\270\xb2\xe0\xb8\243\xe0\271\203\340\xb8\212\xe0\xb9\211\40\xe0\271\x82\340\xb8\x84\xe0\271\211\340\xb8\x94"); $this->main_model->create($tmp_data, "\x72\145\160\x6f\x72\164\137\x74\x72\141\x6e\163\x61\x63\164\x69\157\x6e"); $tmp_data = array("\x75\163\x65\x72\x5f\x73\164\x61\164\165\x73" => "\x46\162\145\x65"); $this->main_model->update("\151\x64", $row_user["\x69\x64"], "\163\x6c\x5f\x75\163\145\162\163", $tmp_data); $d = array("\163\x74\141\164\165\x73" => "\163\x75\143\x63\145\163\x73", "\155\x65\163\163\141\147\x65" => "\340\xb8\x84\xe0\270\270\xe0\270\223\340\xb9\x84\340\xb8\x94\340\xb9\211\xe0\270\243\340\xb8\xb1\xe0\270\232\x20" . $credit . "\x20\xe0\xb9\x80\340\xb8\x84\xe0\270\243\340\270\x94\xe0\270\264\xe0\xb8\225"); header("\x43\157\x6e\164\x65\156\x74\55\x54\171\160\145\72\40\x61\x70\160\x6c\x69\x63\141\x74\151\157\x6e\57\x6a\163\x6f\156\x3b\x20\143\x68\x61\x72\163\145\164\75\165\164\x66\55\70", true, 200); die(json_encode($d)); $data["\x74\x65\x78\164"] = $d["\155\x65\163\x73\141\x67\145"]; echo $this->load->view("\160\141\156\x65\154\x5f\165\x73\x65\162\57{$theme}\57\141\x6a\x61\x78\137\154\157\x61\x64\57\141\143\143\x6f\165\156\164\x2f\x63\157\165\x70\157\x6e\x2d\x61\x70\160\154\171\55\x73\x75\x63\x63\x65\x73\163", $data, true); } else { $d = array("\163\x74\x61\x74\x75\163" => "\145\162\x72\157\x72", "\x6d\145\163\163\x61\x67\x65" => "\xe0\270\xa1\340\xb8\265\xe0\xb8\232\340\xb8\262\xe0\270\207\340\xb8\xad\xe0\270\242\xe0\xb9\210\340\270\xb2\340\xb8\x87\340\xb8\234\340\xb8\xb4\xe0\270\x94\340\xb8\236\340\xb8\245\340\xb8\262\340\xb8\224"); header("\103\157\156\x74\x65\156\164\55\x54\x79\160\x65\x3a\40\x61\x70\x70\x6c\x69\x63\141\x74\x69\x6f\156\57\x6a\x73\157\x6e\x3b\x20\143\x68\141\x72\163\145\x74\75\165\164\x66\55\x38", true, 200); die(json_encode($d)); $data["\x65\162\162\x6f\162"] = $d["\155\145\x73\x73\141\x67\145"]; echo $this->load->view("\x70\141\x6e\145\154\x5f\x75\163\x65\162\x2f{$theme}\57\141\152\141\x78\137\154\157\141\144\x2f\141\143\143\157\x75\x6e\x74\57\x63\157\x75\x70\x6f\x6e\55\x61\x70\160\x6c\x79", $data, true); } } else { $d = array("\163\164\141\x74\x75\x73" => "\x65\162\162\157\x72", "\155\145\x73\x73\141\x67\x65" => "\xe0\xb8\xa3\xe0\xb8\xb0\340\270\232\xe0\xb8\232\xe0\xb9\202\xe0\270\x84\xe0\271\211\340\xb8\x94\340\xb8\225\340\xb8\264\xe0\270\x94\xe0\xb8\242\340\270\xb9\340\271\200\340\270\x8b\xe0\270\255\xe0\270\xa3\340\xb9\214\xe0\270\x9b\xe0\270\xb4\340\270\x94\340\xb9\203\xe0\270\x8a\340\271\x89\340\270\x87\xe0\xb8\262\xe0\xb8\231\340\270\x8a\340\270\xb1\340\xb9\210\340\270\247\340\270\x84\340\xb8\243\xe0\xb8\xb2\340\270\247"); header("\x43\x6f\x6e\x74\145\x6e\x74\55\x54\171\x70\x65\72\40\141\160\160\154\x69\143\141\x74\x69\x6f\156\57\x6a\x73\x6f\x6e\73\40\143\150\x61\162\163\x65\164\75\165\164\x66\55\x38", true, 200); die(json_encode($d)); $data["\x65\x72\162\x6f\x72"] = $d["\x6d\x65\x73\x73\x61\x67\x65"]; echo $this->load->view("\x70\141\x6e\x65\x6c\137\x75\163\x65\162\57{$theme}\x2f\141\152\141\170\137\x6c\x6f\x61\x64\x2f\141\x63\x63\157\x75\x6e\x74\x2f\143\x6f\165\160\x6f\156\55\x61\x70\x70\154\x79", $data, true); } } } } else { $d = array("\163\x74\x61\164\x75\x73" => "\x65\x72\x72\157\x72", "\155\145\x73\163\141\147\145" => "\xe0\271\204\340\270\241\340\xb9\x88\340\xb8\241\xe0\xb8\xb5\340\xb9\202\xe0\270\x84\xe0\xb9\x89\xe0\xb8\224\340\xb8\x99\340\270\xb5\xe0\271\x89\xe0\271\x83\xe0\270\x99\340\xb8\xa3\xe0\xb8\260\xe0\xb8\232\340\xb8\x9a\40\340\270\253\xe0\270\xa3\xe0\xb8\xb7\340\xb8\255\x20\340\xb9\x82\xe0\270\204\xe0\xb9\x89\340\270\x94\340\xb8\x99\xe0\270\xb5\340\xb9\211\340\270\x96\340\xb8\xb9\340\270\x81\xe0\xb9\x83\xe0\270\212\340\271\211\xe0\270\253\xe0\270\xa1\xe0\xb8\x94\xe0\xb9\201\340\270\xa5\xe0\271\x89\xe0\xb8\xa7"); header("\x43\157\156\164\x65\156\x74\55\124\x79\x70\145\72\40\x61\160\160\x6c\151\143\x61\x74\x69\x6f\x6e\x2f\x6a\x73\157\156\73\x20\143\x68\x61\x72\x73\x65\x74\75\165\164\x66\x2d\x38", true, 200); die(json_encode($d)); $data["\x65\x72\162\x6f\x72"] = $d["\x6d\x65\163\163\x61\x67\x65"]; echo $this->load->view("\x70\x61\x6e\x65\154\x5f\165\163\x65\x72\57{$theme}\x2f\141\152\x61\170\137\x6c\x6f\x61\x64\x2f\x61\x63\x63\x6f\165\x6e\x74\x2f\143\157\x75\x70\157\156\x2d\x61\x70\x70\154\171", $data, true); } } } } public function testr() { header("\103\x6f\x6e\x74\x65\156\x74\x2d\x54\171\160\x65\72\40\x61\160\x70\x6c\151\143\x61\x74\151\157\156\57\x6a\x73\x6f\x6e\73\x20\143\150\x61\x72\163\145\164\75\165\164\x66\x2d\70"); print_r(json_encode(array("\163\x74\x61\164\165\163" => true, "\144\x65\142\165\x67" => array()))); return; } public function tmn_gift() { header("\x43\x6f\x6e\x74\145\x6e\164\x2d\x54\171\160\145\x3a\x20\x61\160\160\154\151\x63\141\164\151\157\156\x2f\x6a\x73\157\x6e\73\40\143\x68\141\x72\163\145\x74\75\x75\x74\146\55\x38"); if ($_SERVER["\x52\x45\x51\x55\105\x53\x54\137\115\105\124\110\x4f\x44"] !== "\x50\x4f\x53\x54") { print_r(json_encode(array("\x73\164\x61\164\x75\x73" => false, "\x6d\x65\x73\x73\x61\x67\145" => "\115\145\164\x68\x6f\x64\40\x6e\157\164\x20\x61\x6c\154\x6f\x77\x65\x64\x21"))); return; } $tmn_gift = json_decode($this->main_model->get_row("\155\x65\x74\141\x5f\163\145\x74\164\151\x6e\x67", array("\x77\x68\145\162\x65" => array("\143\x6f\154" => "\x69\144", "\166\x61\x6c" => "\164\155\x6e\137\x67\x69\146\164")))["\166\x61\x6c\x75\x65"], true); if (empty($_SESSION["\165\163\145\x72"]["\x6c\x6f\147\x67\145\x64\x5f\x69\156"])) { header("\110\124\124\x50\x2f\61\56\x31\40\64\60\x31\40\125\156\141\x75\x74\150\x6f\162\x69\x7a\x65\x64"); } else { if ($tmn_gift["\145\x6e\x61\142\154\145"] != 1) { header("\x48\124\x54\120\x2f\x31\56\x31\40\64\x30\x30"); print_r(json_encode(array("\163\164\x61\x74\165\163" => false, "\x6d\x65\x73\163\141\x67\145" => "\xe0\xb8\212\340\xb9\210\340\xb8\255\340\270\x87\340\270\x97\340\270\xb2\340\xb8\207\340\270\x9d\xe0\270\262\340\xb8\201\xe0\xb9\200\340\270\207\xe0\270\264\340\xb8\231\340\270\226\340\270\271\xe0\xb8\201\340\xb8\x9b\340\xb8\264\340\270\x94\xe0\xb9\203\340\270\x8a\340\271\x89\340\270\x87\340\xb8\xb2\xe0\xb8\231\41"))); return; } $url = $this->input->post("\x72\145\x66\151\154\154\x5f\164\x6d\x6e\147\151\146\x74"); if (!isset($url)) { header("\x48\124\x54\120\57\x31\56\x31\40\x34\60\60"); return; } $phone = $tmn_gift["\x70\150\x6f\x6e\145"]; $url = "\150\x74\164\160\x73\72\57\x2f\153\x69\55\x61\x6e\x69\x6d\x65\56\x6e\x65\x74\57\107\x69\x66\164\56\160\x68\x70\77\160\150\x6f\156\145\75{$phone}\x26\x68\141\x73\150\75" . urlencode($url); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); $data = json_decode($response); if ($data && $data->status && $data->status->code === "\x53\125\x43\x43\105\x53\x53") { $amount = str_replace("\x2c", '', $data->data->my_ticket->amount_baht); $row_user = $this->user_model->get_user($_SESSION["\x75\163\145\162"]["\x75\163\145\x72\x6e\x61\x6d\145"]); $Deposit = json_decode($this->credit_model->Deposit((double) $amount, $row_user, "\x54\x4d\116\x47"), true); if ($Deposit["\x73\164\141\164\165\163"] == "\x73\x75\x63\x63\x65\163\x73") { print_r(json_encode(array("\163\x74\141\x74\x75\163" => true, "\x6d\x65\x73\x73\x61\x67\145" => "\xe0\xb8\204\340\xb8\270\340\xb8\223\xe0\xb9\x84\340\xb8\224\340\xb9\x89\340\xb8\243\xe0\270\xb1\340\xb8\232\xe0\xb9\x80\xe0\270\x87\xe0\xb8\264\340\270\x99\x20\xe0\270\210\xe0\270\263\xe0\270\x99\340\270\247\xe0\270\231\40" . $amount . "\40\xe0\270\232\xe0\xb8\xb2\340\270\227"))); return; } else { print_r(json_encode(array("\163\164\x61\164\x75\x73" => false, "\x6d\x65\163\x73\141\x67\x65" => "\x53\x59\123\x54\105\x4d\137\105\122\x52\x4f\122\137\63\72\340\xb9\x82\340\270\x9b\340\xb8\xa3\340\xb8\x94\340\xb8\x95\340\xb8\xb4\xe0\270\224\340\270\x95\xe0\271\210\xe0\xb8\xad\xe0\xb9\200\xe0\270\xa3\340\270\xb2\x28" . $token . "\51"))); return; } } else { print_r(json_encode(array("\163\164\141\164\165\163" => false, "\x6d\145\x73\163\141\x67\x65" => "\126\157\165\143\150\x65\x72\40\x6e\157\164\40\146\x6f\x75\156\x64\41\41"))); return; } } } public function slipverify() { header("\103\x6f\x6e\164\x65\156\164\55\x54\x79\x70\x65\x3a\40\141\160\160\154\151\143\141\x74\x69\x6f\x6e\57\x6a\x73\157\x6e\x3b\x20\143\150\x61\162\x73\145\164\x3d\x75\164\x66\55\70"); if ($_SERVER["\x52\x45\121\125\x45\x53\124\x5f\x4d\x45\124\x48\117\104"] !== "\x50\117\x53\124") { print_r(json_encode(array("\163\164\x61\x74\x75\x73" => false, "\x6d\145\x73\x73\141\147\x65" => "\x4d\145\164\150\157\144\40\156\157\x74\x20\141\154\154\x6f\167\x65\x64\41"))); return; } $slipverify = json_decode($this->main_model->get_row("\155\x65\x74\x61\x5f\163\145\164\x74\x69\x6e\147", array("\x77\x68\x65\x72\145" => array("\143\x6f\x6c" => "\151\x64", "\x76\x61\x6c" => "\163\x6c\x69\160\166\145\162\x69\x66\x79")))["\x76\141\x6c\165\x65"], true); if (empty($_SESSION["\x75\x73\x65\x72"]["\x6c\157\x67\147\x65\x64\137\x69\156"])) { header("\110\124\x54\120\57\61\x2e\x31\40\x34\60\x31\x20\125\x6e\141\165\x74\150\x6f\162\x69\x7a\145\x64"); } else { $token = $this->input->post("\164\x6f\153\145\x6e"); $url = "\150\x74\x74\x70\163\72\57\x2f\163\x6c\151\160\x73\x70\154\x75\163\56\143\157\155\57\x61\160\x69\x2f\166\145\x72\x69\x66\x79"; $data = array("\161\x72\x63\157\x64\x65\137\x74\145\x78\164" => $token, "\x6b\145\x79\x5f\x61\160\151" => $slipverify["\164\157\x6b\x65\x6e"], "\x69\160" => $_SERVER["\x52\105\115\x4f\124\105\137\x41\104\x44\x52"]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $response = curl_exec($ch); curl_close($ch); if ($response === false) { print_r(json_encode(array("\x73\x74\x61\x74\x75\x73" => false, "\155\x65\163\x73\x61\147\145" => "\x53\131\x53\x54\105\115\137\x45\x52\122\x4f\x52\137\61"))); return; } else { $data = json_decode($response, true); if ($data["\x73\164\141\164\165\x73"] == 0) { print_r(json_encode(array("\163\164\141\x74\x75\163" => false, "\x6d\x65\163\x73\x61\x67\145" => "\340\xb9\204\xe0\270\xa1\xe0\271\210\xe0\xb8\x9e\340\xb8\232\xe0\270\xa3\340\xb8\262\xe0\270\242\xe0\xb8\x81\340\xb8\262\340\xb8\243\340\xb9\202\xe0\xb8\xad\340\270\231\340\xb9\x80\340\xb8\x87\xe0\xb8\xb4\340\270\x99\x20\x21\x21"))); return; } else { $BackName = "\x4e\117\x4e\105"; $isFound = false; $admin_banks = $this->main_model->custom_query_result("\x73\145\154\x65\x63\x74\x20\x2a\40\146\162\157\155\x20\x61\x64\155\x69\x6e\x5f\142\x61\x6e\x6b"); foreach ($admin_banks as $value) { if ($value["\x73\x74\141\x74\165\x73"] == 1) { $value = json_decode($value["\155\145\164\x61\x5f\x64\x61\164\x61"], true); $bank_acc_number = $value["\x62\141\x6e\x6b\x5f\141\x63\x63\137\x6e\x75\155\142\x65\162"]; $back = $this->main_model->get_row("\142\141\156\153\137\151\x6e\146\157", array("\167\150\145\x72\145" => array("\x63\x6f\x6c" => "\142\x61\x6e\153\137\151\144", "\166\141\x6c" => $value["\x62\x61\x6e\153\137\151\x64"]))); $scbid = $back["\x73\143\x62\137\151\144"]; $banknames = $back["\115\x47\x42\x61\x6e\153\x49\x64"]; if ($scbid == $data["\x72\145\143\x65\x69\x76\x65\x72"]["\142\141\x6e\x6b\x5f\x63\x6f\x64\145"] && similar_text($bank_acc_number, $data["\162\145\x63\145\151\x76\x65\x72"]["\141\x63\143\137\156\x6f"]) >= 4) { $isFound = true; $BackName = $banknames; break; } } } $slip_transRef = $data["\164\162\141\156\163\141\x63\x74\x69\x6f\x6e\x49\144"]; $slip_from = $data["\x73\145\156\x64\x65\x72"]["\x61\x63\x63\137\x6e\x6f"]; $slip_from_bank = $data["\x73\x65\156\144\x65\x72"]["\x62\141\156\153\x5f\156\141\155\x65"]; $slip_date = $data["\x73\x6c\x69\160\x5f\x74\151\x6d\145\163\x74\141\155\160"]; $slip_point = $data["\x61\x6d\157\x75\156\164"]; $check_same = $data["\162\x65\161\165\145\163\x74\137\163\x61\155\x65"]; if ($check_same === 0) { print_r(json_encode(array("\163\164\x61\x74\x75\x73" => false, "\x6d\145\x73\163\x61\147\145" => "\xe0\xb8\xaa\340\xb8\xa5\340\270\264\xe0\270\x9b\340\xb8\x99\340\xb8\xb5\340\xb9\x89\340\xb8\x96\xe0\270\xb9\340\270\201\xe0\xb9\203\xe0\270\212\xe0\xb9\x89\xe0\270\207\xe0\270\xb2\xe0\270\x99\xe0\271\201\xe0\270\xa5\340\271\x89\xe0\270\247\40\41\x21"))); return; } else { if (!$isFound) { print_r(json_encode(array("\163\x74\x61\x74\x75\x73" => false, "\155\x65\x73\x73\x61\147\145" => "\xe0\271\204\340\xb8\xa1\340\271\x88\340\270\x9e\340\xb8\232\xe0\270\xa3\xe0\xb8\262\xe0\xb8\xa2\340\270\201\xe0\xb8\262\xe0\270\xa3\xe0\271\x82\340\270\xad\xe0\270\231\340\271\x80\340\270\x87\xe0\xb8\xb4\340\xb8\x99\x20\41\x21"))); return; } else { $row_user = $this->user_model->get_user($_SESSION["\165\x73\145\x72"]["\165\x73\x65\x72\x6e\x61\x6d\x65"]); $Deposit = json_decode($this->credit_model->Deposit((double) $slip_point, $row_user, "\x53\114\x49\120"), true); if ($Deposit["\x73\164\x61\164\165\163"] == "\x73\165\143\143\145\x73\x73") { print_r(json_encode(array("\163\164\141\x74\165\x73" => true, "\x6d\x65\x73\x73\141\x67\145" => "\xe0\270\204\340\xb8\xb8\xe0\xb8\x93\xe0\xb9\204\xe0\270\x94\xe0\xb9\211\340\xb8\xa3\340\270\xb1\340\270\x9a\340\271\x80\xe0\xb8\207\xe0\270\264\340\xb8\231\40\340\xb8\x88\xe0\270\xb3\340\270\231\340\270\xa7\340\xb8\x99\x20" . $slip_point . "\x20\340\xb8\232\xe0\xb8\262\340\xb8\227"))); return; } else { print_r(json_encode(array("\163\x74\x61\164\x75\x73" => false, "\155\145\163\163\141\x67\145" => "\x53\x59\123\x54\105\115\x5f\x45\x52\122\117\122\x5f\63\72\340\xb9\202\xe0\270\x9b\340\270\243\340\xb8\224\340\xb8\225\xe0\xb8\264\340\270\x94\340\270\x95\340\xb9\210\xe0\xb8\xad\xe0\271\200\xe0\270\243\340\xb8\262\50" . $token . "\x29"))); return; } } } } } } } public function qrpaypoint() { header("\103\157\156\164\x65\x6e\x74\55\x54\x79\x70\x65\72\40\141\x70\x70\x6c\x69\x63\x61\x74\151\157\156\57\x6a\163\x6f\156\73\x20\x63\150\x61\x72\x73\x65\164\75\165\164\x66\55\70"); if ($_SERVER["\x52\105\x51\x55\105\x53\x54\137\115\105\124\110\x4f\x44"] !== "\x50\117\x53\124") { print_r(json_encode(array("\x73\x74\x61\164\165\163" => false, "\x6d\x65\163\163\x61\x67\x65" => "\115\145\164\x68\157\144\x20\156\x6f\x74\40\x61\x6c\154\x6f\167\x65\x64\41"))); return; } $inputJSON = file_get_contents("\x70\150\x70\72\x2f\x2f\x69\156\x70\x75\164"); $input = json_decode($inputJSON, true); $status = $input["\x73\164\141\164\x75\163"]; $qrCodeTransactionId = $input["\x71\x72\103\157\144\145\124\162\141\x6e\163\x61\143\164\x69\157\156\x49\x64"]; $message = $input["\x6d\145\x73\163\141\147\x65"]; $string = $qrCodeTransactionId; preg_match("\x2f\x5f\50\134\144\53\x29\57", $string, $matches); if ($status == 200) { $row_user = $this->user_model->get_user($matches[1]); $row_point = $this->user_model->get_point($qrCodeTransactionId); $Deposit = json_decode($this->credit_model->Deposit((double) $row_point["\141\x6d\157\165\156\164"], $row_user, "\121\x52\120\x41\x59"), true); if ($Deposit["\x73\164\141\164\x75\163"] == "\163\x75\143\x63\x65\x73\x73") { print_r(json_encode(array("\163\164\x61\x74\x75\x73" => 200, "\161\x72\x43\x6f\x64\x65\x54\162\141\x6e\163\x61\x63\164\x69\157\x6e\x49\144" => $qrCodeTransactionId, "\155\145\163\163\x61\147\x65" => "\x53\165\x63\x63\x65\x73\x73\x66\165\x6c\154\x79\x20\162\145\143\145\x69\x76\x65\144\x20\x50\x61\171\155\145\x6e\x74\40\116\157\164\151\x66\151\143\x61\164\x69\x6f\156\x20\x43\141\154\x6c\142\x61\x63\x6b"))); return; } else { print_r(json_encode(array("\x73\164\x61\164\x75\163" => 400, "\x71\x72\x43\157\144\x65\124\x72\x61\156\163\x61\x63\x74\x69\x6f\x6e\x49\x64" => $qrCodeTransactionId, "\155\145\163\163\141\x67\x65" => "\106\x61\x69\x6c\40\162\145\143\145\151\x76\x65\x64\x20\120\x61\171\155\x65\x6e\164\40\116\157\x74\x69\146\151\143\x61\164\x69\157\156\x20\103\141\154\154\x62\141\x63\153"))); return; } } else { print_r(json_encode(array("\163\164\x61\x74\165\x73" => 400, "\x71\162\103\x6f\144\x65\124\162\x61\x6e\x73\x61\x63\164\x69\x6f\156\111\144" => $qrCodeTransactionId, "\155\145\x73\x73\141\147\x65" => "\106\x61\x69\154\40\162\x65\143\145\151\x76\145\x64\x20\120\141\171\155\x65\x6e\x74\x20\x4e\157\164\151\146\x69\x63\x61\164\x69\x6f\156\40\103\141\x6c\x6c\x62\x61\x63\x6b"))); return; } } public function scbslip() { header("\x43\x6f\156\164\x65\156\164\x2d\x54\x79\160\x65\72\x20\x61\160\160\154\151\143\141\164\151\157\156\57\x6a\163\157\x6e\73\x20\143\150\141\x72\163\x65\164\75\165\x74\x66\55\70"); $row_user = $this->user_model->get_user($_SESSION["\165\163\x65\x72"]["\x75\163\145\162\156\141\155\145"]); $Deposit = json_decode($this->credit_model->Deposit((double) 1000.0, $row_user, "\x51\122\x50\x41\131"), true); if ($Deposit["\x73\164\x61\x74\x75\163"] == "\x73\x75\x63\143\145\163\163") { print_r(json_encode(array("\x73\164\141\x74\x75\163" => 200, "\x6d\x65\163\163\x61\x67\145" => "\123\165\143\143\145\163\163\146\165\x6c\154\171\40\162\x65\x63\145\x69\166\x65\x64\40\120\x61\x79\x6d\145\156\x74\40\116\157\x74\151\146\x69\x63\141\164\151\x6f\x6e\40\x43\x61\x6c\x6c\x62\141\143\153"))); return; } else { print_r(json_encode(array("\163\164\141\164\165\x73" => 400, "\x71\162\103\x6f\144\145\124\x72\x61\156\x73\141\143\164\x69\157\x6e\x49\144" => $qrCodeTransactionId, "\x6d\x65\163\x73\x61\x67\x65" => "\106\141\x69\154\40\x72\145\143\x65\151\166\145\144\x20\x50\x61\x79\x6d\x65\156\x74\x20\116\157\x74\151\146\x69\143\141\164\151\157\156\x20\x43\141\x6c\154\142\141\x63\x6b"))); return; } } public function callqrpaypoint() { header("\x43\x6f\x6e\x74\x65\x6e\164\55\124\x79\x70\x65\72\x20\141\160\x70\x6c\151\x63\x61\164\151\x6f\156\x2f\x6a\163\157\156\73\40\143\x68\141\x72\x73\145\164\75\x75\x74\146\55\70"); if ($_SERVER["\x52\x45\121\125\105\123\124\x5f\115\x45\x54\x48\117\104"] !== "\x50\117\123\124") { print_r(json_encode(array("\163\x74\x61\164\165\163" => false, "\x6d\x65\x73\x73\x61\x67\145" => "\x4d\x65\164\150\x6f\144\40\156\x6f\x74\40\x61\154\x6c\157\167\145\144\41"))); return; } $inputJSON = file_get_contents("\160\150\160\72\57\x2f\151\x6e\x70\165\164"); $input = json_decode($inputJSON, true); $status = $input["\163\x74\141\x74\165\163"]; $type = $input["\164\x79\160\x65"]; $callbackStatus = $input["\x63\x61\x6c\154\142\141\143\x6b\x53\164\141\164\165\x73"]; $amount = $input["\141\x6d\157\x75\156\x74"]; $fees = $input["\x66\145\145\163"]; $currencyCode = $input["\x63\165\x72\x72\145\x6e\143\171\x43\157\144\145"]; $qrCodeTransactionId = $input["\x71\x72\x43\157\x64\145\x54\162\141\156\x73\141\x63\164\151\157\x6e\x49\144"]; $transactionRef1 = $input["\x74\162\141\x6e\x73\141\143\164\x69\157\156\122\145\x66\x31"]; $transactionRef2 = $input["\x74\x72\x61\156\163\x61\x63\x74\151\x6f\156\122\145\146\62"]; $transactionRef3 = $input["\x74\162\141\156\x73\141\x63\164\151\157\156\122\145\x66\x33"]; $merchant = $input["\155\145\x72\x63\150\x61\156\x74"]; $createdAt = $input["\x63\x72\145\141\164\x65\144\101\164"]; $updatedAt = $input["\165\x70\x64\x61\164\145\144\x41\x74"]; $qrPayBankRef = $input["\x71\162\120\141\171\102\x61\156\153\122\145\x66"]; $id = $input["\x69\x64"]; $tmp_data["\163\x74\141\164\x75\x73"] = $status; $tmp_data["\x74\x79\160\145"] = $type; $tmp_data["\143\141\154\154\x62\x61\x63\x6b\x53\x74\141\x74\165\x73"] = $callbackStatus; $tmp_data["\141\x6d\x6f\x75\x6e\x74"] = $amount; $tmp_data["\x66\145\145\x73"] = $fees; $tmp_data["\143\x75\162\162\145\x6e\x63\171\x43\x6f\144\x65"] = $currencyCode; $tmp_data["\161\162\103\157\x64\x65\124\x72\x61\x6e\x73\x61\143\x74\151\157\x6e\x49\144"] = $qrCodeTransactionId; $tmp_data["\x74\162\141\156\163\x61\x63\x74\151\157\x6e\x52\145\146\61"] = $transactionRef1; $tmp_data["\x74\162\141\156\x73\141\143\164\151\x6f\x6e\122\145\x66\62"] = $transactionRef2; $tmp_data["\x74\x72\141\x6e\163\x61\x63\x74\151\157\156\x52\145\x66\63"] = $transactionRef3; $tmp_data["\x6d\x65\162\x63\150\x61\156\x74"] = $merchant; $tmp_data["\143\162\x65\141\164\x65\x64\x41\164"] = $createdAt; $tmp_data["\165\160\x64\x61\164\x65\144\101\x74"] = $updatedAt; $tmp_data["\161\x72\120\141\x79\x42\x61\x6e\x6b\122\145\x66"] = $qrPayBankRef; $tmp_data["\160\151\x64"] = $id; $this->user_model->create_qrpayment($tmp_data); if ($status == "\60\x32\x5f\x50\141\x69\144") { $string = $qrCodeTransactionId; preg_match("\57\x5f\x28\134\144\x2b\x29\x2f", $string, $matches); $row_user = $this->user_model->get_user($matches[1]); $Deposit = json_decode($this->credit_model->Deposit((double) $amount, $row_user, "\121\x52\120\x41\131"), true); $tmp = json_decode($this->main_model->get_row("\155\x65\x74\141\137\x73\x65\164\x74\151\156\147", array("\167\x68\x65\x72\145" => array("\143\x6f\154" => "\151\x64", "\x76\141\x6c" => "\x63\x61\162\x64\137\163\x65\x74\x74\x69\x6e\x67")))["\166\x61\x6c\165\x65"], true); $ticket_total = floor($amount / $tmp["\143\x72\145\144\x69\164\137\143\x6f\x6c\154\145\x63\x74"]); if ($ticket_total > 0 && $tmp["\145\156\141\142\x6c\x65"] == 1) { $this->main_model->update("\155\157\x62\x69\x6c\x65\137\x6e\157", $row_user["\155\x6f\x62\x69\x6c\145\x5f\x6e\157"], "\163\x6c\x5f\165\163\145\162\163", array("\x74\151\143\153\145\164\x5f\x63\x61\x72\x64" => $row_user["\164\x69\143\x6b\x65\x74\x5f\143\141\x72\x64"] + $ticket_total)); } $tmp = json_decode($this->main_model->get_row("\155\x65\x74\141\137\x73\145\x74\x74\151\x6e\x67", array("\167\150\145\162\x65" => array("\x63\157\154" => "\x69\144", "\x76\x61\x6c" => "\167\150\145\x65\154\x5f\163\x65\164\164\151\156\x67")))["\x76\141\x6c\165\145"], true); $ticket_total = floor($amount / $tmp["\143\x72\145\144\151\x74\x5f\143\x6f\154\x6c\145\143\x74"]); if ($ticket_total > 0 && $tmp["\145\x6e\x61\142\154\x65"] == 1) { $this->main_model->update("\155\x6f\142\151\154\x65\137\x6e\x6f", $row_user["\x6d\x6f\x62\151\x6c\145\x5f\x6e\157"], "\163\154\137\165\163\145\x72\x73", array("\x74\151\x63\x6b\x65\164\x5f\167\x68\145\x65\x6c" => $row_user["\x74\151\x63\x6b\145\x74\x5f\167\x68\145\x65\x6c"] + $ticket_total)); } if ($Deposit["\163\x74\x61\164\165\x73"] == "\x73\165\143\x63\145\x73\x73") { print_r(json_encode(array("\x73\x74\x61\x74\165\x73" => "\x73\165\143\x63\x65\x73\163", "\155\145\163\163\141\147\x65" => "\x43\141\154\154\x62\x61\x63\153\40\162\x65\x63\145\x69\166\x65\x64\x20\163\x75\143\143\x65\x73\163\x66\165\154\154\171"))); return; } else { print_r(json_encode(array("\x73\x74\141\164\165\x73" => "\145\x72\162\157\x72", "\x6d\x65\x73\x73\x61\x67\145" => "\103\141\154\x6c\x62\x61\x63\153\40\162\x65\x63\145\x69\x76\x65\144\x20\146\141\151\x6c"))); return; } } else { print_r(json_encode(array("\163\x74\141\x74\165\x73" => "\x65\x72\x72\x6f\x72", "\155\x65\163\x73\141\x67\145" => "\103\141\154\154\x62\141\x63\x6b\40\x72\145\x63\x65\151\166\145\x64\40\x66\141\x69\154"))); return; } } public function change_password() { $theme = $this->theme; $theme_path = base_url() . "\x61\163\163\x65\164\163\137\165\x73\145\x72\x2f" . $theme; $data = array(); $data["\x74\150\x65\155\x65\x5f\160\x61\164\x68"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\x6d\145\x74\141\x5f\x73\145\164\164\151\156\x67", array("\167\x68\x65\162\x65" => array("\143\x6f\x6c" => "\x69\144", "\x76\x61\x6c" => "\x62\162\x61\x6e\144\137\163\x65\x74\164\x69\x6e\147")))["\166\141\154\x75\x65"], true); $data["\x64\x61\x74\141"] = $tmp; if (empty($_SESSION["\x75\163\x65\x72"]["\x6c\x6f\147\x67\x65\144\x5f\x69\156"])) { header("\x48\124\x54\x50\x2f\x31\x2e\61\x20\64\x30\61\40\125\156\x61\165\164\x68\157\x72\x69\x7a\x65\144"); } else { $tmp_data = $this->input->post(); if (empty($tmp_data)) { $data["\x65\162\162\x6f\162"] = "\xe0\xb9\202\xe0\270\x9b\340\xb8\xa3\340\270\224\340\270\201\xe0\270\243\340\xb8\255\xe0\xb8\201\340\270\202\340\xb9\x89\340\270\xad\340\270\241\340\xb8\xb9\340\xb8\245"; $d = array("\x73\164\x61\164\x75\x73" => "\145\x72\x72\157\162", "\x6d\x65\x73\163\x61\x67\145" => "\xe0\xb9\202\340\270\x9b\340\270\xa3\340\270\x94\340\xb8\x81\340\xb8\xa3\340\xb8\255\340\270\201\xe0\xb8\x82\340\271\211\340\270\xad\340\270\xa1\xe0\xb8\271\340\xb8\xa5"); header("\x43\x6f\156\164\145\156\x74\x2d\x54\x79\x70\145\x3a\40\141\x70\160\154\151\x63\x61\164\x69\x6f\156\x2f\152\163\x6f\x6e\x3b\x20\x63\150\141\x72\163\145\x74\x3d\165\164\146\55\70", true, 200); die(json_encode($d)); echo $this->load->view("\x70\x61\156\x65\x6c\x5f\165\163\x65\x72\57{$theme}\x2f\141\152\141\x78\137\x6c\x6f\x61\x64\57\x61\143\143\157\x75\156\x74\57\143\150\141\156\x67\x65\x2d\x70\x61\x73\x73\167\157\x72\144", $data, true); die; } $tmp_data = array("\x63\165\x72\162\145\x6e\x74\x5f\x70\x61\x73\x73\x77\157\162\x64" => $tmp_data["\163\x79\154\x69\x75\x73\x5f\x75\163\x65\x72\x5f\143\150\x61\156\147\x65\x5f\160\x61\x73\163\167\157\x72\x64"]["\143\x75\x72\x72\x65\156\x74\120\141\163\163\167\x6f\x72\144"], "\156\x65\167\x5f\160\x61\163\x73\x77\157\x72\x64" => $tmp_data["\163\171\154\x69\165\x73\x5f\165\x73\x65\162\x5f\x63\150\x61\x6e\x67\145\137\x70\141\163\163\167\x6f\x72\144"]["\156\x65\x77\120\x61\163\x73\167\157\x72\x64"]["\146\151\162\x73\x74"], "\156\x65\167\x5f\160\141\163\163\167\157\x72\144\x5f\x63\157\x6e\x66\151\x72\155\141\x74\151\x6f\x6e" => $tmp_data["\x73\x79\154\x69\165\163\x5f\165\163\x65\x72\x5f\x63\150\x61\x6e\x67\145\137\x70\141\x73\163\x77\x6f\x72\144"]["\156\145\167\120\x61\x73\163\167\157\162\x64"]["\163\x65\x63\x6f\x6e\144"]); if ($this->user_model->resolve_user_login($_SESSION["\165\163\x65\162"]["\x6d\x6f\142\151\154\x65"], $tmp_data["\143\x75\162\x72\145\156\164\x5f\x70\141\163\x73\x77\x6f\162\x64"])) { if ($tmp_data["\156\x65\x77\x5f\160\141\163\x73\x77\x6f\162\x64"] == $tmp_data["\156\x65\167\137\160\x61\x73\x73\167\157\x72\x64\x5f\143\x6f\x6e\x66\x69\162\155\141\164\151\157\x6e"]) { $validatePassword = $this->user_model->validatePassword($tmp_data["\x6e\x65\167\137\x70\x61\163\x73\167\157\162\144"]); if ($validatePassword == false) { $row_user = $this->user_model->get_user($_SESSION["\x75\x73\145\162"]["\151\144"]); $agent_data = array("\x61\x67\145\x6e\x74\137\x6d\145\x74\150\x6f\144" => "\x53\120", "\x61\x67\145\x6e\x74\x5f\x64\141\x74\141" => array("\165\x73\145\x72" => $row_user, "\156\145\x77\137\160\141\163\x73\x77\157\162\144" => $tmp_data["\156\145\x77\x5f\160\x61\x73\x73\x77\x6f\162\144"])); $res = $this->agent_model->process($agent_data); if ($res["\163\x74\x61\x74\165\163"]) { $new_data["\160\141\x73\163\x77\x6f\162\144"] = $tmp_data["\x6e\145\x77\137\x70\141\x73\x73\167\x6f\x72\144"]; if ($this->main_model->update("\151\x64", $_SESSION["\x75\x73\x65\162"]["\151\x64"], "\163\x6c\x5f\x75\163\x65\162\163", $new_data)) { $d = array("\163\x74\x61\x74\x75\163" => "\x73\165\143\143\x65\163\x73", "\x6d\x65\x73\x73\x61\147\145" => "\xe0\xb9\200\xe0\270\233\340\xb8\xa5\340\270\xb5\340\xb9\x88\340\xb8\242\xe0\xb8\231\xe0\xb8\xa3\xe0\xb8\253\340\270\261\340\270\252\340\xb8\x9c\340\271\x88\340\xb8\262\xe0\270\x99\340\271\x80\xe0\270\243\340\270\xb5\340\270\242\xe0\xb8\232\340\270\243\340\271\x89\340\270\xad\340\xb8\xa2"); header("\103\157\x6e\164\x65\x6e\164\x2d\124\171\160\145\x3a\x20\141\160\x70\x6c\x69\143\x61\164\151\157\x6e\x2f\152\x73\157\156\73\40\143\x68\x61\x72\163\x65\x74\75\165\164\x66\55\70", true, 200); die(json_encode($d)); $data["\145\x72\162\x6f\162"] = $d["\x6d\145\x73\x73\x61\x67\x65"]; echo $this->load->view("\x70\141\156\145\154\137\165\163\x65\x72\x2f{$theme}\x2f\141\152\141\x78\137\x6c\157\x61\x64\x2f\141\x63\143\157\165\156\x74\x2f\x70\x61\x73\x73\x77\x6f\162\144\137\163\165\143\143\145\x73\163", $data, true); } else { $d = array("\163\164\x61\x74\x75\163" => "\145\162\x72\x6f\162", "\x6d\145\x73\163\x61\147\145" => "\xe0\270\241\340\xb8\265\xe0\xb8\232\340\xb8\262\xe0\270\207\xe0\270\255\xe0\270\242\xe0\271\x88\xe0\270\xb2\340\270\207\340\xb8\234\xe0\xb8\xb4\340\270\x94\xe0\270\236\340\270\xa5\340\xb8\xb2\340\270\224\x20\xe0\xb8\x81\xe0\xb8\243\340\xb8\270\xe0\xb8\x93\340\270\xb2\xe0\xb8\245\340\270\xad\340\270\x87\340\xb8\255\xe0\xb8\xb5\340\270\201\340\270\x84\340\270\243\340\270\261\340\271\211\340\270\207\x20\74\x62\x72\x3e\40\x43\x6f\x64\145\40\x3a\40\x31\60\x30\60"); header("\x43\157\x6e\164\145\x6e\164\55\x54\x79\160\145\x3a\40\141\160\x70\154\151\143\141\x74\151\x6f\x6e\57\x6a\163\157\x6e\x3b\x20\x63\150\x61\162\163\x65\164\x3d\x75\164\x66\x2d\70", true, 200); die(json_encode($d)); $data["\145\162\162\x6f\x72"] = $d["\x6d\x65\163\163\141\147\145"]; echo $this->load->view("\x70\141\156\x65\154\x5f\165\x73\x65\x72\x2f{$theme}\57\x61\x6a\141\170\x5f\x6c\x6f\x61\x64\57\141\143\143\157\165\x6e\x74\x2f\x63\x68\x61\156\x67\145\55\160\141\163\163\x77\157\162\144", $data, true); } } else { $d = array("\x73\x74\141\164\165\x73" => "\145\162\162\157\x72", "\155\145\163\163\x61\x67\145" => "\xe0\270\241\340\xb8\265\xe0\270\232\xe0\xb8\xb2\340\xb8\x87\xe0\xb8\xad\xe0\270\xa2\xe0\xb9\210\xe0\xb8\xb2\xe0\xb8\207\340\xb8\234\340\270\xb4\xe0\xb8\224\340\xb8\x9e\340\xb8\245\340\xb8\xb2\xe0\270\224\x20\74\142\x72\76\x20\103\x6f\144\x65\x20\x3a\40\62\x30\60\x30\40\x3c\142\162\x3e\x20\115\163\147\x20\72\40" . $res["\x6d\x73\147"]); header("\x43\x6f\156\x74\x65\x6e\164\55\x54\171\160\145\72\40\141\x70\160\x6c\x69\143\141\x74\x69\157\156\57\152\x73\157\x6e\73\x20\143\x68\141\162\x73\145\164\x3d\x75\164\146\x2d\x38", true, 200); die(json_encode($d)); $data["\145\x72\x72\x6f\162"] = $d["\x6d\145\x73\163\141\x67\145"]; echo $this->load->view("\160\141\x6e\145\154\137\x75\163\145\162\x2f{$theme}\x2f\x61\152\141\x78\x5f\x6c\x6f\x61\144\57\x61\x63\143\157\165\x6e\x74\x2f\x63\x68\x61\156\147\x65\x2d\x70\x61\x73\x73\x77\157\x72\x64", $data, true); } } else { $d = array("\163\x74\141\164\x75\x73" => "\145\162\x72\x6f\162", "\155\145\x73\163\x61\147\145" => $validatePassword); header("\x43\157\x6e\x74\x65\156\164\55\x54\171\x70\145\72\40\x61\160\160\154\x69\x63\141\164\x69\157\156\x2f\152\x73\157\x6e\x3b\40\143\x68\x61\162\163\145\164\x3d\165\164\146\55\x38", true, 200); die(json_encode($d)); $data["\145\x72\162\x6f\x72"] = $d["\155\145\163\163\x61\x67\145"]; echo $this->load->view("\x70\141\x6e\145\154\137\165\163\x65\162\57{$theme}\x2f\141\152\141\170\137\154\157\141\x64\x2f\141\143\x63\157\x75\x6e\164\57\x63\150\x61\x6e\x67\x65\x2d\160\141\x73\x73\x77\x6f\x72\144", $data, true); } } else { $d = array("\x73\x74\141\x74\x75\163" => "\x65\162\162\157\x72", "\155\145\163\163\141\147\145" => "\340\xb8\xa3\xe0\270\253\340\xb8\xb1\340\xb8\252\340\xb8\234\xe0\xb9\x88\340\xb8\xb2\xe0\xb8\x99\340\xb9\x84\340\270\xa1\340\271\210\xe0\xb8\x95\340\xb8\243\340\xb8\x87\xe0\270\201\340\270\xb1\340\270\x99"); header("\x43\157\156\164\x65\x6e\x74\55\124\x79\160\145\x3a\x20\141\x70\160\154\151\143\x61\x74\x69\x6f\156\x2f\x6a\x73\x6f\156\x3b\40\x63\150\141\x72\163\145\164\x3d\x75\x74\x66\x2d\x38", true, 200); die(json_encode($d)); $data["\x65\x72\162\x6f\162"] = $d["\x6d\145\x73\x73\141\147\x65"]; echo $this->load->view("\x70\x61\156\145\154\x5f\x75\x73\145\162\57{$theme}\57\141\152\141\170\137\x6c\157\141\x64\x2f\141\x63\143\157\x75\x6e\164\57\x63\x68\x61\x6e\147\145\55\160\x61\x73\x73\x77\x6f\x72\x64", $data, true); } } else { $d = array("\163\164\141\x74\165\x73" => "\145\x72\162\x6f\x72", "\155\145\x73\163\x61\x67\x65" => "\340\270\243\340\270\xab\xe0\xb8\xb1\xe0\xb8\xaa\xe0\xb8\x9c\340\271\210\340\270\xb2\340\xb8\231\340\271\200\340\xb8\x94\340\xb8\264\xe0\xb8\241\340\xb9\x84\340\270\241\340\271\210\340\270\226\xe0\270\271\xe0\270\x81\340\270\x95\xe0\xb9\x89\340\xb8\xad\340\270\207"); header("\103\157\x6e\x74\145\156\164\55\x54\171\x70\145\x3a\40\x61\160\x70\x6c\151\x63\141\x74\x69\x6f\156\57\152\x73\157\156\x3b\x20\143\x68\141\162\163\x65\164\75\x75\x74\x66\x2d\x38", true, 200); die(json_encode($d)); $data["\145\162\x72\x6f\x72"] = $d["\x6d\145\x73\163\x61\147\x65"]; echo $this->load->view("\160\141\x6e\x65\x6c\137\x75\163\145\x72\x2f{$theme}\57\141\152\x61\170\x5f\x6c\157\141\x64\57\x61\143\x63\157\x75\x6e\164\57\x63\x68\141\156\147\x65\x2d\x70\141\163\x73\x77\x6f\x72\144", $data, true); } } } public function account($page = false) { $theme = $this->theme; $theme_path = base_url() . "\141\163\x73\145\x74\x73\137\165\x73\x65\162\x2f" . $theme; $data = array(); $data["\164\150\x65\155\x65\x5f\x70\x61\x74\x68"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\x6d\145\x74\x61\x5f\163\145\x74\164\151\156\x67", array("\x77\150\145\162\145" => array("\x63\x6f\x6c" => "\x69\144", "\166\141\154" => "\x62\x72\141\x6e\144\137\163\x65\164\x74\151\x6e\x67")))["\166\141\x6c\x75\x65"], true); $data["\x64\141\x74\141"] = $tmp; if (empty($_SESSION["\x75\163\x65\x72"]["\x6c\157\x67\x67\x65\x64\137\151\156"])) { echo "\x3c\163\x63\x72\x69\160\x74\x3e\x6c\x6f\143\141\164\151\x6f\156\x2e\150\162\145\x66\40\75\40\x22" . base_url() . "\x22\x3b\74\57\163\143\x72\x69\x70\x74\x3e"; } else { $row_user = $this->user_model->get_user($_SESSION["\165\x73\x65\162"]["\x69\x64"]); $bank_info = $this->main_model->get_bank_info($row_user["\142\141\156\x6b\x5f\151\144"]); $data["\x75\x73\145\162"] = $row_user; $data["\165\x73\145\x72"]["\x62\141\x6e\153\137\x69\x6e\x66\157"] = $bank_info; $data["\x6d\x6f\142\151\x6c\145"] = isset($_GET["\151\163\115\x6f\142\151\x6c\x65\126\x69\145\167"]) ? true : false; $menu = $this->load->view("\x70\141\156\x65\x6c\137\x75\x73\145\162\x2f{$theme}\x2f\141\x6a\141\170\137\154\x6f\x61\144\x2f\141\143\x63\x6f\165\156\164\x2f\155\x65\x6e\165", $data, true); $data["\155\145\x6e\x75"] = $menu; if ($page == "\143\x61\x6e\143\x6c\x65\x2d\160\x72\x6f\155\157\164\x69\x6f\156") { $this->main_model->custom_query("\12\x9\x9\x9\x9\11\x55\x50\104\101\x54\x45\x20\155\x65\x74\x61\137\x70\x72\157\x6d\x6f\164\151\x6f\x6e\12\11\x9\x9\11\11\x53\x45\x54\x20\x73\x74\141\164\x75\163\40\75\x20\60\xa\x9\x9\x9\x9\11\x57\x48\105\x52\x45\40\165\137\x6d\157\x62\x69\x6c\145\40\75\40\47{$row_user["\x6d\157\142\151\x6c\x65\x5f\156\157"]}\x27\xa\x9\11\x9\x9"); $this->main_model->custom_query("\xa\x9\11\x9\11\x9\x55\x50\x44\101\124\105\x20\x73\154\137\x75\x73\145\x72\163\xa\11\x9\x9\11\11\x53\x45\124\40\141\x63\143\145\x70\164\137\160\x72\157\x6d\x6f\x74\151\x6f\x6e\40\x3d\x20\x30\12\11\11\11\11\11\x57\x48\x45\x52\105\40\155\157\x62\x69\x6c\145\x5f\x6e\157\x20\75\40\x27{$row_user["\x6d\x6f\x62\x69\154\x65\137\x6e\157"]}\47\12\11\11\11\x9"); $page = "\160\x72\x6f\x6d\x6f\164\151\x6f\156"; echo "\103\141\156\x63\145\x6c\x6c\145\x64"; return; } if ($page == "\x63\x75\163\x74\x6f\x6d\145\162\55\x69\x6e\x66\x6f") { } else { if ($page == "\x69\x6e\55\x64\145\x70\157\163\151\x74") { $tmp = $this->main_model->get_result("\155\145\164\141\137\160\162\x6f\155\x6f\164\x69\157\x6e\137\x73\145\164\164\151\156\147"); $tmp_data = array(); $i = 0; foreach ($tmp as $row) { $tmp_row = json_decode($row["\155\x65\x74\x61"], true); if ($tmp_row["\x73\164\141\x74\x75\163"] == 1) { $tmp_data[$i] = $tmp_row; $tmp_data[$i]["\x69\x64"] = $row["\151\144"]; $i++; } } $data["\160\162\157"] = $tmp_data; } else { if ($page == "\x64\145\x70\x6f\x73\x69\x74") { $user_info = $this->user_model->get_user($_SESSION["\165\x73\x65\x72"]["\151\x64"]); if ($user_info["\x62\x61\x6e\x6b\x5f\151\144"] == 5) { } $bank_info = $this->main_model->get_row("\142\x61\x6e\x6b\x5f\151\156\146\157", array("\167\x68\x65\x72\x65" => array("\x63\157\x6c" => "\x62\141\x6e\x6b\137\x69\144", "\166\x61\154" => $user_info["\142\x61\156\x6b\x5f\151\144"]))); $admin_banks = $this->main_model->custom_query_result("\12\11\11\11\x9\11\x73\x65\154\x65\143\x74\40\x2a\xa\x9\11\x9\x9\x9\x66\x72\157\x6d\40\141\144\155\x69\x6e\x5f\142\x61\x6e\x6b\xa\x9\11\x9\11\11\167\150\x65\x72\x65\40\163\x74\141\x74\x75\x73\40\75\40\x31\xa\x9\x9\11\11"); $tmp_bank = array(); $i = 0; foreach ($admin_banks as $tmp) { $tmp_bank[$i] = $tmp; foreach (json_decode($tmp["\155\x65\164\141\137\x64\141\x74\141"], true) as $key => $val) { $tmp_bank[$i][$key] = $val; } unset($tmp_bank[$i]["\155\145\x74\141\x5f\144\141\164\141"]); $i++; } $admin_bank = array(); $i = 0; function searchForId($id, $array) { foreach ($array as $key => $val) { if ($val["\163\x68\157\x77\137\x74\171\x70\x65"] === $id) { return $key; } } return null; } $admin_tws = $this->main_model->custom_query_result("\xa\x9\x9\x9\11\11\163\x65\x6c\x65\x63\x74\40\52\xa\x9\11\11\x9\x9\x66\x72\157\x6d\x20\141\x64\155\151\156\x5f\164\162\x75\x65\x77\x61\x6c\x6c\145\164\xa\x9\x9\x9\11\x9\167\x68\145\162\x65\40\163\164\141\x74\x75\163\40\x3d\x20\61\xa\x9\x9\x9\11"); $tmp_tw = array(); $i = 0; foreach ($admin_tws as $tmp) { $tmp_tw[$i] = $tmp; foreach (json_decode($tmp["\x6d\145\x74\141\x5f\x64\x61\164\x61"], true) as $key => $val) { $tmp_tw[$i][$key] = $val; } unset($tmp_tw[$i]["\x6d\145\164\x61\x5f\144\x61\164\x61"]); $i++; } $admin_tw = array(); $i = 0; foreach ($tmp_tw as $tmp) { if ($tmp["\x74\x77\x5f\164\171\x70\145"] == "\x42\x4f\x54\x48" || $tmp["\164\x77\137\164\171\160\x65"] == "\104\105\x50\117\123\x49\124") { $admin_tw[$i] = $tmp; $i++; break; } } $bid = null; if (!empty($tmp_bank)) { for ($i = 0; $i < count($tmp_bank); $i++) { if ($user_info["\x62\141\x6e\153\137\151\144"] == 5) { $bid = searchForId("\x4f\116\x4c\x59\x5f\123\103\x42", $tmp_bank); if ($bid == null) { $bid = searchForId("\x41\x4c\114", $tmp_bank); } if ($bid !== null) { $admin_bank[$i] = $tmp_bank[$bid]; $tmp_info = $this->main_model->get_row("\x62\141\156\153\x5f\151\x6e\x66\157", array("\x77\150\145\162\145" => array("\x63\157\x6c" => "\x62\x61\156\153\137\151\144", "\166\x61\x6c" => $admin_bank[$i]["\x62\141\156\x6b\x5f\x69\x64"]))); $admin_bank[$i]["\142\x61\156\153\137\151\x63\x6f"] = $tmp_info["\142\141\156\x6b\x5f\151\143\x6f"]; $admin_bank[$i]["\142\x61\156\x6b\137\143\x6f\x6c\x6f\x72"] = $tmp_info["\x62\x61\156\x6b\137\x63\x6f\154\x6f\162"]; } } else { if ($user_info["\142\141\156\x6b\x5f\151\x64"] == 1) { $bid = searchForId("\x4f\116\114\x59\137\113\102\101\x4e\x4b", $tmp_bank); if ($bid == null) { $bid = searchForId("\101\x4c\114", $tmp_bank); } if ($bid !== null) { $admin_bank[$i] = $tmp_bank[$bid]; $tmp_info = $this->main_model->get_row("\142\x61\x6e\153\x5f\151\x6e\x66\157", array("\167\x68\145\x72\145" => array("\143\157\x6c" => "\142\141\x6e\x6b\x5f\x69\x64", "\x76\x61\x6c" => $admin_bank[$i]["\x62\x61\x6e\x6b\x5f\x69\x64"]))); $admin_bank[$i]["\x62\x61\156\153\x5f\151\143\157"] = $tmp_info["\142\x61\x6e\153\137\151\x63\x6f"]; $admin_bank[$i]["\142\141\156\x6b\x5f\x63\157\x6c\157\x72"] = $tmp_info["\142\x61\x6e\x6b\x5f\143\x6f\x6c\157\x72"]; } } else { if ($user_info["\x62\141\156\153\x5f\x69\144"] == 29) { $admin_bank = array(); } else { if ($bid == null) { $bid = searchForId("\101\x4c\x4c", $tmp_bank); } if ($bid !== null) { $admin_bank[$i] = $tmp_bank[$bid]; $tmp_info = $this->main_model->get_row("\142\141\156\153\137\151\x6e\146\x6f", array("\167\x68\145\x72\x65" => array("\143\157\x6c" => "\142\x61\x6e\x6b\137\151\x64", "\166\x61\154" => $admin_bank[$i]["\x62\141\156\153\137\151\144"]))); $admin_bank[$i]["\142\x61\156\153\x5f\x69\x63\157"] = $tmp_info["\142\x61\x6e\x6b\x5f\x69\143\157"]; $admin_bank[$i]["\142\x61\x6e\153\137\143\x6f\154\157\162"] = $tmp_info["\142\x61\x6e\x6b\x5f\143\157\154\x6f\x72"]; } } } } } } $decimal = false; if (!empty($admin_bank)) { if ($admin_bank[0]["\x63\150\x61\x6e\147\145\x5f\x61\143\143"] == "\x74\162\x75\145") { $page = "\144\145\160\157\163\151\164\x2d\143\150\141\156\x67\x65"; } if ($admin_bank[0]["\144\x65\x70\x6f\x73\151\x74\x5f\x64\x65\143\x69\x6d\x61\154"] == "\x74\162\x75\x65") { $decimal = true; } } $page = "\144\x65\x70\157\163\151\x74\x2d\x63\150\x61\156\147\145"; $user_info["\x62\141\x6e\153\137\151\x63\x6f"] = $this->main_model->get_row("\x62\x61\x6e\153\137\x69\x6e\x66\x6f", array("\167\150\x65\x72\x65" => array("\x63\157\154" => "\142\141\156\153\137\151\x64", "\166\x61\x6c" => $user_info["\142\x61\156\153\137\x69\144"])))["\x62\141\156\153\x5f\151\x63\157"]; $data["\x64\145\143\151\155\x61\x6c"] = $decimal; $data["\x62\x61\x6e\153"] = array("\x61\144\x6d\151\x6e\137\x62\x61\156\153" => $tmp_bank, "\141\x64\x6d\151\x6e\x5f\x74\162\165\145\x77\141\x6c\x6c\145\x74" => $admin_tw, "\165\x73\x65\x72" => $user_info, "\144\x65\143\x69\x6d\141\154" => $decimal); $check = $this->main_model->custom_query_row("\12\x9\11\x9\11\x9\x73\x65\x6c\145\x63\x74\40\x2a\xa\11\11\11\11\11\146\x72\157\155\40\x67\x65\x6e\x65\162\141\164\145\137\x64\x65\x63\x69\155\141\154\12\11\x9\x9\x9\11\x77\x68\145\x72\145\40\163\164\x61\x74\165\163\40\x49\x53\40\x4e\125\x4c\114\x20\x61\156\x64\40\x75\x73\145\x72\x6e\x61\155\145\40\x3d\x20\x27{$user_info["\x6d\157\x62\151\x6c\145\137\x6e\x6f"]}\x27\12\11\x9\x9\x9"); $data["\x64\145\143\x69\x6d\141\x6c\x5f\x63\x72\x65\144\x69\x74"] = $check; $promotion_setting = json_decode($this->main_model->get_row("\155\x65\164\x61\137\160\162\x6f\155\157\164\x69\x6f\156\x5f\x73\x65\x74\164\x69\156\x67", array("\x77\150\x65\x72\x65" => array("\143\x6f\x6c" => "\x69\144", "\x76\x61\x6c" => $user_info["\x61\x63\x63\x65\x70\x74\x5f\160\162\x6f\x6d\157\x74\151\157\156"])))["\155\145\164\x61"], true); $data["\165\x73\x65\x72"]["\x70\162\157\x6d\157\164\151\157\x6e"] = $promotion_setting; } else { if ($page == "\160\x72\x6f\155\157\x74\151\157\156") { $user_info = $this->user_model->get_user($_SESSION["\x75\x73\145\162"]["\x69\144"]); if ($user_info["\142\141\156\153\137\x69\x64"] == 5) { } $bank_info = $this->main_model->get_row("\x62\x61\x6e\153\137\x69\x6e\x66\x6f", array("\167\x68\145\x72\145" => array("\x63\157\154" => "\142\x61\x6e\x6b\137\151\144", "\166\x61\x6c" => $user_info["\142\x61\x6e\153\137\x69\144"]))); $admin_banks = $this->main_model->custom_query_result("\12\12\11\x9\x9\x9\11\x73\145\154\x65\143\x74\x20\52\12\12\x9\11\11\11\11\x66\162\157\x6d\40\x61\x64\155\x69\156\x5f\142\x61\156\153\12\xa\11\11\x9\x9\x9\167\x68\x65\x72\x65\x20\x73\x74\141\164\165\163\40\75\x20\x31\xa\12\x9\x9\x9\x9"); $tmp_bank = array(); $i = 0; foreach ($admin_banks as $tmp) { $tmp_bank[$i] = $tmp; foreach (json_decode($tmp["\155\145\x74\x61\137\x64\x61\164\x61"], true) as $key => $val) { $tmp_bank[$i][$key] = $val; } unset($tmp_bank[$i]["\155\145\164\141\137\144\x61\x74\x61"]); $i++; } $admin_bank = array(); $i = 0; foreach ($tmp_bank as $tmp) { if ($tmp["\x77\x6f\162\153\x5f\x74\x79\x70\x65"] == "\101\x55\124\x4f\137\x53\115\x53" || $tmp["\167\x6f\162\x6b\x5f\x74\x79\x70\145"] == "\x42\117\x54\110\x5f\x53\115\123" || $tmp["\167\x6f\162\x6b\x5f\x74\x79\160\145"] == "\116\x4f\104\105" || $tmp["\167\x6f\x72\x6b\137\x74\171\160\x65"] == "\x41\x4c\114") { if ($tmp["\x62\141\x6e\x6b\137\164\171\x70\145"] == "\102\x4f\124\110" || $tmp["\x62\x61\156\x6b\137\x74\171\160\x65"] == "\x44\105\120\117\x53\111\x54") { $admin_bank[$i] = $tmp; $tmp_info = $this->main_model->get_row("\x62\x61\156\x6b\x5f\x69\x6e\x66\157", array("\x77\150\x65\162\145" => array("\x63\157\154" => "\x62\x61\x6e\153\x5f\x69\x64", "\x76\x61\x6c" => $tmp["\x62\x61\x6e\x6b\x5f\151\144"]))); $admin_bank[$i]["\142\x61\x6e\153\137\151\x63\157"] = $tmp_info["\x62\141\156\x6b\137\151\x63\x6f"]; $admin_bank[$i]["\x62\x61\156\x6b\137\143\x6f\x6c\157\x72"] = $tmp_info["\142\x61\156\153\x5f\x63\157\154\157\x72"]; $i++; break; } } } $user_info["\142\141\156\x6b\x5f\151\143\x6f"] = $this->main_model->get_row("\142\x61\156\153\137\151\x6e\146\x6f", array("\167\150\145\162\x65" => array("\143\x6f\x6c" => "\x62\141\156\x6b\137\x69\144", "\166\x61\154" => $user_info["\142\x61\156\153\137\151\144"])))["\142\141\x6e\153\137\x69\143\x6f"]; $data["\142\x61\156\x6b"] = array("\141\144\x6d\151\x6e\137\x62\x61\156\x6b" => $admin_bank, "\165\x73\x65\162" => $user_info); $promotion_setting = json_decode($this->main_model->get_row("\155\145\x74\x61\137\160\162\x6f\x6d\157\164\151\x6f\x6e\x5f\163\x65\164\164\x69\156\147", array("\167\x68\145\162\x65" => array("\143\157\154" => "\x69\144", "\166\x61\154" => $user_info["\x61\x63\143\x65\160\164\x5f\x70\x72\x6f\155\x6f\164\x69\x6f\x6e"])))["\x6d\145\x74\x61"], true); $data["\x75\163\145\x72"]["\160\x72\157\x6d\x6f\x74\151\157\156"] = $promotion_setting; } else { if ($page == "\x77\151\x74\x68\144\x72\x61\x77") { header("\103\x6f\156\164\x65\156\164\55\x54\171\x70\x65\x3a\40\141\160\160\154\151\x63\x61\x74\151\157\x6e\x2f\152\x73\157\x6e\73\x20\x63\150\141\x72\x73\145\x74\x3d\165\x74\x66\55\70", true, 200); die("\124\105\123\124"); $check = $this->main_model->custom_query_row("\xa\11\x9\11\x9\11\123\105\x4c\105\103\x54\40\52\xa\11\x9\11\x9\x9\x46\122\x4f\x4d\40\155\141\x69\x6e\137\x77\141\x6c\154\145\164\137\x77\x69\x74\150\x64\x72\x61\167\12\x9\x9\x9\11\11\x57\x48\x45\x52\x45\40\155\x6f\142\x69\154\145\x5f\156\x6f\x20\x3d\40\x27{$row_user["\155\x6f\142\x69\x6c\x65\x5f\156\x6f"]}\x27\x20\101\116\x44\40\163\x74\141\164\x75\163\x20\111\x53\40\x4e\125\x4c\114\12\x9\11\x9\11"); if (!empty($check)) { $page = "\167\x69\x74\x68\144\x72\x61\x77\137\167\141\x69\x74"; $data["\x77\x69\x74\x68\x64\162\141\167"] = $check; print_r(json_encode(array("\163\x74\x61\x74\x75\x73" => "\167\141\151\x74", "\144\x61\x74\141" => $check))); return; } print_r(json_encode(array("\x73\164\141\164\x75\163" => "\x6e\x6f\x74\151\x6e\x67", "\x64\x61\164\141" => $check))); return; } else { if ($page == "\141\x66\146\x2d\x68\151\x73") { $user_info = $this->user_model->get_user($_SESSION["\x75\x73\145\x72"]["\151\x64"]); $tmp = $this->main_model->custom_query_row("\xa\x9\x9\x9\x9\x9\x53\105\x4c\x45\x43\x54\x20\x63\157\165\156\x74\x28\52\x29\x20\x43\125\xa\11\x9\11\x9\x9\x46\x52\x4f\115\40\x73\x6c\137\165\163\145\162\x73\12\x9\x9\11\11\x9\x57\x48\x45\x52\105\x20\x61\146\146\x20\75\x20\x27{$user_info["\x69\144"]}\47\xa\x9\11\x9\x9"); $tmp2 = $this->main_model->custom_query_row("\12\11\11\11\x9\x9\x53\105\114\105\103\x54\x20\x73\165\155\50\143\162\145\x64\x69\164\137\142\157\156\165\x73\51\x20\x53\102\116\12\11\x9\x9\x9\11\x46\x52\x4f\115\x20\x72\x65\160\157\x72\x74\137\x74\162\x61\156\x73\x61\x63\164\151\157\x6e\12\11\11\11\11\11\x57\110\x45\x52\x45\40\164\x72\x61\x6e\x73\x61\x63\x74\x69\x6f\x6e\137\x74\171\160\x65\40\x3d\x20\x27\x41\106\106\x27\x20\141\156\x64\x20\x75\x73\x65\162\x6e\141\155\x65\40\75\x20\x27{$user_info["\x6d\x6f\x62\x69\154\145\137\156\x6f"]}\x27\xa\x9\11\11\11"); $tmp3 = $this->main_model->custom_query_row("\xa\11\x9\x9\11\x9\123\105\x4c\x45\103\124\x20\x73\x75\155\50\x63\x72\x65\144\151\164\137\x62\x6f\156\165\163\51\x20\x53\102\116\12\11\x9\x9\x9\x9\106\122\117\115\40\162\x65\160\x6f\162\x74\x5f\x74\x72\141\x6e\x73\x61\143\164\x69\157\156\xa\x9\x9\x9\x9\11\127\110\x45\122\x45\40\x74\x72\141\x6e\163\x61\143\164\151\x6f\x6e\137\164\x79\x70\x65\40\75\x20\x27\x52\105\106\x55\x4e\x44\x27\40\141\156\144\40\165\163\x65\x72\x6e\141\x6d\145\x20\x3d\40\47{$user_info["\x6d\157\142\x69\154\145\137\156\157"]}\47\xa\11\x9\11\11"); $tmp4 = $this->main_model->custom_query_result("\12\x9\x9\11\x9\11\123\105\x4c\105\x43\124\40\x69\x64\x2c\x62\x65\164\146\x6c\151\x78\x5f\151\144\54\x61\155\x62\x5f\151\144\xa\11\11\x9\x9\11\x46\x52\x4f\x4d\40\163\154\x5f\x75\x73\145\x72\x73\xa\x9\11\11\x9\x9\127\110\x45\x52\x45\x20\141\x66\146\40\75\40\x27{$user_info["\x69\144"]}\x27\xa\11\x9\x9\11"); $data["\141\146\x66"]["\x63\x5f\x75\163\x65\x72"] = isset($tmp["\x43\125"]) ? $tmp["\103\125"] : "\60"; $data["\141\146\146"]["\x61\x66\x66\137\143\162\x65\x64\x69\164"] = isset($tmp2["\x53\x42\116"]) ? $tmp2["\123\x42\x4e"] : "\x30\x2e\60\x30"; $data["\141\146\x66"]["\x72\145\x66\165\156\x64\137\x63\x72\145\x64\151\x74"] = isset($tmp3["\123\102\x4e"]) ? $tmp3["\x53\102\x4e"] : "\x30\x2e\60\x30"; $data["\x61\146\x66"]["\165\x73\145\x72\137\154\151\x73\164"] = $tmp4; } else { if ($page == "\144\x65\x70\55\150\151\x73") { $user_info = $this->user_model->get_user($_SESSION["\165\163\145\x72"]["\x69\x64"]); $tmp = $this->main_model->custom_query_result("\12\x9\11\11\x9\x9\x53\105\114\105\x43\x54\x20\x2a\12\x9\x9\11\x9\11\106\x52\117\115\x20\x72\145\x70\x6f\162\164\137\x74\162\x61\156\x73\141\143\x74\x69\x6f\x6e\xa\11\x9\11\11\x9\167\150\x65\x72\x65\40\165\x73\x65\162\x6e\141\x6d\x65\40\75\40\x27{$user_info["\x6d\157\142\151\x6c\145\137\156\x6f"]}\47\40\x61\156\144\40\50\x74\162\x61\x6e\x73\141\143\x74\151\x6f\x6e\x5f\x74\x79\x70\145\x20\x3d\x20\x27\x44\x45\x50\x4f\123\111\x54\47\40\117\122\x20\x74\162\141\156\163\141\143\164\151\157\156\137\164\x79\x70\145\x20\75\40\x27\127\111\x54\110\x44\x52\101\x57\47\x20\x4f\122\40\x74\x72\141\156\163\141\x63\164\x69\157\156\137\164\171\x70\145\40\x3d\x20\x27\x44\x45\120\x4f\123\111\x54\115\47\40\117\x52\x20\x74\x72\x61\156\163\141\143\164\151\157\x6e\x5f\x74\x79\160\x65\x20\x3d\40\47\127\111\x54\110\104\x52\x41\127\115\x27\x29\xa\x9\11\11\11"); $data["\x6c\x69\163\x74"] = $tmp; } } } } } } } $this->load->view("\160\x61\x6e\x65\154\x5f\x75\x73\x65\162\x2f{$theme}\57\x61\x6a\141\x78\137\154\157\x61\144\x2f\141\x63\143\157\x75\x6e\x74\x2f" . $page, $data); } } public function balance() { if (empty($_SESSION["\165\163\145\162"]["\x6c\157\147\147\x65\144\137\151\x6e"])) { echo "\74\163\160\x61\x6e\x20\x63\x6c\141\163\163\x3d\42\x2d\x61\x6d\157\165\156\164\42\x3e\x30\56\60\60\x3c\57\163\160\141\x6e\x3e"; } else { $row = $this->main_model->get_row("\163\154\137\x75\x73\145\162\x73", array("\167\150\x65\x72\145" => array("\143\x6f\x6c" => "\151\x64", "\166\x61\154" => $_SESSION["\165\163\145\x72"]["\x69\x64"]))); $this->agent_model->reset_turn($row); if ($row["\164\165\x72\156\137\144\141\x74\145"] == null) { $turn_date = date_format(date_create($row["\x63\x72\x65\x61\164\x65\x5f\141\x74"]), "\131\55\155\x2d\144"); } else { $turn_date = date("\131\x2d\155\x2d\144", strtotime($row["\164\165\162\x6e\x5f\144\141\x74\145"] . "\55\40\x31\x20\144\141\171\x73")); } $row = $this->main_model->get_row("\163\154\137\165\x73\x65\x72\x73", array("\167\150\145\x72\145" => array("\x63\x6f\154" => "\151\x64", "\166\141\x6c" => $row["\151\144"]))); $d = array("\x73\x74\x61\164\x75\x73" => "\163\x75\x63\x63\x65\163\x73", "\155\145\163\163\x61\147\145" => "\340\270\224\340\270\xb6\xe0\270\207\340\270\202\340\xb9\211\340\xb8\255\xe0\xb8\241\340\270\xb9\xe0\270\xa5\340\xb8\xaa\xe0\270\263\340\271\200\xe0\270\xa3\340\xb9\207\340\xb8\x88", "\144\141\164\141" => array("\151\144" => $row["\x69\144"], "\143\162\145\144\151\164" => $row["\143\162\x65\x64\151\164"])); echo "\x3c\x73\160\141\156\x20\143\154\x61\163\x73\x3d\x22\x2d\141\155\x6f\x75\x6e\x74\42\x3e" . $row["\x63\x72\145\144\x69\164"] . "\74\x2f\163\x70\x61\156\x3e"; } } public function login() { header("\103\157\x6e\x74\x65\156\164\55\x54\x79\x70\145\72\40\x61\160\160\154\151\143\x61\x74\x69\157\156\57\152\x73\x6f\x6e"); if (empty($_SESSION["\x75\163\145\x72"]["\154\x6f\147\147\x65\x64\x5f\151\156"])) { $post = json_decode(file_get_contents("\x70\x68\x70\x3a\57\x2f\x69\x6e\160\165\164"), true); $username = isset($post["\x75\163\x65\x72\156\x61\155\x65"]) ? $post["\165\163\x65\162\x6e\141\155\x65"] : ''; $password = isset($post["\160\x61\x73\163\x77\x6f\162\144"]) ? $post["\160\x61\163\x73\x77\x6f\162\x64"] : ''; if ($this->user_model->resolve_user_login($username, $password)) { $row = $this->user_model->get_user($username); if ($row["\x73\x74\x61\164\165\163"] < 1) { $d = array("\x73\164\x61\x74\165\163" => "\145\x72\162\157\x72", "\x6d\145\163\163\x61\147\145" => "\340\270\x9a\xe0\xb8\261\340\xb8\215\340\xb8\212\xe0\270\xb5\340\xb8\x84\xe0\xb8\xb8\340\xb8\223\340\271\x82\340\270\224\340\270\231\xe0\xb9\201\340\xb8\232\340\270\x99"); header("\110\x54\124\x50\x2f\x31\x2e\61\x20\x34\60\64\40\125\156\x61\165\164\150\x6f\x72\151\x7a\145\x64\62"); echo "\x7b\x22\163\x75\143\143\x65\163\163\42\72\146\141\154\163\145\54\x22\x6d\x65\163\163\x61\x67\x65\x22\72\42\101\143\x63\157\x75\156\164\x20\151\x73\x20\144\x69\163\141\142\x6c\145\x64\56\x22\x7d"; die; } if ($row["\141\144\x6d\151\x6e\137\142\141\x6e\153\137\151\x64"] == 0) { $bankDefault = ''; $getDefaultBank = $this->main_model->custom_query_result("\x53\x45\x4c\x45\103\124\x20\52\40\106\122\117\x4d\40\141\144\x6d\151\x6e\137\x62\x61\156\153\40\127\110\105\x52\105\40\163\164\x61\x74\x75\x73\x20\x3d\x20\x31"); foreach ($getDefaultBank as $item) { $formatItem = json_decode($item["\155\x65\x74\x61\x5f\144\x61\164\141"], true); if ($formatItem["\x62\x61\156\x6b\x5f\164\171\160\x65"] == "\x44\x45\x50\117\123\111\x54") { if ($formatItem["\x62\x61\156\153\x5f\144\x65\x66\x61\165\x6c\x74"] == 1) { $bankDefault = $item["\151\x64"]; } } } $temp_data = array("\x61\x64\155\151\x6e\x5f\142\141\x6e\153\137\151\144" => $bankDefault); $this->main_model->update("\151\144", $row["\151\x64"], "\x73\154\137\165\163\145\162\163", $temp_data); } $this->user_model->update_last_login($username); $_SESSION["\x75\163\x65\162"]["\154\x6f\147\147\x65\144\137\151\x6e"] = true; $_SESSION["\165\x73\x65\x72"]["\x6d\x6f\142\x69\154\x65"] = $row["\x6d\x6f\142\x69\154\145\137\156\157"]; $_SESSION["\165\x73\x65\x72"]["\x75\163\145\x72\x6e\x61\155\x65"] = $row["\x6d\x6f\x62\x69\x6c\145\137\x6e\x6f"]; $_SESSION["\x75\163\x65\162"]["\x69\144"] = $row["\151\x64"]; $_SESSION["\x75\x73\x65\162"]["\146\165\x6c\154\x6e\141\155\145"] = $row["\146\165\154\x6c\156\141\155\x65"]; $_SESSION["\x75\163\145\x72"]["\x61\x64\x6d\x69\156\x5f\142\141\x6e\x6b\137\151\144"] = $row["\141\x64\155\x69\x6e\137\142\141\156\x6b\137\151\144"]; echo "\x7b\x22\x73\x75\x63\x63\145\163\x73\x22\x3a\164\x72\x75\x65\54\42\x75\x73\x65\x72\156\141\x6d\145\x22\x3a\42" . $row["\x6d\x6f\x62\151\154\x65\x5f\156\157"] . "\42\175"; } else { header("\110\124\124\x50\57\x31\x2e\x31\40\x34\x30\62\40\x55\x6e\x61\x75\164\x68\x6f\x72\x69\172\145\144\x33"); echo "\x7b\x22\163\x75\143\143\145\x73\x73\x22\72\x66\141\154\x73\x65\x2c\x22\x6d\145\x73\163\141\147\x65\42\72\42\111\x6e\x76\141\154\151\144\40\x63\162\x65\x64\x65\156\164\151\141\154\x73\56\42\175"; } } else { header("\110\x54\124\x50\57\x31\x2e\x31\40\x34\60\63\40\125\x6e\x61\x75\x74\x68\x6f\162\151\x7a\x65\144\x34"); echo "\x7b\x22\163\x75\x63\x63\145\163\x73\42\x3a\x66\141\154\163\145\54\x22\155\x65\163\x73\x61\x67\145\42\72\x22\111\156\x76\x61\x6c\x69\144\40\x63\162\145\144\x65\x6e\164\x69\x61\154\163\56\42\175"; } } public function check_mobile_1() { $theme = $this->theme; $theme_path = base_url() . "\x61\163\x73\x65\x74\163\137\x75\163\145\x72\x2f" . $theme; $data = array(); $data["\x74\x68\145\155\x65\x5f\160\141\164\150"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\155\145\x74\x61\x5f\x73\x65\164\164\x69\x6e\x67", array("\x77\150\x65\162\x65" => array("\143\157\154" => "\x69\x64", "\x76\141\154" => "\142\x72\x61\156\x64\x5f\163\x65\164\x74\151\x6e\x67")))["\166\141\154\x75\x65"], true); $data["\x64\x61\x74\141"] = $tmp; unset($_SESSION["\x72\x65\147\x69\x73\164\145\x72"]); if (empty($_SESSION["\x75\163\145\x72"]["\x6c\x6f\x67\147\x65\x64\137\151\156"])) { $this->form_validation->set_error_delimiters('', "\74\x62\162\76"); $this->form_validation->set_rules("\153\145\171\137\166\x61\x6c\x69\x64", "\153\x65\171\137\166\x61\154\x69\144", "\x74\x72\151\x6d\174\162\145\161\x75\151\x72\145\x64", array("\162\x65\x71\x75\x69\162\x65\144" => "\xe0\270\x82\340\xb9\211\xe0\xb8\xad\xe0\xb8\241\xe0\xb8\xb9\xe0\xb8\xa5\340\271\204\340\270\241\340\xb9\210\xe0\270\204\xe0\xb8\243\340\270\232\340\xb8\x96\xe0\271\211\xe0\xb8\xa7\340\xb8\231\x20\340\270\x81\xe0\270\243\340\xb8\xb8\340\270\x93\340\xb8\262\xe0\xb9\x83\xe0\270\xaa\340\271\210\xe0\xb8\x82\340\xb9\x89\340\xb8\255\xe0\270\241\xe0\270\271\xe0\xb8\xa5\xe0\271\x83\340\270\xab\xe0\271\211\xe0\270\x96\340\xb8\271\340\270\x81\340\xb8\225\340\271\211\xe0\270\xad\340\270\x87")); if ($this->form_validation->run() === false) { $this->load->view("\160\x61\x6e\x65\x6c\137\x75\163\145\x72\x2f{$theme}\x2f\x61\x6a\x61\170\137\x6c\x6f\141\144\57\x72\145\x67\151\x73\164\x65\162", $data); } else { $input = $this->input->post(); $mobile_no = isset($input["\162\x65\x71\165\145\163\x74\137\157\164\160"]["\x70\x68\x6f\156\145\116\x75\x6d\142\145\x72"]) ? $input["\x72\x65\161\x75\x65\163\x74\137\157\x74\x70"]["\x70\150\157\156\x65\116\x75\155\x62\145\x72"] : null; if (empty($mobile_no)) { $data["\145\162\x72\157\x72"] = "\xe0\270\201\xe0\270\xa3\xe0\270\xb8\340\270\223\340\xb8\xb2\xe0\270\x81\xe0\xb8\243\xe0\270\255\xe0\270\201\xe0\xb9\200\xe0\xb8\x9a\xe0\270\xad\340\270\243\340\xb9\x8c\340\xb9\x82\xe0\270\227\xe0\270\xa3"; $this->load->view("\160\141\x6e\145\x6c\137\x75\x73\x65\x72\x2f{$theme}\57\x61\152\x61\x78\137\x6c\157\x61\x64\57\162\145\147\x69\163\x74\x65\162", $data); } else { if (strlen($mobile_no) < 10 || !is_numeric($mobile_no)) { $data["\x65\162\x72\157\162"] = "\340\270\x81\xe0\xb8\xa3\xe0\270\xb8\340\270\x93\xe0\270\xb2\xe0\270\x81\xe0\xb8\xa3\340\xb8\xad\340\270\201\340\xb9\200\xe0\xb8\x9a\xe0\270\255\xe0\xb8\243\xe0\xb9\x8c\xe0\xb9\202\xe0\270\x97\340\270\xa3\xe0\270\250\xe0\270\xb1\xe0\xb8\236\xe0\xb8\227\xe0\271\x8c\xe0\xb9\203\xe0\xb8\xab\xe0\271\211\xe0\270\226\340\270\xb9\xe0\270\201\xe0\270\225\xe0\271\211\340\270\xad\340\270\207"; $this->load->view("\160\141\x6e\x65\154\x5f\165\163\145\x72\x2f{$theme}\x2f\x61\x6a\141\x78\x5f\154\x6f\141\144\57\162\145\x67\x69\163\164\145\162", $data); } else { $row_user = $this->user_model->get_user($mobile_no); if (!empty($row_user)) { $data["\x6d\157\142\x69\154\x65\137\156\x6f"] = $mobile_no; $this->load->view("\160\141\156\x65\154\137\x75\163\x65\162\x2f{$theme}\57\x61\x6a\x61\x78\137\x6c\157\x61\144\57\x72\145\x67\151\x73\164\x65\x64", $data); } else { $_SESSION["\162\x65\147\151\x73\164\x65\162"]["\155\157\x62\x69\154\x65\137\156\x6f"] = $mobile_no; $this->load->view("\x70\141\x6e\x65\154\137\165\163\145\162\x2f{$theme}\57\x61\x6a\x61\170\137\154\157\141\x64\57\x70\141\163\163\167\x6f\162\x64\x5f\151\156\x70\x75\x74", $data); } } } } } else { echo "\x3c\x73\x63\x72\151\160\164\x3e\x6c\157\143\x61\164\x69\157\x6e\x2e\150\162\x65\x66\x20\75\40\42" . base_url() . "\42\x3b\74\x2f\x73\x63\162\x69\160\164\x3e"; } } public function check_mobile() { $theme = $this->theme; $theme_path = base_url() . "\141\163\163\145\164\x73\x5f\x75\163\145\x72\x2f" . $theme; $data = array(); $data["\x74\150\145\x6d\145\x5f\160\x61\164\150"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\x6d\x65\x74\141\137\x73\x65\164\x74\x69\x6e\147", array("\x77\150\145\162\x65" => array("\143\157\x6c" => "\151\x64", "\x76\x61\x6c" => "\142\162\x61\156\144\137\163\x65\x74\x74\151\x6e\147")))["\x76\141\154\x75\145"], true); $data["\x64\141\164\141"] = $tmp; unset($_SESSION["\x72\x65\147\151\163\164\x65\162"]); if (empty($_SESSION["\165\163\145\162"]["\x6c\157\x67\147\145\x64\x5f\151\x6e"])) { $this->form_validation->set_error_delimiters('', "\x3c\142\x72\76"); $this->form_validation->set_rules("\x6b\x65\x79\137\166\x61\154\151\144", "\x6b\145\x79\x5f\x76\x61\154\x69\x64", "\164\162\151\155\174\162\x65\x71\x75\x69\x72\x65\x64", array("\162\x65\161\165\151\162\145\x64" => "\xe0\xb8\x82\340\xb9\211\xe0\xb8\255\340\xb8\xa1\340\xb8\xb9\xe0\270\245\xe0\xb9\204\xe0\270\241\xe0\271\210\xe0\xb8\x84\340\xb8\243\xe0\270\232\xe0\270\x96\340\271\211\xe0\xb8\xa7\340\xb8\231\40\340\270\201\xe0\270\xa3\xe0\270\xb8\340\270\223\xe0\270\xb2\xe0\xb9\203\340\xb8\252\340\xb9\210\xe0\270\x82\340\xb9\x89\xe0\xb8\xad\340\270\241\340\270\271\xe0\270\xa5\xe0\271\203\340\xb8\253\xe0\xb9\x89\xe0\270\226\xe0\270\271\340\xb8\201\xe0\xb8\x95\xe0\xb9\211\xe0\xb8\xad\340\xb8\207")); if ($this->form_validation->run() === false) { $this->load->view("\x70\x61\156\x65\154\137\x75\163\x65\x72\x2f{$theme}\57\x61\x6a\141\170\137\154\157\141\x64\57\162\145\x67\x69\x73\x74\x65\x72", $data); } else { $input = $this->input->post(); $mobile_no = isset($input["\162\x65\x71\x75\x65\163\164\x5f\157\164\160"]["\x70\150\x6f\x6e\x65\116\x75\x6d\x62\145\x72"]) ? $input["\162\x65\161\165\x65\163\164\137\x6f\164\x70"]["\160\150\x6f\x6e\x65\x4e\165\x6d\142\145\162"] : null; $aff = isset($input["\x72\145\x71\165\145\163\164\x5f\x6f\x74\x70"]["\141\x66\146"]) ? $input["\x72\145\161\x75\145\163\164\137\157\x74\160"]["\x61\x66\146"] : null; if (empty($mobile_no)) { $data["\x65\x72\162\x6f\162"] = "\xe0\xb8\201\340\xb8\243\340\xb8\xb8\340\270\223\xe0\270\xb2\340\270\201\340\xb8\xa3\340\xb8\255\xe0\xb8\201\340\271\x80\340\270\232\xe0\xb8\xad\xe0\xb8\xa3\340\271\x8c\340\271\x82\xe0\xb8\x97\340\xb8\xa3"; $d = array("\x73\164\141\164\165\163" => "\145\x72\162\157\x72", "\x6d\145\x73\x73\x61\147\145" => $data["\x65\162\162\157\162"]); header("\x43\x6f\x6e\164\x65\156\x74\x2d\124\x79\x70\x65\72\x20\x61\160\160\154\x69\143\x61\164\x69\157\x6e\x2f\x6a\163\x6f\x6e\73\x20\x63\150\x61\162\163\x65\164\x3d\165\x74\x66\x2d\x38", true, 200); die(json_encode($d)); if ($aff) { $this->load->view("\x70\x61\156\145\x6c\x5f\165\x73\145\x72\57{$theme}\x2f\141\152\x61\170\x5f\154\x6f\141\x64\57\x72\x65\x67\x69\163\164\145\x72\77\x61\x66\146\75" . $aff, $data); } else { $this->load->view("\160\141\x6e\x65\154\x5f\x75\x73\x65\x72\x2f{$theme}\x2f\x61\152\141\170\x5f\x6c\157\141\144\57\162\145\x67\151\x73\164\145\x72", $data); } } else { if (strlen($mobile_no) < 10 || !is_numeric($mobile_no)) { $data["\x65\162\162\x6f\x72"] = "\340\xb8\201\340\xb8\243\xe0\270\xb8\xe0\270\x93\340\xb8\262\340\xb8\201\340\xb8\243\340\xb8\255\340\270\x81\340\271\x80\xe0\xb8\x9a\340\270\255\340\270\243\xe0\xb9\x8c\340\271\202\xe0\270\x97\340\270\243\xe0\xb8\xa8\xe0\270\261\xe0\xb8\236\340\270\x97\340\271\214\340\xb9\x83\xe0\270\xab\340\xb9\211\xe0\270\x96\340\xb8\xb9\340\xb8\201\xe0\270\225\xe0\271\x89\xe0\270\255\xe0\xb8\207"; $d = array("\163\164\141\x74\165\163" => "\x65\x72\x72\157\162", "\155\x65\163\163\141\147\145" => $data["\x65\162\162\157\x72"]); header("\103\157\156\164\145\x6e\x74\55\x54\x79\160\x65\72\40\x61\160\x70\154\151\143\141\x74\151\157\156\57\x6a\x73\x6f\156\73\x20\x63\x68\141\162\163\145\164\x3d\x75\164\x66\x2d\x38", true, 200); die(json_encode($d)); if ($aff) { $this->load->view("\x70\x61\156\145\x6c\137\165\x73\x65\162\x2f{$theme}\57\141\152\x61\170\x5f\154\x6f\x61\x64\x2f\x72\x65\x67\151\x73\164\x65\x72\77\141\x66\146\75" . $aff, $data); } else { $this->load->view("\160\x61\156\145\x6c\137\x75\163\x65\162\57{$theme}\x2f\141\152\141\x78\x5f\x6c\x6f\x61\x64\x2f\162\145\147\151\x73\x74\x65\x72", $data); } } else { $row_user = $this->user_model->get_user($mobile_no); if (!empty($row_user)) { $data["\x6d\157\x62\151\154\145\137\156\x6f"] = $mobile_no; $d = array("\163\x74\141\x74\165\163" => "\x65\x72\162\x6f\162", "\x6d\x65\163\163\x61\147\x65" => "\340\xb8\241\340\270\xb5\xe0\270\232\xe0\270\xb1\340\xb8\215\xe0\xb8\x8a\xe0\xb8\xb5\340\xb8\xad\xe0\xb8\xa2\xe0\270\xb9\xe0\271\x88\xe0\271\201\xe0\xb8\xa5\340\xb9\x89\xe0\270\247"); header("\x43\x6f\156\x74\145\x6e\x74\55\x54\x79\160\145\72\x20\x61\160\x70\x6c\151\143\141\x74\151\x6f\x6e\x2f\152\x73\x6f\x6e\x3b\40\143\150\x61\162\163\x65\164\x3d\x75\164\x66\x2d\x38", true, 200); die(json_encode($d)); if ($aff) { $this->load->view("\x70\141\x6e\x65\154\137\x75\163\x65\x72\x2f{$theme}\x2f\x61\x6a\141\x78\137\x6c\x6f\141\144\x2f\162\145\147\x69\x73\x74\x65\144\x3f\141\x66\146\x3d" . $aff, $data); } else { $this->load->view("\x70\x61\x6e\x65\x6c\x5f\165\163\x65\x72\57{$theme}\x2f\141\152\x61\x78\137\x6c\x6f\x61\x64\57\x72\x65\x67\x69\163\x74\x65\144", $data); } } else { $otp_register = json_decode($this->main_model->get_row("\155\x65\x74\141\137\x73\x65\164\x74\x69\156\147", array("\x77\x68\x65\x72\145" => array("\x63\157\154" => "\x69\144", "\x76\141\154" => "\x6f\x74\x70\x5f\x72\x65\x67\151\x73\164\x65\x72")))["\x76\141\x6c\x75\x65"], true); $otp_open = false; if (isset($otp_register["\145\x6e\x61\142\154\145"])) { if ($otp_register["\145\156\x61\x62\x6c\145"] == 1) { $otp_open = true; $_SESSION["\162\145\x67\151\x73\164\145\162"]["\157\164\x70\x5f\x6f\x70\x65\156"] = true; } } if ($otp_open) { $header = array("\x43\x6f\x6e\x74\x65\156\164\55\124\x79\160\145\72\x20\x61\x70\x70\x6c\151\x63\x61\164\151\157\156\x2f\170\55\x77\167\x77\55\146\157\162\155\55\165\x72\x6c\x65\x6e\x63\x6f\x64\x65\x64"); $data_otp = array("\x6b\145\x79" => $otp_register["\x6f\x74\160\137\x6b\145\x79"], "\163\145\x63\162\145\164" => $otp_register["\157\x74\x70\x5f\x73\x65\x63\162\145\x74"], "\155\x73\x69\x73\x64\x6e" => $mobile_no); $data_otp = http_build_query($data_otp); $res = $this->agent_model->Curl("\x50\x4f\123\124", "\x68\x74\x74\160\163\x3a\57\57\x6f\x74\x70\56\164\x68\141\x69\x62\x75\154\x6b\163\155\163\x2e\x63\157\x6d\57\x76\x31\x2f\x6f\x74\160\x2f\x72\x65\161\x75\x65\x73\x74", $header, $data_otp, false); $res = json_decode($res, true); if (isset($res["\144\x61\x74\x61"]["\163\164\x61\164\165\163"])) { if ($res["\x64\141\x74\x61"]["\163\164\141\164\165\x73"] == "\x73\165\143\143\145\163\x73") { $_SESSION["\x6f\x74\160"]["\x74\x6f\153\x65\x6e"] = $res["\144\141\x74\141"]["\x74\157\153\x65\x6e"]; if ($aff) { $_SESSION["\162\145\147\151\x73\164\145\162"]["\x61\x66\x66"] = $aff; $row_user_aff = $this->user_model->get_user($aff); if (empty($row_user_aff)) { $data["\x65\162\162\157\162"] = "\340\xb9\x84\xe0\270\241\xe0\271\210\340\xb8\xa1\340\270\xb5\340\xb8\xa3\340\270\xab\340\270\261\340\xb8\252\340\271\201\xe0\270\231\340\270\xb0\xe0\270\x99\xe0\270\xb3\xe0\271\x80\340\270\236\xe0\270\xb7\xe0\xb9\x88\xe0\270\255\340\xb8\x99\340\270\231\xe0\xb8\xb5\xe0\271\x89\340\xb9\203\340\xb8\x99\xe0\xb8\243\340\270\260\xe0\270\232\340\270\232"; $d = array("\163\164\x61\x74\x75\163" => "\x73\x75\x63\143\x65\x73\x73", "\155\x65\x73\163\141\147\145" => $data["\x65\x72\162\x6f\x72"]); header("\x43\x6f\156\x74\x65\156\164\55\x54\171\x70\x65\x3a\x20\141\x70\x70\x6c\151\x63\141\164\x69\157\156\x2f\152\x73\157\x6e\x3b\40\143\x68\141\x72\x73\145\164\x3d\x75\164\146\55\70", true, 200); die(json_encode($d)); echo $this->load->view("\160\x61\x6e\145\154\x5f\165\163\x65\x72\x2f{$theme}\x2f\x61\152\141\170\137\154\x6f\x61\x64\57\162\x65\147\x69\x73\164\x65\x72", $data); die; } } $_SESSION["\x72\145\x67\x69\163\x74\145\162"]["\155\157\x62\x69\x6c\x65\137\156\157"] = $mobile_no; $this->load->view("\160\141\156\145\x6c\x5f\165\163\145\x72\57{$theme}\57\x61\x6a\141\x78\137\x6c\157\x61\x64\57\157\x74\160\x5f\x69\x6e\160\x75\x74", $data); } else { $data["\x65\162\x72\x6f\x72"] = "\xe0\xb9\204\xe0\xb8\241\340\271\x88\340\270\252\340\270\262\340\xb8\xa1\xe0\xb8\262\340\270\xa3\xe0\xb8\226\340\xb8\x82\xe0\xb8\255\40\x4f\124\x50\x20\xe0\xb9\x84\340\xb8\224\xe0\xb9\x89\74\142\162\76\xe0\270\x81\xe0\270\xa3\340\xb8\270\xe0\xb8\x93\xe0\270\xb2\xe0\xb9\x80\340\xb8\x8a\xe0\xb9\x87\340\xb8\204\340\xb9\200\340\270\x9a\xe0\270\xad\340\270\xa3\340\271\214\340\271\202\340\xb8\x97\xe0\270\xa3\xe0\xb8\xa8\340\270\261\xe0\270\x9e\340\xb8\x97\xe0\271\214\40\340\xb8\253\xe0\270\xa3\340\xb8\xb7\340\xb8\255\x20\340\xb8\225\340\xb8\264\xe0\270\224\340\270\x95\xe0\xb9\210\340\xb8\xad\xe0\271\x81\xe0\xb8\255\340\xb8\x94\340\270\241\xe0\270\xb4\340\xb8\x99"; $d = array("\163\164\x61\x74\x75\x73" => "\x73\x75\143\x63\x65\163\x73", "\155\145\x73\163\141\147\145" => $data["\145\162\x72\x6f\162"]); header("\x43\157\x6e\164\x65\156\x74\x2d\124\171\160\145\72\x20\x61\160\x70\154\151\143\141\164\151\x6f\x6e\x2f\152\163\x6f\156\73\40\x63\150\x61\x72\x73\x65\164\75\165\x74\146\55\70", true, 200); die(json_encode($d)); if ($aff) { $this->load->view("\160\141\156\x65\x6c\x5f\165\163\x65\162\57{$theme}\57\x61\152\x61\x78\137\x6c\157\141\144\x2f\162\x65\x67\151\x73\164\145\162\77\141\x66\x66\x3d" . $aff, $data); } else { $this->load->view("\x70\141\156\x65\154\x5f\165\x73\x65\162\x2f{$theme}\57\141\x6a\141\170\x5f\154\x6f\x61\144\x2f\162\x65\147\151\x73\x74\x65\x72", $data); } } } else { $data["\x65\x72\x72\157\x72"] = "\340\271\204\xe0\xb8\xa1\340\271\210\xe0\270\252\xe0\xb8\262\340\270\xa1\340\270\262\340\xb8\xa3\340\270\x96\xe0\xb8\x82\xe0\270\255\x20\x4f\x54\120\x20\xe0\271\204\xe0\270\x94\xe0\xb9\x89\x20\xe0\xb8\201\340\xb8\xa3\xe0\xb8\270\340\270\223\xe0\270\262\340\271\200\340\xb8\212\xe0\271\207\340\270\204\340\xb9\x80\340\xb8\x9a\340\270\xad\340\270\243\xe0\271\214\xe0\xb9\202\xe0\xb8\x97\340\xb8\xa3\xe0\xb8\xa8\xe0\xb8\xb1\340\xb8\x9e\340\xb8\x97\xe0\271\214\40\xe0\270\xab\xe0\xb8\xa3\xe0\xb8\xb7\340\xb8\xad\x20\340\270\x95\xe0\xb8\264\xe0\xb8\x94\340\xb8\x95\xe0\xb9\210\xe0\xb8\xad\340\271\x81\340\270\xad\xe0\270\224\xe0\xb8\241\xe0\270\xb4\xe0\xb8\231"; $d = array("\163\164\x61\164\165\x73" => "\x73\x75\x63\x63\145\x73\x73", "\x6d\145\x73\x73\x61\x67\x65" => $data["\x65\x72\162\157\x72"]); header("\103\157\156\164\145\156\x74\x2d\124\171\x70\x65\x3a\40\x61\x70\160\154\151\143\141\x74\151\157\x6e\x2f\x6a\x73\x6f\x6e\73\40\x63\150\141\162\x73\x65\164\x3d\165\164\x66\55\x38", true, 200); die(json_encode($d)); if ($aff) { $this->load->view("\160\x61\156\145\x6c\x5f\165\163\145\x72\57{$theme}\57\x61\152\141\x78\137\154\x6f\x61\144\57\x72\145\147\x69\x73\x74\x65\162\77\141\146\146\75" . $aff, $data); } else { $this->load->view("\160\141\156\145\x6c\x5f\165\163\145\x72\57{$theme}\57\141\x6a\x61\170\x5f\x6c\x6f\141\x64\57\162\x65\147\x69\163\164\x65\x72", $data); } } } else { if ($aff) { $_SESSION["\x72\x65\x67\x69\x73\164\145\x72"]["\141\x66\x66"] = $aff; $row_user_aff = $this->user_model->get_user($aff); if (empty($row_user_aff)) { $data["\x65\162\162\157\162"] = "\340\271\204\xe0\270\xa1\xe0\xb9\x88\340\270\xa1\xe0\xb8\xb5\340\xb8\243\xe0\xb8\253\xe0\270\xb1\xe0\270\xaa\xe0\271\x81\xe0\270\231\xe0\270\260\xe0\xb8\x99\xe0\xb8\xb3\xe0\xb9\200\xe0\270\236\340\270\267\340\xb9\210\340\270\255\xe0\270\231\340\xb8\231\340\xb8\xb5\340\271\x89\340\xb9\x83\340\270\231\340\270\243\xe0\270\260\xe0\270\x9a\xe0\270\x9a"; $d = array("\163\164\141\164\x75\x73" => "\163\165\x63\143\145\x73\x73", "\x6d\145\163\163\x61\x67\145" => $data["\145\162\x72\157\x72"]); header("\x43\x6f\156\164\145\x6e\x74\55\x54\171\160\x65\72\40\x61\160\x70\154\x69\x63\141\x74\151\157\x6e\x2f\152\163\157\x6e\73\x20\x63\x68\x61\162\x73\145\164\x3d\x75\x74\x66\55\70", true, 200); die(json_encode($d)); echo $this->load->view("\160\x61\156\x65\154\137\165\x73\x65\162\x2f{$theme}\x2f\141\x6a\x61\170\x5f\154\x6f\141\x64\x2f\x72\x65\x67\151\163\x74\x65\x72", $data); die; } } $_SESSION["\162\x65\x67\x69\x73\164\x65\162"]["\x6d\157\142\151\x6c\145\x5f\x6e\157"] = $mobile_no; $d = array("\163\x74\141\164\x75\x73" => "\x73\x75\143\143\x65\x73\163", "\155\x65\163\163\x61\147\x65" => "\x73\145\x63\164\151\157\x6e\x5f\x70\x61\x73\x73\167\x6f\x72\x64"); header("\x43\x6f\x6e\x74\145\156\164\55\124\x79\160\145\72\x20\141\160\160\154\151\143\x61\164\151\x6f\x6e\57\x6a\x73\x6f\x6e\73\40\143\x68\141\162\163\x65\x74\75\x75\x74\x66\x2d\x38", true, 200); die(json_encode($d)); $this->load->view("\160\141\x6e\145\154\x5f\165\x73\x65\x72\x2f{$theme}\57\x61\152\141\x78\137\x6c\157\x61\x64\57\160\141\x73\x73\167\x6f\x72\144\137\x69\156\x70\165\164", $data); } } } } } } else { $d = array("\x73\x74\x61\x74\165\x73" => "\163\165\x63\x63\145\163\163", "\155\x65\163\163\x61\x67\145" => "\340\270\x84\xe0\270\270\340\270\223\340\xb9\x80\xe0\xb8\x82\340\xb9\x89\xe0\xb8\262\xe0\270\xaa\340\xb8\xb9\xe0\xb9\x88\340\xb8\243\xe0\xb8\xb0\xe0\270\x9a\xe0\xb8\232\340\xb8\xad\340\xb8\242\340\xb8\xb9\340\xb9\210\xe0\271\x81\xe0\xb8\245\xe0\271\211\340\270\xa7\41"); header("\103\x6f\x6e\x74\x65\156\x74\55\x54\x79\160\x65\72\40\x61\160\x70\154\151\143\141\x74\151\157\x6e\57\152\x73\157\156\73\x20\x63\150\x61\x72\163\145\164\x3d\165\164\x66\x2d\x38", true, 200); die(json_encode($d)); echo "\74\163\143\162\x69\160\164\76\x6c\x6f\143\141\164\x69\157\156\56\x68\x72\x65\146\40\75\40\x22" . base_url() . "\x22\73\74\x2f\163\143\x72\151\160\x74\x3e"; } } public function check_otp() { $theme = $this->theme; $theme_path = base_url() . "\x61\x73\163\145\x74\163\137\x75\x73\x65\162\x2f" . $theme; $data = array(); $data["\x74\150\x65\155\145\137\x70\x61\164\150"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\x6d\145\x74\141\x5f\x73\145\164\164\151\156\x67", array("\x77\150\145\x72\x65" => array("\x63\x6f\154" => "\x69\144", "\x76\x61\154" => "\x62\162\x61\156\x64\137\163\145\164\164\x69\156\147")))["\166\141\x6c\165\x65"], true); $data["\144\141\164\141"] = $tmp; if (empty($_SESSION["\165\163\145\x72"]["\154\157\x67\x67\145\x64\137\151\156"])) { $this->form_validation->set_error_delimiters('', "\74\142\162\76"); $this->form_validation->set_rules("\153\x65\171\137\x76\141\154\151\x64", "\x6b\x65\x79\x5f\x76\x61\x6c\x69\144", "\164\x72\x69\x6d\174\x72\145\161\165\151\x72\145\144", array("\x72\145\x71\x75\151\162\x65\x64" => "\xe0\270\202\xe0\271\x89\340\270\xad\340\xb8\241\xe0\xb8\271\xe0\xb8\245\340\xb9\x84\340\xb8\xa1\340\xb9\x88\xe0\xb8\204\340\270\243\340\xb8\x9a\340\270\x96\340\271\211\340\270\xa7\340\270\x99\40\xe0\xb8\201\xe0\xb8\243\xe0\270\270\xe0\270\223\340\xb8\xb2\xe0\xb9\203\340\xb8\xaa\340\xb9\x88\xe0\270\202\xe0\xb9\211\xe0\270\xad\xe0\xb8\xa1\340\270\xb9\xe0\270\245\340\271\x83\xe0\270\253\340\xb9\x89\340\xb8\x96\340\xb8\xb9\xe0\xb8\x81\xe0\xb8\x95\340\xb9\211\xe0\xb8\xad\340\270\207")); if ($this->form_validation->run() === false) { $this->load->view("\160\x61\156\145\x6c\137\x75\x73\145\x72\57{$theme}\x2f\141\152\x61\170\137\154\x6f\141\144\x2f\x6f\164\x70\137\x69\x6e\x70\x75\x74", $data); } else { $input = $this->input->post(); $otp[0] = isset($input["\143\x68\145\143\153\x5f\157\x74\x70"]["\x6f\x74\160\x30"]) ? $input["\143\150\x65\143\153\137\x6f\164\160"]["\x6f\x74\x70\60"] : null; $otp[1] = isset($input["\143\150\145\143\153\137\x6f\x74\160"]["\x6f\x74\x70\x31"]) ? $input["\143\150\x65\x63\x6b\x5f\157\x74\x70"]["\x6f\x74\160\61"] : null; $otp[2] = isset($input["\x63\x68\145\x63\x6b\x5f\157\x74\160"]["\x6f\164\160\x32"]) ? $input["\x63\150\x65\143\x6b\x5f\157\164\x70"]["\x6f\164\160\x32"] : null; $otp[3] = isset($input["\x63\150\145\143\153\137\157\164\160"]["\x6f\164\160\x33"]) ? $input["\143\150\145\143\153\x5f\157\164\x70"]["\x6f\164\160\x33"] : null; $otp = $otp[0] . $otp[1] . $otp[2] . $otp[3]; if (empty($otp)) { $data["\x65\x72\x72\157\x72"] = "\340\270\201\xe0\xb8\243\340\270\270\xe0\270\x93\xe0\xb8\xb2\340\270\201\340\xb8\243\340\270\255\xe0\270\201\x20\x4f\124\x50"; $this->load->view("\160\x61\x6e\145\154\x5f\x75\163\x65\x72\x2f{$theme}\x2f\141\x6a\x61\170\x5f\x6c\157\141\144\57\x6f\164\x70\x5f\151\x6e\x70\x75\x74", $data); } else { if (strlen($otp) < 4 || !is_numeric($otp)) { $data["\x65\162\x72\157\162"] = "\xe0\270\x81\xe0\270\xa3\xe0\xb8\xb8\xe0\xb8\x93\340\xb8\xb2\xe0\270\x81\340\270\243\xe0\270\255\xe0\xb8\x81\x20\x4f\124\x50\x20\xe0\271\203\xe0\270\xab\xe0\xb9\x89\340\xb8\x96\340\xb8\271\340\270\x81\340\xb8\x95\xe0\271\x89\340\xb8\xad\340\xb8\207"; $this->load->view("\x70\x61\156\x65\x6c\137\x75\x73\145\x72\57{$theme}\x2f\141\x6a\x61\170\x5f\x6c\x6f\x61\x64\57\x6f\x74\160\x5f\x69\156\160\x75\164", $data); } else { $otp_register = json_decode($this->main_model->get_row("\155\145\164\x61\x5f\163\x65\164\164\x69\x6e\x67", array("\167\150\x65\162\145" => array("\x63\x6f\154" => "\151\x64", "\x76\x61\x6c" => "\157\x74\x70\137\x72\145\x67\151\x73\x74\x65\162")))["\x76\141\154\x75\145"], true); $otp_open = false; if (isset($otp_register["\x65\156\141\142\154\x65"])) { if ($otp_register["\145\156\x61\x62\x6c\145"] == 1) { $otp_open = true; } } if ($otp_open) { $header = array("\x43\157\156\x74\x65\156\164\x2d\124\171\160\x65\72\x20\141\160\x70\x6c\x69\x63\x61\x74\151\157\156\x2f\170\55\x77\x77\167\55\146\157\162\155\x2d\165\x72\x6c\x65\x6e\x63\x6f\x64\145\144"); $data_otp = array("\153\145\171" => $otp_register["\157\164\x70\x5f\153\145\x79"], "\163\x65\143\x72\145\164" => $otp_register["\x6f\x74\160\x5f\x73\x65\x63\x72\x65\x74"], "\x74\x6f\x6b\x65\156" => $_SESSION["\157\164\x70"]["\164\157\x6b\x65\x6e"], "\x70\151\156" => $otp); $data_otp = http_build_query($data_otp); $res = $this->agent_model->Curl("\x50\x4f\x53\x54", "\150\x74\164\160\x73\72\x2f\57\157\x74\160\x2e\164\150\141\x69\x62\x75\154\153\163\155\x73\x2e\143\157\155\x2f\166\x31\x2f\157\164\160\x2f\x76\145\162\151\146\171", $header, $data_otp, false); $res = json_decode($res, true); if (isset($res["\x64\141\x74\x61"]["\x73\x74\x61\164\x75\x73"])) { if ($res["\144\x61\164\141"]["\x73\164\141\164\165\x73"] == "\x73\165\143\143\145\163\163") { $this->load->view("\x70\x61\x6e\x65\154\x5f\x75\163\145\162\57{$theme}\57\x61\x6a\141\x78\137\154\157\141\x64\x2f\160\141\163\163\x77\x6f\x72\x64\137\151\x6e\160\165\164", $data); } else { $data["\145\x72\162\x6f\x72"] = "\117\124\x50\40\xe0\271\204\340\270\xa1\340\271\210\340\270\x96\xe0\xb8\xb9\xe0\xb8\x81\340\xb8\225\340\xb9\211\340\270\255\340\270\207"; $this->load->view("\x70\x61\156\145\154\x5f\165\163\145\x72\x2f{$theme}\57\x61\x6a\x61\x78\137\x6c\x6f\x61\144\57\157\x74\x70\x5f\x69\x6e\160\x75\164", $data); } } else { $data["\145\162\x72\157\162"] = "\x4f\x54\x50\x20\340\271\x84\340\270\xa1\xe0\xb9\210\340\270\226\xe0\270\271\340\xb8\201\340\270\x95\xe0\271\x89\xe0\xb8\xad\340\xb8\x87"; $this->load->view("\x70\x61\156\145\154\x5f\165\x73\x65\x72\57{$theme}\x2f\x61\152\141\170\x5f\x6c\x6f\x61\x64\x2f\157\x74\x70\137\151\156\160\x75\164", $data); } } else { $data["\145\162\162\157\x72"] = "\340\270\243\xe0\xb8\xb0\xe0\xb8\x9a\xe0\xb8\232\xe0\xb9\x84\340\270\xa1\xe0\xb9\210\340\271\x84\xe0\270\224\xe0\xb9\x89\340\xb9\200\340\270\x9b\xe0\270\264\340\270\224\x20\x4f\x54\120"; echo $this->load->view("\160\x61\x6e\145\x6c\137\165\163\x65\162\x2f{$theme}\x2f\141\x6a\141\x78\137\x6c\x6f\x61\x64\x2f\162\x65\147\x69\x73\164\x65\x72", $data); die; } } } } } else { echo "\x3c\x73\143\162\151\160\164\76\x6c\157\x63\141\164\x69\x6f\156\56\x68\162\145\146\x20\x3d\x20\x22" . base_url() . "\x22\73\74\57\163\143\x72\x69\x70\x74\76"; } } public function set_password() { $theme = $this->theme; $theme_path = base_url() . "\x61\163\x73\145\164\x73\x5f\x75\163\145\x72\57" . $theme; $data = array(); $data["\164\150\x65\155\x65\x5f\x70\141\164\150"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\x6d\x65\x74\x61\137\163\x65\164\164\151\156\x67", array("\167\x68\x65\162\x65" => array("\x63\157\x6c" => "\151\x64", "\x76\x61\x6c" => "\x62\162\141\x6e\144\x5f\x73\145\x74\x74\151\x6e\x67")))["\166\x61\x6c\x75\145"], true); $data["\x64\x61\164\x61"] = $tmp; if (empty($_SESSION["\x75\163\x65\x72"]["\x6c\157\147\147\145\x64\137\151\x6e"])) { $this->form_validation->set_error_delimiters('', "\x3c\x62\x72\76"); $this->form_validation->set_rules("\x6b\x65\x79\137\166\141\x6c\151\x64", "\153\145\x79\137\x76\141\x6c\x69\144", "\x74\162\x69\x6d\x7c\162\145\x71\x75\151\162\145\144", array("\x72\145\x71\165\x69\x72\145\144" => "\xe0\270\x82\xe0\xb9\x89\340\xb8\xad\xe0\xb8\xa1\xe0\xb8\271\xe0\xb8\245\xe0\271\204\340\270\241\340\271\x88\340\270\204\xe0\270\243\xe0\270\x9a\xe0\270\x96\340\271\211\340\xb8\xa7\xe0\270\x99\40\340\270\x81\xe0\xb8\xa3\340\xb8\270\340\270\x93\xe0\xb8\262\xe0\271\203\xe0\xb8\252\340\xb9\210\340\270\x82\340\271\x89\xe0\270\255\xe0\270\xa1\xe0\xb8\271\340\xb8\xa5\340\xb9\203\xe0\xb8\xab\340\xb9\211\xe0\xb8\226\xe0\xb8\271\340\270\201\xe0\270\x95\xe0\xb9\211\340\xb8\xad\xe0\xb8\207")); if ($this->form_validation->run() === false) { $this->load->view("\160\141\x6e\x65\154\x5f\165\x73\x65\x72\57{$theme}\x2f\x61\152\141\x78\137\154\157\x61\144\57\x70\x61\163\x73\x77\157\x72\x64\x5f\x69\x6e\x70\x75\x74", $data); } else { $input = $this->input->post(); $password_first = isset($input["\163\x65\164\x5f\x70\141\163\163\x77\157\162\144"]["\160\141\x73\x73\167\157\x72\x64"]["\146\x69\162\163\x74"]) ? $input["\x73\145\164\137\x70\141\163\163\167\x6f\x72\144"]["\x70\141\x73\163\x77\x6f\162\x64"]["\x66\151\162\163\x74"] : null; $password_second = isset($input["\x73\x65\x74\x5f\160\x61\x73\x73\x77\157\x72\144"]["\160\x61\x73\163\167\157\162\144"]["\163\145\143\x6f\156\x64"]) ? $input["\163\x65\164\x5f\160\141\x73\x73\x77\x6f\x72\144"]["\x70\141\163\163\x77\157\x72\144"]["\163\x65\143\x6f\x6e\x64"] : null; if (empty($password_first) || empty($password_second) || $password_first != $password_second) { $data["\x65\x72\162\157\162"] = "\xe0\270\x9e\340\xb8\262\340\xb8\xaa\xe0\271\200\340\270\247\340\xb8\xb4\xe0\xb8\xa3\340\271\214\340\270\x94\340\xb9\x84\xe0\270\xa1\340\xb9\x88\340\270\225\xe0\270\243\xe0\xb8\207\340\xb8\x81\xe0\270\261\xe0\xb8\231"; $d = array("\x73\x74\x61\164\x75\x73" => "\x65\x72\162\157\162", "\x6d\145\x73\163\141\147\145" => $data["\x65\x72\x72\157\x72"]); header("\x43\x6f\156\x74\x65\156\x74\55\124\x79\160\x65\x3a\x20\141\x70\160\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x6a\x73\157\156\x3b\x20\143\x68\141\162\163\x65\x74\x3d\x75\x74\x66\x2d\x38", true, 200); die(json_encode($d)); $this->load->view("\160\141\x6e\145\x6c\137\165\163\145\162\57{$theme}\x2f\x61\152\x61\170\x5f\154\x6f\141\x64\57\160\141\163\x73\167\x6f\x72\144\137\151\x6e\160\x75\164", $data); } else { if ($this->user_model->validatePassword($password_first)) { $data["\x65\162\162\157\162"] = $this->user_model->validatePassword($password_first); $d = array("\163\x74\x61\164\165\x73" => "\145\162\162\x6f\162", "\x6d\x65\x73\x73\141\x67\145" => $data["\145\x72\162\x6f\162"]); header("\x43\157\x6e\164\145\156\164\x2d\x54\171\x70\x65\72\x20\141\160\160\154\x69\x63\x61\x74\x69\157\x6e\x2f\152\x73\x6f\x6e\73\x20\143\150\x61\x72\x73\145\164\75\165\164\146\x2d\x38", true, 200); die(json_encode($d)); $this->load->view("\160\141\156\x65\154\137\x75\163\x65\162\57{$theme}\x2f\141\152\x61\x78\x5f\x6c\157\141\x64\57\160\141\x73\x73\x77\x6f\162\144\x5f\151\x6e\x70\x75\x74", $data); } else { $_SESSION["\162\x65\x67\151\163\164\x65\x72"]["\160\141\163\163\167\x6f\x72\144"] = $password_first; $d = array("\x73\x74\141\164\x75\x73" => "\163\x75\143\x63\x65\163\x73", "\x6d\145\x73\163\141\x67\x65" => "\x62\x61\x6e\153\x5f\x69\156\160\165\x74"); header("\x43\x6f\156\164\x65\156\x74\55\x54\171\160\145\x3a\x20\141\x70\160\154\151\143\141\164\151\157\156\57\152\163\157\156\x3b\x20\143\150\141\x72\x73\145\164\75\165\164\146\x2d\x38", true, 200); die(json_encode($d)); $this->load->view("\160\x61\156\x65\154\x5f\165\163\145\x72\57{$theme}\57\141\x6a\141\170\x5f\x6c\157\x61\144\57\142\x61\156\x6b\137\x69\156\160\x75\164", $data); } } } } else { echo "\74\163\x63\162\x69\x70\164\76\154\157\x63\x61\x74\x69\157\156\x2e\150\162\145\x66\x20\x3d\40\x22" . base_url() . "\42\x3b\74\x2f\x73\x63\162\x69\x70\x74\x3e"; } } public function anon_bankaccount() { $theme = $this->theme; $theme_path = base_url() . "\141\163\163\145\x74\x73\137\165\x73\x65\x72\x2f" . $theme; $data = array(); $data["\x74\x68\x65\x6d\x65\x5f\x70\141\x74\150"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\x6d\145\164\141\x5f\x73\x65\x74\164\x69\156\x67", array("\x77\150\145\x72\145" => array("\143\157\154" => "\151\x64", "\166\141\154" => "\x62\162\x61\x6e\x64\x5f\x73\145\x74\x74\151\x6e\147")))["\x76\141\154\165\x65"], true); $data["\144\x61\164\x61"] = $tmp; if (empty($_SESSION["\165\x73\145\x72"]["\x6c\x6f\x67\x67\145\x64\x5f\x69\156"])) { $this->form_validation->set_error_delimiters('', "\x3c\142\162\76"); $this->form_validation->set_rules("\153\x65\x79\x5f\x76\x61\154\x69\x64", "\x6b\x65\171\137\166\x61\154\151\144", "\x74\162\151\x6d\x7c\162\x65\161\x75\x69\162\x65\144", array("\x72\145\161\165\x69\x72\145\144" => "\340\xb8\x82\xe0\271\211\xe0\270\255\340\xb8\241\340\270\271\340\xb8\xa5\340\271\204\340\xb8\xa1\340\xb9\210\xe0\270\204\340\xb8\xa3\340\270\232\xe0\xb8\226\xe0\271\x89\340\270\xa7\340\xb8\x99\x20\340\270\x81\340\xb8\xa3\340\xb8\270\340\xb8\x93\xe0\270\262\340\xb9\203\xe0\xb8\252\340\xb9\x88\340\xb8\202\340\271\211\xe0\xb8\xad\xe0\270\xa1\xe0\xb8\xb9\340\270\245\340\271\x83\xe0\xb8\253\340\271\211\340\270\x96\340\xb8\271\xe0\270\x81\xe0\270\x95\340\xb9\211\340\xb8\255\340\xb8\x87")); if ($this->form_validation->run() === false) { $this->load->view("\160\141\x6e\145\x6c\x5f\x75\163\145\162\57{$theme}\x2f\141\x6a\141\170\137\x6c\157\x61\x64\x2f\142\141\x6e\x6b\137\151\156\160\x75\164", $data); } else { $input = $this->input->post(); $bank_acc_no = isset($input["\x63\165\x73\x74\x6f\155\145\x72\137\142\x61\x6e\153\137\141\143\143\x6f\165\156\x74"]["\x6e\x75\x6d\142\x65\162"]) ? $input["\x63\x75\x73\164\157\x6d\145\162\x5f\x62\x61\x6e\x6b\137\141\x63\x63\x6f\165\x6e\164"]["\x6e\165\x6d\x62\145\162"] : null; $bank_id = isset($input["\x63\x75\x73\x74\x6f\155\x65\x72\x5f\x62\x61\156\x6b\x5f\x61\143\143\x6f\x75\x6e\164"]["\x62\141\156\153"]) ? $input["\143\165\x73\x74\157\155\145\x72\137\142\x61\156\x6b\137\141\x63\143\157\165\x6e\x74"]["\142\141\156\153"] : null; if ($bank_id == 29) { $_SESSION["\x72\145\x67\151\x73\164\145\162"]["\142\141\156\153\x5f\x61\x63\143\137\x6e\x6f"] = $_SESSION["\x72\x65\x67\151\x73\164\x65\162"]["\155\x6f\x62\x69\154\145\x5f\x6e\157"]; $_SESSION["\162\145\147\151\x73\x74\x65\162"]["\142\x61\x6e\153\x5f\151\x64"] = $bank_id; $d = array("\x73\x74\x61\x74\165\x73" => "\163\165\143\x63\x65\163\163", "\x6d\x65\x73\x73\141\x67\145" => "\x69\x6e\160\165\x74\x5f\156\141\x6d\145"); header("\x43\157\156\164\x65\x6e\164\55\x54\x79\160\x65\x3a\40\141\160\x70\x6c\x69\143\141\x74\151\x6f\x6e\57\152\163\157\x6e\x3b\x20\143\150\x61\162\163\x65\x74\x3d\x75\x74\x66\55\x38", true, 200); die(json_encode($d)); echo $this->load->view("\x70\141\156\x65\x6c\137\165\163\145\162\57{$theme}\57\141\x6a\141\170\x5f\x6c\x6f\141\144\x2f\156\141\x6d\145\137\x69\x6e\160\165\x74", $data, true); die; } if (empty($bank_acc_no) || empty($bank_id)) { $data["\145\x72\162\157\x72"] = "\xe0\270\201\xe0\270\243\340\xb8\xb8\xe0\xb8\x93\xe0\xb8\xb2\340\xb8\x81\340\xb8\243\xe0\270\xad\340\270\x81\340\xb8\x9a\xe0\xb8\xb1\xe0\270\215\340\270\x8a\340\xb8\xb5\xe0\270\x98\340\xb8\x99\xe0\270\262\xe0\xb8\204\340\270\262\340\xb8\xa3"; $d = array("\163\x74\x61\164\x75\163" => "\145\162\x72\157\x72", "\155\x65\x73\163\x61\147\x65" => $data["\145\162\x72\157\x72"]); header("\x43\157\x6e\x74\x65\156\164\55\124\171\x70\x65\72\40\141\160\160\x6c\151\143\141\164\x69\x6f\x6e\57\152\163\x6f\156\73\x20\143\x68\x61\x72\x73\145\164\75\x75\164\x66\x2d\70", true, 200); die(json_encode($d)); $this->load->view("\160\x61\156\x65\x6c\x5f\x75\163\145\162\57{$theme}\x2f\141\152\141\x78\137\x6c\157\x61\144\x2f\142\x61\x6e\153\137\151\156\160\x75\x74", $data); } else { if (strlen($bank_acc_no) < 10 || !is_numeric($bank_acc_no)) { $data["\145\162\162\157\162"] = "\xe0\xb8\x81\340\xb8\243\xe0\270\xb8\xe0\270\x93\340\270\262\340\xb8\x81\xe0\xb8\xa3\xe0\xb8\255\xe0\270\x81\340\270\x9a\xe0\xb8\261\xe0\xb8\x8d\xe0\270\212\340\xb8\xb5\340\xb8\x98\xe0\xb8\x99\340\xb8\262\xe0\xb8\204\xe0\270\xb2\xe0\xb8\xa3\340\xb9\x83\xe0\xb8\253\xe0\271\211\xe0\270\x96\xe0\xb8\xb9\xe0\xb8\201\340\xb8\x95\xe0\xb9\x89\xe0\270\255\xe0\270\207"; $d = array("\x73\164\x61\x74\165\x73" => "\x65\x72\162\157\162", "\x6d\145\x73\x73\x61\x67\x65" => $data["\145\162\162\157\162"]); header("\103\157\x6e\x74\x65\x6e\164\x2d\x54\x79\160\x65\x3a\40\141\160\160\x6c\x69\x63\141\x74\x69\x6f\156\57\152\163\157\x6e\x3b\40\143\x68\141\162\x73\x65\164\75\x75\x74\146\x2d\x38", true, 200); die(json_encode($d)); $this->load->view("\x70\x61\x6e\145\x6c\137\165\163\x65\162\57{$theme}\x2f\141\x6a\141\x78\x5f\154\x6f\141\x64\x2f\142\x61\x6e\x6b\137\x69\x6e\160\165\164", $data); } else { $bank_check = $this->main_model->custom_query_row("\xa\11\x9\11\11\x9\11\11\x73\x65\154\145\x63\x74\x20\x2a\xa\11\11\11\x9\11\x9\x9\x66\x72\x6f\x6d\x20\x73\154\x5f\165\x73\145\x72\163\xa\11\11\x9\11\11\x9\11\167\x68\x65\x72\x65\x20\142\x61\x6e\x6b\137\141\143\143\x5f\156\157\x20\75\x20\x27{$bank_acc_no}\47\40\141\x6e\144\x20\x62\x61\x6e\x6b\x5f\151\x64\x20\75\40\x27{$bank_id}\47\xa\11\x9\x9\x9\x9\11"); if (empty($bank_check)) { $_SESSION["\162\145\147\x69\163\164\x65\162"]["\x62\x61\x6e\153\137\141\143\143\137\156\157"] = $bank_acc_no; $_SESSION["\162\x65\147\x69\x73\164\x65\162"]["\x62\141\156\x6b\137\x69\x64"] = $bank_id; $getname_auto = json_decode($this->main_model->get_row("\155\x65\164\141\x5f\163\145\164\x74\151\x6e\147", array("\x77\x68\x65\x72\x65" => array("\143\157\x6c" => "\151\144", "\166\x61\154" => "\x67\x65\x74\x6e\141\x6d\x65\x5f\141\165\164\x6f")))["\x76\x61\x6c\165\145"], true); $getname_auto_c = false; if (isset($getname_auto["\x65\x6e\141\x62\x6c\x65"])) { if ($getname_auto["\x65\x6e\x61\142\154\145"] == 1) { } } if (!$getname_auto_c) { $get_name = "\x6d\x61\x6e\141\x75\154"; } else { $get_name = false; if (date("\x59\55\155\x2d\x64\40\110\x3a\x69\72\x73") > "\x32\60\62\61\x2d\x30\x36\x2d\61\62\x20\x30\x37\72\x30\60\x3a\x30\60") { $bank_id = $this->main_model->get_bank_info($bank_id)["\163\143\x62\x5f\151\144"]; $bankDefault = ''; $getDefaultBank = $this->main_model->custom_query_result("\x53\105\x4c\105\103\124\40\x2a\x20\x46\x52\x4f\115\40\x61\x64\x6d\151\x6e\x5f\142\141\156\153\x20\x57\x48\x45\x52\105\x20\x73\164\x61\164\165\x73\x20\x3d\x20\x31"); foreach ($getDefaultBank as $item) { $formatItem = json_decode($item["\x6d\x65\164\141\x5f\x64\x61\x74\141"], true); if ($formatItem["\142\141\x6e\x6b\x5f\x74\171\160\x65"] == "\x44\x45\120\x4f\123\111\x54" || $formatItem["\x62\141\156\x6b\137\x74\x79\160\145"] == "\x42\117\x54\x48") { if ($formatItem["\142\x61\x6e\153\137\144\145\x66\141\x75\x6c\x74"] == 1) { $bankDefault = $item["\151\x64"]; } } } $admin_banks = $this->main_model->custom_query_result("\xa\x9\x9\11\x9\11\x9\11\11\x9\11\x73\x65\x6c\145\143\164\40\x2a\12\x9\11\11\x9\x9\11\x9\x9\11\x9\x66\162\157\155\x20\141\x64\x6d\151\x6e\137\x62\141\x6e\x6b\xa\11\11\x9\x9\11\11\x9\x9\11\x9\167\150\x65\162\145\x20\x73\x74\141\164\x75\x73\x20\75\x20\61\xa\x9\x9\x9\11\x9\x9\11\11\11"); $tmp_bank = array(); $i = 0; foreach ($admin_banks as $tmp) { $tmp_bank[$i] = $tmp; foreach (json_decode($tmp["\155\x65\164\x61\137\144\x61\x74\x61"], true) as $key => $val) { $tmp_bank[$i][$key] = $val; } unset($tmp_bank[$i]["\155\145\164\141\137\x64\x61\164\x61"]); $i++; } $admin_info = array(); foreach ($tmp_bank as $tmp) { if ($tmp["\142\141\156\x6b\137\x74\171\x70\145"] == "\102\117\124\110" || $tmp["\142\141\x6e\153\137\164\171\x70\x65"] == "\x44\x45\x50\x4f\x53\111\124") { if ($tmp["\x62\141\x6e\x6b\137\151\x64"] == 5) { $admin_info = $tmp; break; } } } if (!empty($admin_info)) { if ($admin_info["\142\141\156\153\x5f\151\144"] == "\65") { if ($admin_info["\167\x6f\162\153\x5f\164\x79\160\x65"] == "\x4e\x4f\104\x45") { $token = isset($admin_info["\163\x63\142\x5f\x61\160\x70\137\164\x6f\x6b\145\156"]) ? $this->main_model->decrypt($admin_info["\163\143\142\x5f\141\160\x70\x5f\164\x6f\x6b\x65\x6e"]) : ''; if ($bank_id == 0) { $bank_id = "\60\61\x34"; } if ($bank_id != "\x30\x31\64" && $bank_id != "\x30") { $api_data = array("\x61\x63\143\157\x75\x6e\164\x46\162\x6f\155" => $admin_info["\142\141\156\x6b\137\141\x63\x63\x5f\156\x75\155\142\145\x72"], "\x61\143\x63\x6f\165\156\164\x54\157" => $bank_acc_no, "\141\143\143\157\165\x6e\164\x54\157\102\x61\x6e\153\x43\x6f\144\x65" => $bank_id, "\x61\x6d\157\x75\156\x74" => 1, "\x74\162\x61\x6e\x73\x66\145\162\x54\x79\x70\x65" => "\117\122\x46\x54", "\x61\156\156\157\164\x61\164\x69\x6f\x6e" => '', "\141\x63\x63\157\x75\156\x74\x46\162\x6f\x6d\x54\171\x70\145" => 2); } else { $api_data = array("\x61\143\143\x6f\165\x6e\164\106\x72\x6f\x6d" => $admin_info["\x62\141\x6e\x6b\137\141\143\143\x5f\x6e\165\155\x62\145\x72"], "\141\x63\143\x6f\x75\x6e\164\x54\157" => $bank_acc_no, "\141\143\x63\x6f\x75\156\164\124\157\102\x61\x6e\153\103\157\x64\x65" => $bank_id, "\x61\155\157\x75\156\x74" => 1, "\x74\162\141\156\x73\146\x65\x72\x54\171\x70\145" => "\63\122\104", "\141\x6e\x6e\x6f\x74\x61\x74\x69\x6f\156" => '', "\141\x63\x63\157\x75\156\164\x46\x72\x6f\155\124\171\160\145" => 2); } $res = $this->scb_app_lib->Transfer($token, $api_data); if (isset($res["\x73\x74\141\164\x75\163"]["\143\x6f\144\145"])) { if ($res["\163\x74\141\x74\x75\x73"]["\x63\x6f\144\145"] == 1000) { $fullname = isset($res["\x64\x61\x74\141"]["\x61\143\143\x6f\165\156\164\x54\157\x4e\x61\155\x65"]) ? $res["\x64\141\164\x61"]["\x61\143\143\x6f\x75\x6e\x74\x54\157\x4e\141\155\145"] : null; $tmp = explode("\40", $fullname); $fname = isset($tmp[0]) ? $tmp[0] : ''; $lname = isset($tmp[1]) ? $tmp[1] : ''; $get_name = true; } } } } } } } if ($get_name == false) { $data["\145\162\162\x6f\162"] = "\xe0\xb9\x84\xe0\270\241\340\271\x88\xe0\xb8\252\340\270\xb2\340\270\241\xe0\xb8\262\340\270\xa3\340\270\x96\xe0\270\224\340\xb8\xb6\xe0\xb8\x87\340\270\202\340\271\211\xe0\xb8\xad\xe0\270\xa1\340\270\xb9\xe0\xb8\xa5\340\271\x84\xe0\270\224\xe0\xb9\211\xe0\xb8\x81\xe0\xb8\xa3\340\xb8\270\xe0\xb8\x93\340\xb8\262\xe0\xb8\x95\340\270\243\xe0\270\xa7\340\xb8\x88\340\xb8\252\340\xb8\xad\xe0\270\232\340\271\200\xe0\270\245\340\xb8\202\xe0\xb8\x9a\340\xb8\261\340\270\215\340\270\212\xe0\xb8\xb5\x20\340\270\xab\340\xb8\xa3\340\xb8\xb7\340\270\xad\40\340\270\x95\340\xb8\264\340\270\x94\xe0\270\x95\340\xb9\x88\340\270\255\340\xb9\x81\xe0\270\xad\xe0\xb8\x94\xe0\xb8\241\340\270\xb4\xe0\xb8\x99"; $d = array("\x73\164\141\164\165\x73" => "\x65\162\162\157\162", "\155\145\163\163\x61\147\145" => $data["\145\x72\x72\x6f\x72"]); header("\103\x6f\156\164\x65\x6e\164\x2d\124\x79\160\x65\x3a\40\141\160\x70\154\x69\143\x61\x74\151\x6f\156\x2f\x6a\x73\157\x6e\73\40\x63\x68\141\x72\x73\145\x74\75\165\x74\146\x2d\x38", true, 200); die(json_encode($d)); echo $this->load->view("\160\141\156\145\x6c\x5f\x75\x73\145\162\x2f{$theme}\x2f\x61\x6a\x61\170\137\x6c\x6f\141\x64\x2f\142\141\156\153\x5f\x69\156\160\165\x74", $data, true); die; } else { if ($get_name === "\155\x61\x6e\141\165\154") { $d = array("\163\164\141\x74\x75\163" => "\163\165\x63\143\145\163\163", "\x6d\x65\x73\x73\x61\x67\145" => "\151\x6e\x70\165\x74\x5f\x6e\141\155\145"); header("\x43\x6f\156\164\x65\156\x74\x2d\124\171\x70\x65\x3a\x20\x61\160\x70\x6c\x69\143\141\x74\x69\157\x6e\x2f\152\163\157\x6e\x3b\40\143\150\x61\162\x73\x65\x74\75\x75\164\x66\x2d\70", true, 200); die(json_encode($d)); $this->load->view("\x70\x61\156\145\154\x5f\x75\163\x65\x72\57{$theme}\x2f\141\152\x61\170\x5f\154\x6f\141\x64\57\x6e\141\x6d\x65\x5f\151\156\160\165\x74", $data); } else { $date = date("\131\55\x6d\x2d\144\x20\110\x3a\x69\72\x73"); $tmp_data = array("\155\157\x62\151\154\145\137\x6e\157" => $_SESSION["\x72\x65\147\151\163\164\x65\162"]["\x6d\157\x62\151\x6c\145\137\x6e\157"], "\x6c\x69\x6e\145\x69\x64" => '', "\160\141\x73\163\x77\x6f\x72\x64" => $_SESSION["\x72\x65\x67\x69\x73\164\x65\162"]["\x70\141\163\163\x77\x6f\162\x64"], "\x66\165\x6c\154\x6e\141\155\x65" => $fullname, "\x74\x75\x72\x6e" => 0, "\x74\x75\162\156\x5f\x64\141\x74\145" => NULL, "\142\x65\x74" => 0, "\143\x72\145\x64\x69\x74" => 0, "\143\162\145\x64\x69\164\137\x66\x72\145\x65" => 0, "\143\162\x65\144\x69\x74\137\146\x72\x65\x65\x5f\143\150\145\143\x6b" => NULL, "\143\162\145\x64\151\x74\137\141\146\146" => 0, "\x62\141\x6e\153\x5f\x6e\141\155\145" => $this->main_model->get_bank_info($_SESSION["\162\145\147\x69\163\164\x65\x72"]["\x62\141\x6e\x6b\137\x69\144"])["\x62\x61\x6e\153\137\x6e\x61\x6d\145"], "\142\141\x6e\153\x5f\x61\143\143\137\156\x6f" => $_SESSION["\162\x65\147\x69\163\164\145\x72"]["\x62\x61\156\153\x5f\141\x63\x63\x5f\x6e\157"], "\x62\x61\156\153\137\x69\x64" => $_SESSION["\162\x65\x67\x69\163\164\145\162"]["\x62\x61\156\x6b\137\151\144"], "\x61\x64\x6d\151\156\137\x62\141\156\153\x5f\151\x64" => $bankDefault, "\x61\143\x63\x65\160\x74\x5f\160\x72\157\x6d\x6f\x74\151\157\156" => 0, "\141\x66\146" => NULL, "\154\141\163\x74\x5f\143\x68\x65\143\x6b\x5f\141\x66\x66" => date("\x59\x2d\155\x2d\x64"), "\143\x72\145\x61\164\x65\x5f\141\x74" => $date, "\154\141\x73\164\137\x6c\x6f\x67\x69\156" => date("\x59\x2d\155\x2d\x64"), "\x6e\x6f\164\145" => '', "\164\x69\143\x6b\x65\164\x5f\x77\x68\145\x65\x6c" => 0, "\x74\151\143\x6b\x65\164\137\x77\150\x65\145\154\x5f\165\x73\145\144" => 0, "\x74\x69\143\x6b\x65\x74\137\x63\x61\x72\144" => 0, "\x74\x69\143\153\145\164\x5f\143\141\x72\144\x5f\x75\163\x65\144" => 0, "\x72\x61\x6e\153" => 1, "\162\141\x6e\x6b\137\x6e\157\x74\x65" => '', "\153\x6e\x6f\x77\165\x73" => '', "\154\x61\163\164\137\145\x64\151\164" => '', "\x6c\x61\x73\x74\x5f\145\x64\151\x74\137\156\x6f\x74\x65" => '', "\x67\141\155\145\137\154\157\147\151\x6e" => NULL, "\x63\157\x64\145\x66\162\x65\145" => '', "\x73\164\x61\x74\x75\x73" => 1, "\x75\x73\x65\162\x5f\x73\164\x61\164\165\163" => "\xe0\xb9\x80\340\xb8\233\340\271\207\xe0\270\231\xe0\xb8\xaa\340\xb8\xa1\xe0\270\262\xe0\270\x8a\340\xb8\264\xe0\270\201\xe0\xb9\x81\340\270\245\340\xb9\211\xe0\xb8\xa7"); if (isset($_SESSION["\162\x65\147\151\x73\164\145\x72"]["\141\146\x66"])) { $tmp_data["\141\x66\146"] = $_SESSION["\x72\145\147\151\163\164\x65\162"]["\x61\146\x66"]; } else { $tmp_data["\x61\x66\x66"] = null; } function generateRandomString($length = 10) { $characters = "\x41\102\x43\x44\105\x46\107\x48\111\112\113\114\115\116\x4f\x50\121\122\x53\124\x55\126\x57\x58\131\132"; $charactersLength = strlen($characters); $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, $charactersLength - 1)]; } return $randomString; } $tmp_data["\143\157\x64\x65\x66\x72\x65\x65"] = generateRandomString(6) . "\55" . $tmp_data["\155\157\x62\151\x6c\x65\137\156\x6f"]; if (empty($tmp_data["\141\146\x66"]) || $tmp_data["\x61\146\x66"] == '') { $tmp_data["\141\146\x66"] = null; } $agent_data = array("\x61\x67\x65\x6e\164\x5f\x6d\x65\x74\150\157\x64" => "\x43\125", "\141\147\145\156\164\x5f\x64\141\164\141" => $tmp_data); $res = $this->agent_model->process($agent_data); if ($res["\x73\164\x61\x74\x75\163"]) { $tmp_data["\x61\x6d\x62\x5f\x69\x64"] = $res["\x64\x61\x74\x61"]["\141\x6d\142\137\x69\144"]; $tmp_data["\142\145\x74\146\154\x69\170\137\x69\x64"] = $res["\x64\x61\164\x61"]["\x62\x65\164\x66\154\x69\x78\x5f\151\144"]; $tmp_data["\165\151\x64"] = $res["\144\141\x74\x61"]["\x75\x69\x64"]; if ($this->user_model->create_user($tmp_data)) { $row = $this->user_model->get_user($tmp_data["\x6d\x6f\x62\x69\154\145\137\156\x6f"]); $this->user_model->update_last_login($tmp_data["\x6d\157\x62\x69\x6c\x65\x5f\x6e\x6f"]); $row = $this->user_model->get_user($tmp_data["\x6d\157\x62\151\154\145\x5f\x6e\x6f"]); $this->user_model->update_last_login($tmp_data["\155\x6f\x62\151\x6c\x65\x5f\156\157"]); $_SESSION["\x75\163\145\162"]["\154\157\147\x67\145\144\x5f\x69\x6e"] = true; $_SESSION["\165\163\145\x72"]["\155\x6f\142\151\154\x65"] = $row["\155\157\x62\x69\154\x65\x5f\x6e\157"]; $_SESSION["\x75\x73\145\x72"]["\165\x73\145\162\x6e\141\x6d\x65"] = $row["\x6d\x6f\x62\x69\154\145\x5f\156\x6f"]; $_SESSION["\165\163\145\x72"]["\x69\x64"] = $row["\151\144"]; $_SESSION["\165\x73\x65\162"]["\146\165\x6c\x6c\x6e\141\155\x65"] = $row["\146\x75\154\154\156\141\155\145"]; $_SESSION["\x75\163\145\162"]["\x61\144\x6d\x69\x6e\x5f\142\x61\x6e\x6b\x5f\151\144"] = $row["\141\x64\x6d\x69\x6e\x5f\142\x61\156\153\137\x69\144"]; $this->user_model->create_last_login_ip(array("\151\144" => null, "\x75\x5f\151\144" => $_SESSION["\165\163\145\162"]["\x69\144"], "\151\x70" => $this->main_model->getUserIP(), "\x64\141\164\145" => date("\x59\55\155\55\144\40\110\x3a\x69\72\x73"), "\143\151\x5f\x73\145\x73\163\x69\157\x6e\x73" => $_COOKIE["\x63\x69\x5f\163\145\163\163\x69\x6f\x6e\x73"])); $tmp = json_decode($this->main_model->get_row("\155\x65\164\141\x5f\163\x65\x74\164\x69\x6e\147", array("\167\x68\145\x72\x65" => array("\143\x6f\154" => "\151\144", "\166\x61\x6c" => "\x62\x72\x61\x6e\x64\x5f\x73\145\x74\x74\151\x6e\147")))["\x76\141\x6c\165\145"], true); $line_token = json_decode($this->main_model->get_row("\155\145\x74\x61\x5f\163\145\x74\x74\151\156\x67", array("\167\x68\145\x72\145" => array("\143\157\x6c" => "\x69\x64", "\166\x61\x6c" => "\154\x69\156\x65\x5f\164\x6f\153\x65\x6e")))["\x76\x61\x6c\x75\145"], true)["\122\145\147\151\163\x74\x65\162"]; if (!empty($line_token)) { $line_flex = json_decode($this->main_model->get_row("\x6d\145\164\x61\137\x73\145\164\x74\151\156\x67", array("\x77\150\x65\162\x65" => array("\x63\157\x6c" => "\151\144", "\x76\141\154" => "\x6c\151\156\x65\x5f\146\x6c\x65\x78\137\x65\x6e\x61\x62\154\x65")))["\x76\x61\154\165\145"], true); $line_flex_open = false; if (isset($line_flex["\145\x6e\141\x62\154\x65"])) { if ($line_flex["\145\x6e\x61\142\154\x65"] == 1) { $line_flex_open = true; } } if (!$line_flex_open) { $this->line_model->setToken($line_token); $this->line_model->addMsg("\xe2\x9d\x84\x20\xe0\270\252\340\xb8\241\xe0\xb8\261\340\270\204\340\270\243\340\270\252\xe0\270\xa1\340\270\xb2\340\270\x8a\340\xb8\264\340\xb8\201\340\xb9\203\340\270\xab\340\xb8\241\xe0\xb9\x88\x20\342\x9d\x84"); $this->line_model->addMsg("\xe2\x95\220\xe2\x95\x90\342\x95\220\xe2\x95\220\xe2\225\220\342\225\220\342\225\220\342\x95\220\xe2\225\x90\xe2\x95\220\xe2\x95\220\342\x95\220\342\x95\220"); $this->line_model->addMsg("\xe0\271\x80\340\xb8\232\xe0\270\xad\340\270\xa3\xe0\xb9\x8c\340\270\xa1\340\xb8\xb7\xe0\270\255\xe0\270\226\340\xb8\xb7\xe0\270\xad\x20\72\40" . $row["\155\157\142\151\x6c\145\x5f\156\x6f"]); $this->line_model->addMsg("\x55\x73\145\162\156\x61\x6d\145\x20\72\x20" . $row["\151\144"]); $this->line_model->addMsg("\xe0\xb8\212\340\270\xb7\340\271\210\340\xb8\xad\x20\72\x20" . $row["\x66\165\154\154\156\x61\155\x65"]); $this->line_model->addMsg("\xe0\xb8\x98\xe0\270\x99\340\xb8\262\xe0\xb8\204\xe0\xb8\xb2\xe0\xb8\xa3\x20\72\40" . $row["\142\141\x6e\x6b\137\x6e\141\x6d\x65"]); $this->line_model->addMsg("\xe0\271\200\340\270\245\340\270\x82\340\270\232\340\xb8\xb1\340\xb8\215\340\270\x8a\xe0\270\265\40\72\40" . $row["\142\141\x6e\153\x5f\141\x63\143\x5f\156\157"]); $this->line_model->addMsg("\151\x70\x3a\40" . $this->main_model->getUserIP()); $this->line_model->addMsg("\340\xb8\247\340\270\xb1\340\xb8\231\xe0\270\227\340\xb8\xb5\340\xb9\x88\x20\x3a\40" . $date); $this->line_model->addMsg("\xe2\x95\x90\xe2\225\220\342\x95\220\xe2\x95\220\342\x95\x90\342\225\220\342\225\220\xe2\x95\x90\xe2\225\220\342\x95\220\xe2\225\x90\xe2\225\220\xe2\225\220"); $this->line_model->sendNotify(); } else { $this->line_model_flex->setToken($line_token, "\x72\x65\147\151\163\164\145\x72"); $this->line_model_flex->addReplacer("\x6d\157\x62\x69\154\145\x5f\x6e\x6f", $row["\155\x6f\142\x69\x6c\145\x5f\x6e\157"]); $this->line_model_flex->addReplacer("\151\x64", $row["\x69\x64"]); $this->line_model_flex->addReplacer("\146\x75\x6c\x6c\x6e\141\x6d\x65", $row["\x66\x75\x6c\x6c\156\141\x6d\145"]); $this->line_model_flex->addReplacer("\x62\x61\156\x6b\x5f\156\141\155\145", $row["\x62\x61\156\153\x5f\156\141\x6d\145"]); $this->line_model_flex->addReplacer("\142\141\156\153\137\x61\143\x63\137\x6e\x6f", $row["\x62\141\156\153\137\x61\143\x63\x5f\156\x6f"]); $this->line_model_flex->addReplacer("\144\141\x74\145", $date); $this->line_model_flex->sendNotify(); } } $tmp_data = array("\x69\x64" => null, "\165\x73\x65\x72\x6e\x61\x6d\x65" => $row["\x6d\x6f\x62\x69\154\x65\x5f\156\157"], "\151\143\x6f\156" => "\163\x75\x63\x63\x65\x73\x73", "\164\151\x74\154\x65" => '', "\164\145\x78\164" => "\340\xb8\252\340\270\241\xe0\xb8\xb1\340\270\x84\340\xb8\243\xe0\xb8\xaa\xe0\xb8\241\xe0\xb8\xb2\xe0\xb8\x8a\xe0\xb8\xb4\xe0\270\201\xe0\xb9\x80\xe0\270\243\340\270\xb5\340\270\242\340\xb8\x9a\340\270\243\340\xb9\x89\340\xb8\255\340\270\242\xe0\xb9\x81\xe0\xb8\245\xe0\xb9\x89\340\270\xa7", "\x6d\x65\164\x61\x5f\x64\141\164\141" => '', "\144\x61\164\145" => date("\x59\55\x6d\x2d\x64\40\x48\x3a\151\x3a\163"), "\x73\x74\x61\164\x75\163" => 1); $this->main_model->create($tmp_data, "\x6e\x6f\x74\x69\x63\145\137\x61\x64\155\x69\x6e"); $tmp_data = array("\x75\163\145\x72" => $row["\x69\144"], "\x70\x61\x73\163" => $row["\x70\x61\163\x73\167\157\x72\144"]); $tmp_data = http_build_query($tmp_data); $d = array("\163\x74\x61\164\165\x73" => "\163\x75\143\x63\145\163\x73", "\155\x65\x73\x73\141\x67\145" => "\340\270\xaa\340\270\xa1\340\270\xb1\xe0\270\204\340\xb8\243\xe0\270\252\340\xb8\xa1\340\270\262\xe0\270\x8a\340\xb8\264\340\270\201\340\xb9\200\xe0\270\xa3\xe0\xb8\xb5\340\xb8\242\340\270\232\xe0\xb8\xa3\340\xb9\x89\340\270\xad\340\xb8\242\340\271\201\340\270\245\xe0\xb9\211\xe0\270\xa7"); header("\x43\157\x6e\164\x65\x6e\164\55\x54\x79\x70\x65\72\x20\141\x70\160\x6c\151\x63\x61\x74\151\157\156\57\152\163\x6f\x6e\x3b\40\143\150\141\162\x73\x65\x74\x3d\x75\164\146\x2d\70", true, 200); die(json_encode($d)); $this->load->view("\160\141\x6e\145\154\137\x75\163\x65\x72\x2f{$theme}\x2f\x61\x6a\x61\170\137\154\x6f\141\144\x2f\x73\165\143\143\145\163\163", $data); } else { $data["\145\x72\162\157\162"] = "\xe0\270\241\340\xb8\xb5\xe0\270\232\xe0\xb8\262\xe0\xb8\x87\340\270\xad\xe0\270\242\xe0\271\210\xe0\xb8\xb2\340\270\207\340\270\x9c\340\xb8\264\xe0\xb8\224\xe0\xb8\236\xe0\xb8\xa5\xe0\270\262\340\xb8\224\40\xe0\270\201\340\xb8\243\340\xb8\270\xe0\270\223\340\270\xb2\xe0\270\245\340\xb8\255\340\xb8\207\340\xb8\xad\xe0\xb8\xb5\xe0\270\x81\340\xb8\x84\xe0\xb8\243\340\xb8\261\xe0\271\211\xe0\xb8\x87\x20\x3c\x62\162\x3e\x20\x43\x6f\144\x65\40\x3a\x20\x31\60\60\x30"; $d = array("\x73\164\x61\164\x75\x73" => "\145\162\162\x6f\x72", "\x6d\145\x73\163\x61\x67\x65" => $data["\145\x72\162\x6f\x72"]); header("\x43\x6f\x6e\164\x65\x6e\164\55\x54\171\x70\x65\72\40\141\x70\x70\x6c\x69\143\x61\164\151\157\156\x2f\x6a\163\x6f\x6e\73\x20\143\x68\141\x72\163\x65\164\x3d\165\x74\x66\x2d\70", true, 200); die(json_encode($d)); $this->load->view("\x70\141\156\145\x6c\137\165\163\x65\162\57{$theme}\57\141\152\141\x78\x5f\154\x6f\x61\144\57\162\x65\x67\151\x73\x74\x65\x72", $data); } } else { header("\x48\x54\x54\x50\x2f\x31\x2e\x31\x20\x34\60\61\40\125\156\141\165\164\150\x6f\162\151\x7a\x65\x64"); } } } } else { $data["\x65\162\x72\x6f\162"] = "\340\271\200\xe0\270\xa5\xe0\xb8\202\340\xb8\x9a\340\270\xb1\xe0\xb8\215\340\270\x8a\xe0\270\xb5\340\xb9\210\xe0\270\231\xe0\270\265\xe0\271\211\340\xb8\x96\340\270\271\340\270\x81\xe0\271\x83\340\270\x8a\xe0\271\211\340\xb9\x81\340\270\245\xe0\271\211\340\270\247"; $d = array("\x73\x74\x61\164\x75\x73" => "\145\162\162\157\x72", "\155\145\x73\x73\141\x67\x65" => $data["\145\x72\x72\157\162"]); header("\103\x6f\x6e\x74\145\156\x74\x2d\x54\x79\160\145\72\x20\x61\x70\160\154\151\143\141\x74\151\157\156\x2f\152\x73\x6f\x6e\x3b\40\143\x68\x61\x72\163\145\x74\75\x75\x74\x66\55\70", true, 200); die(json_encode($d)); $this->load->view("\x70\141\156\145\154\137\x75\x73\x65\162\57{$theme}\57\141\x6a\141\x78\137\154\157\141\x64\57\142\141\x6e\153\x5f\151\156\x70\x75\164", $data); } } } } } else { echo "\74\163\x63\x72\x69\160\164\76\x6c\157\143\x61\x74\x69\157\156\56\x68\x72\145\146\40\75\x20\42" . base_url() . "\42\73\74\x2f\163\x63\x72\151\x70\164\76"; } } public function set_fullname() { $theme = $this->theme; $theme_path = base_url() . "\141\x73\163\x65\164\x73\137\x75\x73\145\x72\57" . $theme; $data = array(); $data["\164\x68\145\x6d\145\x5f\x70\141\164\x68"] = $theme_path; $tmp = json_decode($this->main_model->get_row("\155\145\164\141\137\x73\145\x74\164\x69\156\147", array("\x77\x68\145\x72\x65" => array("\143\x6f\x6c" => "\x69\x64", "\166\141\154" => "\x62\x72\141\156\144\137\x73\145\164\164\151\156\147")))["\x76\x61\x6c\x75\145"], true); $data["\x64\x61\164\141"] = $tmp; if (empty($_SESSION["\165\x73\145\x72"]["\x6c\157\x67\147\x65\x64\x5f\x69\156"])) { $this->form_validation->set_error_delimiters('', "\x3c\142\162\x3e"); $this->form_validation->set_rules("\153\x65\x79\137\166\141\154\x69\144", "\x6b\x65\171\x5f\166\141\x6c\x69\x64", "\x74\x72\151\155\x7c\x72\x65\161\x75\151\x72\145\x64", array("\x72\x65\x71\165\151\162\x65\x64" => "\340\270\202\xe0\xb9\x89\xe0\xb8\255\xe0\xb8\xa1\340\xb8\xb9\xe0\270\xa5\340\xb9\204\xe0\270\xa1\xe0\271\210\xe0\xb8\204\340\xb8\243\340\xb8\x9a\340\270\226\340\xb9\x89\xe0\270\xa7\340\xb8\231\40\xe0\xb8\x81\xe0\xb8\243\xe0\270\xb8\xe0\270\223\xe0\270\xb2\xe0\271\203\340\xb8\xaa\xe0\271\x88\xe0\xb8\202\340\271\211\340\270\255\xe0\xb8\241\340\270\xb9\xe0\270\245\340\271\203\340\xb8\xab\340\xb9\x89\340\xb8\x96\340\270\xb9\340\270\201\xe0\270\225\xe0\xb9\x89\xe0\270\xad\340\270\207")); if ($this->form_validation->run() === false) { $this->load->view("\160\x61\x6e\x65\154\x5f\x75\x73\x65\x72\57{$theme}\57\141\152\141\x78\x5f\154\157\141\144\57\156\141\x6d\145\x5f\x69\x6e\x70\165\164", $data); } else { $input = $this->input->post(); $fullname = isset($input["\146\x75\154\x6c\x6e\141\155\x65"]) ? $input["\146\x75\154\154\156\x61\155\x65"] : null; if (empty($fullname)) { $this->load->view("\x70\x61\x6e\x65\x6c\137\165\163\x65\162\x2f{$theme}\57\141\152\x61\170\x5f\154\x6f\x61\144\57\x6e\x61\x6d\x65\137\151\156\x70\165\164", $data); } else { $bankDefault = ''; $getDefaultBank = $this->main_model->custom_query_result("\x53\105\x4c\x45\103\x54\40\x2a\40\x46\x52\117\x4d\40\x61\144\155\151\156\x5f\142\x61\156\153\x20\x57\x48\x45\122\x45\x20\163\x74\x61\x74\x75\x73\x20\75\40\61"); foreach ($getDefaultBank as $item) { $formatItem = json_decode($item["\x6d\145\164\x61\137\x64\x61\164\x61"], true); if ($formatItem["\142\x61\x6e\x6b\x5f\x74\171\160\x65"] == "\104\105\120\117\123\x49\124" || $formatItem["\x62\141\156\x6b\137\164\x79\x70\x65"] == "\x42\x4f\124\x48") { if ($formatItem["\x62\x61\156\153\x5f\x64\145\x66\x61\165\154\x74"] == 1) { $bankDefault = $item["\x69\144"]; } } } $_SESSION["\x72\145\x67\x69\x73\x74\145\162"]["\146\x75\x6c\x6c\156\x61\155\x65"] = $fullname; $date = date("\131\55\x6d\55\144\40\x48\72\151\72\x73"); $tmp_data = array("\x6d\x6f\x62\x69\154\145\137\x6e\x6f" => $_SESSION["\162\145\147\x69\x73\x74\x65\162"]["\155\x6f\142\x69\154\x65\137\156\x6f"], "\x6c\x69\156\145\151\x64" => '', "\x70\x61\x73\163\167\157\x72\x64" => $_SESSION["\x72\145\x67\x69\163\164\x65\162"]["\x70\x61\163\163\x77\157\x72\x64"], "\146\x75\x6c\x6c\x6e\141\155\145" => $fullname, "\164\x75\162\x6e" => 0, "\x74\165\162\x6e\137\144\141\x74\145" => NULL, "\x62\x65\164" => 0, "\143\x72\145\144\x69\x74" => 0, "\x63\x72\x65\x64\x69\x74\x5f\x66\162\x65\x65" => 0, "\143\x72\145\x64\151\x74\137\146\x72\145\145\x5f\143\150\x65\143\x6b" => NULL, "\143\x72\x65\x64\151\x74\x5f\x61\146\146" => 0, "\x62\x61\156\153\x5f\156\x61\155\145" => $this->main_model->get_bank_info($_SESSION["\x72\145\147\x69\163\164\145\x72"]["\x62\x61\x6e\x6b\137\x69\144"])["\142\x61\x6e\x6b\137\x6e\x61\155\x65"], "\142\141\x6e\153\137\141\x63\x63\x5f\x6e\157" => $_SESSION["\162\145\147\x69\x73\x74\145\162"]["\x62\141\x6e\x6b\x5f\141\143\143\137\x6e\x6f"], "\142\141\156\153\x5f\x69\144" => $_SESSION["\162\x65\147\151\x73\x74\x65\x72"]["\x62\x61\156\153\x5f\x69\144"], "\x61\144\155\151\156\x5f\142\x61\x6e\x6b\137\151\x64" => $bankDefault, "\x61\143\143\x65\x70\x74\x5f\160\162\157\155\x6f\x74\151\157\x6e" => 0, "\141\x66\146" => NULL, "\x6c\141\x73\164\x5f\143\150\145\x63\x6b\137\x61\146\146" => date("\131\x2d\155\55\x64"), "\x63\162\145\141\x74\x65\137\141\x74" => $date, "\154\141\x73\x74\x5f\x6c\157\147\x69\x6e" => date("\131\x2d\155\55\144"), "\156\157\x74\145" => '', "\164\151\143\153\145\164\137\167\150\x65\x65\154" => 0, "\x74\151\x63\153\145\x74\137\x77\x68\145\145\x6c\x5f\165\163\x65\x64" => 0, "\x74\151\143\x6b\145\x74\x5f\143\141\x72\x64" => 0, "\164\x69\143\x6b\145\164\x5f\x63\141\162\144\x5f\165\x73\x65\144" => 0, "\162\141\156\x6b" => 1, "\x72\x61\156\x6b\x5f\x6e\x6f\x74\x65" => '', "\153\156\x6f\167\x75\x73" => '', "\x6c\x61\x73\164\137\x65\144\x69\x74" => '', "\154\x61\163\164\x5f\x65\144\151\164\137\156\157\x74\145" => '', "\x67\141\x6d\x65\137\x6c\157\x67\151\156" => NULL, "\x63\x6f\x64\x65\x66\x72\145\x65" => '', "\163\x74\x61\x74\x75\163" => 1, "\x75\163\145\x72\x5f\x73\x74\x61\x74\x75\x73" => "\340\xb9\x80\340\270\x9b\xe0\271\207\340\270\231\xe0\270\252\xe0\270\241\340\xb8\xb2\xe0\xb8\x8a\xe0\270\xb4\340\xb8\x81\xe0\271\201\xe0\xb8\245\xe0\271\211\340\270\xa7"); if (isset($_SESSION["\x72\145\147\x69\163\x74\x65\162"]["\141\146\146"])) { $tmp_data["\x61\146\146"] = $_SESSION["\x72\145\x67\151\163\164\145\x72"]["\x61\x66\x66"]; } else { $tmp_data["\141\146\x66"] = null; } function generateRandomString($length = 10) { $characters = "\101\102\x43\x44\105\x46\x47\x48\x49\112\113\x4c\x4d\x4e\x4f\x50\121\x52\123\124\x55\126\127\130\x59\x5a"; $charactersLength = strlen($characters); $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, $charactersLength - 1)]; } return $randomString; } $tmp_data["\x63\157\x64\x65\x66\162\145\x65"] = generateRandomString(6) . "\x2d" . $tmp_data["\155\x6f\x62\151\154\x65\137\x6e\x6f"]; $agent_data = array("\141\x67\145\x6e\x74\x5f\155\x65\x74\150\157\144" => "\103\x55", "\141\147\x65\x6e\164\137\x64\141\x74\141" => $tmp_data); $res = $this->agent_model->process($agent_data); if ($res["\163\164\141\164\x75\163"]) { $tmp_data["\141\x6d\x62\137\x69\144"] = $res["\144\x61\164\x61"]["\x61\x6d\x62\137\x69\144"]; $tmp_data["\x62\145\x74\146\x6c\x69\x78\x5f\151\x64"] = $res["\144\x61\x74\141"]["\142\x65\x74\x66\154\x69\x78\137\x69\x64"]; $tmp_data["\165\x69\x64"] = $res["\144\x61\x74\141"]["\x75\x69\144"]; if ($this->user_model->create_user($tmp_data)) { $row = $this->user_model->get_user($tmp_data["\155\x6f\142\151\x6c\145\137\x6e\157"]); $this->user_model->update_last_login($tmp_data["\155\x6f\x62\151\154\145\137\x6e\157"]); $row = $this->user_model->get_user($tmp_data["\155\157\142\x69\x6c\x65\137\156\157"]); $this->user_model->update_last_login($tmp_data["\155\157\142\151\154\x65\137\x6e\157"]); $_SESSION["\165\x73\145\162"]["\x6c\157\147\147\x65\x64\137\151\x6e"] = true; $_SESSION["\x75\163\145\162"]["\155\x6f\x62\x69\154\145"] = $row["\155\x6f\x62\x69\x6c\x65\137\x6e\x6f"]; $_SESSION["\x75\x73\145\162"]["\165\x73\x65\x72\x6e\141\155\145"] = $row["\155\x6f\x62\x69\154\145\137\156\x6f"]; $_SESSION["\165\163\145\162"]["\x69\x64"] = $row["\x69\x64"]; $_SESSION["\x75\163\145\162"]["\146\165\x6c\x6c\156\x61\x6d\x65"] = $row["\146\165\154\154\x6e\x61\x6d\x65"]; $_SESSION["\165\163\x65\x72"]["\x61\144\x6d\151\156\137\x62\x61\156\x6b\x5f\151\144"] = $row["\141\144\x6d\151\x6e\x5f\x62\x61\x6e\x6b\137\151\x64"]; $this->user_model->create_last_login_ip(array("\x69\144" => null, "\x75\x5f\151\x64" => $_SESSION["\165\x73\x65\162"]["\x69\144"], "\151\160" => $this->main_model->getUserIP(), "\144\141\x74\145" => date("\131\x2d\155\x2d\x64\40\110\72\x69\72\163"), "\x63\151\137\x73\145\163\x73\151\157\x6e\x73" => $_COOKIE["\x63\x69\137\163\x65\x73\163\x69\x6f\156\x73"])); $tmp = json_decode($this->main_model->get_row("\x6d\145\x74\141\x5f\163\145\x74\164\151\x6e\147", array("\167\x68\145\162\145" => array("\x63\157\x6c" => "\x69\144", "\x76\141\x6c" => "\x62\x72\x61\156\x64\x5f\163\x65\x74\164\x69\x6e\x67")))["\166\x61\x6c\x75\145"], true); $line_token = json_decode($this->main_model->get_row("\155\x65\x74\141\x5f\163\145\164\164\x69\156\x67", array("\x77\150\145\x72\x65" => array("\x63\157\154" => "\x69\x64", "\x76\x61\x6c" => "\x6c\x69\x6e\x65\x5f\x74\157\153\x65\x6e")))["\x76\x61\x6c\x75\x65"], true)["\x52\x65\x67\x69\163\x74\x65\162"]; if (!empty($line_token)) { $line_flex = json_decode($this->main_model->get_row("\x6d\145\x74\141\x5f\163\x65\164\x74\151\156\147", array("\x77\150\x65\162\145" => array("\143\157\x6c" => "\151\x64", "\166\x61\x6c" => "\154\151\156\x65\x5f\x66\x6c\145\170\x5f\145\x6e\x61\x62\154\145")))["\166\141\154\165\145"], true); $line_flex_open = false; if (isset($line_flex["\x65\x6e\141\x62\x6c\145"])) { if ($line_flex["\x65\156\x61\x62\154\x65"] == 1) { $line_flex_open = true; } } if (!$line_flex_open) { $this->line_model->setToken($line_token); $this->line_model->addMsg("\342\x9d\x84\40\340\270\xaa\340\xb8\xa1\xe0\xb8\261\xe0\270\204\xe0\xb8\243\xe0\270\xaa\xe0\xb8\241\340\xb8\262\xe0\xb8\212\xe0\270\264\xe0\xb8\x81\340\271\x83\xe0\270\xab\340\xb8\xa1\xe0\xb9\x88\x20\xe2\235\x84"); $this->line_model->addMsg("\342\225\220\342\225\x90\xe2\225\220\xe2\x95\220\342\x95\220\342\x95\x90\342\x95\220\342\225\x90\342\x95\x90\342\225\220\xe2\225\220\342\x95\220\xe2\x95\220"); $this->line_model->addMsg("\340\271\200\340\xb8\232\xe0\270\xad\340\270\xa3\340\271\x8c\340\270\241\340\xb8\xb7\xe0\270\255\xe0\270\226\340\xb8\267\340\270\xad\x20\72\40" . $row["\x6d\x6f\142\151\x6c\145\x5f\x6e\x6f"]); $this->line_model->addMsg("\x55\x73\145\x72\156\x61\155\145\x20\x3a\40" . $row["\x69\x64"]); $this->line_model->addMsg("\340\xb8\212\340\270\267\340\xb9\210\340\270\255\x20\72\40" . $row["\x66\x75\154\x6c\x6e\141\155\145"]); $this->line_model->addMsg("\xe0\xb8\230\340\270\231\xe0\xb8\262\340\xb8\x84\340\xb8\xb2\340\270\243\40\72\40" . $row["\142\141\156\x6b\x5f\156\x61\x6d\145"]); $this->line_model->addMsg("\340\271\200\xe0\xb8\245\340\270\202\340\xb8\232\340\270\xb1\xe0\xb8\x8d\xe0\270\212\xe0\xb8\xb5\40\72\40" . $row["\142\x61\156\x6b\x5f\x61\x63\143\x5f\x6e\x6f"]); $this->line_model->addMsg("\151\x70\x3a\x20" . $this->main_model->getUserIP()); $this->line_model->addMsg("\340\xb8\247\xe0\270\261\xe0\xb8\231\xe0\xb8\227\xe0\xb8\xb5\xe0\271\210\40\72\40" . $date); $this->line_model->addMsg("\342\x95\220\342\225\x90\xe2\x95\x90\xe2\225\x90\xe2\x95\x90\342\225\x90\xe2\x95\x90\xe2\225\x90\xe2\x95\220\342\225\220\xe2\225\220\xe2\225\220\xe2\x95\220"); $this->line_model->sendNotify(); } else { $this->line_model->setToken($line_token, "\x72\145\x67\151\163\164\145\162"); $this->line_model_flex->addReplacer("\x6d\x6f\x62\151\x6c\x65\137\x6e\x6f", $row["\155\157\142\x69\154\145\x5f\156\x6f"]); $this->line_model_flex->addReplacer("\x69\x64", $row["\151\144"]); $this->line_model_flex->addReplacer("\146\x75\x6c\x6c\156\x61\x6d\x65", $row["\x66\x75\154\x6c\x6e\141\x6d\x65"]); $this->line_model_flex->addReplacer("\142\x61\156\x6b\x5f\x6e\141\x6d\x65", $row["\142\x61\x6e\153\x5f\156\x61\155\x65"]); $this->line_model_flex->addReplacer("\142\x61\156\153\137\141\x63\x63\x5f\156\x6f", $row["\142\x61\156\x6b\x5f\x61\143\143\x5f\x6e\x6f"]); $this->line_model_flex->addReplacer("\151\160", $row["\x6d\157\142\151\x6c\145\137\156\157"]); $this->line_model_flex->addReplacer("\x64\x61\x74\x65", $date); $this->line_model_flex->sendNotify(); } } $tmp_data = array("\151\144" => null, "\x75\x73\145\162\x6e\x61\x6d\145" => $row["\155\x6f\142\x69\x6c\145\137\x6e\157"], "\151\143\157\156" => "\x73\165\143\x63\x65\163\163", "\164\151\x74\x6c\145" => '', "\x74\145\x78\164" => "\xe0\xb8\252\340\xb8\xa1\xe0\270\261\340\270\x84\340\xb8\xa3\xe0\xb8\xaa\xe0\xb8\241\xe0\xb8\xb2\xe0\270\212\340\270\xb4\340\270\201\340\271\200\xe0\xb8\xa3\xe0\270\xb5\340\xb8\xa2\xe0\xb8\x9a\340\270\xa3\xe0\271\211\xe0\270\255\xe0\xb8\xa2\340\271\x81\xe0\270\xa5\xe0\xb9\211\xe0\270\xa7", "\155\x65\x74\141\137\x64\x61\x74\141" => '', "\x64\141\x74\145" => date("\131\55\155\55\144\40\110\72\151\x3a\163"), "\163\x74\x61\x74\x75\163" => 1); $this->main_model->create($tmp_data, "\x6e\x6f\x74\x69\143\x65\137\x61\144\x6d\151\156"); $tmp_data = array("\165\163\x65\x72" => $row["\151\x64"], "\160\141\x73\x73" => $row["\x70\x61\x73\x73\167\x6f\x72\x64"]); $tmp_data = http_build_query($tmp_data); $d = array("\163\164\141\164\165\x73" => "\163\165\143\143\x65\163\163", "\x6d\145\x73\163\141\x67\145" => "\340\xb8\xaa\xe0\270\xa1\xe0\xb8\xb1\xe0\270\x84\xe0\xb8\xa3\340\xb8\252\xe0\xb8\241\xe0\270\262\xe0\xb8\x8a\xe0\270\xb4\xe0\270\201\xe0\xb9\x80\xe0\xb8\xa3\xe0\xb8\265\340\xb8\242\340\xb8\x9a\340\xb8\xa3\340\271\211\xe0\xb8\xad\xe0\xb8\242\xe0\271\201\340\xb8\245\xe0\271\211\340\xb8\247"); header("\x43\x6f\x6e\164\145\156\164\55\x54\x79\x70\145\x3a\40\x61\x70\x70\154\151\143\141\x74\x69\x6f\x6e\x2f\x6a\x73\157\156\73\x20\x63\150\x61\x72\x73\145\164\x3d\x75\x74\x66\55\x38", true, 200); die(json_encode($d)); $this->load->view("\x70\x61\x6e\145\x6c\x5f\165\163\145\162\x2f{$theme}\x2f\141\152\141\170\x5f\154\157\x61\x64\57\163\x75\143\x63\x65\163\163", $data); } else { $data["\145\162\162\x6f\162"] = "\xe0\270\241\340\270\265\340\xb8\x9a\xe0\270\xb2\340\270\207\340\270\xad\xe0\xb8\242\xe0\271\210\xe0\xb8\xb2\340\270\207\340\xb8\x9c\340\xb8\xb4\340\xb8\224\340\xb8\x9e\340\270\245\xe0\270\262\340\xb8\224\40\xe0\270\x81\xe0\xb8\xa3\340\xb8\xb8\340\xb8\x93\340\270\xb2\xe0\270\xa5\xe0\xb8\xad\xe0\xb8\x87\340\270\255\340\270\xb5\340\270\x81\340\270\204\340\xb8\xa3\340\270\xb1\xe0\xb9\211\340\xb8\x87\x20\74\142\x72\76\x20\x43\x6f\144\x65\40\x3a\x20\x31\60\60\60"; $d = array("\163\x74\x61\164\165\163" => "\145\162\x72\x6f\x72", "\x6d\x65\x73\x73\141\x67\x65" => $data["\145\x72\162\157\x72"]); header("\x43\x6f\x6e\x74\x65\156\x74\x2d\124\x79\160\145\x3a\40\x61\160\x70\x6c\x69\143\x61\164\x69\157\x6e\57\x6a\x73\157\156\x3b\40\143\x68\141\162\x73\145\164\x3d\165\164\146\55\x38", true, 200); die(json_encode($d)); $this->load->view("\160\x61\156\145\154\137\x75\163\x65\162\x2f{$theme}\x2f\141\x6a\141\x78\137\154\x6f\141\144\x2f\x72\145\147\151\x73\x74\145\x72", $data); } } else { header("\110\x54\124\x50\57\x31\56\x31\40\64\60\x31\x20\x55\156\x61\165\x74\150\x6f\x72\151\172\x65\x64"); } } } } else { echo "\x3c\x73\143\x72\151\160\164\x3e\x6c\x6f\x63\x61\x74\x69\x6f\156\x2e\x68\162\145\x66\x20\x3d\40\42" . base_url() . "\x22\x3b\x3c\57\163\143\162\151\x70\x74\76"; } } }
Function Calls
None |
Stats
MD5 | d66bc9d5e21fe92496cf58f80b604dca |
Eval Count | 0 |
Decode Time | 240 ms |