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 >
PHP Script  |  2003-10-12  |  2KB  |  70 lines

  1. <?php
  2. if (!defined('BASE')) define('BASE','../');
  3.  
  4. function error($error_msg='There was an error processing the request.', $file='NONE') {
  5.     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;
  6.     if (!isset($style_sheet))            $style_sheet = 'silver';
  7.     if (!isset($powered_by_lang))        $powered_by_lang = 'Powered by';
  8.     if (!isset($error_title_lang))        $error_title_lang = 'Error!';
  9.     if (!isset($error_window_lang))        $error_window_lang = 'There was an error!';
  10.     if (!isset($error_calendar_lang))    $error_calendar_lang = 'The calendar "%s" was being processed when this error occurred.';
  11.     if (!isset($error_back_lang))        $error_back_lang = 'Please use the "Back" button to return.';
  12.     if (!isset($enable_rss))            $enable_rss = 'no';
  13.     if (!isset($this_site_is_lang))        $this_site_is_lang = 'This site is';
  14.         
  15.     $error_calendar = sprintf($error_calendar_lang, $file);
  16.     $current_view = 'error';
  17.     $display_date = $error_title_lang;
  18.     $calendar_name = $error_title_lang;
  19.     include (BASE.'includes/header.inc.php'); 
  20.     
  21. ?>
  22.  
  23. <center>
  24. <table border="0" width="700" cellspacing="0" cellpadding="0">
  25.     <tr>
  26.         <td width="520" valign="top" align="center">
  27.             <table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder">
  28.                 <tr>
  29.                     <td align="center" valign="middle">
  30.                         <table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
  31.                             <tr>
  32.                                 <td align="left" valign="top" width="1%" class="sideback"><img src="images/spacer.gif" width="1" height="20" alt=" "></td>
  33.                                 <td align="center" valign="middle" width="98%" class="sideback"><b><?php echo $error_window_lang; ?></b></td>
  34.                                 <td class="sideback" width="1%"></td>
  35.                             </tr>
  36.                         </table>
  37.                     </td>
  38.                 </tr>
  39.                 <tr>
  40.                     <td>
  41.                         <table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">    
  42.                             <tr>
  43.                                 <td align="center" valign="top">
  44.                                     <br>
  45.                                     <?php echo $error_msg; ?>
  46.                                     <br>
  47.                                     <br>
  48.                                     <?php echo $error_calendar; ?>
  49.                                     <br>
  50.                                     <br>
  51.                                     <?php echo $error_back_lang; ?>
  52.                                     <br>
  53.                                     <br>
  54.                                 </td>
  55.                             </tr>
  56.                         </table>
  57.                     </td>
  58.                 </tr>
  59.             </table>
  60.         </td>
  61.     </tr>
  62. </table>
  63. </center>
  64. <?php 
  65.  
  66.     include (BASE.'includes/footer.inc.php');
  67.  
  68. }
  69.  
  70. ?>