From b73ee207d1b8ee085c0902c1803eeb19df9cd3b0 Mon Sep 17 00:00:00 2001 From: Tim Clark <eclipse@sucs,org> Date: Wed, 23 Sep 2009 16:56:15 +0000 Subject: [PATCH] ooops, shouldnt have checked in my hack --- htdocs/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/index.php b/htdocs/index.php index 0c1850e..231a10f 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 = ''; -- GitLab