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

Signing you up...

Thank you for signing up!

PHP Decode

public function redirectUser() { goto zkgph; VdY1f: redirect("auth", "refresh"); goto M..

Decoded Output download

<?   
 public function redirectUser() { goto zkgph; VdY1f: redirect("auth", "refresh"); goto MPBRs; MPBRs: q1ee5: goto QHYTp; QHYTp: redirect("/", "refresh"); goto jpOjC; zkgph: if (!$this->ion_auth->is_admin()) { goto q1ee5; } goto VdY1f; jpOjC: }   
  
 public function edit_user($id) { goto JP61w; Hu_ay: jued3: goto klZwE; x7pYs: $this->form_validation->set_rules("company", $this->lang->line("edit_user_validation_company_label"), "trim"); goto cu2MR; pDO_K: G4NeS: goto eYiXP; FSgwq: if ($this->ion_auth->update($user->id, $data)) { goto XrO53; } goto umzC4; zC0Oo: $this->_render_page("auth/edit_user", $this->data); goto UvCj0; nhLQj: $this->form_validation->set_rules("password_confirm", $this->lang->line("edit_user_validation_password_confirm_label"), "required"); goto HYnpZ; Ww2Pr: $this->data["password_confirm"] = ["name" => "password_confirm", "id" => "password_confirm", "type" => "password"]; goto zC0Oo; qSqVh: $data["password"] = $this->input->post("password"); goto D4OC9; vT2sE: $this->data["message"] = validation_errors() ? validation_errors() : ($this->ion_auth->errors() ? $this->ion_auth->errors() : $this->session->flashdata("message")); goto wBSOB; umzC4: $this->session->set_flashdata("message", $this->ion_auth->errors()); goto qzWF5; Bn7Ym: $this->data["first_name"] = ["name" => "first_name", "id" => "first_name", "type" => "text", "value" => $this->form_validation->set_value("first_name", $user->first_name)]; goto SU2Fb; D4OC9: cxDLR: goto GBIq7; PuPnf: $this->form_validation->set_rules("phone", $this->lang->line("edit_user_validation_phone_label"), "trim"); goto x7pYs; rO_W_: if (!(!$this->ion_auth->logged_in() || !$this->ion_auth->is_admin() && !($this->ion_auth->user()->row()->id == $id))) { goto AgTXn; } goto CMPej; hTafQ: if (!$this->input->post("password")) { goto cxDLR; } goto qSqVh; gp3ps: xSWMn: goto FSgwq; eYiXP: LPQHi: goto gp3ps; wBSOB: $this->data["user"] = $user; goto cubGn; GBIq7: if (!$this->ion_auth->is_admin()) { goto xSWMn; } goto mlVR0; OiJXZ: $this->form_validation->set_rules("password", $this->lang->line("edit_user_validation_password_label"), "required|min_length[" . $this->config->item("min_password_length", "ion_auth") . "]|matches[password_confirm]"); goto nhLQj; OotOY: $currentGroups = $this->ion_auth->get_users_groups($id)->result(); goto rdqR8; penJ4: if (!(isset($groupData) && !empty($groupData))) { goto LPQHi; } goto s83nU; s83nU: foreach ($groupData as $grp) { $this->ion_auth->add_to_group($grp, $id); RqKJG: } goto pDO_K; Zn6SW: $groupData = $this->input->post("groups"); goto penJ4; ISfMP: goto Br6fh; goto vr5u7; cubGn: $this->data["groups"] = $groups; goto mfeDI; Fxo8_: $this->data["csrf"] = $this->_get_csrf_nonce(); goto vT2sE; SU2Fb: $this->data["last_name"] = ["name" => "last_name", "id" => "last_name", "type" => "text", "value" => $this->form_validation->set_value("last_name", $user->last_name)]; goto NMOo0; i_qV_: aeu_X: goto Fxo8_; lWxA0: $this->session->set_flashdata("message", $this->ion_auth->messages()); goto f1I0y; vr5u7: XrO53: goto lWxA0; Sprlx: $this->form_validation->set_rules("last_name", $this->lang->line("edit_user_validation_lname_label"), "trim|required"); goto PuPnf; kgBX8: show_error($this->lang->line("error_csrf")); goto Hu_ay; t3l5W: $this->data["phone"] = ["name" => "phone", "id" => "phone", "type" => "text", "value" => $this->form_validation->set_value("phone", $user->phone)]; goto F9jlW; JP61w: $this->data["title"] = $this->lang->line("edit_user_heading"); goto rO_W_; HYnpZ: dNPZd: goto krGaM; f1I0y: $this->redirectUser(); goto D6AHW; cu2MR: if (!(isset($_POST) && !empty($_POST))) { goto aeu_X; } goto RQrjx; qzWF5: $this->redirectUser(); goto ISfMP; Mgcd2: $user = $this->ion_auth->user($id)->row(); goto zLBIc; Lum1h: AgTXn: goto Mgcd2; RQrjx: if (!($this->_valid_csrf_nonce() === FALSE || $id != $this->input->post("id"))) { goto jued3; } goto kgBX8; krGaM: if (!($this->form_validation->run() === TRUE)) { goto mqv23; } goto fl65m; D6AHW: Br6fh: goto PfbzT; zLBIc: $groups = $this->ion_auth->groups()->result_array(); goto OotOY; NMOo0: $this->data["company"] = ["name" => "company", "id" => "company", "type" => "text", "value" => $this->form_validation->set_value("company", $user->company)]; goto t3l5W; fl65m: $data = ["first_name" => $this->input->post("first_name"), "last_name" => $this->input->post("last_name"), "company" => $this->input->post("company"), "phone" => $this->input->post("phone")]; goto hTafQ; klZwE: if (!$this->input->post("password")) { goto dNPZd; } goto OiJXZ; mfeDI: $this->data["currentGroups"] = $currentGroups; goto Bn7Ym; F9jlW: $this->data["password"] = ["name" => "password", "id" => "password", "type" => "password"]; goto Ww2Pr; rdqR8: $this->form_validation->set_rules("first_name", $this->lang->line("edit_user_validation_fname_label"), "trim|required"); goto Sprlx; mlVR0: $this->ion_auth->remove_from_group('', $id); goto Zn6SW; CMPej: redirect("auth", "refresh"); goto Lum1h; PfbzT: mqv23: goto i_qV_; UvCj0: }   
  ?>

Did this file decode correctly?

Original Code


 public function redirectUser() { goto zkgph; VdY1f: redirect("auth", "refresh"); goto MPBRs; MPBRs: q1ee5: goto QHYTp; QHYTp: redirect("/", "refresh"); goto jpOjC; zkgph: if (!$this->ion_auth->is_admin()) { goto q1ee5; } goto VdY1f; jpOjC: }  
 
 public function edit_user($id) { goto JP61w; Hu_ay: jued3: goto klZwE; x7pYs: $this->form_validation->set_rules("company", $this->lang->line("edit_user_validation_company_label"), "trim"); goto cu2MR; pDO_K: G4NeS: goto eYiXP; FSgwq: if ($this->ion_auth->update($user->id, $data)) { goto XrO53; } goto umzC4; zC0Oo: $this->_render_page("auth/edit_user", $this->data); goto UvCj0; nhLQj: $this->form_validation->set_rules("password_confirm", $this->lang->line("edit_user_validation_password_confirm_label"), "required"); goto HYnpZ; Ww2Pr: $this->data["password_confirm"] = ["name" => "password_confirm", "id" => "password_confirm", "type" => "password"]; goto zC0Oo; qSqVh: $data["password"] = $this->input->post("password"); goto D4OC9; vT2sE: $this->data["message"] = validation_errors() ? validation_errors() : ($this->ion_auth->errors() ? $this->ion_auth->errors() : $this->session->flashdata("message")); goto wBSOB; umzC4: $this->session->set_flashdata("message", $this->ion_auth->errors()); goto qzWF5; Bn7Ym: $this->data["first_name"] = ["name" => "first_name", "id" => "first_name", "type" => "text", "value" => $this->form_validation->set_value("first_name", $user->first_name)]; goto SU2Fb; D4OC9: cxDLR: goto GBIq7; PuPnf: $this->form_validation->set_rules("phone", $this->lang->line("edit_user_validation_phone_label"), "trim"); goto x7pYs; rO_W_: if (!(!$this->ion_auth->logged_in() || !$this->ion_auth->is_admin() && !($this->ion_auth->user()->row()->id == $id))) { goto AgTXn; } goto CMPej; hTafQ: if (!$this->input->post("password")) { goto cxDLR; } goto qSqVh; gp3ps: xSWMn: goto FSgwq; eYiXP: LPQHi: goto gp3ps; wBSOB: $this->data["user"] = $user; goto cubGn; GBIq7: if (!$this->ion_auth->is_admin()) { goto xSWMn; } goto mlVR0; OiJXZ: $this->form_validation->set_rules("password", $this->lang->line("edit_user_validation_password_label"), "required|min_length[" . $this->config->item("min_password_length", "ion_auth") . "]|matches[password_confirm]"); goto nhLQj; OotOY: $currentGroups = $this->ion_auth->get_users_groups($id)->result(); goto rdqR8; penJ4: if (!(isset($groupData) && !empty($groupData))) { goto LPQHi; } goto s83nU; s83nU: foreach ($groupData as $grp) { $this->ion_auth->add_to_group($grp, $id); RqKJG: } goto pDO_K; Zn6SW: $groupData = $this->input->post("groups"); goto penJ4; ISfMP: goto Br6fh; goto vr5u7; cubGn: $this->data["groups"] = $groups; goto mfeDI; Fxo8_: $this->data["csrf"] = $this->_get_csrf_nonce(); goto vT2sE; SU2Fb: $this->data["last_name"] = ["name" => "last_name", "id" => "last_name", "type" => "text", "value" => $this->form_validation->set_value("last_name", $user->last_name)]; goto NMOo0; i_qV_: aeu_X: goto Fxo8_; lWxA0: $this->session->set_flashdata("message", $this->ion_auth->messages()); goto f1I0y; vr5u7: XrO53: goto lWxA0; Sprlx: $this->form_validation->set_rules("last_name", $this->lang->line("edit_user_validation_lname_label"), "trim|required"); goto PuPnf; kgBX8: show_error($this->lang->line("error_csrf")); goto Hu_ay; t3l5W: $this->data["phone"] = ["name" => "phone", "id" => "phone", "type" => "text", "value" => $this->form_validation->set_value("phone", $user->phone)]; goto F9jlW; JP61w: $this->data["title"] = $this->lang->line("edit_user_heading"); goto rO_W_; HYnpZ: dNPZd: goto krGaM; f1I0y: $this->redirectUser(); goto D6AHW; cu2MR: if (!(isset($_POST) && !empty($_POST))) { goto aeu_X; } goto RQrjx; qzWF5: $this->redirectUser(); goto ISfMP; Mgcd2: $user = $this->ion_auth->user($id)->row(); goto zLBIc; Lum1h: AgTXn: goto Mgcd2; RQrjx: if (!($this->_valid_csrf_nonce() === FALSE || $id != $this->input->post("id"))) { goto jued3; } goto kgBX8; krGaM: if (!($this->form_validation->run() === TRUE)) { goto mqv23; } goto fl65m; D6AHW: Br6fh: goto PfbzT; zLBIc: $groups = $this->ion_auth->groups()->result_array(); goto OotOY; NMOo0: $this->data["company"] = ["name" => "company", "id" => "company", "type" => "text", "value" => $this->form_validation->set_value("company", $user->company)]; goto t3l5W; fl65m: $data = ["first_name" => $this->input->post("first_name"), "last_name" => $this->input->post("last_name"), "company" => $this->input->post("company"), "phone" => $this->input->post("phone")]; goto hTafQ; klZwE: if (!$this->input->post("password")) { goto dNPZd; } goto OiJXZ; mfeDI: $this->data["currentGroups"] = $currentGroups; goto Bn7Ym; F9jlW: $this->data["password"] = ["name" => "password", "id" => "password", "type" => "password"]; goto Ww2Pr; rdqR8: $this->form_validation->set_rules("first_name", $this->lang->line("edit_user_validation_fname_label"), "trim|required"); goto Sprlx; mlVR0: $this->ion_auth->remove_from_group('', $id); goto Zn6SW; CMPej: redirect("auth", "refresh"); goto Lum1h; PfbzT: mqv23: goto i_qV_; UvCj0: }  
 

Function Calls

None

Variables

None

Stats

MD5 b3dba709e48e3de8be6864d9035d0cca
Eval Count 0
Decode Time 50 ms