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\x50\x41\x54\110") or die("\x4e\157\x20\144\x69\162\145\x..
Decoded Output download
<?php
defined("BASEPATH") or die("No direct script access allowed"); class Admin1 extends CI_Controller { public function manual_deposit_bank_details() { if ($this->input->post("submit")) { $post = $this->input->post(); $this->db->where("id", "1")->update("app_setting", array("bank_name" => $post["bank_name"], "account_holder_name" => $post["account_holder_name"], "ifsc_code" => $post["ifsc_code"], "account_no" => $post["account_no"], "account_type" => $post["account_type"])); redirect($_SERVER["HTTP_REFERER"]); } $data["page_name"] = "Manual Deposit Bank Details"; $data["app_setting"] = $this->db->select("bank_name,account_holder_name,account_no,ifsc_code,account_type")->get("app_setting")->row(); $this->load->view("admin1/manual_deposit_bank_details", $data); } public function manual_deposit_request() { $data["page_name"] = "Manual Deposit Request"; $data["users"] = $this->db->where(array("type" => "Add", "payment_type" => 2))->order_by("request_id", "DESC")->limit(10000)->get("tblRequest")->result_array(); $this->load->view("admin1/manual_deposit_request", $data); } public function add_point_req2($req_id = NULL) { $req = $this->Administrator_Model->add_point_req2($req_id); $data["title"] = "view "; if (!empty($req)) { foreach ($req as $r) { $user_id = $r["user_id"]; $points = $r["request_points"]; $t = $this->Administrator_Model->add_point_req3($user_id, $points); } } if ($t) { redirect("admin1/manual_deposit_request"); } } public function reject_point_req($req_id = NULL) { $this->db->where("request_id", $req_id); $this->db->update("tblRequest", array("request_status" => "rejected")); redirect("admin1/manual_deposit_request"); } public function manage_online_deposite() { $data["page_name"] = "Online Deposit Details"; $data["app_setting"] = $this->db->select("upi_list,admin_qr_code")->get("app_setting")->row(); $this->load->view("admin1/manage_online_deposite", $data); } function add_fund_online_deposit() { $new_filename = ''; $data = $_FILES["qr_code"]["name"]; if ($data != '') { $new_filename = "Qr" . time() . "_" . rand(1000, 9999) . ".png"; $upload_directory = "assets/qr_image/"; if (!file_exists($upload_directory)) { mkdir($upload_directory, 511, true); } move_uploaded_file($_FILES["qr_code"]["tmp_name"], $upload_directory . $new_filename); $config["image_library"] = "gd2"; $config["source_image"] = $upload_directory . $new_filename; $config["create_thumb"] = false; $config["maintain_ratio"] = false; $this->load->library("image_lib", $config); $this->image_lib->resize(); } $post = $this->input->post(); $upi_list = array($post["UPI1"], $post["UPI2"], $post["UPI3"], $post["UPI4"], $post["UPI5"]); $new_data = array("upi_list" => json_encode(array_values($upi_list))); $data = $_FILES["qr_code"]["name"]; if ($data != '') { $new_data["admin_qr_code"] = base_url() . "assets/qr_image/" . $new_filename; } $this->db->update("app_setting", $new_data); redirect($_SERVER["HTTP_REFERER"]); } public function manage_help_support() { if ($this->input->post("submit")) { $post = $this->input->post(); $this->db->update("app_setting", array("support_mobile_number" => $post["support_mobile_number"], "support_whatsapp_number" => $post["support_whatsapp_number"], "support_short_note" => $post["support_short_note"], "support_address" => $post["support_address"], "support_email" => $post["support_email"])); redirect($_SERVER["HTTP_REFERER"]); } $data["page_name"] = "Help & Support"; $data["app_setting"] = $this->db->select("support_mobile_number,support_whatsapp_number,
support_short_note,support_address,support_email")->get("app_setting")->row(); $this->load->view("admin1/manage_help_support", $data); } public function manage_day_time() { $data["page_name"] = "Day & Time"; $data["withdrawal"] = $this->db->get("timeslots")->result(); $this->load->view("admin1/manage_day_time", $data); } function update_withdrawal_time($id = 0) { $post = $this->input->post(); $this->db->where("id", $id)->update("timeslots", array("start_time" => $post["start_time"], "end_time" => $post["end_time"], "status" => $post["status"])); redirect($_SERVER["HTTP_REFERER"]); } } ?>
Did this file decode correctly?
Original Code
<?php
defined("\x42\101\123\105\x50\x41\x54\110") or die("\x4e\157\x20\144\x69\162\145\x63\164\x20\163\x63\162\151\x70\x74\40\x61\x63\x63\145\163\163\x20\x61\154\154\x6f\167\145\144"); class Admin1 extends CI_Controller { public function manual_deposit_bank_details() { if ($this->input->post("\x73\x75\x62\x6d\x69\164")) { $post = $this->input->post(); $this->db->where("\x69\x64", "\x31")->update("\x61\160\x70\137\x73\145\164\164\x69\x6e\x67", array("\142\x61\x6e\x6b\x5f\x6e\x61\x6d\x65" => $post["\142\141\156\153\x5f\156\x61\155\x65"], "\x61\x63\143\157\x75\156\x74\x5f\x68\x6f\154\144\145\x72\x5f\156\141\x6d\145" => $post["\141\x63\143\x6f\165\x6e\x74\137\x68\157\154\144\145\162\137\156\141\155\145"], "\x69\146\163\143\x5f\143\x6f\x64\145" => $post["\x69\x66\163\143\x5f\x63\157\x64\145"], "\141\x63\143\157\165\156\x74\x5f\x6e\x6f" => $post["\x61\x63\x63\157\x75\156\164\x5f\x6e\157"], "\x61\x63\143\157\x75\156\164\x5f\x74\x79\x70\145" => $post["\x61\143\143\x6f\x75\x6e\164\x5f\x74\x79\160\145"])); redirect($_SERVER["\x48\124\124\x50\x5f\x52\105\x46\x45\122\x45\122"]); } $data["\160\141\147\145\137\x6e\x61\x6d\145"] = "\x4d\x61\156\x75\141\x6c\40\104\x65\160\157\x73\151\164\x20\x42\x61\156\x6b\40\x44\145\164\141\x69\x6c\163"; $data["\x61\160\x70\137\163\x65\164\x74\151\156\x67"] = $this->db->select("\142\x61\156\153\x5f\x6e\x61\x6d\145\54\141\x63\143\x6f\x75\156\164\x5f\150\x6f\154\144\x65\x72\137\156\x61\155\x65\x2c\x61\x63\x63\x6f\x75\156\164\x5f\x6e\x6f\54\151\146\x73\143\137\143\x6f\144\145\x2c\x61\x63\143\157\165\156\164\137\164\171\x70\x65")->get("\x61\160\x70\x5f\163\x65\x74\x74\151\x6e\x67")->row(); $this->load->view("\141\x64\155\151\x6e\61\x2f\x6d\141\156\165\x61\x6c\137\144\x65\x70\157\x73\x69\x74\x5f\142\x61\156\x6b\137\x64\x65\x74\141\151\x6c\x73", $data); } public function manual_deposit_request() { $data["\160\x61\147\x65\x5f\156\141\x6d\145"] = "\x4d\141\x6e\x75\x61\x6c\x20\104\145\x70\x6f\x73\151\x74\40\122\x65\x71\x75\145\x73\x74"; $data["\x75\163\x65\162\163"] = $this->db->where(array("\x74\171\x70\x65" => "\101\144\144", "\x70\141\171\155\x65\x6e\164\137\164\171\x70\x65" => 2))->order_by("\x72\x65\x71\x75\145\163\x74\137\x69\x64", "\x44\105\123\x43")->limit(10000)->get("\x74\142\154\x52\145\161\165\145\163\x74")->result_array(); $this->load->view("\x61\144\x6d\x69\156\x31\x2f\155\141\156\165\141\154\137\x64\x65\x70\157\x73\151\x74\x5f\162\145\161\x75\145\163\x74", $data); } public function add_point_req2($req_id = NULL) { $req = $this->Administrator_Model->add_point_req2($req_id); $data["\x74\x69\x74\x6c\145"] = "\x76\151\x65\x77\x20"; if (!empty($req)) { foreach ($req as $r) { $user_id = $r["\x75\x73\145\162\137\151\x64"]; $points = $r["\x72\145\x71\165\145\x73\164\137\x70\x6f\151\x6e\x74\x73"]; $t = $this->Administrator_Model->add_point_req3($user_id, $points); } } if ($t) { redirect("\x61\x64\155\x69\x6e\x31\x2f\155\141\156\x75\141\x6c\x5f\x64\145\160\157\163\x69\164\x5f\x72\145\161\165\x65\163\164"); } } public function reject_point_req($req_id = NULL) { $this->db->where("\162\x65\x71\x75\145\163\x74\x5f\151\x64", $req_id); $this->db->update("\x74\142\154\x52\x65\x71\165\145\163\164", array("\162\x65\x71\165\x65\163\164\x5f\163\164\x61\x74\x75\x73" => "\x72\145\152\145\x63\x74\x65\144")); redirect("\141\x64\155\x69\x6e\x31\x2f\155\141\x6e\165\141\154\x5f\144\x65\160\x6f\163\151\x74\137\162\145\x71\x75\145\163\164"); } public function manage_online_deposite() { $data["\160\141\x67\145\x5f\x6e\x61\x6d\x65"] = "\x4f\x6e\x6c\151\x6e\145\x20\x44\x65\x70\157\163\151\x74\x20\104\145\x74\x61\151\154\x73"; $data["\x61\160\160\x5f\x73\145\164\164\x69\156\147"] = $this->db->select("\165\160\151\137\154\151\163\164\54\141\x64\155\151\156\x5f\161\162\x5f\143\x6f\144\145")->get("\x61\160\x70\x5f\163\x65\x74\164\x69\x6e\x67")->row(); $this->load->view("\141\144\155\x69\156\x31\57\x6d\141\x6e\141\147\145\x5f\157\156\x6c\x69\156\x65\x5f\144\x65\160\157\163\x69\164\x65", $data); } function add_fund_online_deposit() { $new_filename = ''; $data = $_FILES["\x71\x72\137\x63\157\x64\145"]["\x6e\x61\155\145"]; if ($data != '') { $new_filename = "\121\x72" . time() . "\x5f" . rand(1000, 9999) . "\56\160\x6e\147"; $upload_directory = "\x61\163\163\x65\164\x73\x2f\x71\162\x5f\x69\155\141\147\145\57"; if (!file_exists($upload_directory)) { mkdir($upload_directory, 511, true); } move_uploaded_file($_FILES["\161\x72\x5f\143\157\144\145"]["\x74\x6d\160\137\x6e\141\x6d\x65"], $upload_directory . $new_filename); $config["\151\x6d\x61\x67\145\x5f\x6c\x69\x62\x72\141\x72\171"] = "\147\x64\62"; $config["\x73\x6f\x75\x72\143\x65\x5f\151\x6d\141\x67\x65"] = $upload_directory . $new_filename; $config["\143\162\x65\141\164\x65\137\x74\150\x75\155\142"] = false; $config["\155\x61\x69\x6e\164\141\151\156\137\162\x61\x74\x69\157"] = false; $this->load->library("\151\x6d\x61\x67\145\137\154\151\142", $config); $this->image_lib->resize(); } $post = $this->input->post(); $upi_list = array($post["\125\x50\111\61"], $post["\x55\x50\111\62"], $post["\x55\120\111\x33"], $post["\125\120\111\64"], $post["\125\120\x49\65"]); $new_data = array("\x75\160\x69\137\x6c\151\x73\164" => json_encode(array_values($upi_list))); $data = $_FILES["\161\162\x5f\x63\x6f\144\145"]["\x6e\x61\155\x65"]; if ($data != '') { $new_data["\x61\x64\155\x69\156\137\161\x72\137\x63\157\144\145"] = base_url() . "\141\x73\x73\145\x74\163\57\x71\162\x5f\151\155\141\x67\145\57" . $new_filename; } $this->db->update("\141\160\160\137\x73\x65\164\164\x69\156\147", $new_data); redirect($_SERVER["\x48\124\x54\x50\137\x52\x45\106\105\x52\105\122"]); } public function manage_help_support() { if ($this->input->post("\x73\165\142\155\151\x74")) { $post = $this->input->post(); $this->db->update("\141\160\x70\x5f\x73\145\x74\164\151\156\147", array("\x73\x75\160\160\157\x72\x74\137\155\157\x62\151\x6c\x65\x5f\x6e\x75\x6d\x62\x65\162" => $post["\163\x75\x70\160\157\x72\x74\x5f\155\x6f\142\x69\x6c\x65\137\156\165\155\142\x65\x72"], "\x73\165\x70\x70\157\162\164\137\x77\x68\141\x74\163\x61\160\160\x5f\x6e\x75\x6d\142\145\x72" => $post["\x73\165\x70\160\157\x72\x74\137\167\x68\141\x74\163\141\x70\x70\137\156\x75\x6d\142\145\x72"], "\163\165\x70\x70\157\x72\x74\x5f\163\x68\x6f\x72\x74\137\x6e\x6f\x74\145" => $post["\163\x75\160\x70\x6f\162\164\x5f\x73\x68\x6f\x72\x74\137\156\x6f\164\145"], "\x73\165\160\160\157\x72\x74\137\x61\144\144\x72\145\163\163" => $post["\x73\x75\160\160\157\x72\x74\137\141\x64\x64\162\x65\x73\x73"], "\163\x75\160\x70\x6f\x72\164\x5f\x65\155\x61\x69\x6c" => $post["\x73\x75\160\160\157\162\164\137\145\155\141\151\x6c"])); redirect($_SERVER["\110\124\124\120\x5f\122\x45\x46\105\122\x45\x52"]); } $data["\160\x61\x67\145\137\156\141\x6d\145"] = "\x48\145\x6c\x70\x20\46\x20\123\165\x70\160\157\162\164"; $data["\x61\160\x70\137\163\x65\x74\x74\x69\156\147"] = $this->db->select("\x73\x75\160\160\x6f\162\x74\137\x6d\x6f\142\x69\154\145\137\x6e\x75\x6d\x62\x65\162\x2c\163\x75\x70\x70\x6f\x72\164\x5f\167\x68\141\164\163\141\160\x70\x5f\x6e\x75\155\x62\145\x72\x2c\12\11\11\x73\x75\160\160\157\x72\x74\x5f\x73\x68\157\162\x74\x5f\x6e\x6f\164\x65\54\x73\165\x70\x70\157\162\164\x5f\x61\x64\x64\162\145\x73\x73\54\x73\x75\x70\x70\x6f\x72\164\137\x65\x6d\141\151\x6c")->get("\x61\160\x70\137\163\x65\x74\164\x69\x6e\147")->row(); $this->load->view("\141\x64\x6d\151\156\61\x2f\x6d\x61\x6e\x61\147\x65\137\x68\145\154\x70\x5f\x73\165\160\x70\x6f\162\x74", $data); } public function manage_day_time() { $data["\x70\141\x67\x65\137\156\x61\155\145"] = "\x44\x61\x79\x20\x26\x20\124\151\x6d\x65"; $data["\167\151\164\x68\x64\x72\141\167\141\x6c"] = $this->db->get("\x74\x69\x6d\x65\163\154\x6f\x74\163")->result(); $this->load->view("\x61\144\x6d\151\x6e\61\57\155\x61\156\x61\x67\x65\x5f\x64\x61\171\x5f\164\x69\155\x65", $data); } function update_withdrawal_time($id = 0) { $post = $this->input->post(); $this->db->where("\x69\144", $id)->update("\164\x69\x6d\145\x73\154\x6f\x74\163", array("\x73\164\141\162\164\137\164\151\155\145" => $post["\x73\164\141\162\x74\137\164\x69\x6d\x65"], "\145\x6e\x64\137\164\151\x6d\x65" => $post["\145\x6e\144\137\164\151\x6d\145"], "\x73\164\141\x74\165\x73" => $post["\163\x74\141\x74\165\163"])); redirect($_SERVER["\110\124\x54\x50\x5f\x52\x45\x46\105\122\x45\x52"]); } }
Function Calls
defined | 1 |
Stats
MD5 | 2df95dff2de1d1410cee44575be456c2 |
Eval Count | 0 |
Decode Time | 61 ms |