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 /* Encode by www.phpen.cn */ goto Es0Qf; Es0Qf: if (defined("\102\101\123\x45..

Decoded Output download

<?php 
/* 
 Encode by www.phpen.cn  
*/ 
 goto Es0Qf; Es0Qf: if (defined("BASEPATH")) { goto U0hio; } goto ji9zJ; I2A9z: U0hio: goto zxJ5E; ji9zJ: exit("No direct script access allowed"); goto I2A9z; zxJ5E: class Kami extends M_Controller { private $service = ''; public function __construct() { goto Tn4Ks; fUqqr: $this->template->assign("menu", $this->get_menu_v3(array(fc_lang("") => array("admin/kami/index", "envelope"), fc_lang("") => array("admin/kami/add", add)))); goto xO7ta; Tn4Ks: parent::__construct(); goto VBSrP; VBSrP: $this->load->model("kami_model"); goto fUqqr; xO7ta: } public function index() { $this->template->assign(array("list" => $this->db->get($this->kami_model->prefix)->result_array(), "data" => $var_106, "service" => $this->service)); $this->template->display("kami_index.html"); } public function view() { goto qwwyK; nK3lQ: $this->template->assign(array("list" => $this->db->where("c_pass", $var_108)->get("card")->result_array())); goto arnFU; qwwyK: $var_108 = (int) $this->input->get("id"); goto nK3lQ; arnFU: $this->template->display("kami_list.html"); goto LV1w7; LV1w7: } public function add() { goto PhcrY; PhcrY: $auth = "./config/authcode.php"; goto IHduI; LeMCI: Alr9v: goto s6CvQ; s6CvQ: $_SESSION["authcode"] = true; goto ejnWo; NeroX: goto iNqfd; goto LeMCI; a6FDf: $this->admin_msg(fc_lang("..."), dr_url("kami/index"), 1); goto vyP9b; tVfzh: if (isset($_SESSION["authcode"])) { goto L04JA; } goto nC83s; lKkOq: if (!($var_111 === true)) { goto S5p5U; } goto NBMN9; NBMN9: $this->system_log(""); goto a6FDf; nC83s: $query = file_get_contents("http://sq.pucms.com/check.php?url=" . $_SERVER["HTTP_HOST"] . "&authcode=" . trim($authcode)); goto TBliY; ye4VH: $var_110 = $this->input->post("data"); goto uUi0O; g3rYU: $this->template->display("kami_add.html"); goto gb2LF; ejnWo: iNqfd: goto pq_jx; pq_jx: Z4MOo: goto wy7QA; IHduI: include $auth; goto tVfzh; vyP9b: S5p5U: goto nbqBb; ysN6h: if (!IS_POST) { goto nzHj_; } goto ye4VH; wy7QA: L04JA: goto ysN6h; nbqBb: nzHj_: goto wwb9o; E0OxR: exit("<script>alert("" . $query["msg"] . "");history.go(-1);</script>"); goto NeroX; TBliY: if (!($query = json_decode($query, true))) { goto Z4MOo; } goto B9kNt; uUi0O: $var_111 = $this->kami_model->add($var_110); goto lKkOq; B9kNt: if ($query["code"] == 1) { goto Alr9v; } goto E0OxR; wwb9o: $this->template->assign(array("data" => $var_110, "result" => $var_111)); goto g3rYU; gb2LF: } public function del() { goto SB6r4; c1sAe: $this->kami_model->del($var_113); goto R0XuT; SB6r4: $var_113 = (int) $this->input->get("id"); goto c1sAe; R0XuT: $this->system_log("#" . $var_113 . ""); goto rXLTe; rXLTe: $this->admin_msg(fc_lang("..."), dr_url("kami/index"), 1); goto D8FV7; D8FV7: } } ?>

Did this file decode correctly?

Original Code

<?php
/*
 Encode by www.phpen.cn 
*/
 goto Es0Qf; Es0Qf: if (defined("\102\101\123\x45\x50\101\x54\x48")) { goto U0hio; } goto ji9zJ; I2A9z: U0hio: goto zxJ5E; ji9zJ: exit("\116\x6f\40\144\151\162\145\x63\x74\x20\x73\x63\162\151\160\164\x20\x61\x63\143\145\163\x73\40\x61\154\x6c\157\167\x65\x64"); goto I2A9z; zxJ5E: class Kami extends M_Controller { private $service = ''; public function __construct() { goto Tn4Ks; fUqqr: $this->template->assign("\155\x65\x6e\165", $this->get_menu_v3(array(fc_lang("\345\x8d\xa1\xe5\257\206\xe5\x88\x97\350\241\xa8") => array("\141\144\155\x69\x6e\x2f\x6b\141\155\x69\x2f\x69\156\144\145\x78", "\x65\156\x76\x65\154\x6f\x70\145"), fc_lang("\xe6\xb7\xbb\xe5\x8a\240\345\x8d\241\xe5\xaf\206") => array("\x61\x64\155\151\x6e\57\x6b\x61\x6d\x69\x2f\x61\144\x64", add)))); goto xO7ta; Tn4Ks: parent::__construct(); goto VBSrP; VBSrP: $this->load->model("\x6b\141\155\x69\x5f\155\x6f\x64\145\154"); goto fUqqr; xO7ta: } public function index() { $this->template->assign(array("\x6c\151\x73\164" => $this->db->get($this->kami_model->prefix)->result_array(), "\144\x61\x74\x61" => $var_106, "\163\145\162\166\151\x63\145" => $this->service)); $this->template->display("\x6b\x61\x6d\x69\x5f\x69\156\144\x65\x78\56\150\164\155\x6c"); } public function view() { goto qwwyK; nK3lQ: $this->template->assign(array("\154\151\x73\x74" => $this->db->where("\x63\137\160\141\163\163", $var_108)->get("\143\x61\x72\144")->result_array())); goto arnFU; qwwyK: $var_108 = (int) $this->input->get("\151\144"); goto nK3lQ; arnFU: $this->template->display("\153\x61\x6d\x69\137\x6c\151\x73\164\56\x68\x74\x6d\154"); goto LV1w7; LV1w7: } public function add() { goto PhcrY; PhcrY: $auth = "\x2e\x2f\143\x6f\156\x66\151\x67\57\141\x75\x74\150\143\157\x64\x65\x2e\x70\x68\160"; goto IHduI; LeMCI: Alr9v: goto s6CvQ; s6CvQ: $_SESSION["\x61\x75\164\x68\x63\157\x64\145"] = true; goto ejnWo; NeroX: goto iNqfd; goto LeMCI; a6FDf: $this->admin_msg(fc_lang("\xe6\x93\215\xe4\275\x9c\346\210\x90\345\x8a\x9f\xef\xbc\214\346\xad\xa3\xe5\234\250\xe5\210\267\346\226\260\56\x2e\x2e"), dr_url("\x6b\141\x6d\151\x2f\151\x6e\144\145\x78"), 1); goto vyP9b; tVfzh: if (isset($_SESSION["\x61\165\x74\150\143\x6f\x64\145"])) { goto L04JA; } goto nC83s; lKkOq: if (!($var_111 === true)) { goto S5p5U; } goto NBMN9; NBMN9: $this->system_log("\346\xb7\xbb\xe5\x8a\xa0\xe5\215\xa1\345\257\206\346\x88\x90\345\212\237"); goto a6FDf; nC83s: $query = file_get_contents("\150\164\x74\x70\x3a\x2f\x2f\163\x71\x2e\x70\x75\143\155\x73\x2e\x63\x6f\155\x2f\x63\x68\145\x63\x6b\56\x70\150\160\x3f\165\162\154\x3d" . $_SERVER["\x48\x54\x54\120\137\x48\117\123\x54"] . "\46\x61\x75\x74\150\143\x6f\144\x65\x3d" . trim($authcode)); goto TBliY; ye4VH: $var_110 = $this->input->post("\144\141\x74\141"); goto uUi0O; g3rYU: $this->template->display("\x6b\x61\155\x69\137\x61\x64\x64\x2e\x68\x74\155\x6c"); goto gb2LF; ejnWo: iNqfd: goto pq_jx; pq_jx: Z4MOo: goto wy7QA; IHduI: include $auth; goto tVfzh; vyP9b: S5p5U: goto nbqBb; ysN6h: if (!IS_POST) { goto nzHj_; } goto ye4VH; wy7QA: L04JA: goto ysN6h; nbqBb: nzHj_: goto wwb9o; E0OxR: exit("\74\163\x63\162\x69\160\164\x3e\141\154\x65\162\164\x28\x22" . $query["\155\x73\147"] . "\x22\x29\x3b\150\151\163\x74\157\162\171\x2e\x67\157\x28\x2d\61\51\x3b\74\x2f\163\x63\x72\151\x70\164\x3e"); goto NeroX; TBliY: if (!($query = json_decode($query, true))) { goto Z4MOo; } goto B9kNt; uUi0O: $var_111 = $this->kami_model->add($var_110); goto lKkOq; B9kNt: if ($query["\143\157\x64\145"] == 1) { goto Alr9v; } goto E0OxR; wwb9o: $this->template->assign(array("\x64\x61\x74\x61" => $var_110, "\162\x65\x73\x75\x6c\x74" => $var_111)); goto g3rYU; gb2LF: } public function del() { goto SB6r4; c1sAe: $this->kami_model->del($var_113); goto R0XuT; SB6r4: $var_113 = (int) $this->input->get("\x69\144"); goto c1sAe; R0XuT: $this->system_log("\xe5\x88\240\351\x99\xa4\345\215\xa1\345\257\x86\343\200\220\x23" . $var_113 . "\xe3\200\x91"); goto rXLTe; rXLTe: $this->admin_msg(fc_lang("\xe6\223\x8d\xe4\275\234\xe6\x88\220\345\212\x9f\357\274\214\xe6\255\243\xe5\234\250\xe5\210\xb7\xe6\226\260\x2e\x2e\56"), dr_url("\153\x61\155\151\x2f\151\x6e\144\145\x78"), 1); goto D8FV7; D8FV7: } }

Function Calls

None

Variables

None

Stats

MD5 b6daf84403ec60632ed26f2aaf55f30c
Eval Count 0
Decode Time 86 ms