From 57c17e44eca4dfbd7ea2367e7b53101c9b0d0976 Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Mon, 11 Aug 2003 21:45:50 +0000 Subject: Taken out the $db var from acm classes for consistency with other classes git-svn-id: file:///svn/phpbb/trunk@4379 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/install/install.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'phpBB/install/install.php') diff --git a/phpBB/install/install.php b/phpBB/install/install.php index 1376210c07..c10554eccf 100644 --- a/phpBB/install/install.php +++ b/phpBB/install/install.php @@ -67,7 +67,7 @@ if (@file_exists($phpbb_root_path . 'config.'.$phpEx)) $stage = (isset($_POST['stage'])) ? intval($_POST['stage']) : 0; // These are all strings so we'll just traverse an array -$var_ary = array('language', 'dbms', 'dbhost', 'dbport', 'dbuser', 'dbpasswd', 'dbname', 'table_prefix', 'admin_name', 'admin_pass1', 'admin_pass2', 'board_email1', 'board_email2', 'server_name', 'server_port', 'script_path', 'img_imagick', 'ftp_path', 'ftp_user', 'ftp_pass'); +$var_ary = array('language', 'dbms', 'dbhost', 'dbport', 'dbuser', 'dbpasswd', 'dbname', 'table_prefix', 'admin_name', 'admin_pass1', 'admin_pass2', 'board_email1', 'board_email2', 'server_name', 'server_port', 'script_path', 'acm_type', 'img_imagick', 'ftp_path', 'ftp_user', 'ftp_pass'); foreach ($var_ary as $var) { @@ -767,6 +767,8 @@ if ($stage == 1) : + :
+ /> /> @@ -814,7 +816,7 @@ if ($stage == 2) $config_data .= "\$dbuser = '$dbuser';\n"; $config_data .= "\$dbpasswd = '$dbpasswd';\n\n"; $config_data .= "\$table_prefix = '$table_prefix';\n"; - $config_data .= "\$acm_type = 'file';\n"; + $config_data .= "\$acm_type = '" . ((!$acm_typefile) ? 'db' : '') . "';\n"; $config_data .= "\$load_extensions = '$load_extensions';\n\n"; $config_data .= "define('PHPBB_INSTALLED', true);\n"; $config_data .= "define('DEBUG', true);\n"; // Comment out when final @@ -1375,7 +1377,7 @@ function inst_language_select($default = '') function can_load_dll($dll) { global $suffix; - +return false; return ((@ini_get('enable_dl') || strtolower(@ini_get('enable_dl')) == 'on') && (!@ini_get('safe_mode') || strtolower(@ini_get('safe_mode')) == 'off') && @dl($dll . ".$suffix")) ? true : false; } -- cgit v1.2.1