Skip to content
Snippets Groups Projects
Commit cde733c0 authored by Denis Walker's avatar Denis Walker
Browse files

Path fixes for the move to debsilver

Database kludge to force use of "apache" username
parent b07f854b
No related branches found
No related tags found
No related merge requests found
...@@ -28,8 +28,8 @@ require("../lib/error.php"); ...@@ -28,8 +28,8 @@ require("../lib/error.php");
// Include the Smarty templating engine // Include the Smarty templating engine
define('SMARTY_DIR', '/usr/share/Smarty/'); define('SMARTY_DIR', '/usr/share/php/smarty/libs/');
require("/usr/share/Smarty/Smarty.class.php"); require("/usr/share/php/smarty/libs/Smarty.class.php");
$smarty = new Smarty; $smarty = new Smarty;
$smarty->template_dir = $base."templates"; $smarty->template_dir = $base."templates";
$smarty->compile_dir = $base."templates_c"; $smarty->compile_dir = $base."templates_c";
...@@ -38,9 +38,9 @@ $smarty->plugins_dir[] = $base."plugins"; ...@@ -38,9 +38,9 @@ $smarty->plugins_dir[] = $base."plugins";
$smarty->assign("baseurl", $baseurl); $smarty->assign("baseurl", $baseurl);
// Initialise the database // Initialise the database
require("/usr/share/adodb/adodb.inc.php"); require("/usr/share/php/adodb/adodb.inc.php");
$DB = NewADOConnection('postgres8'); $DB = NewADOConnection('postgres8');
$DB->Connect('dbname='.$dbname); $DB->Connect('dbname='.$dbname.' user=apache');
$DB->SetFetchMode(ADODB_FETCH_ASSOC); $DB->SetFetchMode(ADODB_FETCH_ASSOC);
// Include the session library // Include the session library
...@@ -61,7 +61,6 @@ $smarty->assign_by_ref("session", $session); ...@@ -61,7 +61,6 @@ $smarty->assign_by_ref("session", $session);
// Should we display unexpected output from components? // Should we display unexpected output from components?
$compdebug = TRUE; $compdebug = TRUE;
/* -------------------------------------------------------- /* --------------------------------------------------------
Read Browser's settings Read Browser's settings
-------------------------------------------------------- */ -------------------------------------------------------- */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment