示例#1
0
 function Admin6()
 {
     parent::Base_controller();
     if (!empty($this->subdomain) && $this->uri->segment(2) != 'siteadmin') {
         exit('This controller is not for subdomains.');
     }
     // This controller is not for subdomains.
     if (!$this->isSuperUser()) {
         show_error('You have no access. Please, autorize.');
         exit;
     }
     $this->load->model('Admin6_model');
 }