True, "nonavbar" => True, "currentapp" => "home", "noapi" => True); include("../header.inc.php"); $phpgw_info["server"]["api_dir"] = $phpgw_info["server"]["include_root"]."/phpgwapi"; /* Database setup */ switch($phpgw_info["server"]["db_type"]){ case "postgresql": include($phpgw_info["server"]["api_dir"] . "/phpgw_db_pgsql.inc.php"); break; case "oracle": include($phpgw_info["server"]["api_dir"] . "/phpgw_db_oracle.inc.php"); break; default: include($phpgw_info["server"]["api_dir"] . "/phpgw_db_mysql.inc.php"); } $db = new db; $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"]; $db->query("select * from config"); while ($db->next_record()) { $current_config[$db->f("config_name")] = $db->f("config_value"); } ?>