| Versionen | |
|---|---|
| drupal6 – drupal7 | _db_error_page($error = '') |
Prints a themed maintenance page with the 'Site offline' text, adding the provided error message in the case of 'display_errors' set to on. Ends the page request; no return.
includes/
<?php
function _db_error_page($error = '') {
global $db_type;
drupal_init_language();
drupal_maintenance_theme();
drupal_set_header($_SERVER['SERVER_PROTOCOL'] . ' 503 Service Unavailable');
drupal_set_title('Site offline');
}
?>
Kommentare
Kommentar hinzufügen