?
Current Path : /home1/savoy/public_html/savoyglobal.net/chess2015open/application/core/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/chess2015open/application/core/MY_Controller.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <?php class MY_Controller extends CI_Controller { function MY_Controller() { parent::__construct(); if(!session_id()) session_start(); if (!isset($_SESSION['loggedin'])) { redirect('sessions/login'); } // if (!isset($_SERVER['HTTP_X_REQUESTED_WITH'])) // { // $controller=$this->uri->segment('1'); // $function=$this->uri->segment('2'); // $thirdp=$this->uri->segment('3'); // // $url=$controller.'/'.$function; // $urlr=$controller.'/'.$function.'/'.$thirdp; // // if($url!='master/index') // { // if($urlr!='master/formsubmitdata/reports') // { // redirect('master/index'); // } // } // // // } } }