コード例 #1
0
ファイル: class.context.php プロジェクト: umonkey/molinos-cms
 public function canDebug()
 {
     if (null === $this->_debug) {
         if (null === ($debuggers = $this->config->get('main/debug/allow'))) {
             $this->_debug = false;
         } elseif (!empty($_SERVER['REMOTE_ADDR'])) {
             $this->_debug = mcms::matchip($_SERVER['REMOTE_ADDR'], $debuggers);
         }
     }
     return $this->_debug;
 }