Example #1
0
 public function handleGet()
 {
     global $_GET;
     $this->_page = Page::getDefault();
     if (isset($_GET['p'])) {
         $this->_page = Page::validate($_GET['p']);
     }
     $this->_lang = Language::getDefault();
     if (isset($_GET['l'])) {
         $this->_lang = Language::validate($_GET['l']);
         $this->saveCookie('language', $this->_lang, 60 * 60 * 24 * 365);
     }
     foreach ($_GET as $id => $val) {
         $this->_gets[$id] = Validator::cleanInput($val);
     }
 }