extra check for MySQL even when in safe mode
This commit is contained in:
@@ -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.
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user