public function Web() { $this->debug($this::name_space . ': Checking for IP block...'); $ipBan = new IpBan($this); if (!$ipBan->check()) { $this->_ipBlock(); } $this->debug($this::name_space . ': Sanitising input...'); $this->_sanitise(); $this->debug($this::name_space . ': Generating catagories...'); $this->_genPageCats(); $this->debug($this::name_space . ': Setting HTTPS status'); $this->_setHTTPS(); $file_size_max = $this->config->getOption('file_size_max'); ini_set('upload_max_filesize', $file_size_max); ini_set('post_max_size', $file_size_max); $this->debug($this::name_space . ': Selecting Mode...'); $class = 'Page'; switch ($this::get('cat1')) { case 'fonts': case 'js': case 'css': $class = 'File'; break; case 'images': $class = 'Image'; break; case 'action': $class = 'Action'; break; case 'ajax': $class = 'Ajax'; break; case 'feed': $class = 'Feed'; break; } $method = 'set' . $class; $this->debug($this::name_space . ': MODE: ' . strtoupper($class)); $this->ctrl = new $class($this); $this->ctrl->{$method}(); $this->ctrl->execute(); $this->output(); }