| | |
| | | | 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: | |
| | |
| | | » Safari 1.2+<br /> |
| | | <br /> |
| | | » JavaScript enabled<br /> |
| | | » Support for XMLHTTPRequest<br /> |
| | | |
| | | <p><i>Your configuration:</i><br /> |
| | | $user_agent</p> |
| | |
| | | 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. |
| | |
| | | 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); |
| | | } |
| | | |
| | | |
| | |
| | | </html> |
| | | EOF; |
| | | |
| | | ?> |
| | | ?> |