summaryrefslogtreecommitdiff
blob: 2252ddfc10ad408db4a96043a8d6e247e36092f2 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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");
	
?>