diff options
-rw-r--r-- | header.php | 29 |
1 files changed, 24 insertions, 5 deletions
@@ -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();"); |