From ecc9022346b026e93c918a60490498b032d220a5 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 20 Aug 2005 13:23:35 +0000 Subject: [PATCH] patch #1258978, move common code for error pages out of common.lib.php --- ChangeLog | 4 +++ error.php | 61 ++++++++++++++++++++++++++++++++ libraries/common.lib.php | 75 +++++++++------------------------------- 3 files changed, 82 insertions(+), 58 deletions(-) create mode 100644 error.php diff --git a/ChangeLog b/ChangeLog index 4d2cd2b1d..47f7c590f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,10 @@ $Id$ $Source$ 2005-08-20 Marc Delisle + * libraries/common.lib.php, new error.php: patch #1258978, move common + code for error pages out of common.lib.php, thanks to Sebastian Mendel + +2005-08-19 Marc Delisle * lang/chinese_traditional: Updates, thanks to Siu Sun. * lang/japanese: updated, thanks to Tadashi Jokagi (elf2000) diff --git a/error.php b/error.php new file mode 100644 index 000000000..d2f763083 --- /dev/null +++ b/error.php @@ -0,0 +1,61 @@ + + + + + phpMyAdmin + + + + +

phpMyAdmin -

+

+ + diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 89704e830..403a7c444 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -96,37 +96,17 @@ if ($result === FALSE || (!isset($cfgServers) && !isset($cfg['Servers']))) { 'AllowAnywhereRecoding' => FALSE); // Loads the language file require_once('./libraries/select_lang.lib.php'); - // Sends the Content-Type header - header('Content-Type: text/html; charset=' . $charset); // Displays the error message - ?> - - - - -phpMyAdmin - - - - - - - -

phpMyAdmin -

-

-

- -

- - - -
' + . '' . $cfgfile_to_load . '' ) + ); exit(); } error_reporting($old_error_reporting); @@ -1074,35 +1054,14 @@ if ($is_minimum_common == FALSE) { } else if (!empty($_SERVER['SERVER_NAME'])) { $url['host'] = $_SERVER['SERVER_NAME']; } else { - header('Content-Type: text/html; charset=' . $charset); // Displays the error message - ?> - - - - -phpMyAdmin - - - - - - - -

phpMyAdmin -

-

-

-

- - - -