diff --git a/e107_handlers/message_handler.php b/e107_handlers/message_handler.php index ee3d72777..0f9ad4d0f 100644 --- a/e107_handlers/message_handler.php +++ b/e107_handlers/message_handler.php @@ -11,8 +11,8 @@ e107 website system | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/message_handler.php,v $ -| $Revision: 1.2 $ -| $Date: 2007-01-01 10:02:20 $ +| $Revision: 1.3 $ +| $Date: 2008-08-08 20:16:12 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -45,16 +45,23 @@ function show_emessage($mode, $message, $line = 0, $file = "") { "; } - if (class_exists('e107table')) { - $ns = new e107table; + if (class_exists('e107table')) + { + $ns = new e107table; } - switch($mode) { - case "CRITICAL_ERROR": + switch($mode) + { + case "CRITICAL_ERROR" : $message = $emessage[$message] ? $emessage[$message] : $message; + if (is_readable(e_THEME.'index.html')) + { + require_once(e_THEME.'index.html'); + exit; + } echo "
CRITICAL_ERROR:
Line $line $file

Error reported as: ".$message."
"; break; - case "MESSAGE": + case "MESSAGE": if(strstr(e_SELF, "forum_post.php")) { return; diff --git a/e107_languages/English/lan_error.php b/e107_languages/English/lan_error.php index 0de59588a..826d5b33b 100644 --- a/e107_languages/English/lan_error.php +++ b/e107_languages/English/lan_error.php @@ -4,8 +4,8 @@ | e107 website system - Language File. | | $Source: /cvs_backup/e107_0.8/e107_languages/English/lan_error.php,v $ -| $Revision: 1.4 $ -| $Date: 2008-07-25 20:12:31 $ +| $Revision: 1.5 $ +| $Date: 2008-08-08 20:16:22 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -42,7 +42,7 @@ define("LAN_ERROR_27", "[3]: Core settings saved - backup made active."); define("LAN_ERROR_28", "[4]: No core backup found. Check that your database has valid content. If not, please run the Reset_Core utility to rebuild your core settings.
After rebuilding your core please save a backup from the admin/sql screen."); define("LAN_ERROR_29", "[5]: Field(s) have been left blank. Please resubmit the form and fill in the required fields."); define("LAN_ERROR_30", "[6]: Unable to form a valid connection to mySQL. Please check that your e107_config.php contains the correct information."); -define("LAN_ERROR_31", "[7]: mySQL is running but database ({$mySQLdefaultdb}) couldn't be connected to.
Please check it exists and that your e107_config.php contains the correct information."); +define("LAN_ERROR_31", "[7]: mySQL is running but database ({$mySQLdefaultdb}) couldn't be connected to.
Please check it exists and that your configuration file contains the correct information."); define("LAN_ERROR_32", "To complete the upgrade, copy the following text into your e107_config.php file:"); define("LAN_ERROR_33", "Processing error! Normally, I would redirect to the home page."); @@ -51,8 +51,13 @@ define("LAN_ERROR_34", "Unknown error! Please inform the site administrator you define('LAN_ERROR_35', 'Error 400 - Bad Request'); define('LAN_ERROR_36', 'There is a formatting error in the web page you are trying to access.'); define('LAN_ERROR_37', 'Error Icon'); -define('LAN_ERROR_38', ''); -define('LAN_ERROR_39', ''); +define('LAN_ERROR_38', 'Sorry, but the site is unavailable due to a temporary fault'); +define('LAN_ERROR_39', 'Please try again in a few minutes'); +define('LAN_ERROR_40', 'If the problem persists, please contact the site administrator'); +define('LAN_ERROR_41', 'The reported error is:'); +define('LAN_ERROR_42', 'Additional error information: '); +define('LAN_ERROR_43', 'Site unavailable temporarily'); +define('LAN_ERROR_44', 'Site logo'); ?> diff --git a/e107_themes/index.html b/e107_themes/index.html index e69de29bb..058781910 100644 --- a/e107_themes/index.html +++ b/e107_themes/index.html @@ -0,0 +1,47 @@ +\n"; +echo "\n"; +echo "\n"; +echo " +".LAN_ERROR_43." + + + +\n +\n +
"; +if (is_readable(e_IMAGE.'logo.png')) +{ + echo "".LAN_ERROR_44.""; +} +echo "
"; +echo LAN_ERROR_38.'
'; +echo LAN_ERROR_39.'
'; +echo LAN_ERROR_40.'


'; +echo "
"; +echo LAN_ERROR_41.'
'; +echo "CRITICAL_ERROR:
Line {$line} {$file}
+
".LAN_ERROR_42.$message."
\n"; +echo "
\n"; + +?>