Subversion Repositories ALCASAR

Rev

Rev 861 | Rev 885 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 861 Rev 862
1
<?php
1
<?php
2
/* written by steweb57 & Rexy */
2
/* written by steweb57 & Rexy */
3
 
3
 
4
/********************
4
/********************
5
* TEST CONF FILES   *
5
* TEST CONF FILES   *
6
*********************/
6
*********************/
7
define ("ALCASAR_CHILLI", "/etc/chilli.conf");
7
define ("ALCASAR_CHILLI", "/etc/chilli.conf");
8
define ("CONF_FILE", "/usr/local/etc/alcasar.conf");
8
define ("CONF_FILE", "/usr/local/etc/alcasar.conf");
9
define ("ETHERS_FILE", "/usr/local/etc/alcasar-ethers");
9
define ("ETHERS_FILE", "/usr/local/etc/alcasar-ethers");
10
$conf_files=array(ALCASAR_CHILLI,CONF_FILE,ETHERS_FILE);
10
$conf_files=array(ALCASAR_CHILLI,CONF_FILE,ETHERS_FILE);
11
foreach ($conf_files as $file){
11
foreach ($conf_files as $file){
12
if (!file_exists($file)){
12
if (!file_exists($file)){
13
	exit("Requested file ".$file." isn't present");}
13
	exit("Requested file ".$file." isn't present");}
14
if (!is_readable($file)){
14
if (!is_readable($file)){
15
	exit("Can't read the file ".$file);}
15
	exit("Can't read the file ".$file);}
16
}
16
}
17
 
17
 
18
# Choice of language
18
# Choice of language
19
$Language = 'en';
19
$Language = 'en';
20
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
20
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
21
	$Langue		= explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
21
	$Langue		= explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
22
	$Language	= strtolower(substr(chop($Langue[0]),0,2)); }
22
	$Language	= strtolower(substr(chop($Langue[0]),0,2)); }
23
if($Language == 'fr'){
23
if($Language == 'fr'){
24
	$l_network_title	= "Configuration réseau";
24
	$l_network_title	= "Configuration réseau";
25
	$l_eth0_legend		= "Eth0 (Interface connectée à Internet)";
25
	$l_eth0_legend		= "Eth0 (Interface connectée à Internet)";
26
	$l_eth1_legend		= "Eth1 (Réseau de consultation)";
26
	$l_eth1_legend		= "Eth1 (Réseau de consultation)";
27
	$l_internet_legend	= "INTERNET";
27
	$l_internet_legend	= "INTERNET";
28
	$l_ip_adr		= "Adresse IP";
28
	$l_ip_adr		= "Adresse IP";
29
	$l_ip_mask		= "Masque";
29
	$l_ip_mask		= "Masque";
30
	$l_ip_router		= "Passerelle";
30
	$l_ip_router		= "Passerelle";
31
	$l_ip_public		= "Adresse IP publique";
31
	$l_ip_public		= "Adresse IP publique";
32
	$l_ip_dns1		= "DNS1";
32
	$l_ip_dns1		= "DNS1";
33
	$l_ip_dns2		= "DNS2";
33
	$l_ip_dns2		= "DNS2";
34
	$l_dhcp_title		= "Service DHCP";
34
	$l_dhcp_title		= "Service DHCP";
-
 
35
	$l_dhcp_state		= "Mode actuel";
-
 
36
	$l_dhcp_mode		= "Les différents modes sont les suivants :";
35
	$l_DHCP_full		= "DHCP complet";
37
	$l_DHCP_full		= "DHCP complet";
36
	$l_DHCP_half		= "Demi DHCP ";
38
	$l_DHCP_half		= "Demi DHCP ";
37
	$l_DHCP_off		= "Sans DHCP";
39
	$l_DHCP_off		= "Sans DHCP";
38
	$l_DHCP_full_explain	= "DHCP complet";
40
	$l_DHCP_full_explain	= "Tous les équipements sont en adressage dynamique. Des adresses statiques peuvent être réservées.";
39
	$l_DHCP_half_explain	= "Demi DHCP ";
41
	$l_DHCP_half_explain	= "La première moitié des équipements est en adressage statique, l'autre moitié en dynamique.";
40
	$l_DHCP_off_explain	= "Sans DHCP";
42
	$l_DHCP_off_explain	= "Tous les équipements sont en adressage statique. Le serveur DHCP est arrété.";
41
	$l_static_dhcp_title	= "Réservation d'adresses IP statiques";
43
	$l_static_dhcp_title	= "Réservation d'adresses IP statiques";
42
	$l_mac_address		= "Adresse MAC";
44
	$l_mac_address		= "Adresse MAC";
43
	$l_ip_address		= "Adresse IP";
45
	$l_ip_address		= "Adresse IP";
44
	$l_mac_del		= "Supprimer de la liste";
46
	$l_mac_del		= "Supprimer de la liste";
45
	$l_add_to_list		= "Ajouter";
47
	$l_add_to_list		= "Ajouter";
46
	$l_apply		= "Appliquer les changements";
48
	$l_apply		= "Appliquer les changements";
47
 
49
 
48
} else {
50
} else {
49
	$l_network_title	= "Network configuration";
51
	$l_network_title	= "Network configuration";
50
	$l_eth0_legend		= "Eth0 (Internet connected interface)";
52
	$l_eth0_legend		= "Eth0 (Internet connected interface)";
51
	$l_eth1_legend		= "Eth1 (Private network)";
53
	$l_eth1_legend		= "Eth1 (Private network)";
52
	$l_internet_legend	= "INTERNET";
54
	$l_internet_legend	= "INTERNET";
53
	$l_ip_adr		= "IP Address";
55
	$l_ip_adr		= "IP Address";
54
	$l_ip_mask		= "Mask";
56
	$l_ip_mask		= "Mask";
55
	$l_ip_router		= "Gateway";
57
	$l_ip_router		= "Gateway";
56
	$l_ip_public		= "Public IP address";
58
	$l_ip_public		= "Public IP address";
57
	$l_ip_dns1		= "DNS1 :";
59
	$l_ip_dns1		= "DNS1 :";
58
	$l_ip_dns2		= "DNS2";
60
	$l_ip_dns2		= "DNS2";
59
	$l_dhcp_title		= "DHCP service";
61
	$l_dhcp_title		= "DHCP service";
-
 
62
	$l_dhcp_state		= "Current mode";
-
 
63
	$l_dhcp_mode		= "The different modes are the following :";
60
	$l_DHCP_full		= "Full DHCP";
64
	$l_DHCP_full		= "Full DHCP";
61
	$l_DHCP_half		= "Half DHCP ";
65
	$l_DHCP_half		= "Half DHCP ";
62
	$l_DHCP_off		= "No DHCP";
66
	$l_DHCP_off		= "No DHCP";
63
	$l_DHCP_full_explain	= "Full DHCP";
67
	$l_DHCP_full_explain	= "All equipments are in DHCP mode. Some static addresses can be reserved.";
64
	$l_DHCP_half_explain	= "Half DHCP ";
68
	$l_DHCP_half_explain	= "The first half of equipments is in static mode, the other are in DHCP mode.";
65
	$l_DHCP_off_explain	= "No DHCP";
69
	$l_DHCP_off_explain	= "All equipments are in static mode. The DHCP server is off.";
66
	$l_static_dhcp_title	= "Static IP addresses reservation";
70
	$l_static_dhcp_title	= "Static IP addresses reservation";
67
	$l_mac_address		= "MAC Address";
71
	$l_mac_address		= "MAC Address";
68
	$l_ip_address		= "IP Address";
72
	$l_ip_address		= "IP Address";
69
	$l_mac_del		= "Delete from list";
73
	$l_mac_del		= "Delete from list";
70
	$l_add_to_list		= "Add";
74
	$l_add_to_list		= "Add";
71
	$l_apply		= "Apply changes";
75
	$l_apply		= "Apply changes";
72
}
76
}
73
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";}
77
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";}
74
switch ($choix)
78
switch ($choix)
75
{
79
{
76
case 'DHCP_Full' :
80
case 'DHCP_Full' :
77
	exec ("sudo /usr/local/sbin/alcasar-dhcp.sh -full");
81
	exec ("sudo /usr/local/sbin/alcasar-dhcp.sh -full");
78
	break;
82
	break;
79
case 'DHCP_Off' :
83
case 'DHCP_Off' :
80
	exec ("sudo /usr/local/sbin/alcasar-dhcp.sh -off");
84
	exec ("sudo /usr/local/sbin/alcasar-dhcp.sh -off");
81
	break;
85
	break;
82
case 'DHCP_Half' :
86
case 'DHCP_Half' :
83
	exec ("sudo /usr/local/sbin/alcasar-dhcp.sh -half");
87
	exec ("sudo /usr/local/sbin/alcasar-dhcp.sh -half");
84
	break;
88
	break;
85
case 'new_mac' :
89
case 'new_mac' :
86
	if ((trim($_POST['add_mac']) != "") and (trim($_POST['add_ip']) != ""))
90
	if ((trim($_POST['add_mac']) != "") and (trim($_POST['add_ip']) != ""))
87
		{
91
		{
88
		$tab=file(ETHERS_FILE);
92
		$tab=file(ETHERS_FILE);
89
		$insert="True";
93
		$insert="True";
90
		if ($tab)  # le fichier n'est pas vide
94
		if ($tab)  # le fichier n'est pas vide
91
			{
95
			{
92
			foreach ($tab as $line)  # verify that MAC or IP addresses doesn't exist
96
			foreach ($tab as $line)  # verify that MAC or IP addresses doesn't exist
93
				{
97
				{
94
				$field=explode(" ", $line);
98
				$field=explode(" ", $line);
95
				$mac_addr=trim($field[0]);$ip_addr=trim($field[1]);
99
				$mac_addr=trim($field[0]);$ip_addr=trim($field[1]);
96
				if (strcasecmp(trim($_POST['add_mac']),trim($mac_addr)) == 0)
100
				if (strcasecmp(trim($_POST['add_mac']),trim($mac_addr)) == 0)
97
					{
101
					{
98
					$insert="False";
102
					$insert="False";
99
					break;
103
					break;
100
					}
104
					}
101
				if (strcasecmp(trim($_POST['add_ip']), trim($ip_addr)) == 0)
105
				if (strcasecmp(trim($_POST['add_ip']), trim($ip_addr)) == 0)
102
					{
106
					{
103
					$insert="False";
107
					$insert="False";
104
					break;
108
					break;
105
					}
109
					}
106
				}
110
				}
107
			}
111
			}
108
		if ($insert == "True") 
112
		if ($insert == "True") 
109
			{
113
			{
110
			$line = trim($_POST['add_mac']) . " " . trim($_POST['add_ip']) . "\n";
114
			$line = trim($_POST['add_mac']) . " " . trim($_POST['add_ip']) . "\n";
111
			$pointeur=fopen(ETHERS_FILE,"a");
115
			$pointeur=fopen(ETHERS_FILE,"a");
112
			fwrite ($pointeur, $line);
116
			fwrite ($pointeur, $line);
113
			fclose ($pointeur);
117
			fclose ($pointeur);
114
			exec ("sudo service chilli restart");
118
			exec ("sudo service chilli restart");
115
			}
119
			}
116
		}
120
		}
117
	break;
121
	break;
118
case 'del_mac' :
122
case 'del_mac' :
119
	$tab=file(ETHERS_FILE);
123
	$tab=file(ETHERS_FILE);
120
	if ($tab)
124
	if ($tab)
121
		{
125
		{
122
		$pointeur=fopen(ETHERS_FILE,"w+");
126
		$pointeur=fopen(ETHERS_FILE,"w+");
123
		foreach ($tab as $line)
127
		foreach ($tab as $line)
124
			{
128
			{
125
			$field=explode(" ", $line);
129
			$field=explode(" ", $line);
126
			$mac_addr=trim($field[0]);
130
			$mac_addr=trim($field[0]);
127
			$remove_line = False;
131
			$remove_line = False;
128
			foreach ($_POST as $key => $value)
132
			foreach ($_POST as $key => $value)
129
				{
133
				{
130
				if ($mac_addr == $key)
134
				if ($mac_addr == $key)
131
			       		{
135
			       		{
132
					$remove_line = True;
136
					$remove_line = True;
133
					break;
137
					break;
134
					}
138
					}
135
				}
139
				}
136
			if (! $remove_line) {fwrite($pointeur,$line);}
140
			if (! $remove_line) {fwrite($pointeur,$line);}
137
			}
141
			}
138
		fclose($pointeur);
142
		fclose($pointeur);
139
		# exec ("sudo service chilli restart");
143
		# exec ("sudo service chilli restart");
140
		}
144
		}
141
	break;
145
	break;
142
}
146
}
143
 
