diff --git a/htdocs/index.php b/htdocs/index.php index 09800c2ec05eeb02a0aac12d6616b46e6a9993a7..231a10fa466ad9f14345b0e191fd0e75fed9ef54 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 -------------------------------------------------------- */