Пример #1
0
 private function detectMode()
 {
     if (isset($_SERVER['argv']) && 1 <= count($_SERVER['argv']) && !(isset($_SERVER['QUERY_STRING']) && $_SERVER['argv'][0] == $_SERVER['QUERY_STRING'])) {
         $this->current_mode = "cli";
         cacheFrontend::$cacheMode = true;
         return;
     }
     $v32660e7b27600e0fde6ff1333c6c0568 = $this->getPathArray();
     if (sizeof($v32660e7b27600e0fde6ff1333c6c0568) < 2) {
         $v32660e7b27600e0fde6ff1333c6c0568[1] = NULL;
     }
     list($v9ea3ab74bc8133d47b81a107f1a1c585, $v394072637b008e3829968bb5109f17ac) = $v32660e7b27600e0fde6ff1333c6c0568;
     if ($v9ea3ab74bc8133d47b81a107f1a1c585 == "admin" || $v394072637b008e3829968bb5109f17ac == "admin") {
         $this->current_mode = "admin";
         cacheFrontend::$adminMode = true;
     } else {
         $this->current_mode = "";
         cacheFrontend::$cacheMode = true;
         cacheFrontend::$adminMode = false;
     }
 }
Пример #2
0
 protected function __construct()
 {
     $this->detectCacheEngine();
     $v2ae9e7e5c687d5c49e0e9a4740cc9ae5 = $this->loadEngine($this->cacheEngineName);
     if ($v2ae9e7e5c687d5c49e0e9a4740cc9ae5 instanceof iCacheEngine) {
         $this->connected = (bool) $v2ae9e7e5c687d5c49e0e9a4740cc9ae5->getIsConnected();
         if ($this->connected) {
             $this->enabled = true;
             self::$cacheMode = true;
             $this->cacheEngine = $v2ae9e7e5c687d5c49e0e9a4740cc9ae5;
         }
     }
 }