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 eval('?>'.rawurldecode('%3C%3Fphp%20if%20%28%20%21%20defined%28%27BASEPATH%27%29%29%..
Decoded Output download
?><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Change_password extends MY_Controller
{
function __construct()
{
parent::__construct();
if(! $this->session->userdata('panel_login'))
{
redirect(base_url());
}
}
function index()
{
$this->data["title"] = $this->lang->line("sifre_degistir")." | Frhlich Anhnger";
$this->load->view('change_password', $this->data);
}
function save()
{
$this->form_validation->set_message('required', $this->lang->line("lutfen_giriniz"));
$this->form_validation->set_rules('old_password', $this->lang->line("eski_sifre"), 'required|trim');
$this->form_validation->set_rules('new_password', $this->lang->line("yeni_sifre"), 'required|trim');
$this->form_validation->set_rules('new_password_again', $this->lang->line("yeni_sifre_tekrar"), 'required|trim');
if($this->form_validation->run() == FALSE)
{
redirect('change_password');
}
else
{
$old_password = $this->db->query("SELECT * FROM users WHERE id='1' ")->row();
if(md5($this->input->post('old_password'))!=$old_password->password)
{
$this->session->set_flashdata("hata", $this->lang->line("eski_sifre_hatali"));
redirect('change_password');
}
elseif($this->input->post('new_password')!=$this->input->post('new_password_again'))
{
$this->session->set_flashdata("hata", $this->lang->line("yeni_sifreler_uyusmuyor"));
redirect('change_password');
}
else
{
$this->db->where(array('id'=>'1'));
$sifre = array('password'=>md5($this->input->post('new_password')));
$this->db->update('users', $sifre);
redirect(base_url());
}
}
}
}
?>
Did this file decode correctly?
Original Code
<?php eval('?>'.rawurldecode('%3C%3Fphp%20if%20%28%20%21%20defined%28%27BASEPATH%27%29%29%20exit%28%27No%20direct%20script%20access%20allowed%27%29%3B%0D%0A%0D%0Aclass%20Change_password%20extends%20MY_Controller%0D%0A%7B%09%0D%0A%09function%20__construct%28%29%0D%0A%09%7B%0D%0A%09%09parent%3A%3A__construct%28%29%3B%09%0D%0A%0D%0A%09%09if%28%21%20%24this-%3Esession-%3Euserdata%28%27panel_login%27%29%29%0D%0A%09%09%7B%0D%0A%09%09%09redirect%28base_url%28%29%29%3B%0D%0A%09%09%7D%0D%0A%0D%0A%09%7D%0D%0A%09%0D%0A%09function%20index%28%29%0D%0A%09%7B%09%0D%0A%09%09%24this-%3Edata%5B%22title%22%5D%20%3D%20%24this-%3Elang-%3Eline%28%22sifre_degistir%22%29.%22%20%7C%20Fr%C3%B6hlich%20Anh%C3%A4nger%22%3B%0D%0A%0D%0A%09%09%24this-%3Eload-%3Eview%28%27change_password%27%2C%20%24this-%3Edata%29%3B%0D%0A%09%7D%0D%0A%09%0D%0A%09function%20save%28%29%0D%0A%09%7B%0D%0A%09%09%24this-%3Eform_validation-%3Eset_message%28%27required%27%2C%20%24this-%3Elang-%3Eline%28%22lutfen_giriniz%22%29%29%3B%0D%0A%09%09%24this-%3Eform_validation-%3Eset_rules%28%27old_password%27%2C%20%24this-%3Elang-%3Eline%28%22eski_sifre%22%29%2C%20%27required%7Ctrim%27%29%3B%0D%0A%09%09%24this-%3Eform_validation-%3Eset_rules%28%27new_password%27%2C%20%24this-%3Elang-%3Eline%28%22yeni_sifre%22%29%2C%20%27required%7Ctrim%27%29%3B%0D%0A%09%09%24this-%3Eform_validation-%3Eset_rules%28%27new_password_again%27%2C%20%24this-%3Elang-%3Eline%28%22yeni_sifre_tekrar%22%29%2C%20%27required%7Ctrim%27%29%3B%0D%0A%0D%0A%09%09%0D%0A%0D%0A%09%09if%28%24this-%3Eform_validation-%3Erun%28%29%20%3D%3D%20FALSE%29%0D%0A%09%09%7B%0D%0A%09%09%09redirect%28%27change_password%27%29%3B%0D%0A%09%09%7D%0D%0A%09%09else%0D%0A%09%09%7B%0D%0A%09%09%09%24old_password%20%3D%20%24this-%3Edb-%3Equery%28%22SELECT%20%2A%20FROM%20users%20WHERE%20id%3D%271%27%20%22%29-%3Erow%28%29%3B%0D%0A%09%09%09%0D%0A%09%09%09if%28md5%28%24this-%3Einput-%3Epost%28%27old_password%27%29%29%21%3D%24old_password-%3Epassword%29%0D%0A%09%09%09%7B%0D%0A%09%09%09%09%0D%0A%09%09%09%09%24this-%3Esession-%3Eset_flashdata%28%22hata%22%2C%20%24this-%3Elang-%3Eline%28%22eski_sifre_hatali%22%29%29%3B%0D%0A%09%09%09%09%09%09%0D%0A%09%09%09%09redirect%28%27change_password%27%29%3B%0D%0A%09%09%09%7D%0D%0A%09%09%09elseif%28%24this-%3Einput-%3Epost%28%27new_password%27%29%21%3D%24this-%3Einput-%3Epost%28%27new_password_again%27%29%29%0D%0A%09%09%09%7B%0D%0A%09%09%09%09%24this-%3Esession-%3Eset_flashdata%28%22hata%22%2C%20%24this-%3Elang-%3Eline%28%22yeni_sifreler_uyusmuyor%22%29%29%3B%0D%0A%09%09%09%09%09%09%0D%0A%09%09%09%09redirect%28%27change_password%27%29%3B%0D%0A%09%09%09%7D%0D%0A%09%09%09else%0D%0A%09%09%09%7B%0D%0A%09%09%09%09%24this-%3Edb-%3Ewhere%28array%28%27id%27%3D%3E%271%27%29%29%3B%0D%0A%0D%0A%09%09%09%09%24sifre%20%3D%20array%28%27password%27%3D%3Emd5%28%24this-%3Einput-%3Epost%28%27new_password%27%29%29%29%3B%0D%0A%0D%0A%09%09%09%09%24this-%3Edb-%3Eupdate%28%27users%27%2C%20%24sifre%29%3B%0D%0A%09%09%09%09%0D%0A%09%09%09%09redirect%28base_url%28%29%29%3B%0D%0A%09%09%09%7D%0D%0A%0D%0A%09%09%7D%0D%0A%0D%0A%09%09%0D%0A%09%7D%0D%0A%7D%0D%0A%3F%3E'));
Function Calls
defined | 1 |
rawurldecode | 1 |
Stats
MD5 | 509adee166a6eddffbacad502a6c6cb4 |
Eval Count | 1 |
Decode Time | 63 ms |