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/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/xampp182/htdocs/repository/application/models/Model_auth.php
<?php
class model_auth extends CI_Model{
    
    
    
    function login($username,$password)
    {
        $chek=  $this->db->get_where('users',array('username'=>$username,'password'=>  md5($password) ));
        if($chek->num_rows()>0){
            return 1;
        }
        else{
            return 0;
        }
    }

    function login_hrd($username,$password,$level)
    {
        $chek=  $this->db->get_where('users',array('username'=>$username,'password'=>  md5($password),'level'=>2 ));
        if($chek->num_rows()>0){
            return 1;
        }
        else{
            return 0;
        }
    }
    
    
    function tampildata()
    {
        return $this->db->get('users');
    }
    
    function get_one($id)
    {
        $param  =   array('id_users'=>$id);
        return $this->db->get_where('users',$param);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit