Line 7... |
Line 7... |
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_services_title = "Configuration des services";
|
10 |
$l_services_title = "Configuration des services";
|
11 |
$l_main_services = "Services principaux";
|
11 |
$l_main_services = "Services principaux";
|
- |
|
12 |
$l_secondary_services = "Services secondaires";
|
12 |
$l_filter_services = "Services de filtrage";
|
13 |
$l_filter_services = "Services de filtrage";
|
13 |
$l_opt_services = "Services optionnels";
|
14 |
$l_opt_services = "Services optionnels";
|
14 |
$l_service_title = "Rôle du service";
|
15 |
$l_service_role = "Rôle";
|
15 |
$l_service_start = "Démarrer";
|
16 |
$l_service_start = "Démarrer";
|
16 |
$l_service_stop = "Arréter";
|
17 |
$l_service_stop = "Arréter";
|
17 |
$l_service_restart = "Redémarrer";
|
18 |
$l_service_restart = "Redémarrer";
|
18 |
$l_service_status = "Status";
|
19 |
$l_service_status = "Status";
|
19 |
$l_service_status_img_ok= "Démarré";
|
20 |
$l_service_status_img_ok= "Démarré";
|
Line 27... |
Line 28... |
27 |
$l_sshd = "Accès sécurisée distant";
|
28 |
$l_sshd = "Accès sécurisée distant";
|
28 |
$l_ntpd = "Service de mise à l'heure réseau";
|
29 |
$l_ntpd = "Service de mise à l'heure réseau";
|
29 |
$l_postfix = "Service de messagerie";
|
30 |
$l_postfix = "Service de messagerie";
|
30 |
$l_fail2ban = "Détecteur d'intrusion";
|
31 |
$l_fail2ban = "Détecteur d'intrusion";
|
31 |
$l_nfcapd = "Collecteur de flux NetFlow";
|
32 |
$l_nfcapd = "Collecteur de flux NetFlow";
|
32 |
$l_nfsen = "Grapheur de flux réseau";
|
33 |
$l_nfsen_ng = "Grapheur de flux réseau";
|
33 |
$l_vnstat = "Statistiques de flux réseau";
|
34 |
$l_vnstat = "Statistiques de flux réseau";
|
34 |
$l_unbound = "Serveur DNS principal";
|
35 |
$l_unbound = "Serveur DNS principal";
|
35 |
$l_unbound_blacklist = "Serveur DNS pour la Blacklist";
|
36 |
$l_unbound_blacklist = "Serveur DNS pour la Blacklist";
|
36 |
$l_unbound_whitelist = "Serveur DNS pour la Whitelist";
|
37 |
$l_unbound_whitelist = "Serveur DNS pour la Whitelist";
|
37 |
$l_unbound_blackhole = "Serveur DNS 'trou noir'";
|
38 |
$l_unbound_blackhole = "Serveur DNS 'trou noir'";
|
Line 44... |
Line 45... |
44 |
$l_halt = "Arréter le système";
|
45 |
$l_halt = "Arréter le système";
|
45 |
$l_reboot = "Relancer le système";
|
46 |
$l_reboot = "Relancer le système";
|
46 |
} else if($Language == 'es') {
|
47 |
} else if($Language == 'es') {
|
47 |
$l_services_title = "Configuración de Servicios";
|
48 |
$l_services_title = "Configuración de Servicios";
|
48 |
$l_main_services = "Servicios Principales";
|
49 |
$l_main_services = "Servicios Principales";
|
- |
|
50 |
$l_secondary_services = "Servicios secundarios";
|
49 |
$l_filter_services = "Servicios de Filtrado";
|
51 |
$l_filter_services = "Servicios de Filtrado";
|
50 |
$l_opt_services = "Servicios Opcionales";
|
52 |
$l_opt_services = "Servicios Opcionales";
|
51 |
$l_service_title = "función del servicio";
|
53 |
$l_service_role = "función del servicio";
|
52 |
$l_service_start = "Iniciar";
|
54 |
$l_service_start = "Iniciar";
|
53 |
$l_service_stop = "Detener";
|
55 |
$l_service_stop = "Detener";
|
54 |
$l_service_restart = "Reiniciar";
|
56 |
$l_service_restart = "Reiniciar";
|
55 |
$l_service_status = "Estado";
|
57 |
$l_service_status = "Estado";
|
56 |
$l_service_status_img_ok= "Corriendo";
|
58 |
$l_service_status_img_ok= "Corriendo";
|
Line 64... |
Line 66... |
64 |
$l_sshd = "Servidor Seguro Acceso Remoto";
|
66 |
$l_sshd = "Servidor Seguro Acceso Remoto";
|
65 |
$l_ntpd = "Servidor de hora";
|
67 |
$l_ntpd = "Servidor de hora";
|
66 |
$l_postfix = "Servicio de correo electrónico";
|
68 |
$l_postfix = "Servicio de correo electrónico";
|
67 |
$l_fail2ban = "Sistema de Detección de Intrusos";
|
69 |
$l_fail2ban = "Sistema de Detección de Intrusos";
|
68 |
$l_nfcapd = "Colector de flujo NetFlow";
|
70 |
$l_nfcapd = "Colector de flujo NetFlow";
|
69 |
$l_nfsen = "Graficador de tráfico de red";
|
71 |
$l_nfsen_ng = "Graficador de tráfico de red";
|
70 |
$l_vnstat = "Estadísticas de flujo de red";
|
72 |
$l_vnstat = "Estadísticas de flujo de red";
|
71 |
$l_unbound = "Servidor DNS principal ";
|
73 |
$l_unbound = "Servidor DNS principal ";
|
72 |
$l_unbound_blacklist = "Servidor DNS de Lista Negra";
|
74 |
$l_unbound_blacklist = "Servidor DNS de Lista Negra";
|
73 |
$l_unbound_whitelist = "Servidor DNS de Lista Blanca";
|
75 |
$l_unbound_whitelist = "Servidor DNS de Lista Blanca";
|
74 |
$l_unbound_blackhole = "Agujero negro DNS";
|
76 |
$l_unbound_blackhole = "Agujero negro DNS";
|
Line 81... |
Line 83... |
81 |
$l_halt = "Apagar el sistema";
|
83 |
$l_halt = "Apagar el sistema";
|
82 |
$l_reboot = "Reiniciar el sistema";
|
84 |
$l_reboot = "Reiniciar el sistema";
|
83 |
} else {
|
85 |
} else {
|
84 |
$l_services_title = "Services configuration";
|
86 |
$l_services_title = "Services configuration";
|
85 |
$l_main_services = "Main services";
|
87 |
$l_main_services = "Main services";
|
- |
|
88 |
$l_secondary_services = "Secondary services";
|
86 |
$l_filter_services = "Filtering services";
|
89 |
$l_filter_services = "Filtering services";
|
87 |
$l_opt_services = "Optional services";
|
90 |
$l_opt_services = "Optional services";
|
88 |
$l_service_title = "Role of the service";
|
91 |
$l_service_role = "Role of the service";
|
89 |
$l_service_start = "Start";
|
92 |
$l_service_start = "Start";
|
90 |
$l_service_stop = "Stop";
|
93 |
$l_service_stop = "Stop";
|
91 |
$l_service_restart = "Restart";
|
94 |
$l_service_restart = "Restart";
|
92 |
$l_service_status = "Status";
|
95 |
$l_service_status = "Status";
|
93 |
$l_service_status_img_ok= "Running";
|
96 |
$l_service_status_img_ok= "Running";
|
Line 101... |
Line 104... |
101 |
$l_sshd = "Secure remote access";
|
104 |
$l_sshd = "Secure remote access";
|
102 |
$l_ntpd = "Network time server";
|
105 |
$l_ntpd = "Network time server";
|
103 |
$l_postfix = "E-mail service";
|
106 |
$l_postfix = "E-mail service";
|
104 |
$l_fail2ban = "Intrusion Dectection System";
|
107 |
$l_fail2ban = "Intrusion Dectection System";
|
105 |
$l_nfcapd = "Netflow collector";
|
108 |
$l_nfcapd = "Netflow collector";
|
106 |
$l_nfsen = "Network grapher";
|
109 |
$l_nfsen_ng = "Network grapher";
|
107 |
$l_vnstat = "Network flow statistics";
|
110 |
$l_vnstat = "Network flow statistics";
|
108 |
$l_unbound = "Main DNS server";
|
111 |
$l_unbound = "Main DNS server";
|
109 |
$l_unbound_blacklist = "Blacklist DNS server";
|
112 |
$l_unbound_blacklist = "Blacklist DNS server";
|
110 |
$l_unbound_whitelist = "Whitelist DNS server";
|
113 |
$l_unbound_whitelist = "Whitelist DNS server";
|
111 |
$l_unbound_blackhole = "Blackhole DNS server";
|
114 |
$l_unbound_blackhole = "Blackhole DNS server";
|
Line 241... |
Line 244... |
241 |
$FilterServiceStatus['unbound_blacklist'] = checkServiceStatus("unbound-blacklist");
|
244 |
$FilterServiceStatus['unbound_blacklist'] = checkServiceStatus("unbound-blacklist");
|
242 |
$FilterServiceStatus['unbound_whitelist'] = checkServiceStatus("unbound-whitelist");
|
245 |
$FilterServiceStatus['unbound_whitelist'] = checkServiceStatus("unbound-whitelist");
|
243 |
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
|
246 |
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
|
244 |
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
|
247 |
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
|
245 |
|
248 |
|
246 |
$OptServiceStatus = array();
|
249 |
$SecondaryServiceStatus = array();
|
247 |
$OptServiceStatus['vnstat'] = checkServiceStatus("vnstat");
|
250 |
$SecondaryServiceStatus['vnstat'] = checkServiceStatus("vnstat");
|
- |
|
251 |
$SecondaryServiceStatus['nfsen_ng'] = checkServiceStatus("nfsen-ng");
|
248 |
|
252 |
|
249 |
/****************
|
253 |
/****************
|
250 |
* MAIN *
|
254 |
* MAIN *
|
251 |
*****************/
|
255 |
*****************/
|
252 |
|
256 |
|
Line 264... |
Line 268... |
264 |
</div>
|
268 |
</div>
|
265 |
<div class="panel">
|
269 |
<div class="panel">
|
266 |
<div class="panel-header"><?= $l_main_services ?></div>
|
270 |
<div class="panel-header"><?= $l_main_services ?></div>
|
267 |
<div class="panel-row">
|
271 |
<div class="panel-row">
|
268 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
272 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
269 |
<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>
|
273 |
<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"><?php echo $l_service_role;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr>
|
270 |
<?php foreach ( $MainServiceStatus as $serviceName => $statusOK ) { ?>
|
274 |
<?php foreach ( $MainServiceStatus as $serviceName => $statusOK ) { ?>
|
271 |
<tr>
|
275 |
<tr>
|
272 |
<?php if ($statusOK) { ?>
|
276 |
<?php if ($statusOK) { ?>
|
273 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
277 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
274 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
278 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
Line 289... |
Line 293... |
289 |
</div>
|
293 |
</div>
|
290 |
<div class="panel">
|
294 |
<div class="panel">
|
291 |
<div class="panel-header"><?= $l_filter_services ?></div>
|
295 |
<div class="panel-header"><?= $l_filter_services ?></div>
|
292 |
<div class="panel-row">
|
296 |
<div class="panel-row">
|
293 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
297 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
294 |
<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>
|
298 |
<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"><?php echo $l_service_role;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr>
|
295 |
<?php foreach ( $FilterServiceStatus as $serviceName => $statusOK ) { ?>
|
299 |
<?php foreach ( $FilterServiceStatus as $serviceName => $statusOK ) { ?>
|
296 |
<tr>
|
300 |
<tr>
|
297 |
<?php if ($statusOK) { ?>
|
301 |
<?php if ($statusOK) { ?>
|
298 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
302 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
299 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
303 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
Line 311... |
Line 315... |
311 |
<?php } ?>
|
315 |
<?php } ?>
|
312 |
</table>
|
316 |
</table>
|
313 |
</div>
|
317 |
</div>
|
314 |
</div>
|
318 |
</div>
|
315 |
<div class="panel">
|
319 |
<div class="panel">
|
316 |
<div class="panel-header"><?= $l_opt_services ?></div>
|
320 |
<div class="panel-header"><?= $l_secondary_services ?></div>
|
317 |
<div class="panel-row">
|
321 |
<div class="panel-row">
|
318 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
322 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
319 |
<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"> </td><td colspan="3"><?php echo $l_service_action;?></td></tr>
|
323 |
<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"><?php echo $l_service_role;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr>
|
320 |
<?php foreach ( $OptServiceStatus as $serviceName => $statusOK ) { ?>
|
324 |
<?php foreach ( $SecondaryServiceStatus as $serviceName => $statusOK ) { ?>
|
321 |
<tr>
|
325 |
<tr>
|
322 |
<?php if ($statusOK) { ?>
|
326 |
<?php if ($statusOK) { ?>
|
323 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
327 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
324 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
328 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
325 |
<td width="80" align="center">---</td>
|
329 |
<td width="80" align="center">---</td>
|