summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'header.php')
-rw-r--r--header.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/header.php b/header.php
index 0e53d22..b43f114 100644
--- a/header.php
+++ b/header.php
@@ -30,6 +30,13 @@
$mdb2 = "mdb2/alan-one.portage.php";
break;
+
+ case 'dumont':
+
+ $include_path = ":/home/znurt/php/inc:/var/www/znurt.org/htdocs";
+ $mdb2 = "mdb2/dumont.portage.php";
+
+ break;
}
@@ -45,7 +52,7 @@
function importDiff($table, $arr_new, $where = "") {
- global $db;
+ $db =& MDB2::singleton();
if($where)
$where = "WHERE $where";
@@ -60,5 +67,10 @@
return($arr);
}
+
+ // This gets used everywhere, might as well create it here
+ // and check for it later.
+ require_once 'class.portage.tree.php';
+ $tree =& PortageTree::singleton();
?>