summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2010-02-11 20:17:46 -0700
committerSteve Dibb <beandog@gentoo.org>2010-02-11 20:17:46 -0700
commit32a7a5f8d8b36ae6acb6e566ff3d371b7a145c4b (patch)
treef9b8efa8def14998bc8f7a4fed123cc34c98f8db /inc.gentoo.php
parentZero (diff)
downloadznurt-org-frontend-32a7a5f8d8b36ae6acb6e566ff3d371b7a145c4b.tar.gz
znurt-org-frontend-32a7a5f8d8b36ae6acb6e566ff3d371b7a145c4b.tar.bz2
znurt-org-frontend-32a7a5f8d8b36ae6acb6e566ff3d371b7a145c4b.zip
initial commit
Diffstat (limited to 'inc.gentoo.php')
-rw-r--r--inc.gentoo.php75
1 files changed, 75 insertions, 0 deletions
diff --git a/inc.gentoo.php b/inc.gentoo.php
new file mode 100644
index 0000000..2252ddf
--- /dev/null
+++ b/inc.gentoo.php
@@ -0,0 +1,75 @@
+<?
+
+ $hostname = php_uname('n');
+
+ switch($hostname) {
+
+ case 'charlie':
+
+ $znurt = false;
+ $include_path = ":/home/steve/php/inc:/home/steve/svn/portage";
+ $mdb2 = "mdb2/charlie.portage.php";
+
+ $base_uri = "/~steve/sp/gentoo/znurt/";
+ $base_url = "http://localhost".$base_uri;
+
+ break;
+
+ case 'rom':
+
+ $znurt = false;
+ $include_path = ":/home/steve/php/inc:/home/steve/svn/portage";
+ $mdb2 = "mdb2/rom.portage.php";
+
+ $base_uri = "/";
+ $base_url = "http://znurt.org".$base_uri;
+
+ break;
+
+ case 'tenforward':
+
+ $znurt = true;
+ $include_path = ":/var/www/znurt.org/inc:/var/www/znurt.org/portage";
+ $mdb2 = "mdb2/tenforward.portage.php";
+
+ $base_uri = "/";
+ $base_url = "http://znurt.org".$base_uri;
+
+ break;
+
+ case 'alan-one':
+
+ $znurt = true;
+ $include_path = ":/var/www/znurt.org/inc:/var/www/znurt.org/portage";
+ $mdb2 = "mdb2/alan-one.portage.php";
+
+ $base_uri = "/";
+ $base_url = "http://znurt.org".$base_uri;
+
+ break;
+
+ case 'dumont':
+
+ $znurt = true;
+ $include_path = ":/home/znurt/php/inc:/var/znurt";
+ $mdb2 = "mdb2/dumont.portage.php";
+
+ $base_uri = "/";
+ $base_url = "http://znurt.org".$base_uri;
+
+ break;
+
+ }
+
+
+ if($include_path) {
+ ini_set('include_path', ini_get('include_path').$include_path);
+
+ require_once $mdb2;
+ require_once 'class.common.php';
+ require_once 'class.shell.php';
+ }
+
+ ini_set('include_path', ini_get('include_path').":/home/steve/php/inc:/home/steve/svn/portage");
+
+?> \ No newline at end of file