aboutsummaryrefslogtreecommitdiffstats
path: root/functions/error.php
diff options
context:
space:
mode:
authorjwangen <jwangen>2002-10-05 07:59:17 +0000
committerjwangen <jwangen>2002-10-05 07:59:17 +0000
commitc133fe953c5b9e6312c78e86945eb3d8027f1c4c (patch)
tree0c12061ec477f6667cbe2b7a9201bc1452aedf3c /functions/error.php
parent3ec59da61107defb918544a23f948e287abb0a82 (diff)
downloadphpicalendar-c133fe953c5b9e6312c78e86945eb3d8027f1c4c.tar.gz
phpicalendar-c133fe953c5b9e6312c78e86945eb3d8027f1c4c.tar.bz2
phpicalendar-c133fe953c5b9e6312c78e86945eb3d8027f1c4c.zip
modified parser to fix october bug
Diffstat (limited to 'functions/error.php')
-rw-r--r--functions/error.php28
1 files changed, 20 insertions, 8 deletions
diff --git a/functions/error.php b/functions/error.php
index 974f5b6..310d3c7 100644
--- a/functions/error.php
+++ b/functions/error.php
@@ -1,16 +1,22 @@
<?php
-function error($error_msg="There was an error processing the request.") {
- global $style_sheet, $powered_by_lang, $version_lang;
- if (!$style_sheet) $style_sheet = "silver";
- if (!$powered_by_lang) $powered_by_lang = "Powered by";
- if (!$version_lang) $version_lang = "0.6";
+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;
+ if (!isset($style_sheet)) $style_sheet = 'silver';
+ if (!isset($powered_by_lang)) $powered_by_lang = 'Powered by';
+ if (!isset($version_lang)) $version_lang = '0.6';
+ if (!isset($error_title_lang)) $error_title_lang = 'Error!';
+ if (!isset($error_window_lang)) $error_window_lang = 'There was an error!';
+ if (!isset($error_calendar_lang)) $error_calendar_lang = 'The calendar "%s" was being processed when this error occurred.';
+ if (!isset($error_back_lang)) $error_back_lang = 'Please use the "Back" button to return.';
+
+ $error_calendar = sprintf($error_calendar_lang, $file);
?>
<!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>Error!</title>
+ <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">
@@ -24,7 +30,7 @@ function error($error_msg="There was an error processing the request.") {
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
<tr>
<td size="30" class="navback"><img height="30" width="1" src="images/spacer.gif"></td>
- <td align="center" valign="center" class="navback"><font class="H20">There was an Error!</font></td>
+ <td align="center" valign="center" class="navback"><font class="H20"><?php echo $error_window_lang; ?></font></td>
<td size="30" class="navback"><img height="30" width="1" src="images/spacer.gif"></td>
</tr>
</table>
@@ -37,7 +43,13 @@ function error($error_msg="There was an error processing the request.") {
<td height="300"><img height="300" width="1" src="images/spacer.gif"></td>
<td align="center" valign="top">
<br>
- <? echo $error_msg; ?>
+ <?php echo $error_msg; ?>
+ <br>
+ <br>
+ <?php echo $error_calendar; ?>
+ <br>
+ <br>
+ <?php echo $error_back_lang; ?>
</td>
<td height="300"><img height="300" width="1" src="images/spacer.gif"></td>
</tr>

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