235: // $this->callback = preg_replace($val['expr'], $val['exec'], addcslashes($this->url, '\''));
236: $this->callback = preg_replace($val['expr'], $val['exec'], $this->url);
237: require_once($val['page']);
238: return true;
239: }
240: }
241: }
242: }
243:
244:
245: try {
246: if(!isset($pages['/404/'])){
247: throw new BaseException('404 Error unspecified!', E_USER_ERROR);;
248: }
249: } catch (BaseException $e){
250: echo $e;
251: exit;
252: }
253: $this->url = '/404/';
254: }
255: if(is_array($pages[$this->url])){
256: try {
257: if(!isset($pages[$this->url]['page'])){
258: throw new BaseException('file not set.', E_USER_ERROR);
259: }