403Webshell
Server IP : 94.136.191.34  /  Your IP : 216.73.216.25
Web Server : Apache
System : Linux hostpanel.netbiz.in 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64
User : omkar.com_6nnuz6y629h ( 10087)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  /var/www/vhosts/omkar.com/httpdocs/application/models/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/omkar.com/httpdocs/application/models/Login_model.php
<?php

class Login_model extends CI_Model {

    public function login($username, $password) {
        $sql = "SELECT * FROM user WHERE username = '".$username."' AND password = '".md5($password)."' ";
        
		$check = $this->db->query($sql)->row_array();
		if((count($check) )> 0){
			//echo "true";die;
			$this->session->set_userdata(array('username' => $check['username']));
			$this->session->set_userdata(array('permission' => $check['permission']));
			$this->session->set_userdata(array('user_type' => $check['user_type']));
			return true;
		}else{
			//echo "false";die;

			return false;
		}
    }

    public function logout() {
        //$this->set_action(array('user_id' => $this->session->userdata('user_id')), array('online_status' => '0', 'last_login' => date('Y-m-d H:i:s')), 'tbl_users');
        $this->session->sess_destroy();
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit