<?php

require("scripts/lister.php");
require(
"commontc.php");

tc_source();

$main = new Lister();

$default_error "Some error occurred, but no more information about it is available.";

if (isset(
$code)) {

    switch (
$code) {

        case 
"404":

            
$error_text "A file could not be found. Perhaps try typing it in again, but if that doesn't work, perhaps the location of the file was changed. If so, please try and find it again via normal navigation methods. We're sorry for the inconvenience.";
            break;

        default:

            
$error_text $default_error;

    }

} else {

    
$error_text $default_error;

}

$main->add(tc_block("An Error Occurred"$error_text));

echo 
tc_header("TEK'S CODE - Error!""style.css");
echo 
tc_main_layout(tc_content_header(), tc_nav_entries(), $main->render("<br/><br/>"));
echo 
tc_content_footer(true) . tc_footer();

?>