<?php
require_once('../../../config.php');
require_once(FOLDER_RELATIVE_COMMON . 'builder-user.php');
require_once(FOLDER_RELATIVE_COMMON . 'refolder.php');
function buildPage() {
$message = '';
switch ($_GET['errorcode']) {
case "1001": $message = "The database is temporarily unavailable, please check back later."; break;
case "1002": $message = "You must be logged in in order to view the requested page."; break;
default: $message = "Your information request cannot be fulfilled."; break;
}
$content = buildStory('Error', '', $message, '', 'story');
// Replace bracketed elements (such as [TITLE]) in the template with actual content.
$template = templateRefolderCSSAndJavascript(FILE_TEMPLATE_ERROR);
$html = str_replace("[Title]", "Error", $template);
$html = str_replace("[Content]", $content, $html);
echo $html;
}
buildPage();
?>