示例#1
0
 public static function http_error($error_code)
 {
     self::reset_all();
     switch ($error_code) {
         case 401:
             header("HTTP/1.0 401 Unauthorized");
             self::$title = "Permission Error.";
             break;
         case 404:
             header("HTTP/1.0 404 Not Found");
             self::$title = "File not found.";
             break;
         case 410:
             header("HTTP/1.0 410 Gone");
             self::$title = "Gone";
             break;
     }
     echo call_user_func(array(self::$template, 'print_http_error'), $error_code);
     exit;
 }
示例#2
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php 
Output::charset();
?>
<title><?php 
Output::title();
?>
</title>
<?php 
Output::meta('author', 'caleng');
Output::keywords();
Output::description();
Output::importJS();
Output::importCSS();
?>
</head>

<body>
<?php 
include_once $TEMPLATE_FILE;
?>

</body>
</html>