Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/celkcksm/ecampus.ncriptech.com/application/controllers/../core/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php defined('BASEPATH') OR exit('No direct script access allowed'); require_once APPPATH.'third_party/vendor/autoload.php'; use Spatie\ImageOptimizer\OptimizerChainFactory; use WebPConvert\WebPConvert; /** * */ class BaseFrontController extends CI_Controller { public $data=array(); function __construct(){ parent::__construct(); $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"); date_default_timezone_set('Asia/Kolkata'); $this->theme->view_type='front'; $link_code= $this->uri->segment(1,0); $system_links=$this->sm->_get_system_links(array('link_code'=>$link_code)); $this->data['system_links']=$system_links; $base_link_code=(!empty($system_links))?$system_links->link_code:'admin'; $system_theme=(!empty($system_links))?$system_links->link_front_theme:'default'; $system_name='Cloudcampus'; $this->theme->initialize(array( 'theme' => $system_theme, 'master' => 'default', 'layout' => 'default', 'title_sep' => '-', 'compress' => (ENVIRONMENT !== 'development')?true:false, 'cache_lifetime' => 0, 'cdn_enabled' => false, 'cdn_server' => null, 'site_name' => $system_name, 'site_description' => '', 'site_keywords' => '' )); $this->data['csrf']=array( 'name' => $this->security->get_csrf_token_name(), 'hash' => $this->security->get_csrf_hash() ); $this->theme->theme($system_theme); } }