extra check for MySQL even when in safe mode

This commit is contained in:
Michal Čihař
2003-01-08 14:17:54 +00:00
parent a25327580d
commit 1bb107dc8c
2 changed files with 10 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ $Source$
* libraries/url_generating.lib.php3, libraries/common.lib.php3: New URL
and hidden input generating stuff.
* almost all php3 files: Use new URL and hidden input generation stuff.
* libraries/common.lib.php3: Addded extra check for MySQL even when in
safe mode (could fix #661949).
2003-01-08 Alexander M. Turek <rabus@users.sourceforge.net>
* lang/english-*.inc.php3: Fixed a typo.

View File

@@ -223,6 +223,14 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
}
} // end load mysql extension
// check whether mysql is available
if (!@function_exists('mysql_connect')) {
echo $strCantLoadMySQL . '<br />' . "\n"
. '<a href="./Documentation.html#faqmysql" target="documentation">' . $GLOBALS['strDocu'] . '</a>' . "\n";
exit();
}
/**
* Add slashes before "'" and "\" characters so a value containing them can