Subversion Repositories ALCASAR

Rev

Rev 335 | Rev 355 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 335 Rev 353
Line 6... Line 6...
6
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
6
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
7
	$Langue		= explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
7
	$Langue		= explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
8
	$Language	= strtolower(substr(chop($Langue[0]),0,2)); }
8
	$Language	= strtolower(substr(chop($Langue[0]),0,2)); }
9
if($Language == 'fr'){
9
if($Language == 'fr'){
10
	$l_network_title	= "Configuration réseau";
10
	$l_network_title	= "Configuration réseau";
11
	$l_network_title1	= "Gestion de la configuration réseau";
11
	$l_process_title	= "État des services réseau pricipaux";
12
	$l_eth0_legend		= "Eth0 (Interface connectée à Internet)";
12
	$l_eth0_legend		= "Eth0 (Interface connectée à Internet)";
13
	$l_eth1_legend		= "Eth1 (Réseau de consultation)";
13
	$l_eth1_legend		= "Eth1 (Réseau de consultation)";
14
	$l_internet_legend	= "INTERNET";
14
	$l_internet_legend	= "INTERNET";
15
	$l_ip_adr		= "Adresse IP";
15
	$l_ip_adr		= "Adresse IP";
16
	$l_ip_mask		= "Masque";
16
	$l_ip_mask		= "Masque";
17
	$l_ip_router		= "Passerelle";
17
	$l_ip_router		= "Passerelle";
18
	$l_ip_public		= "Adresse IP public";
18
	$l_ip_public		= "Adresse IP public";
19
	$l_ip_dns1		= "DNS1";
19
	$l_ip_dns1		= "DNS1";
20
	$l_ip_dns2		= "DNS2";
20
	$l_ip_dns2		= "DNS2";
21
	$l_service_title 	= "Nom du services";
21
	$l_service_title 	= "Nom du service";
22
	$l_service_start 	= "Démarrer";
22
	$l_service_start 	= "Démarrer";
23
	$l_service_stop 	= "Arrêter";
23
	$l_service_stop 	= "Arrêter";
24
	$l_service_restart 	= "Redémarrer";
24
	$l_service_restart 	= "Redémarrer";
25
	$l_service_status 	= "Status";
25
	$l_service_status 	= "Status";
26
	$l_service_action 	= "Actions";
26
	$l_service_action 	= "Actions";
27
	$l_enable		= "actif";
27
	$l_enable		= "actif";
28
	$l_disable		= "inactif";
28
	$l_disable		= "inactif";
-
 
29
	$l_radiusd		= "Serveur d'authentification et d'autorisation";
-
 
30
	$l_chilli		= "Passerelle d'interception";
-
 
31
	$l_dansguardian		= "Filtre d'URL et de contenu WEB";
-
 
32
	$l_mysqld		= "Serveur de la base de données usager";
-
 
33
	$l_squid		= "Proxy Cache WEB";
-
 
34
	$l_dnsmasq		= "Serveur DNS et filtre de domaine";
-
 
35
	$l_httpd		= "Serveur WEB (Centre de Gestion d'ALCASAR)";
-
 
36
	$l_havp			= "Filtre antivirus WEB";
-
 
37
	$l_sshd			= "Accès sécurisée à distance";
29
} else {
38
} else {
30
	$l_network_title	= "Network configuration";
39
	$l_network_title	= "Network configuration";
31
	$l_network_title1	= "Network configuration managment";
40
	$l_process_title	= "Main network processes state";
32
	$l_eth0_legend		= "Eth0 (Internet connected interface)";
41
	$l_eth0_legend		= "Eth0 (Internet connected interface)";
33
	$l_eth1_legend		= "Eth1 (Private network)";
42
	$l_eth1_legend		= "Eth1 (Private network)";
34
	$l_internet_legend	= "INTERNET";
43
	$l_internet_legend	= "INTERNET";
35
	$l_ip_adr		= "IP Address";
44
	$l_ip_adr		= "IP Address";
36
	$l_ip_mask		= "Mask";
45
	$l_ip_mask		= "Mask";
37
	$l_ip_router		= "Router";
46
	$l_ip_router		= "Router";
38
	$l_ip_public		= "Public IP address";
47
	$l_ip_public		= "Public IP address";
39
	$l_ip_dns1		= "DNS1 :";
48
	$l_ip_dns1		= "DNS1 :";
40
	$l_ip_dns2		= "DNS2";
49
	$l_ip_dns2		= "DNS2";
41
	$l_service_title 	= "Name of service";
50
	$l_service_title 	= "Service name";
42
	$l_service_start 	= "Start";
51
	$l_service_start 	= "Start";
43
	$l_service_stop 	= "Stop";
52
	$l_service_stop 	= "Stop";
44
	$l_service_restart 	= "Restart";
53
	$l_service_restart 	= "Restart";
45
	$l_service_status 	= "Status";
54
	$l_service_status 	= "Status";
46
	$l_service_action 	= "Actions";
55
	$l_service_action 	= "Actions";
47
	$l_enable		= "enable";
56
	$l_enable		= "enable";
48
	$l_disable		= "disable";
57
	$l_disable		= "disable";
-
 
58
	$l_radiusd		= "Authentication and authorisation serveur";
-
 
59
	$l_chilli		= "Interception gateway";
-
 
60
	$l_dansguardian		= "URL and WEB content filter";
-
 
61
	$l_mysqld		= "User database server";
-
 
62
	$l_squid		= "Proxy Cache WEB";
-
 
63
	$l_dnsmasq		= "DNS and domain name filter";
-
 
64
	$l_httpd		= "WEB server (ALCASAR Control Center)";
-
 
65
	$l_havp			= "WEB antivirus filter";
-
 
66
	$l_sshd			= "Secure remote access";
49
}
67
}
50
 
68
 
51
/********************************************************************
69
/********************************************************************
52
*	CONSTANTES AVEC CHEMINS DES FICHIERS DE CONFIGURATION			*
70
*	CONSTANTES AVEC CHEMINS DES FICHIERS DE CONFIGURATION			*
53
*********************************************************************/
71
*********************************************************************/
Line 209... Line 227...
209
<title><?php echo $l_network_title; ?></title>
227
<title><?php echo $l_network_title; ?></title>
210
<link rel="stylesheet" href="/css/style.css" type="text/css">
228
<link rel="stylesheet" href="/css/style.css" type="text/css">
211
</head>
229
</head>
212
<body>
230
<body>
213
<table width="100%" border="0" cellspacing="0" cellpadding="0">
231
<table width="100%" border="0" cellspacing="0" cellpadding="0">
214
	<tr><th><?php echo $l_network_title1; ?></th></tr>
232
	<tr><th><?php echo $l_network_title; ?></th></tr>
215
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
233
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
216
</table>
234
</table>
217
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
235
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
218
	<tr><td valign="middle" align="left">
236
	<tr><td valign="middle" align="left">
219
	<fieldset>
237
	<fieldset>
Line 248... Line 266...
248
		<tr><td><?php echo $l_ip_mask." : </td><td>".$eth1["NETMASK"];?></td></tr>
266
		<tr><td><?php echo $l_ip_mask." : </td><td>".$eth1["NETMASK"];?></td></tr>
249
	</table>
267
	</table>
250
	</fieldset>
268
	</fieldset>
251
	</td></tr>
269
	</td></tr>
252
</table>
270
</table>
253
<table width="100%" border=0 cellspacing=0 cellpadding=0>
271
<table width="100%" border="0" cellspacing="0" cellpadding="0">
254
	<tr><th><?php echo $l_service_status;?></th><th><?php echo $l_service_title;?></th><th colspan="3"><?php echo $l_service_action;?></th></tr>
272
	<tr><th><?php echo $l_process_title; ?></th></tr>
255
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td><td><img src="/images/pix.gif" width="1" height="2"></td><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
273
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
256
</table>
274
</table>
257
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
275
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
-
 
276
	<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"><?php echo $l_service_title;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr>
258
	<TR align="center">
277
	<TR align="center">
259
<?php foreach( $serviceStatus as $serviceName => $statusOK ) { ?>
278
<?php foreach( $serviceStatus as $serviceName => $statusOK ) { ?>
260
<tr>
279
<tr>
261
	<?php if ($statusOK) { ?>
280
	<?php if ($statusOK) { ?>
262
    <td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
281
    <td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
263
    <td align="left"><?php echo $serviceName ;?> </td>
282
	<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
264
    <td width="80" align="center">---</td>
283
    <td width="80" align="center">---</td>
265
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=stop&service=$serviceName\"> $l_service_stop";?></a></td>
284
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=stop&service=$serviceName\"> $l_service_stop";?></a></td>
266
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=$serviceName\"> $l_service_restart";?></a></td>
285
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=$serviceName\"> $l_service_restart";?></a></td>
267
	<?php } else { ?>
286
	<?php } else { ?>
268
    <td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
287
    <td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
269
    <td><?php echo $serviceName ;?></td>
288
    <td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
270
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=$serviceName\"> $l_service_start";?></a></td>
289
    <td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=$serviceName\"> $l_service_start";?></a></td>
271
    <td width="80" align="center">---</td>
290
    <td width="80" align="center">---</td>
272
    <td width="80" align="center">---</td>
291
    <td width="80" align="center">---</td>
273
    <?php } ?>
292
    <?php } ?>
274
</tr>
293
</tr>
275
<?php } ?>
294
<?php } ?>
276
</td></tr></table>
295
</td></tr>
277
</table>
296
</table>
278
</body>
297
</body>
279
</html>
298
</html>