147
 
144
// Fonction de test de connectivité internet
148
// Fonction de test de connectivité internet
145
function internetTest(){
149
function internetTest(){
146
	$host = "www.google.fr"; # Google Test
150
	$host = "www.google.fr"; # Google Test
147
	$port = "80";
151
	$port = "80";
148
	//var $num;	//non utilisé
152
	//var $num;	//non utilisé
149
	//var $error;	//non utilisé
153
	//var $error;	//non utilisé
150
	
154
	
151
	if (! $sock = @fsockopen($host, $port, $num, $error, 5)) {
155
	if (! $sock = @fsockopen($host, $port, $num, $error, 5)) {
152
		return false;
156
		return false;
153
	} else {
157
	} else {
154
		fclose($sock);
158
		fclose($sock);
155
		return true;
159
		return true;
156
	}
160
	}
157
}
161
}
158
/********************************************************
162
/********************************************************
159
*		Lecture du fichier ALCASAR_CHILLI	*
163
*		Lecture du fichier ALCASAR_CHILLI	*
160
*********************************************************/
164
*********************************************************/
161
$ouvre=fopen(ALCASAR_CHILLI,"r");
165
$ouvre=fopen(ALCASAR_CHILLI,"r");
162
if ($ouvre){
166
if ($ouvre){
163
	while (!feof ($ouvre))
167
	while (!feof ($ouvre))
164
	{
168
	{
165
		$tampon = fgets($ouvre, 4096);
169
		$tampon = fgets($ouvre, 4096);
166
		if (strpos($tampon,"=")!==false){
170
		if (strpos($tampon,"=")!==false){
167
			$tmp = explode("=",$tampon);
171
			$tmp = explode("=",$tampon);
168
			$chilli[$tmp[0]] = $tmp[1];
172
			$chilli[$tmp[0]] = $tmp[1];
169
		}
173
		}
170
	}
174
	}
171
}else{
175
}else{
172
	exit("Erreur d'ouverture du fichier ".ALCASAR_CHILLI);
176
	exit("Erreur d'ouverture du fichier ".ALCASAR_CHILLI);
173
}
177
}
174
fclose($ouvre);
178
fclose($ouvre);
175
 
179
 
176
/***********************************
180
/***********************************
177
*	Read ALCASAR_CONF_FILE     *
181
*	Read ALCASAR_CONF_FILE     *
178
************************************/
182
************************************/
179
$ouvre=fopen(CONF_FILE,"r");
183
$ouvre=fopen(CONF_FILE,"r");
180
if ($ouvre){
184
if ($ouvre){
181
	while (!feof ($ouvre))
185
	while (!feof ($ouvre))
182
	{
186
	{
183
		$tampon = fgets($ouvre, 4096);
187
		$tampon = fgets($ouvre, 4096);
184
		if (strpos($tampon,"=")!==false){
188
		if (strpos($tampon,"=")!==false){
185
			$tmp = explode("=",$tampon);
189
			$tmp = explode("=",$tampon);
186
			$conf[$tmp[0]] = $tmp[1];
190
			$conf[$tmp[0]] = $tmp[1];
187
		}
191
		}
188
	}
192
	}
189
}else{
193
}else{
190
	exit("Erreur d'ouverture du fichier ".CONF_FILE);
194
	exit("Erreur d'ouverture du fichier ".CONF_FILE);
191
}
195
}
192
fclose($ouvre);
196
fclose($ouvre);
193
 
197
 
194
/************************
198
/************************
195
*	TO DO		*
199
*	TO DO		*
196
*************************/
200
*************************/
197
//modification de la conf réseau  --> V3.0
201
//modification de la conf réseau  --> V3.0
198
 
