Ejemplo n.º 1
0
 /**
  * Create request
  */
 function __construct()
 {
     $this->method = @$_SERVER['REQUEST_METHOD'];
     $this->_host = @$_SERVER['HTTP_HOST'];
     $this->_uri = @$_SERVER['REQUEST_URI'];
     $this->_post = $_POST;
     $this->_get = $_GET;
     $this->_files = $_FILES;
     $this->_cookies = $_COOKIE;
     $this->_normalize_files();
     $this->_all = functions::array_merge_recursive_distinct($_COOKIE, $this->_get);
     $this->_all = functions::array_merge_recursive_distinct($this->_all, $this->_post);
     $this->_all = functions::array_merge_recursive_distinct($this->_all, $this->_files);
     // @todo use self::TAG_ ..
     self::$_ident_vars = new ident_vars(array('id' => $this->postget('id'), 'pid' => $this->postget('pid'), 'gid' => $this->postget('gid'), 'c' => $this->postget('c'), 'op' => $this->postget('op'), 'do' => $this->postget('do'), 'type' => $this->postget('type'), 'embed' => $this->postget('embed'), 'start' => $this->postget('start'), '2print' => $this->postget('2print'), 'm' => preg_replace('/[^\\w\\d]/', '', $this->postget('m', ''))));
 }