| 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 Front_Controller extends CI_Controller {
function __construct() {
parent::__construct();
$data = array();
$data['table'] = 'settings';
$data['output_type'] = 'row';
$data['where'] = array('settings_id' => 1);
$website_settings = $this->general->get($data);
$this->header_logo = $website_settings->settings_logo;
$this->footer_logo = $website_settings->settings_footer_logo;
$this->favicon = $website_settings->settings_favicon;
$this->site_title = $website_settings->settings_site_title;
$this->email_address = $website_settings->settings_email;
$this->settings_address = $website_settings->settings_address;
$this->settings_phone = $website_settings->settings_phone;
$this->email_from = $website_settings->settings_email_from;
$this->email_to = $website_settings->settings_email_to;
$this->email_to = $website_settings->settings_email_to;
$this->settings_head_script = $website_settings->settings_head_script;
$this->form_validation->set_error_delimiters('<span class="help-block">','</span>');
$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$data['table'] = 'seo';
$data['where'] = array('seo_page_link' => $actual_link);
$this->seo = $content['records'] = $this->general->get($data);
$data = array();
$data['table'] = 'social';
$data['output_type'] = 'row';
$data['where'] = array('social_id' => 1);
$this->social = $content['social'] = $this->general->get($data);
$data = array();
$data['table'] = 'category';
$this->categories = $this->general->get($data);
$data = array();
$data['table'] = 'settings';
$data['output_type'] = 'row';
$this->settings = $this->general->get($data);
$data = array();
$data['table'] = 'header_navbar';
$data['order_by_col'] = 'header_navbar_order_id';
$this->header_navbar = $this->general->get($data);
$data = array();
$data['table'] = 'footer_navbar';
$this->footer_navbar = $this->general->get($data);
}
}