Пример #1
0
 /**
  * Page::_getPageInfo()
  * 
  * @return
  */
 private function _getPageInfo()
 {
     for ($i = 1; $i <= 4; $i++) {
         ${'cat' . $i} = WebApp::get('cat' . $i);
     }
     $page = $this->_checkNormalPage($cat1, $cat2, $cat3);
     if ($page !== false) {
         return $page;
     }
     $this->parent->debug($this::name_space . ': Page not found, checking extended...');
     $page = $this->_checkExtendedPage($cat1, $cat2, $cat3, $cat4);
     if ($page !== false) {
         return $page;
     }
     $this->parent->debug($this::name_space . ': Extended page not found, checking hotlinks...');
     require_once __MODULE__ . '/link/controller.php';
     $link = new LinkController($this);
     $newUrl = $link->getHotlink(WebApp::get('cat1'));
     if ($newUrl !== false) {
         header("Location: " . $newUrl);
         exit;
     } else {
         $this->parent->debug($this::name_space . ': Hotlink not found...');
         return false;
     }
 }