aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-09-21 03:22:08 +0000
committerChad Little <clittle@users.sourceforge.net>2003-09-21 03:22:08 +0000
commit816cc749dc0110f0f7f9474296b03242a087d2e7 (patch)
treea87cc59cd89317bf31d6828777d7fcc05698d050 /functions
parent2450f15799cf36e8ba872ce746659eb15102ebff (diff)
downloadphpicalendar-816cc749dc0110f0f7f9474296b03242a087d2e7.tar.gz
phpicalendar-816cc749dc0110f0f7f9474296b03242a087d2e7.tar.bz2
phpicalendar-816cc749dc0110f0f7f9474296b03242a087d2e7.zip
Completed (hopefully) the move to header/footer on all pages. Cleaned up
header a bit.
Diffstat (limited to 'functions')
-rw-r--r--functions/error.php24
1 files changed, 10 insertions, 14 deletions
diff --git a/functions/error.php b/functions/error.php
index 1f555a2..7070769 100644
--- a/functions/error.php
+++ b/functions/error.php
@@ -1,5 +1,7 @@
<?php
if (!defined('BASE')) define('BASE','../');
+$current_view = 'error';
+$display_date = $error_title_lang;
function error($error_msg='There was an error processing the request.', $file='NONE') {
global $style_sheet, $powered_by_lang, $version_lang, $error_title_lang, $error_window_lang, $error_calendar_lang, $error_back_lang, $enable_rss, $this_site_is_lang;
@@ -14,16 +16,10 @@ function error($error_msg='There was an error processing the request.', $file='N
if (!isset($this_site_is_lang)) $this_site_is_lang = 'This site is';
$error_calendar = sprintf($error_calendar_lang, $file);
+ include (BASE.'includes/header.inc.php');
+
?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8">
- <title><?php echo $error_title_lang; ?></title>
- <link rel="stylesheet" type="text/css" href="styles/<?php echo "$style_sheet/default.css"; ?>">
-</head>
-<body bgcolor="#FFFFFF">
+
<center>
<table border="0" width="700" cellspacing="0" cellpadding="0">
<tr>
@@ -64,11 +60,11 @@ function error($error_msg='There was an error processing the request.', $file='N
</td>
</tr>
</table>
-<?php include (BASE.'includes/footer.inc.php'); ?>
</center>
-</body>
-</html>
+<?php
+
+ include (BASE.'includes/footer.inc.php');
-<?php
}
-?>
+
+?> \ No newline at end of file

© 2014-2024 Faster IT GmbH | imprint | privacy policy