Beispiel #1
0
 protected function Init()
 {
     /*
      * Category
      */
     if (isset($_REQUEST['cat'])) {
         $this->category = strtolower(trim($_REQUEST['cat']));
     }
     if (!is_null($this->category)) {
         $namecat = array_flip($GLOBALS['catname']);
         if (in_array($this->category, $GLOBALS['catname']) && isset($GLOBALS['catgroup'][$namecat[$this->category]])) {
             $this->link['cat'] = $this->category;
         }
     }
     /*
      * Hidden
      */
     if (isset($_REQUEST['hidden'])) {
         $this->hidden = false;
         $this->link['hidden'] = '';
     }
     /*
      * Call parent function *last*
      */
     parent::Init();
     if (!empty($this->search)) {
         $this->link['q'] = $this->search;
     }
 }