errorNumber = intval(e_QUERY); } e107::getRender()->tablerender(LAN_ERROR,$this->renderErrorPage(), 'error_page_'.$this->errorNumber); } /** * Renders the error page. */ public function renderErrorPage() { switch($this->errorNumber) { case 400: $body = e107::getError()->render(400); break; case 401: $body = e107::getError()->render(401); break; case 403: $body = e107::getError()->render(403); break; case 404: $body = e107::getError()->render(404); break; case 500: $body = e107::getError()->render(500); break; default: $body = e107::getError()->render('unknown'); break; } return $body; } } require_once(HEADERF); new error_front(); require_once(FOOTERF);