| Line 8... |
Line 8... |
| 8 |
if($Language == 'fr') {
|
8 |
if($Language == 'fr') {
|
| 9 |
$l_services_title = "Configuration des services";
|
9 |
$l_services_title = "Configuration des services";
|
| 10 |
$l_main_services = "Services principaux";
|
10 |
$l_main_services = "Services principaux";
|
| 11 |
$l_filter_services = "Services de filtrage";
|
11 |
$l_filter_services = "Services de filtrage";
|
| 12 |
$l_opt_services = "Services optionnels";
|
12 |
$l_opt_services = "Services optionnels";
|
| 13 |
$l_service_title = "Nom du service";
|
13 |
$l_service_title = "Rôle du service";
|
| 14 |
$l_service_start = "Démarrer";
|
14 |
$l_service_start = "Démarrer";
|
| 15 |
$l_service_stop = "Arréter";
|
15 |
$l_service_stop = "Arréter";
|
| 16 |
$l_service_restart = "Redémarrer";
|
16 |
$l_service_restart = "Redémarrer";
|
| 17 |
$l_service_status = "Status";
|
17 |
$l_service_status = "Status";
|
| 18 |
$l_service_status_img_ok= "Démarré";
|
18 |
$l_service_status_img_ok= "Démarré";
|
| Line 36... |
Line 36... |
| 36 |
$l_dnsmasq_whitelist = "Serveur DNS pour la Whitelist (IPSET)";
|
36 |
$l_dnsmasq_whitelist = "Serveur DNS pour la Whitelist (IPSET)";
|
| 37 |
$l_unbound_blackhole = "Serveur DNS 'trou noir'";
|
37 |
$l_unbound_blackhole = "Serveur DNS 'trou noir'";
|
| 38 |
$l_ulogd_ssh = "journalisation des accès par SSH";
|
38 |
$l_ulogd_ssh = "journalisation des accès par SSH";
|
| 39 |
$l_ulogd_ext_access = "journalisation des tentatives d'accès externes";
|
39 |
$l_ulogd_ext_access = "journalisation des tentatives d'accès externes";
|
| 40 |
$l_ulogd_traceability = "journalisation des connexions WEB filtrés";
|
40 |
$l_ulogd_traceability = "journalisation des connexions WEB filtrés";
|
| - |
|
41 |
$l_wifi4eu_id = "Entrez votre identifiant réseau";
|
| 41 |
$l_execute = "Exécuter";
|
42 |
$l_execute = "Exécuter";
|
| 42 |
$l_stop_restart = "Arret et redémarrage du système";
|
43 |
$l_stop_restart = "Arrêt et redémarrage du système";
|
| 43 |
$l_halt = "Arréter le système";
|
44 |
$l_halt = "Arréter le système";
|
| 44 |
$l_reboot = "Relancer le système";
|
45 |
$l_reboot = "Relancer le système";
|
| 45 |
} else if($Language == 'es') {
|
46 |
} else if($Language == 'es') {
|
| 46 |
$l_services_title = "Configuración de Servicios";
|
47 |
$l_services_title = "Configuración de Servicios";
|
| 47 |
$l_main_services = "Servicios Principales";
|
48 |
$l_main_services = "Servicios Principales";
|
| 48 |
$l_filter_services = "Servicios de Filtrado";
|
49 |
$l_filter_services = "Servicios de Filtrado";
|
| 49 |
$l_opt_services = "Servicios Opcionales";
|
50 |
$l_opt_services = "Servicios Opcionales";
|
| 50 |
$l_service_title = "Nombre del servicio";
|
51 |
$l_service_title = "función del servicio";
|
| 51 |
$l_service_start = "Iniciar";
|
52 |
$l_service_start = "Iniciar";
|
| 52 |
$l_service_stop = "Detener";
|
53 |
$l_service_stop = "Detener";
|
| 53 |
$l_service_restart = "Reiniciar";
|
54 |
$l_service_restart = "Reiniciar";
|
| 54 |
$l_service_status = "Estado";
|
55 |
$l_service_status = "Estado";
|
| 55 |
$l_service_status_img_ok= "Corriendo";
|
56 |
$l_service_status_img_ok= "Corriendo";
|
| Line 73... |
Line 74... |
| 73 |
$l_dnsmasq_whitelist = "Servidor DNS de Lista Blanca (IPSET)";
|
74 |
$l_dnsmasq_whitelist = "Servidor DNS de Lista Blanca (IPSET)";
|
| 74 |
$l_unbound_blackhole = "Agujero negro DNS";
|
75 |
$l_unbound_blackhole = "Agujero negro DNS";
|
| 75 |
$l_ulogd_ssh = "Proceso de registro para accesos SSH";
|
76 |
$l_ulogd_ssh = "Proceso de registro para accesos SSH";
|
| 76 |
$l_ulogd_ext_access = "Proceso de registro de intentos de accesos externos";
|
77 |
$l_ulogd_ext_access = "Proceso de registro de intentos de accesos externos";
|
| 77 |
$l_ulogd_traceability = "Proceso de registro de acceso WEB";
|
78 |
$l_ulogd_traceability = "Proceso de registro de acceso WEB";
|
| - |
|
79 |
$l_wifi4eu_id = "Introduzca su identificador de red";
|
| 78 |
$l_execute = "Ejecutar";
|
80 |
$l_execute = "Ejecutar";
|
| 79 |
$l_stop_restart = "Apagado y Reinicio del sistema";
|
81 |
$l_stop_restart = "Apagado y Reinicio del sistema";
|
| 80 |
$l_halt = "Apagar el sistema";
|
82 |
$l_halt = "Apagar el sistema";
|
| 81 |
$l_reboot = "Reiniciar el sistema";
|
83 |
$l_reboot = "Reiniciar el sistema";
|
| 82 |
} else {
|
84 |
} else {
|
| 83 |
$l_services_title = "Services configuration";
|
85 |
$l_services_title = "Services configuration";
|
| 84 |
$l_main_services = "Main services";
|
86 |
$l_main_services = "Main services";
|
| 85 |
$l_filter_services = "Filtering services";
|
87 |
$l_filter_services = "Filtering services";
|
| 86 |
$l_opt_services = "Optional services";
|
88 |
$l_opt_services = "Optional services";
|
| 87 |
$l_service_title = "Service name";
|
89 |
$l_service_title = "Role of the service";
|
| 88 |
$l_service_start = "Start";
|
90 |
$l_service_start = "Start";
|
| 89 |
$l_service_stop = "Stop";
|
91 |
$l_service_stop = "Stop";
|
| 90 |
$l_service_restart = "Restart";
|
92 |
$l_service_restart = "Restart";
|
| 91 |
$l_service_status = "Status";
|
93 |
$l_service_status = "Status";
|
| 92 |
$l_service_status_img_ok= "Running";
|
94 |
$l_service_status_img_ok= "Running";
|
| Line 110... |
Line 112... |
| 110 |
$l_dnsmasq_whitelist = "Whitelist DNS server (IPSET)";
|
112 |
$l_dnsmasq_whitelist = "Whitelist DNS server (IPSET)";
|
| 111 |
$l_unbound_blackhole = "Blackhole DNS server";
|
113 |
$l_unbound_blackhole = "Blackhole DNS server";
|
| 112 |
$l_ulogd_ssh = "SSH access logging process";
|
114 |
$l_ulogd_ssh = "SSH access logging process";
|
| 113 |
$l_ulogd_ext_access = "Extern access attempts logging process";
|
115 |
$l_ulogd_ext_access = "Extern access attempts logging process";
|
| 114 |
$l_ulogd_traceability = "Filtering WEB access logging process";
|
116 |
$l_ulogd_traceability = "Filtering WEB access logging process";
|
| - |
|
117 |
$l_wifi4eu_id = "Enter your network identifier";
|
| 115 |
$l_execute = "Execute";
|
118 |
$l_execute = "Execute";
|
| 116 |
$l_stop_restart = "Halt and restart the system";
|
119 |
$l_stop_restart = "Halt and restart the system";
|
| 117 |
$l_halt = "Halt le system";
|
120 |
$l_halt = "Halt le system";
|
| 118 |
$l_reboot = "Restart the system";
|
121 |
$l_reboot = "Restart the system";
|
| 119 |
}
|
122 |
}
|
| Line 130... |
Line 133... |
| 130 |
exit("Fichier de configuration ".CONF_FILE." non présent");
|
133 |
exit("Fichier de configuration ".CONF_FILE." non présent");
|
| 131 |
}
|
134 |
}
|
| 132 |
if (!is_readable(CONF_FILE)){
|
135 |
if (!is_readable(CONF_FILE)){
|
| 133 |
exit("Vous n'avez pas les droits de lecture sur le fichier ".CONF_FILE);
|
136 |
exit("Vous n'avez pas les droits de lecture sur le fichier ".CONF_FILE);
|
| 134 |
}
|
137 |
}
|
| - |
|
138 |
$file_conf = fopen(CONF_FILE, 'r');
|
| - |
|
139 |
if (!$file_conf) {
|
| - |
|
140 |
exit('Error opening the file '.CONF_FILE);
|
| - |
|
141 |
}
|
| - |
|
142 |
while (!feof($file_conf)) {
|
| - |
|
143 |
$buffer = fgets($file_conf, 4096);
|
| - |
|
144 |
if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
|
| - |
|
145 |
$tmp = explode('=', $buffer, 2);
|
| - |
|
146 |
$conf[trim($tmp[0])] = trim($tmp[1]);
|
| - |
|
147 |
}
|
| - |
|
148 |
}
|
| - |
|
149 |
fclose($file_conf);
|
| - |
|
150 |
$wifi4eu = $conf['WIFI4EU'];
|
| - |
|
151 |
$wifi4eu_code = $conf['WIFI4EU_CODE'];
|
| 135 |
|
152 |
|
| 136 |
// Doing an action on a service (start,stop or restart)
|
153 |
// Doing an action on a service (start,stop or restart)
|
| 137 |
function serviceExec($service, $action){
|
154 |
function serviceExec($service, $action){
|
| 138 |
if (($action == "start")||($action == "stop")||($action == "restart")){
|
155 |
if (($action == "start")||($action == "stop")||($action == "restart")){
|
| 139 |
exec("sudo /usr/bin/systemctl $action ".escapeshellarg($service), $retval, $retstatus);
|
156 |
if ($service != "wifi4eu") { exec("sudo /usr/bin/systemctl $action ".escapeshellarg($service), $retval, $retstatus); }
|
| - |
|
157 |
if ($service == "wifi4eu"){
|
| - |
|
158 |
if ($action == "stop"){
|
| - |
|
159 |
file_put_contents(CONF_FILE, str_replace('WIFI4EU=on', 'WIFI4EU=off', file_get_contents(CONF_FILE)));
|
| - |
|
160 |
// exec("sudo /usr/local/bin/alcasar-wifi4eu.sh -off");
|
| - |
|
161 |
}
|
| - |
|
162 |
}
|
| 140 |
if ($service == "sshd"){ // in order to keep that conf for SSH at next reboot
|
163 |
if ($service == "sshd"){
|
| 141 |
if ($action == "start"){
|
164 |
if ($action == "start"){
|
| 142 |
exec("sudo /usr/bin/systemctl enable ".escapeshellarg($service));
|
165 |
exec("sudo /usr/bin/systemctl enable ".escapeshellarg($service)); // in order to keep that conf for SSH at next reboot
|
| 143 |
file_put_contents(CONF_FILE, str_replace('SSH=off', 'SSH=on', file_get_contents(CONF_FILE)));
|
166 |
file_put_contents(CONF_FILE, str_replace('SSH=off', 'SSH=on', file_get_contents(CONF_FILE)));
|
| 144 |
exec("sudo /usr/local/bin/alcasar-iptables.sh");
|
167 |
exec("sudo /usr/local/bin/alcasar-iptables.sh");
|
| 145 |
}
|
168 |
}
|
| 146 |
if ($action == "stop"){
|
169 |
if ($action == "stop"){
|
| 147 |
exec("sudo /usr/bin/systemctl disable ".escapeshellarg($service));
|
170 |
exec("sudo /usr/bin/systemctl disable ".escapeshellarg($service)); // in order to keep that conf for SSH at next reboot
|
| 148 |
file_put_contents(CONF_FILE, str_replace('SSH=on', 'SSH=off', file_get_contents(CONF_FILE)));
|
171 |
file_put_contents(CONF_FILE, str_replace('SSH=on', 'SSH=off', file_get_contents(CONF_FILE)));
|
| 149 |
exec("sudo /usr/local/bin/alcasar-iptables.sh");
|
172 |
exec("sudo /usr/local/bin/alcasar-iptables.sh");
|
| 150 |
}
|
173 |
}
|
| 151 |
}
|
174 |
}
|
| 152 |
return $retstatus;
|
175 |
return $retstatus;
|
| Line 179... |
Line 202... |
| 179 |
$execStatus = serviceExec($_GET['service'], $_GET['action']);
|
202 |
$execStatus = serviceExec($_GET['service'], $_GET['action']);
|
| 180 |
// execStatus non exploité
|
203 |
// execStatus non exploité
|
| 181 |
}
|
204 |
}
|
| 182 |
}
|
205 |
}
|
| 183 |
//-------------------------------
|
206 |
//-------------------------------
|
| - |
|
207 |
// WIFI4EU
|
| - |
|
208 |
//-------------------------------
|
| - |
|
209 |
if (isset($_POST['wifi4eu'])){
|
| - |
|
210 |
file_put_contents(CONF_FILE, str_replace('WIFI4EU=off', 'WIFI4EU=on', file_get_contents(CONF_FILE)));
|
| - |
|
211 |
// file_put_contents(CONF_FILE, preg_replace('^WIFI4EU_CODE=*', 'WIFI4EU_code=$_POST[\'wifi4eu\']', file_get_contents(CONF_FILE)));
|
| - |
|
212 |
// exec("sudo /usr/local/bin/alcasar-wifi4eu.sh -on");
|
| - |
|
213 |
}
|
| - |
|
214 |
//-------------------------------
|
| 184 |
// Actions on system
|
215 |
// Actions on system
|
| 185 |
//-------------------------------
|
216 |
//-------------------------------
|
| 186 |
if (isset($_POST['choix'])){
|
217 |
if (isset($_POST['choix'])){
|
| 187 |
switch ($_POST['choix']){
|
218 |
switch ($_POST['choix']){
|
| 188 |
case 'reboot' :
|
219 |
case 'reboot' :
|
| Line 207... |
Line 238... |
| 207 |
$MainServiceStatus['unbound'] = checkServiceStatus("unbound");
|
238 |
$MainServiceStatus['unbound'] = checkServiceStatus("unbound");
|
| 208 |
$MainServiceStatus['nfcapd'] = checkServiceStatus("nfcapd");
|
239 |
$MainServiceStatus['nfcapd'] = checkServiceStatus("nfcapd");
|
| 209 |
$MainServiceStatus['ulogd_ssh'] = checkServiceStatus("ulogd-ssh");
|
240 |
$MainServiceStatus['ulogd_ssh'] = checkServiceStatus("ulogd-ssh");
|
| 210 |
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
|
241 |
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
|
| 211 |
$MainServiceStatus['ulogd_traceability'] = checkServiceStatus("ulogd-traceability");
|
242 |
$MainServiceStatus['ulogd_traceability'] = checkServiceStatus("ulogd-traceability");
|
| - |
|
243 |
$MainServiceStatus['sshd'] = checkServiceStatus("sshd");
|
| - |
|
244 |
$MainServiceStatus['ntpd'] = checkServiceStatus("ntpd");
|
| - |
|
245 |
$MainServiceStatus['fail2ban'] = checkServiceStatus("fail2ban");
|
| - |
|
246 |
$MainServiceStatus['vnstat'] = checkServiceStatus("vnstat");
|
| 212 |
|
247 |
|
| 213 |
$FilterServiceStatus = array();
|
248 |
$FilterServiceStatus = array();
|
| 214 |
$FilterServiceStatus['unbound_blacklist'] = checkServiceStatus("unbound-blacklist");
|
249 |
$FilterServiceStatus['unbound_blacklist'] = checkServiceStatus("unbound-blacklist");
|
| 215 |
$FilterServiceStatus['unbound_whitelist'] = checkServiceStatus("unbound-whitelist");
|
250 |
$FilterServiceStatus['unbound_whitelist'] = checkServiceStatus("unbound-whitelist");
|
| 216 |
$FilterServiceStatus['dnsmasq_whitelist'] = checkServiceStatus("dnsmasq-whitelist");
|
251 |
$FilterServiceStatus['dnsmasq_whitelist'] = checkServiceStatus("dnsmasq-whitelist");
|
| 217 |
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
|
252 |
$FilterServiceStatus['unbound_blackhole'] = checkServiceStatus("unbound-blackhole");
|
| 218 |
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
|
253 |
$FilterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
|
| 219 |
$FilterServiceStatus['clamav_daemon'] = checkServiceStatus("clamav-daemon");
|
254 |
$FilterServiceStatus['clamav_daemon'] = checkServiceStatus("clamav-daemon");
|
| 220 |
$FilterServiceStatus['clamav_freshclam'] = checkServiceStatus("clamav-freshclam");
|
255 |
$FilterServiceStatus['clamav_freshclam'] = checkServiceStatus("clamav-freshclam");
|
| 221 |
|
256 |
|
| 222 |
$OptServiceStatus = array();
|
- |
|
| 223 |
$OptServiceStatus['sshd'] = checkServiceStatus("sshd");
|
- |
|
| 224 |
$OptServiceStatus['ntpd'] = checkServiceStatus("ntpd");
|
- |
|
| 225 |
$OptServiceStatus['fail2ban'] = checkServiceStatus("fail2ban");
|
- |
|
| 226 |
$OptServiceStatus['vnstat'] = checkServiceStatus("vnstat");
|
- |
|
| 227 |
/****************
|
257 |
/****************
|
| 228 |
* MAIN *
|
258 |
* MAIN *
|
| 229 |
*****************/
|
259 |
*****************/
|
| 230 |
|
260 |
|
| 231 |
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
261 |
?><!DOCTYPE HTML>
|
| 232 |
<html><!-- written by steweb57 / rexy -->
|
262 |
<html>
|
| 233 |
<head>
|
263 |
<head>
|
| 234 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
264 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
| 235 |
<title><?php echo $l_services_title; ?></title>
|
265 |
<title><?php echo $l_services_title; ?></title>
|
| 236 |
<link rel="stylesheet" href="/css/acc.css" type="text/css">
|
266 |
<link rel="stylesheet" href="/css/acc.css" type="text/css">
|
| 237 |
</head>
|
267 |
</head>
|
| 238 |
<body>
|
268 |
<body>
|
| 239 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
269 |
<div class="panel">
|
| 240 |
<tr><th><?php echo $l_main_services; ?></th></tr>
|
270 |
<div class="panel-header"><?= $l_main_services ?></div>
|
| 241 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
- |
|
| 242 |
</table>
|
271 |
<div class="panel-row">
|
| 243 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
|
272 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
| 244 |
<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_title;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr>
|
| 245 |
<?php foreach( $MainServiceStatus as $serviceName => $statusOK ) { ?>
|
274 |
<?php foreach( $MainServiceStatus as $serviceName => $statusOK ) { ?>
|
| 246 |
<tr>
|
275 |
<tr>
|
| 247 |
<?php if ($statusOK) { ?>
|
276 |
<?php if ($statusOK) { ?>
|
| 248 |
<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>
|
| 249 |
<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>
|
| 250 |
<td width="80" align="center">---</td>
|
279 |
<td width="80" align="center">---</td>
|
| 251 |
<td width="80" align="center"><?php if (($serviceName != "chilli") && ($serviceName != "lighttpd")) { echo "<a href=\"".$_SERVER['PHP_SELF']."?action=stop&service=".str_replace('_','-',$serviceName)."\"> $l_service_stop</a>"; } else echo "---";?></td>
|
280 |
<td width="80" align="center"><?php if (($serviceName != "chilli") && ($serviceName != "lighttpd")) { echo "<a href=\"".$_SERVER['PHP_SELF']."?action=stop&service=".str_replace('_','-',$serviceName)."\"> $l_service_stop</a>"; } else echo "---";?></td>
|
| 252 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=".str_replace('_','-',$serviceName)."\"> $l_service_restart";?></a></td>
|
281 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=".str_replace('_','-',$serviceName)."\"> $l_service_restart";?></a></td>
|
| 253 |
<?php } else { ?>
|
282 |
<?php } else { ?>
|
| 254 |
<td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
|
283 |
<td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
|
| 255 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
284 |
<td align="center"><?php $comment="l_$serviceName"; echo "$serviceName</td><td>${$comment}" ;?> </td>
|
| 256 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=".str_replace('_','-',$serviceName)."\"> $l_service_start";?></a></td>
|
285 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=".str_replace('_','-',$serviceName)."\"> $l_service_start";?></a></td>
|
| 257 |
<td width="80" align="center">---</td>
|
286 |
<td width="80" align="center">---</td>
|
| 258 |
<td width="80" align="center">---</td>
|
287 |
<td width="80" align="center">---</td>
|
| 259 |
<?php } ?>
|
288 |
<?php } ?>
|
| 260 |
</tr>
|
289 |
</tr>
|
| 261 |
<?php } ?>
|
290 |
<?php } ?>
|
| 262 |
</table>
|
291 |
</table>
|
| - |
|
292 |
</div>
|
| - |
|
293 |
</div>
|
| 263 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
294 |
<div class="panel">
|
| 264 |
<tr><th><?php echo $l_filter_services; ?></th></tr>
|
295 |
<div class="panel-header"><?= $l_filter_services ?></div>
|
| 265 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
- |
|
| 266 |
</table>
|
296 |
<div class="panel-row">
|
| 267 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
|
297 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
| 268 |
<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_title;?></td><td colspan="3"><?php echo $l_service_action;?></td></tr>
|
| 269 |
<!-- <TR align="center"> -->
|
299 |
<!-- <TR align="center"> -->
|
| 270 |
<?php foreach( $FilterServiceStatus as $serviceName => $statusOK ) { ?>
|
300 |
<?php foreach( $FilterServiceStatus as $serviceName => $statusOK ) { ?>
|
| 271 |
<tr>
|
301 |
<tr>
|
| 272 |
<?php if ($statusOK) { ?>
|
302 |
<?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>
|
303 |
<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>
|
304 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
| 275 |
<td width="80" align="center">---</td>
|
305 |
<td width="80" align="center">---</td>
|
| 276 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=stop&service=".str_replace('_','-',$serviceName)."\"> $l_service_stop";?></a></td>
|
306 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=stop&service=".str_replace('_','-',$serviceName)."\"> $l_service_stop";?></a></td>
|
| 277 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=".str_replace('_','-',$serviceName)."\"> $l_service_restart";?></a></td>
|
307 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=".str_replace('_','-',$serviceName)."\"> $l_service_restart";?></a></td>
|
| 278 |
<?php } else { ?>
|
308 |
<?php } else { ?>
|
| 279 |
<td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
|
309 |
<td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
|
| 280 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
310 |
<td align="center"><?php $comment="l_$serviceName"; echo "$serviceName</td><td>${$comment}" ;?> </td>
|
| 281 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=".str_replace('_','-',$serviceName)."\"> $l_service_start";?></a></td>
|
311 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=".str_replace('_','-',$serviceName)."\"> $l_service_start";?></a></td>
|
| 282 |
<td width="80" align="center">---</td>
|
312 |
<td width="80" align="center">---</td>
|
| 283 |
<td width="80" align="center">---</td>
|
313 |
<td width="80" align="center">---</td>
|
| 284 |
<?php } ?>
|
314 |
<?php } ?>
|
| 285 |
</tr>
|
315 |
</tr>
|
| 286 |
<?php } ?>
|
316 |
<?php } ?>
|
| 287 |
</table>
|
317 |
</table>
|
| - |
|
318 |
</div>
|
| - |
|
319 |
</div>
|
| 288 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
320 |
<div class="panel">
|
| 289 |
<tr><th><?php echo $l_opt_services; ?></th></tr>
|
321 |
<div class="panel-header"><?= $l_opt_services ?></div>
|
| - |
|
322 |
<div class="panel-row">
|
| 290 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
323 |
<form action="<?php echo $_SERVER['PHP_SELF']?>" method=POST>
|
| 291 |
</table>
|
- |
|
| 292 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
|
324 |
<table width="100%" border=0 cellspacing=0 cellpadding=0>
|
| 293 |
<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>
|
325 |
<tr align="center"><td><?php echo $l_service_status;?></td><td colspan="2"> </td><td colspan="3"><?php echo $l_service_action;?></td></tr>
|
| 294 |
<?php foreach( $OptServiceStatus as $serviceName => $statusOK ) { ?>
|
- |
|
| 295 |
<tr>
|
326 |
<tr>
|
| 296 |
<?php if ($statusOK) { ?>
|
327 |
<?php if ($wifi4eu == "on") { ?>
|
| 297 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
328 |
<td align="center"><img src="/images/state_ok.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ok; ?>"></td>
|
| 298 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
329 |
<td align="center"><b>WIFI4EU</b></td><td><?php echo "network ID : $wifi4eu_code"; ?></td>
|
| 299 |
<td width="80" align="center">---</td>
|
330 |
<td width="80" align="center">---</td>
|
| 300 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=stop&service=$serviceName\"> $l_service_stop";?></a></td>
|
331 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=stop&service=wifi4eu\"> $l_service_stop";?></a></td>
|
| 301 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=restart&service=$serviceName\"> $l_service_restart";?></a></td>
|
332 |
<td width="80" align="center">---</td>
|
| 302 |
<?php } else { ?>
|
333 |
<?php } else { ?>
|
| 303 |
<td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko ?>"></td>
|
334 |
<td align="center"><img src="/images/state_error.gif" width="15" height="15" alt="<?php echo $l_service_status_img_ko; ?>"></td>
|
| 304 |
<td align="center"><?php $comment="l_$serviceName"; echo "<b>$serviceName</b></td><td>${$comment}" ;?> </td>
|
335 |
<td align="center">WIFI4EU</td><td><?php echo $l_wifi4eu_id; ?> : <input type ="text" name="wifi4eu" value="<?php echo $wifi4eu_code; ?>" size="40"></td>
|
| 305 |
<td width="80" align="center"><a href="<?php echo $_SERVER['PHP_SELF']."?action=start&service=$serviceName\"> $l_service_start";?></a></td>
|
336 |
<td width="80" align="center"><input type=submit value="<?echo $l_service_start;?>"></td>
|
| 306 |
<td width="80" align="center">---</td>
|
337 |
<td width="80" align="center">---</td>
|
| 307 |
<td width="80" align="center">---</td>
|
338 |
<td width="80" align="center">---</td>
|
| 308 |
<?php } ?>
|
339 |
<?php } ?>
|
| 309 |
</tr>
|
340 |
</tr>
|
| 310 |
<?php } ?>
|
341 |
</table>
|
| - |
|
342 |
</form>
|
| - |
|
343 |
</div>
|
| 311 |
</table>
|
344 |
</div>
|
| 312 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
345 |
<div class="panel">
|
| 313 |
<tr><th><? echo $l_stop_restart;?></th></tr>
|
346 |
<div class="panel-header"><?= $l_stop_restart ?></div>
|
| 314 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
- |
|
| 315 |
</table>
|
347 |
<div class="panel-row">
|
| 316 |
<table width="100%" border=1 cellspacing=0 cellpadding=1>
|
348 |
<table width="100%" border=0 cellspacing=0 cellpadding=1>
|
| 317 |
<tr><td valign="middle" align="left">
|
349 |
<tr><td valign="middle" align="left">
|
| 318 |
<FORM action="services.php" method=POST>
|
350 |
<form action="<?php echo $_SERVER['PHP_SELF']?>" method=POST>
|
| 319 |
<select name='choix'>
|
351 |
<select name='choix'>
|
| 320 |
<option selected value="reboot"><?echo "$l_reboot";?>
|
352 |
<option selected value="reboot"><?echo "$l_reboot";?>
|
| 321 |
<option value="halt"><?echo "$l_halt";?>
|
353 |
<option value="halt"><?echo "$l_halt";?>
|
| 322 |
</select>
|
354 |
</select>
|
| 323 |
<input type=submit value="<?echo "$l_execute";?>">
|
355 |
<input type=submit value="<?echo "$l_execute";?>">
|
| 324 |
</FORM>
|
356 |
</form>
|
| 325 |
</td></tr>
|
357 |
</td></tr>
|
| 326 |
</table>
|
358 |
</table>
|
| - |
|
359 |
</div>
|
| - |
|
360 |
</div>
|
| 327 |
</body>
|
361 |
</body>
|
| 328 |
</html>
|
362 |
</html>
|