From cde733c079a3e4833be1c54626706d59dd8c92bf Mon Sep 17 00:00:00 2001 From: Denis Walker <dez@sucs.org> Date: Wed, 25 Mar 2009 19:09:43 +0000 Subject: [PATCH] Path fixes for the move to debsilver Database kludge to force use of "apache" username --- htdocs/index.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/htdocs/index.php b/htdocs/index.php index 09800c2..231a10f 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -28,8 +28,8 @@ require("../lib/error.php"); // Include the Smarty templating engine -define('SMARTY_DIR', '/usr/share/Smarty/'); -require("/usr/share/Smarty/Smarty.class.php"); +define('SMARTY_DIR', '/usr/share/php/smarty/libs/'); +require("/usr/share/php/smarty/libs/Smarty.class.php"); $smarty = new Smarty; $smarty->template_dir = $base."templates"; $smarty->compile_dir = $base."templates_c"; @@ -38,9 +38,9 @@ $smarty->plugins_dir[] = $base."plugins"; $smarty->assign("baseurl", $baseurl); // Initialise the database -require("/usr/share/adodb/adodb.inc.php"); +require("/usr/share/php/adodb/adodb.inc.php"); $DB = NewADOConnection('postgres8'); -$DB->Connect('dbname='.$dbname); +$DB->Connect('dbname='.$dbname.' user=apache'); $DB->SetFetchMode(ADODB_FETCH_ASSOC); // Include the session library @@ -61,7 +61,6 @@ $smarty->assign_by_ref("session", $session); // Should we display unexpected output from components? $compdebug = TRUE; - /* -------------------------------------------------------- Read Browser's settings -------------------------------------------------------- */ -- GitLab