202
 
199
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
203
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
200
<html><!-- written by steweb57 & rexy -->
204
<html><!-- written by steweb57 & rexy -->
201
<head>
205
<head>
202
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
206
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
203
<title><?php echo $l_network_title; ?></title>
207
<title><?php echo $l_network_title; ?></title>
204
<link rel="stylesheet" href="/css/style.css" type="text/css">
208
<link rel="stylesheet" href="/css/style.css" type="text/css">
205
</head>
209
</head>
206
<body>
210
<body>
207
<table width="100%" border="0" cellspacing="0" cellpadding="0">
211
<table width="100%" border="0" cellspacing="0" cellpadding="0">
208
	<tr><th><?php echo $l_network_title; ?></th></tr>
212
	<tr><th><?php echo $l_network_title; ?></th></tr>
209
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
213
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
210
</table>
214
</table>
211
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
215
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
212
	<tr><td valign="middle" align="left">
216
	<tr><td valign="middle" align="left">
213
	<fieldset>
217
	<fieldset>
214
	<legend><?php echo $l_internet_legend;
218
	<legend><?php echo $l_internet_legend;
215
 	if (InternetTest()){
219
 	if (InternetTest()){
216
		echo " <img src='/images/state_ok.gif'>";
220
		echo " <img src='/images/state_ok.gif'>";
217
		$IP_PUB = exec ("wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1");}
221
		$IP_PUB = exec ("wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1");}
218
	else 	{
222
	else 	{
219
		echo " <img src='/images/state_error.gif'>";
223
		echo " <img src='/images/state_error.gif'>";
220
		$IP_PUB = "-.-.-.-";}
224
		$IP_PUB = "-.-.-.-";}
221
	?></legend>
225
	?></legend>
222
	<table>
226
	<table>
223
		<tr><td><?php echo $l_ip_public." : </td><td>".$IP_PUB;?></td></tr>
227
		<tr><td><?php echo $l_ip_public." : </td><td>".$IP_PUB;?></td></tr>
224
		<tr><td><?php echo $l_ip_dns1." : </td><td>".$conf["DNS1"];?></td></tr>
228
		<tr><td><?php echo $l_ip_dns1." : </td><td>".$conf["DNS1"];?></td></tr>
225
		<tr><td><?php echo $l_ip_dns2." : </td><td>".$conf["DNS2"];?></td></tr>
229
		<tr><td><?php echo $l_ip_dns2." : </td><td>".$conf["DNS2"];?></td></tr>
226
	</table>
230
	</table>
227
	</fieldset>
231
	</fieldset>
228
	</td><td>
232
	</td><td>
229
	<fieldset>
233
	<fieldset>
230
	<legend><?php echo $l_eth0_legend; ?></legend>
234
	<legend><?php echo $l_eth0_legend; ?></legend>
231
	<table>
235
	<table>
232
		<tr><td><?php echo $l_ip_adr." : </td><td>".$conf["PUBLIC_IP"];?></td></tr>
236
		<tr><td><?php echo $l_ip_adr." : </td><td>".$conf["PUBLIC_IP"];?></td></tr>
233
		<tr><td><?php echo $l_ip_router." : </td><td>".$conf["GW"];?></td></tr>
237
		<tr><td><?php echo $l_ip_router." : </td><td>".$conf["GW"];?></td></tr>
234
	</table>
238
	</table>
