summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--header.php29
1 files changed, 24 insertions, 5 deletions
diff --git a/header.php b/header.php
index 1a6a8f7..af379fb 100644
--- a/header.php
+++ b/header.php
@@ -1,12 +1,31 @@
<?
- ini_set('include_path', ini_get('include_path').":/home/steve/php/inc:/home/steve/svn/znurt");
+ $hostname = php_uname('n');
+ switch($hostname) {
- require_once "mdb2/charlie.portage.php";
- require_once 'class.common.php';
- require_once 'class.shell.php';
+ case 'charlie':
+
+ $include_path = ":/home/steve/php/inc:/home/steve/svn/znurt";
+ $mdb2 = "mdb2/charlie.portage.php";
+
+ break;
+
+ case 'rom':
+
+ $include_path = ":/home/steve/php/inc:/home/steve/svn/znurt";
+ $mdb2 = "mdb2/rom.portage.php";
+
+ break;
- $c = new Common();
+ }
+
+ if($include_path) {
+ ini_set('include_path', ini_get('include_path').$include_path);
+
+ require_once "mdb2/charlie.portage.php";
+ require_once 'class.common.php';
+ require_once 'class.shell.php';
+ }
$now = $db->getOne("SELECT NOW();");