Send headers before exiting because of missing MySQL extension.

This commit is contained in:
Alexander M. Turek
2003-07-08 08:52:29 +00:00
parent 8eb6e7456f
commit de0a62b761
2 changed files with 7 additions and 0 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-07-08 Alexander M. Turek <rabus@users.sourceforge.net>
* libraries/common.lib.php3: Send headers before exiting because of missing
MySQL extension.
2003-07-07 Alexander M. Turek <rabus@users.sourceforge.net>
* libraries/common.lib.php3, libraries/config_import.lib.php3: Backwards
compatibility.

View File

@@ -262,6 +262,9 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
// check whether mysql is available
if (!@function_exists('mysql_connect')) {
if (empty($is_header_sent)) {
include('./libraries/header_http.inc.php3');
}
echo $strCantLoadMySQL . '<br />' . "\n"
. '<a href="./Documentation.html#faqmysql" target="documentation">' . $GLOBALS['strDocu'] . '</a>' . "\n";
exit();