uawdijnntqw1x1x1
IP : 216.73.216.55
Hostname : srv913213
Kernel : Linux srv913213 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
yapwebtv.com
/
..
/
..
/
www
/
krcollege.co
/
application
/
controllers
/
Password.php
/
/
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Password extends CI_Controller { public $menu; function __construct() { parent::__construct(); isLoggedIn(); $this->load->model('password/Password_model'); } public function index() { $page_data['page_title'] = 'Change Password'; $page_data['page_name'] = 'admin/password/password'; $this->load->view('admin/template', $page_data); } public function update() { $error_type = ''; $msg = ''; $result = false; $this->form_validation->set_rules('old_password', 'Old Password', 'trim|required'); $this->form_validation->set_rules('new_password', 'New Password', 'trim|required'); $this->form_validation->set_rules('re_password', 'Re Password', 'trim|required'); if ($this->form_validation->run() == FALSE) { $error_type = 'v'; $msg = validation_errors('<p class="error">', '</p>'); //validation_errors(); $result = false; } else { $userId = $this->session->userdata('user_id'); $query = $this->db->where('id', $userId)->get('users'); if ($query->num_rows() > 0) { $row = $query->row_array(); $email = $row['email']; $password = $row['password']; $old_email = $this->input->post('old_email'); $old_password = md5($this->input->post('old_password')); if ($password == $old_password) { $data = array( 'password' => md5($this->input->post('new_password')), ); $result = $this->Password_model->update($data, $userId); $error_type = 'm'; $msg = 'Password updated successfully.'; $result = true; ($result) ? logActivity('Password updated [#' . $userId .']',LOG_ADMIN) : ''; }else{ $error_type = 'm'; $msg = 'Old password is wrong'; $result = false; } } } echo json_encode(array('rs' => $result, 'errType' => $error_type, 'msg' => $msg)); } }
/var/www/yapwebtv.com/../../www/krcollege.co/application/controllers/Password.php