diff --git a/setup/config.php b/setup/config.php index dd4a200976..c11f9b19f4 100644 --- a/setup/config.php +++ b/setup/config.php @@ -21,24 +21,6 @@ include("./inc/setup_auth.inc.php"); // Does not return unless user is authorized - /* Database setup */ - include($phpgw_info["server"]["api_dir"] . "/phpgw_db_".$phpgw_info["server"]["db_type"].".inc.php"); - - $db = new db; - if ($phpgw_info["multiable_domains"] != True){ - $db->Host = $phpgw_info["server"]["db_host"]; - $db->Type = $phpgw_info["server"]["db_type"]; - $db->Database = $phpgw_info["server"]["db_name"]; - $db->User = $phpgw_info["server"]["db_user"]; - $db->Password = $phpgw_info["server"]["db_pass"]; - }else{ - $db->Host = $phpgw_domain[$SetupDomain]["db_host"]; - $db->Type = $phpgw_domain[$SetupDomain]["db_type"]; - $db->Database = $phpgw_domain[$SetupDomain]["db_name"]; - $db->User = $phpgw_domain[$SetupDomain]["db_user"]; - $db->Password = $phpgw_domain[$SetupDomain]["db_pass"]; - } - if ($newsettings["auth_type"] != "ldap") { setup_header(); } diff --git a/setup/inc/setup_auth.inc.php b/setup/inc/setup_auth.inc.php index e2afdc1172..bd7b007eb1 100644 --- a/setup/inc/setup_auth.inc.php +++ b/setup/inc/setup_auth.inc.php @@ -27,10 +27,9 @@ function loginForm($err="") { - global $phpgw_info, $phpgw_domain, $SetupDomain, $SetupCookie, $FormDomain, $PHP_SELF; + global $phpgw_info, $phpgw_domain, $SetupDomain, $SetupPasswd, $PHP_SELF; - setup_header("Please login"); - + setup_header("Please login"); echo "
\n"; echo "\n"; @@ -54,43 +54,49 @@ echo " |