summaryrefslogtreecommitdiff
blob: c3a75474a3d1683b1dd4d0d5839b9ad40230a8b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?

	$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 '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");
	
?>