True, "nonavbar" => True, "currentapp" => "home", "noapi" => True); include("../header.inc.php"); $phpgw_info["server"]["api_dir"] = $phpgw_info["server"]["include_root"]."/phpgwapi"; // Authorize the user to use setup app 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 = $domains[$SetupDomain]["db_host"]; $db->Type = $domains[$SetupDomain]["db_type"]; $db->Database = $domains[$SetupDomain]["db_name"]; $db->User = $domains[$SetupDomain]["db_user"]; $db->Password = $domains[$SetupDomain]["db_pass"]; } if ($newsettings["auth_type"] != "ldap") { setup_header(); } if ($submit) { @$db->query("delete from config"); while ($newsetting = each($newsettings)) { if ($newsetting[0] == "nntp_server") { $db->query("select config_value FROM config WHERE config_name='nntp_server'"); if ($db->num_rows()) { $db->next_record(); if ($db->f("config_value") <> $newsetting[1]) { $db->query("DELETE FROM newsgroups"); $db->query("DELETE FROM users_newsgroups"); } } } $db->query("insert into config (config_name, config_value) values ('" . addslashes($newsetting[0]) . "','" . addslashes($newsetting[1]) . "')"); } if ($newsettings["auth_type"] == "ldap") { Header("Location: ldap.php"); exit; } else { echo "