From eb2a476f878b6cc7295eea632efd068025061c21 Mon Sep 17 00:00:00 2001 From: jengo Date: Fri, 17 Nov 2000 13:35:01 +0000 Subject: [PATCH] Fixed parse error --- setup/config.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/setup/config.php b/setup/config.php index 16a1061a7c..a6dfe397f8 100644 --- a/setup/config.php +++ b/setup/config.php @@ -20,9 +20,7 @@ // Authorize the user to use setup app include("./inc/setup_auth.inc.php"); // Does not return unless user is authorized - echo "phpGroupWare Setup\n"; - echo "\n"; - + /* Database setup */ include($phpgw_info["server"]["api_dir"] . "/phpgw_db_".$phpgw_info["server"]["db_type"].".inc.php"); @@ -33,9 +31,11 @@ $db->User = $phpgw_info["server"]["db_user"]; $db->Password = $phpgw_info["server"]["db_pass"]; - echo "phpGroupWare - setup"; - echo ''; - echo "
phpGroupWare version " . $phpgw_info["server"]["version"] . " setup

"; + if ($newsettings["auth_type"] != "ldap") { + echo "phpGroupWare - setup"; + echo ''; + echo "

phpGroupWare version " . $phpgw_info["server"]["version"] . " setup

"; + } if ($submit) { @$db->query("delete from config"); @@ -53,7 +53,7 @@ $db->query("insert into config (config_name, config_value) values ('" . addslashes($newsetting[0]) . "','" . addslashes($newsetting[1]) . "')"); } - if ($newsettings["authtype"] == "ldap") { + if ($newsettings["auth_type"] == "ldap") { Header("Location: ldap.php"); exit; } else {