aboutsummaryrefslogtreecommitdiffstats
path: root/functions/error.php
diff options
context:
space:
mode:
authorjwangen <jwangen>2002-10-04 03:17:14 +0000
committerjwangen <jwangen>2002-10-04 03:17:14 +0000
commit38a82b0ef9d6ae3b855ba6f3b71d2a21bd46cc21 (patch)
tree4ddf72798ede83581e196fc39312e18546c65b5e /functions/error.php
parent9a518d651204a88225eb6fb6b994375c98355b09 (diff)
downloadphpicalendar-38a82b0ef9d6ae3b855ba6f3b71d2a21bd46cc21.tar.gz
phpicalendar-38a82b0ef9d6ae3b855ba6f3b71d2a21bd46cc21.tar.bz2
phpicalendar-38a82b0ef9d6ae3b855ba6f3b71d2a21bd46cc21.zip
Added error.php
Diffstat (limited to 'functions/error.php')
-rw-r--r--functions/error.php59
1 files changed, 59 insertions, 0 deletions
diff --git a/functions/error.php b/functions/error.php
new file mode 100644
index 0000000..974f5b6
--- /dev/null
+++ b/functions/error.php
@@ -0,0 +1,59 @@
+<?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";
+?>
+<!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>
+ <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>
+ <td width="520" valign="top" align="center">
+<table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder">
+ <tr>
+ <td align="center" valign="middle">
+ <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 size="30" class="navback"><img height="30" width="1" src="images/spacer.gif"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+ <tr>
+ <td height="300"><img height="300" width="1" src="images/spacer.gif"></td>
+ <td align="center" valign="top">
+ <br>
+ <? echo $error_msg; ?>
+ </td>
+ <td height="300"><img height="300" width="1" src="images/spacer.gif"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+</table>
+ <?php echo "<font class=\"V9\"><br>$powered_by_lang <a class=\"psf\" href=\"http://phpicalendar.sourceforge.net/\">PHP iCalendar $version_lang</a></font>"; ?></center></td>
+
+</td>
+ </tr>
+</table>
+</center>
+</body>
+</html>
+
+<?php
+}
+?> \ No newline at end of file

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