svncommit
2007-10-15 97a656643866f16289264954be961aa3f314ac20
program/steps/error.inc
@@ -5,7 +5,7 @@
 | program/steps/error.inc                                               |
 |                                                                       |
 | This file is part of the RoundCube Webmail client                     |
 | Copyright (C) 2005, RoundCube Dev. - Switzerland                      |
 | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland                 |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 | PURPOSE:                                                              |
@@ -34,6 +34,7 @@
&raquo; &nbsp;Safari 1.2+<br />
<br />
&raquo; &nbsp;JavaScript enabled<br />
&raquo; &nbsp;Support for XMLHTTPRequest<br />
<p><i>Your configuration:</i><br />
$user_agent</p>
@@ -52,7 +53,7 @@
else if ($ERROR_CODE==404)
  {
  $__error_title = "REQUEST FAILED/FILE NOT FOUND";
  $request_url = $GLOBALS['HTTP_HOST'].$GLOBALS['REQUEST_URI'];
  $request_url = htmlentities($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
  $__error_text  = <<<EOF
The requested page was not found!<br />
Please contact your server-administrator.
@@ -62,17 +63,26 @@
EOF;
  }
// database connection error
else if ($ERROR_CODE==603)
  {
  $__error_title = "DATABASE ERROR: CONNECTION FAILED!";
  $__error_text  =  <<<EOF
Unable to connect to the database!<br />
Please contact your server-administrator.
EOF;
  }
// system error
else
  {
  $__error_title = "SERVICE CURRENTLY NOT AVAILABLE!";
  $__error_text  = "Please contact your server-administrator.";
  if (($CONFIG['debug_level'] & 4) && $ERROR_MESSAGE)
    $__error_text = $ERROR_MESSAGE;
  else
    $__error_text = 'Error No. '.dechex($ERROR_CODE).')';
    $__error_text = sprintf('Error No. [0x%04X]', $ERROR_CODE);
  }
@@ -114,4 +124,4 @@
</html>
EOF;
?>
?>