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

Signing you up...

Thank you for signing up!

PHP Decode

goto x1khQ; sVa9o: Eaudo: goto NWckq; Jhbl2: exit("\116\157\40\x64\151\162\x65\x63\164\40\..

Decoded Output download

<?  goto x1khQ; sVa9o: Eaudo: goto NWckq; Jhbl2: exit("No direct script access allowed"); goto sVa9o; x1khQ: if (defined("BASEPATH")) { goto Eaudo; } goto Jhbl2; NWckq: class MY_Form_validation extends CI_Form_validation { public function __construct($rules = array()) { parent::__construct($rules); $this->set_error_delimiters('', ''); } public function is_unique($str, $field) { goto CYnCo; TIOUe: $pri_val = $this->CI->input->post($primary_key); goto KzP4C; TakQD: $primary_key = $q->Column_name; goto TIOUe; gaa5X: return $query->num_rows() === 0; goto Ggsq_; ZSGQX: $query = $this->CI->db->limit(1)->get_where($table, array($field => $str, $primary_key . " !=" => $pri_val)); goto iBbUi; ZeaVU: goto Zk80R; goto KzH8w; eCfwj: $query = $this->CI->db->limit(1)->get_where($table, array($field => $str)); goto ZeaVU; LjHFq: $q = $this->CI->db->query("SHOW KEYS FROM " . $this->CI->db->dbprefix($table) . " WHERE Key_name = 'PRIMARY'")->row(); goto TakQD; KzH8w: UH753: goto ZSGQX; iBbUi: Zk80R: goto gaa5X; CYnCo: $this->CI->form_validation->set_message("is_unique", "%s already exists."); goto Rscpb; Rscpb: list($table, $field) = explode(".", $field); goto LjHFq; KzP4C: if ($pri_val > 0) { goto UH753; } goto eCfwj; Ggsq_: } public function uniquee_to_company($str, $field) { goto M6LZ3; hX0qR: Nt0pS: goto sc69h; ivwHV: if (!(!empty($primary_key) && $this->CI->input->post($primary_key))) { goto Nt0pS; } goto Lr07N; VZ9xg: CWQZ4: goto KRtD_; ypar7: $primary_key = $q->Column_name; goto VmFU6; M6LZ3: $this->CI->form_validation->set_message("uniquee_to_company", "%s already exists."); goto A0oHW; sc69h: if (!($table == "contacts")) { goto CWQZ4; } goto u8Zkn; KRtD_: $query = $this->CI->db->select(!empty($primary_key) ? $primary_key : "*")->limit(1)->get_where($table, $where); goto kevF2; Lr07N: $where[$primary_key . " !="] = $this->CI->input->post($primary_key); goto hX0qR; tfSXF: $q = $this->CI->db->query("SHOW KEYS FROM " . $this->CI->db->dbprefix($table) . " WHERE Key_name = 'PRIMARY'")->row(); goto ypar7; A0oHW: list($table, $field) = explode(".", $field); goto tfSXF; VmFU6: $where = array($field => $str, "cId" => get_company("id")); goto ivwHV; kevF2: return $query->num_rows() === 0; goto n3PGg; u8Zkn: $where["csType !="] = "E"; goto VZ9xg; n3PGg: } public function valid_email($str) { return (bool) filter_var($str, FILTER_VALIDATE_EMAIL); } } ?>

Did this file decode correctly?

Original Code

goto x1khQ; sVa9o: Eaudo: goto NWckq; Jhbl2: exit("\116\157\40\x64\151\162\x65\x63\164\40\x73\143\162\x69\160\164\x20\141\x63\143\145\163\x73\40\141\x6c\x6c\x6f\167\145\x64"); goto sVa9o; x1khQ: if (defined("\x42\x41\123\105\x50\x41\x54\x48")) { goto Eaudo; } goto Jhbl2; NWckq: class MY_Form_validation extends CI_Form_validation { public function __construct($rules = array()) { parent::__construct($rules); $this->set_error_delimiters('', ''); } public function is_unique($str, $field) { goto CYnCo; TIOUe: $pri_val = $this->CI->input->post($primary_key); goto KzP4C; TakQD: $primary_key = $q->Column_name; goto TIOUe; gaa5X: return $query->num_rows() === 0; goto Ggsq_; ZSGQX: $query = $this->CI->db->limit(1)->get_where($table, array($field => $str, $primary_key . "\40\41\75" => $pri_val)); goto iBbUi; ZeaVU: goto Zk80R; goto KzH8w; eCfwj: $query = $this->CI->db->limit(1)->get_where($table, array($field => $str)); goto ZeaVU; LjHFq: $q = $this->CI->db->query("\x53\110\x4f\127\x20\113\x45\x59\123\x20\106\122\117\115\x20" . $this->CI->db->dbprefix($table) . "\40\127\x48\x45\x52\x45\40\x4b\145\x79\x5f\156\x61\155\x65\40\75\x20\47\120\122\111\x4d\101\122\131\x27")->row(); goto TakQD; KzH8w: UH753: goto ZSGQX; iBbUi: Zk80R: goto gaa5X; CYnCo: $this->CI->form_validation->set_message("\151\x73\x5f\165\x6e\x69\x71\x75\x65", "\45\x73\40\141\x6c\162\145\x61\144\x79\x20\x65\170\x69\x73\164\x73\x2e"); goto Rscpb; Rscpb: list($table, $field) = explode("\x2e", $field); goto LjHFq; KzP4C: if ($pri_val > 0) { goto UH753; } goto eCfwj; Ggsq_: } public function uniquee_to_company($str, $field) { goto M6LZ3; hX0qR: Nt0pS: goto sc69h; ivwHV: if (!(!empty($primary_key) && $this->CI->input->post($primary_key))) { goto Nt0pS; } goto Lr07N; VZ9xg: CWQZ4: goto KRtD_; ypar7: $primary_key = $q->Column_name; goto VmFU6; M6LZ3: $this->CI->form_validation->set_message("\165\156\151\x71\165\145\145\137\x74\x6f\137\143\x6f\155\160\141\156\171", "\45\163\40\141\x6c\162\145\141\x64\171\x20\145\170\151\x73\x74\163\56"); goto A0oHW; sc69h: if (!($table == "\143\x6f\156\164\141\x63\164\163")) { goto CWQZ4; } goto u8Zkn; KRtD_: $query = $this->CI->db->select(!empty($primary_key) ? $primary_key : "\52")->limit(1)->get_where($table, $where); goto kevF2; Lr07N: $where[$primary_key . "\x20\41\75"] = $this->CI->input->post($primary_key); goto hX0qR; tfSXF: $q = $this->CI->db->query("\123\110\x4f\127\x20\x4b\x45\131\123\40\106\122\x4f\x4d\x20" . $this->CI->db->dbprefix($table) . "\x20\127\110\x45\122\x45\x20\x4b\x65\171\x5f\156\141\x6d\145\x20\75\x20\x27\x50\x52\111\115\x41\122\x59\47")->row(); goto ypar7; A0oHW: list($table, $field) = explode("\56", $field); goto tfSXF; VmFU6: $where = array($field => $str, "\x63\111\144" => get_company("\151\144")); goto ivwHV; kevF2: return $query->num_rows() === 0; goto n3PGg; u8Zkn: $where["\143\x73\124\171\160\x65\x20\x21\x3d"] = "\x45"; goto VZ9xg; n3PGg: } public function valid_email($str) { return (bool) filter_var($str, FILTER_VALIDATE_EMAIL); } }

Function Calls

None

Variables

None

Stats

MD5 849dbe42c0f9eac8eb51edce67479c3a
Eval Count 0
Decode Time 70 ms