aboutsummaryrefslogtreecommitdiffstats
path: root/functions/error.php
diff options
context:
space:
mode:
authorjwangen <jwangen>2002-11-02 05:17:17 +0000
committerjwangen <jwangen>2002-11-02 05:17:17 +0000
commit15e50df43b59493358d034ca684450aec36093c9 (patch)
treed052ede69aec8cf4fde15499f6d17c775451cac3 /functions/error.php
parentc1b79428e7e0ce1c094457932e1941fd397768ce (diff)
downloadphpicalendar-15e50df43b59493358d034ca684450aec36093c9.tar.gz
phpicalendar-15e50df43b59493358d034ca684450aec36093c9.tar.bz2
phpicalendar-15e50df43b59493358d034ca684450aec36093c9.zip
fixed all errors which error_reporting() was returning
Diffstat (limited to 'functions/error.php')
-rw-r--r--functions/error.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/functions/error.php b/functions/error.php
index 8f36b5c..1bc4fca 100644
--- a/functions/error.php
+++ b/functions/error.php
@@ -1,7 +1,8 @@
<?php
-define('BASE','../');
+if (!defined('BASE')) define('BASE','../');
+
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;
+ 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;
if (!isset($style_sheet)) $style_sheet = 'silver';
if (!isset($powered_by_lang)) $powered_by_lang = 'Powered by';
if (!isset($version_lang)) $version_lang = '0.8';
@@ -9,7 +10,9 @@ function error($error_msg='There was an error processing the request.', $file='N
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.';
-
+ if (!isset($enable_rss)) $enable_rss = 'no';
+ if (!isset($this_site_is_lang)) $this_site_is_lang = 'This site is';
+
$error_calendar = sprintf($error_calendar_lang, $file);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

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