235
	</fieldset>
239
	</fieldset>
236
	</td><td>
240
	</td><td>
237
	<fieldset>
241
	<fieldset>
238
	<legend><?php echo $l_eth1_legend; ?></legend>
242
	<legend><?php echo $l_eth1_legend; ?></legend>
239
	<table>
243
	<table>
240
		<tr><td><?php echo $l_ip_adr." : </td><td>".$conf["PRIVATE_IP"];?></td></tr>
244
		<tr><td><?php echo $l_ip_adr." : </td><td>".$conf["PRIVATE_IP"];?></td></tr>
241
	</table>
245
	</table>
242
	</fieldset>
246
	</fieldset>
243
	</td></tr>
247
	</td></tr>
244
</table>
248
</table>
245
<table width="100%" border="0" cellspacing="0" cellpadding="0">
249
<table width="100%" border="0" cellspacing="0" cellpadding="0">
246
	<tr><th><?php echo $l_dhcp_title;?></th></tr>
250
	<tr><th><?php echo $l_dhcp_title;?></th></tr>
247
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
251
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
248
</table>
252
</table>
249
<table width="100%" border=1 cellspacing=0 cellpadding=0>
253
<table width="100%" border=1 cellspacing=0 cellpadding=0>
250
<tr><td valign="middle" align="left">
254
<tr><td valign="middle" align="left">
251
<?
255
<?
252
$dhcp_state=trim($conf["DHCP"]);
256
$dhcp_state=trim($conf["DHCP"]);
253
echo "<CENTER><H3>${"l_DHCP_".$dhcp_state}</H3></CENTER>";
257
echo "<CENTER><H3>$l_dhcp_state : ${"l_DHCP_".$dhcp_state}</H3></CENTER>";
254
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
258
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
255
echo "<select name='choix'>";
259
echo "<select name='choix'>";
256
echo "<option value=\"DHCP_Off\" ";if (!strcmp($dhcp_state,"off")) echo "selected";echo ">$l_DHCP_off";
260
echo "<option value=\"DHCP_Off\" ";if (!strcmp($dhcp_state,"off")) echo "selected";echo ">$l_DHCP_off";
257
echo "<option value=\"DHCP_Half\" ";if (!strcmp($dhcp_state,"half")) echo "selected";echo ">$l_DHCP_half";
261
echo "<option value=\"DHCP_Half\" ";if (!strcmp($dhcp_state,"half")) echo "selected";echo ">$l_DHCP_half";
258
echo "<option value=\"DHCP_Full\" ";if (!strcmp($dhcp_state,"full")) echo "selected";echo ">$l_DHCP_full";
262
echo "<option value=\"DHCP_Full\" ";if (!strcmp($dhcp_state,"full")) echo "selected";echo ">$l_DHCP_full";
259
echo "</select>";
263
echo "</select>";
260
echo "<input type=submit value='$l_apply'>";
264
echo "<input type=submit value='$l_apply'>";
261
echo "<td align='center'>";
265
echo "<td valign='middle' align='left'><center><H3>$l_dhcp_mode</h3></center>";
262
echo "$l_DHCP_off : $l_DHCP_off_explain<br>$l_DHCP_half : $l_DHCP_half_explain<br>$l_DHCP_full : $l_DHCP_full_explain";
266
echo "$l_DHCP_off : $l_DHCP_off_explain<br>$l_DHCP_half : $l_DHCP_half_explain<br>$l_DHCP_full : $l_DHCP_full_explain";
263
echo "</td>";
267
echo "</td>";
264
echo "</FORM>";
268
echo "</FORM>";
265
echo "</td></tr>";
269
echo "</td></tr>";
266
if (strncmp($conf["DHCP"],"full",2) == 0) { require ('network2.php');}
270
if (strncmp($conf["DHCP"],"full",2) == 0) { require ('network2.php');}
267
else { echo "</TABLE>"; }
271
else { echo "</TABLE>"; }
268
?>
272
?>
269
</body>
273
</body>
270
</html>
274
</html>
271
 
275