Example #1
0
 /**
  * Initialize the icms::$security service
  */
 public static function service()
 {
     $instance = new icms_core_Security();
     $instance->checkSuperglobals();
     if ($_SERVER['REQUEST_METHOD'] != 'POST' || !$instance->checkReferer(XOOPS_DB_CHKREF)) {
         define('XOOPS_DB_PROXY', 1);
     }
     icms_Event::attach('icms', 'loadService-config', array($instance, 'checkBadips'));
     return $instance;
 }
 public function __construct()
 {
     parent::__construct();
     $this->_deprecated = icms_core_Debug::setDeprecated('icms_core_Security', sprintf(_CORE_REMOVE_IN_VERSION, '1.4'));
 }