| Server IP : 144.76.79.100 / Your IP : 216.73.216.103 [ Web Server : Apache System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64 User : razzlestore ( 1092) PHP Version : 8.2.29 Disable Function : NONE Domains : 343 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/public_html/application/core/ |
Upload File : |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Admin_Controller extends CI_Controller {
function __construct() {
parent::__construct();
if(!$this->session->userdata('master_admin_id')){
$this->uri->segment(2)=='login'||$this->uri->segment(2)=='forgot-password'||$this->uri->segment(2)=='reset-password'?'':redirect('admin/login');
}
$this->header_logo = $this->general->get_single_field('settings','','settings_logo');
$this->site_title = $this->general->get_single_field('settings','','settings_site_title');
$this->settings_email_from = $this->general->get_single_field('settings','','settings_email_from');
$this->favicon = $this->general->get_single_field('settings','','settings_favicon');
$this->settings_email_to = $this->general->get_single_field('settings','','settings_email_to');
$this->form_validation->set_error_delimiters('<span class="help-block">','</span>');
$this->master_admin_image = $this->general->get_single_field('master_admin','','master_admin_image');
$this->master_admin_name = $this->general->get_single_field('master_admin','','master_admin_name');
// IT RENTAL FORMS
$data3['table'] ='contact_inquiry';
$data3['where'] = array('contact_inquiry_read_status' => 'unread');
$this->unreadContactInquiries = count($this->general->get($data3));
$this->adminrole = $this->session->userdata('master_admin_role');
}
}