%PDF-1.7 GIF89;
Server IP : 5.161.254.237 / Your IP : 216.73.216.93 Web Server : Apache System : Linux diamond.sialwebvps.com 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64 User : stellasp ( 1131) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/stellasp/public_html/application/controllers/admin/ |
Upload File : |
<?php class Dashboard extends Admin_Controller { function __construct() { parent::__construct(); if($this->auth->check_access('Orders')) { redirect($this->config->item('admin_folder').'/orders'); } $this->load->model('Product_model'); $this->load->model('Order_model'); $this->load->model('Customer_model'); $this->load->helper('date'); $this->lang->load('dashboard'); } function index() { //check to see if shipping and payment modules are installed $data['payment_module_installed'] = (bool)count($this->Settings_model->get_settings('payment_modules')); $data['shipping_module_installed'] = (bool)count($this->Settings_model->get_settings('shipping_modules')); $data['page_title'] = lang('dashboard'); // get 5 latest orders $data['products'] = $this->Product_model->get_in_products(); // get 5 latest orders $data['orders'] = $this->Order_model->get_orders(false, 'id' , 'DESC', 15); // get 5 latest customers $data['customers'] = $this->Customer_model->get_customers(15); $this->load->view($this->config->item('admin_folder').'/dashboard', $data); } }