fixed problem with templates dir

This commit is contained in:
seek3r 2000-09-28 00:50:18 +00:00
parent d01218ad23
commit 317739dff5
2 changed files with 37 additions and 0 deletions

View File

@ -24,6 +24,7 @@
$sep = $phpgw->common->filesystem_separator(); $sep = $phpgw->common->filesystem_separator();
/* /*
if ($installed[cron_apps] != "Y") { if ($installed[cron_apps] != "Y") {
$dh = opendir($phpgw_info["server"]["temp_dir"]); $dh = opendir($phpgw_info["server"]["temp_dir"]);
while ($dir = readdir($dh)) { while ($dir = readdir($dh)) {

36
setup/index.php Normal file
View File

@ -0,0 +1,36 @@
<?
/**************************************************************************\
* phpGroupWare *
* http://www.phpgroupware.org *
* The file written by Joseph Engo <jengo@phpgroupware.org> *
* -------------------------------------------- *
* 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"];
?>