MOON
Server: Apache
System: Linux host.sunshiene.com 4.18.0-553.121.1.el8_10.x86_64 #1 SMP Thu Apr 30 09:06:34 EDT 2026 x86_64
User: clientsoftwares (1005)
PHP: 8.1.34
Disabled: system, exec, mail, shell_exec, passthru, popen, proc_open, pcntl_exec, dl, ini_alter, ini_restore, symlink, link, chown, posix_kill
Upload Files
File: /home/clientsoftwares/.trash/application/models/Login_model.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Login_model extends CI_Model{
	public function check_login($data) { 
		$this->db->where('u_username', $this->input->post('username'));
        $this->db->where('u_password', md5($this->input->post('password')));
        $query = $this->db->get("login");
		if ($query->num_rows() >= 1) {
			return $query->row_array();
			} else {
			return false;
			}
	} 
    public function userroles($u_id) { 
     $userroles = $this->db->select('*')->from('login_roles')->where('lr_u_id',$u_id)->get()->result_array();
       if(!empty($userroles)) {
       		return $userroles[0];
       } else{
       		return array();
       }
    }
}