home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
linuxmafia.com 2016
/
linuxmafia.com.tar
/
linuxmafia.com
/
calendar-2010-08-23.tar.gz
/
calendar-2010-08-23.tar
/
calendar
/
functions
/
error.php
< prev
next >
Wrap
PHP Script
|
2003-10-12
|
2KB
|
70 lines
<?php
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, $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($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.';
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);
$current_view = 'error';
$display_date = $error_title_lang;
$calendar_name = $error_title_lang;
include (BASE.'includes/header.inc.php');
?>
<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 align="left" valign="top" width="1%" class="sideback"><img src="images/spacer.gif" width="1" height="20" alt=" "></td>
<td align="center" valign="middle" width="98%" class="sideback"><b><?php echo $error_window_lang; ?></b></td>
<td class="sideback" width="1%"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
<tr>
<td align="center" valign="top">
<br>
<?php echo $error_msg; ?>
<br>
<br>
<?php echo $error_calendar; ?>
<br>
<br>
<?php echo $error_back_lang; ?>
<br>
<br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
<?php
include (BASE.'includes/footer.inc.php');
}
?>