diff --git a/logout.php b/logout.php index 938aa2533b..914636c933 100755 --- a/logout.php +++ b/logout.php @@ -24,6 +24,7 @@ $sep = $phpgw->common->filesystem_separator(); /* + if ($installed[cron_apps] != "Y") { $dh = opendir($phpgw_info["server"]["temp_dir"]); while ($dir = readdir($dh)) { diff --git a/setup/index.php b/setup/index.php new file mode 100644 index 0000000000..27d4d7faf4 --- /dev/null +++ b/setup/index.php @@ -0,0 +1,36 @@ + * + * -------------------------------------------- * + * This program is free software; you can redistribute it and/or modify it * + * under the terms of the GNU General Public License as published by the * + * Free Software Foundation; either version 2 of the License, or (at your * + * option) any later version. * + \**************************************************************************/ + + /* $Id $ */ + + $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "home", "noapi" => True); + include("../header.inc.php"); + include($phpgw_info["server"]["include_root"]."/globalconfig.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"); + } + + echo "db server: ".$phpgw_info["server"]["db_host"]; + + +?> \ No newline at end of file