diff --git a/htdocs/index.php b/htdocs/index.php index 0c1850e8f7871c6b1ee29ae12eb92f44884f356b..231a10fa466ad9f14345b0e191fd0e75fed9ef54 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -40,7 +40,7 @@ $smarty->assign("baseurl", $baseurl); // Initialise the database require("/usr/share/php/adodb/adodb.inc.php"); $DB = NewADOConnection('postgres8'); -$DB->Connect('dbname='.$dbname.' user=eclipse'); +$DB->Connect('dbname='.$dbname.' user=apache'); $DB->SetFetchMode(ADODB_FETCH_ASSOC); // Include the session library @@ -94,7 +94,7 @@ $smarty->assign("ssl_url", $ssl_url); // Determine which component to run -$pathlist = explode('/', parse_url(@$_SERVER['ORIG_PATH_INFO'],PHP_URL_PATH)); +$pathlist = explode('/', parse_url(@$_SERVER['PATH_INFO'],PHP_URL_PATH)); while (end($pathlist) === "") array_pop($pathlist); $smarty->assign_by_ref("pathlist", $pathlist); $path = '';