示例#1
0
 public function __construct()
 {
     $registry =& SPFactory::registry();
     $registry->loadDBSection('config');
     $this->_task = strlen($this->_task) ? $this->_task : $this->_defTask;
     if (!Sobi::Reg('current_section') && $this->_task == 'general') {
         $this->_task = 'global';
         if (!Sobi::Can('cms.admin')) {
             Sobi::Error('ACL', SPLang::e('UNAUTHORIZED_ACCESS_TASK', SPRequest::task()), SPC::WARNING, 403, __LINE__, __FILE__);
         }
     } else {
         if (!$this->_aclCheck) {
             Sobi::Error('ACL', SPLang::e('UNAUTHORIZED_ACCESS_TASK', SPRequest::task()), SPC::WARNING, 403, __LINE__, __FILE__);
         }
     }
     parent::__construct();
 }
示例#2
0
 public function __construct()
 {
     $registry =& SPFactory::registry();
     $registry->loadDBSection('config');
     parent::__construct();
 }