Exemplo n.º 1
0
 public function __construct(array $config = array())
 {
     parent::__construct($config);
     $config = \MH\FrontSite::o()->getConfig('makeJS');
     $this->_debug = $config['debug'];
     //$this->_path = rtrim($config['path'], '/') . '/';
 }
Exemplo n.º 2
0
 public function __construct($config)
 {
     parent::__construct($config);
     $this->addTitle(self::FIRST_TITLE);
     $this->_urlParts = array();
     foreach (explode('/', $_SERVER['REQUEST_URI']) as $p) {
         if ('' != $p && '?' != $p[0]) {
             $this->_urlParts[] = $p;
         }
     }
 }
Exemplo n.º 3
0
 public function __construct($config)
 {
     parent::__construct($config);
     $url = $_SERVER['REQUEST_URI'];
     if ($pos = strpos($url, '?')) {
         $url = substr($url, 0, $pos);
     }
     $this->_isForbidden = false;
     foreach ($this->_config['forbidden'] as $rule) {
         if (preg_match($rule, $url)) {
             $this->_isForbidden = true;
             break;
         }
     }
 }
Exemplo n.º 4
0
 public function __construct(array $config = array())
 {
     parent::__construct($config);
     $this->_cacheTime = 1 * 60 * 60;
     $this->_cacheDir = SITE_ID . '/banners';
 }