From e66e54abcb65287f68f06033432fd5387f225fea Mon Sep 17 00:00:00 2001 From: Steve Alberty Date: Wed, 27 Jun 2001 14:06:00 +0000 Subject: [PATCH] make dl safemode safety --- lib.inc.php3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.inc.php3 b/lib.inc.php3 index 88935989c..0c801ce0b 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -9,7 +9,7 @@ if(!defined("__LIB_INC__")){ // load the mysql extensions or not - staybyte - 26. June 2001 if (defined("PHP_OS") && eregi("win", PHP_OS)) $suffix=".dll"; else $suffix=".so"; - if (!extension_loaded("mysql")) @dl("mysql".$suffix); + if (!extension_loaded("mysql") && !get_cfg_var("safe_mode")) @dl("mysql".$suffix); if (!extension_loaded("mysql")){ echo $strCantLoadMySQL; exit;