html seite bei ausfall
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
-
marino
Hallo,
Wäre es nicht Sinnvoller in der /includes/functions.php das
gegen das
zu ersetzen und dann in der error.php was nettes zu basteln?
Man könnte so alle CRITICAL_ERROR Meldungen abfangen
Grüße
Rajiva
bin auch gerade am überlegen wie man das schön lösen kannitst hat geschrieben:Ist recht simpel.
In der db.php wird ja die Verbindung zur DB gemacht. Wenn das schiefgeht, leitest du per header("Location:http://..."); zu Deiner Ausfallseite um.
Wäre es nicht Sinnvoller in der /includes/functions.php das
Code: Alles auswählen
echo "<html>\n<body>\n" . $msg_title . "\n<br /><br />\n" . $msg_text . "</body>\n</html>";Code: Alles auswählen
include($phpbb_root_path . 'error.'.$phpEx);
// echo "<html>\n<body>\n" . $msg_title . "\n<br /><br />\n" . $msg_text . "</body>\n</html>";
Man könnte so alle CRITICAL_ERROR Meldungen abfangen
Grüße
Rajiva
so hab was gebastelt und sieht schon besser aus wie eine weiße Seite
hier ist meine error.php
die Änderungen in der includes/functions.php sind natürlich wie oben beschrieben auch durchzuführen
Liebe Grüße
Rajiva
hier ist meine error.php
Code: Alles auswählen
<?php
/***************************************************************************
* error.php
* -------------------
* begin : monday, Jun 6, 2005
* copyright : (C) 2005 Anand Rajiva
* Internet : http://www.rajiva.de
*
* $Id: error.php,v 1.000.0.00 2005/06/06 00:00:00 rajiva Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. DO NOT modify the copyright!
*
***************************************************************************/
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
$error_message = "What ever you like as message text ;-)";
$userdata['user_id'] = ANONYMOUS;
init_userprefs($userdata);
//
// Generate the header
//
$template->set_filenames(array('overall_header' => 'simple_header.tpl'));
$template->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'SITE_DESCRIPTION' => $board_config['site_desc'],
'PAGE_TITLE' => $msg_title,
'T_HEAD_STYLESHEET' => $theme['head_stylesheet'],
'T_BODY_BACKGROUND' => $theme['body_background'],
'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'],
'T_BODY_TEXT' => '#'.$theme['body_text'],
'T_BODY_LINK' => '#'.$theme['body_link'],
'T_BODY_VLINK' => '#'.$theme['body_vlink'],
'T_BODY_ALINK' => '#'.$theme['body_alink'],
'T_BODY_HLINK' => '#'.$theme['body_hlink'],
'T_TR_COLOR1' => '#'.$theme['tr_color1'],
'T_TR_COLOR2' => '#'.$theme['tr_color2'],
'T_TR_COLOR3' => '#'.$theme['tr_color3'],
'T_TR_CLASS1' => $theme['tr_class1'],
'T_TR_CLASS2' => $theme['tr_class2'],
'T_TR_CLASS3' => $theme['tr_class3'],
'T_TH_COLOR1' => '#'.$theme['th_color1'],
'T_TH_COLOR2' => '#'.$theme['th_color2'],
'T_TH_COLOR3' => '#'.$theme['th_color3'],
'T_TH_CLASS1' => $theme['th_class1'],
'T_TH_CLASS2' => $theme['th_class2'],
'T_TH_CLASS3' => $theme['th_class3'],
'T_TD_COLOR1' => '#'.$theme['td_color1'],
'T_TD_COLOR2' => '#'.$theme['td_color2'],
'T_TD_COLOR3' => '#'.$theme['td_color3'],
'T_TD_CLASS1' => $theme['td_class1'],
'T_TD_CLASS2' => $theme['td_class2'],
'T_TD_CLASS3' => $theme['td_class3'],
'T_FONTFACE1' => $theme['fontface1'],
'T_FONTFACE2' => $theme['fontface2'],
'T_FONTFACE3' => $theme['fontface3'],
'T_FONTSIZE1' => $theme['fontsize1'],
'T_FONTSIZE2' => $theme['fontsize2'],
'T_FONTSIZE3' => $theme['fontsize3'],
'T_FONTCOLOR1' => '#'.$theme['fontcolor1'],
'T_FONTCOLOR2' => '#'.$theme['fontcolor2'],
'T_FONTCOLOR3' => '#'.$theme['fontcolor3'],
'T_SPAN_CLASS1' => $theme['span_class1'],
'T_SPAN_CLASS2' => $theme['span_class2'],
'T_SPAN_CLASS3' => $theme['span_class3'])
);
$template->pparse('overall_header');
//
// Generate the error page
//
$template->set_filenames(array('body' => 'error_body.tpl'));
$your_msg_title = "Forum not available!";
$your_message_text = $error_message . "\n<br /><br /><br />\nErrorcode:<br />\n$msg_text";
$template->assign_vars(array(
'ERROR_TITLE' => $your_msg_title,
'ERROR_MESSAGE' => $your_message_text)
);
$template->pparse('body');
//
// Generate the footer
//
$template->set_filenames(array('overall_footer' => 'simple_footer.tpl'));
$template->assign_vars(array(
'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '',
'ADMIN_LINK' => '')
);
$template->pparse('overall_footer');
//
// what a nice error page :-))
//
exit;
?>
Liebe Grüße
Rajiva