403Webshell
Server IP : 101.255.104.117  /  Your IP : 101.255.104.117
Web Server : Apache/2.4.34 (Win32) OpenSSL/1.0.2o PHP/5.6.38
System : Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
User : user ( 0)
PHP Version : 5.6.38
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/xampp182/htdocs/repository/application/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/xampp182/htdocs/repository/application/controllers/Ubah_password.php
<?php

defined('BASEPATH') OR exit('No direct script access allowed');

date_default_timezone_set('Asia/Kolkata');

class ubah_password extends CI_Controller{
    
    function __construct() {
        parent::__construct();
        chek_session();
        date_default_timezone_set("Asia/Bangkok");
    }

    function index(){
        
        $username = $this->session->userdata('username');
    	
        $this->template->load('template','ubah_password', array(
            'action' => site_url('ubah_password/proses'),
		));

    }

    function proses(){
        
        $username = $this->session->userdata('username');
        $id = $this->db->query("SELECT * FROM users WHERE username = '$username'")->row()->id;

        $data	= array ('password' => md5($this->input->post('new_password',TRUE))  );

        $this->db->where('id', $id);
        $this->db->update('users', $data);                            
        
        $this->session->set_flashdata('message', 'true');
        redirect(site_url('ubah_password'));

    }
    
    


}

Youez - 2016 - github.com/yon3zu
LinuXploit