Subversion Repositories ALCASAR

Rev

Rev 3250 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3250 Rev 3254
Line 210... Line 210...
210
}
210
}
211
 
211
 
212
//-------------------------------
212
//-------------------------------
213
// Actions on services
213
// Actions on services
214
//-------------------------------
214
//-------------------------------
215
$autorizeService = array("radiusd","chilli","mysqld","httpd","unbound-forward","ulogd-ssh","ulogd-ext-access","ulogd-traceability","unbound-blacklist","unbound-whitelist","unbound-blackhole","e2guardian","sshd","ntpd","fail2ban","nfcapd","vnstat","postfix");
215
$autorizeService = array("radiusd","chilli","mysqld","httpd","unbound-forward","ulogd-ssh","ulogd-ext-access","ulogd-traceability","unbound-blacklist","unbound-whitelist","unbound-blackhole","e2guardian","sshd","ntpd","fail2ban","nfcapd","nfsen-ng","vnstat","postfix");
216
$autorizeAction = array("start","stop","restart");
216
$autorizeAction = array("start","stop","restart");
217
 
217
 
218
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
218
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
219
    if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
219
    if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
220
    	$execStatus = serviceExec($_GET['service'], $_GET['action']);
220
    	$execStatus = serviceExec($_GET['service'], $_GET['action']); // not used
221
		// execStatus non exploité
-
 
222
	}
221
	}
223
}
222
}
224
 
223
 
225
//-------------------------------
224
//-------------------------------
226
// Check services status
225
// Check services status