Subversion Repositories ALCASAR

Rev

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

Rev 2299 Rev 2488
Line 20... Line 20...
20
	$l_service_action 	= "Actions";
20
	$l_service_action 	= "Actions";
21
	$l_radiusd		= "Serveur d'authentification et d'autorisation";
21
	$l_radiusd		= "Serveur d'authentification et d'autorisation";
22
	$l_chilli		= "Passerelle d'interception";
22
	$l_chilli		= "Passerelle d'interception";
23
	$l_dansguardian		= "Filtre d'URL et de contenu WEB";
23
	$l_dansguardian		= "Filtre d'URL et de contenu WEB";
24
	$l_mysqld		= "Serveur de la base des usagers";
24
	$l_mysqld		= "Serveur de la base des usagers";
25
	$l_httpd		= "Serveur WEB (Alcasar Control Center)";
25
	$l_lighttpd		= "Serveur WEB (Alcasar Control Center)";
26
	$l_sshd			= "Accès sécurisée distant";
26
	$l_sshd			= "Accès sécurisée distant";
27
	$l_freshclam		= "Mise à jour de l'antivirus toutes les 2 heures";
27
	$l_freshclam		= "Mise à jour de l'antivirus toutes les 2 heures";
28
	$l_ntpd			= "Service de mise à l'heure réseau";
28
	$l_ntpd			= "Service de mise à l'heure réseau";
29
	$l_havp			= "Proxy Antivirus 1";
29
	$l_havp			= "Proxy Antivirus 1";
30
	$l_tinyproxy		= "Proxy HTTP léger";
30
	$l_tinyproxy		= "Proxy HTTP léger";
Line 54... Line 54...
54
	$l_service_action 	= "Actions";
54
	$l_service_action 	= "Actions";
55
	$l_radiusd		= "Authentication and authorisation server";
55
	$l_radiusd		= "Authentication and authorisation server";
56
	$l_chilli		= "Interception gateway";
56
	$l_chilli		= "Interception gateway";
57
	$l_dansguardian		= "URL and WEB content filter";
57
	$l_dansguardian		= "URL and WEB content filter";
58
	$l_mysqld		= "User database server";
58
	$l_mysqld		= "User database server";
59
	$l_httpd		= "WEB server (ALCASAR Control Center)";
59
	$l_lighttpd		= "WEB server (ALCASAR Control Center)";
60
	$l_sshd			= "Secure remote access";
60
	$l_sshd			= "Secure remote access";
61
	$l_freshclam		= "Antivirus update process (every 2 hours)";
61
	$l_freshclam		= "Antivirus update process (every 2 hours)";
62
	$l_ntpd			= "Network time server";
62
	$l_ntpd			= "Network time server";
63
	$l_havp			= "Antivirus Proxy";
63
	$l_havp			= "Antivirus Proxy";
64
	$l_tinyproxy		= "Light HTTP Proxy";
64
	$l_tinyproxy		= "Light HTTP Proxy";
Line 128... Line 128...
128
 
128
 
129
//-------------------------------
129
//-------------------------------
130
// Actions on services
130
// Actions on services
131
//-------------------------------
131
//-------------------------------
132
//sécurité sur les actions à réaliser
132
//sécurité sur les actions à réaliser
133
$autorizeService = array("radiusd","chilli","dansguardian","mysqld","httpd","sshd","freshclam","ntpd","havp","tinyproxy","dnsmasq","dnsmasq-blacklist","dnsmasq-whitelist","dnsmasq-blackhole");
133
$autorizeService = array("radiusd","chilli","dansguardian","mysqld","lighttpd","sshd","freshclam","ntpd","havp","tinyproxy","dnsmasq","dnsmasq-blacklist","dnsmasq-whitelist","dnsmasq-blackhole");
134
$autorizeAction = array("start","stop","restart");
134
$autorizeAction = array("start","stop","restart");
135
 
135
 
136
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
136
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
137
    if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
137
    if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
138
    	$execStatus = serviceExec($_GET['service'], $_GET['action']);
138
    	$execStatus = serviceExec($_GET['service'], $_GET['action']);
Line 161... Line 161...
161
//-------------------------------
161
//-------------------------------
162
$MainServiceStatus = array();
162
$MainServiceStatus = array();
163
$MainServiceStatus['radiusd'] = checkServiceStatus("radiusd");
163
$MainServiceStatus['radiusd'] = checkServiceStatus("radiusd");
164
$MainServiceStatus['chilli'] = checkServiceStatus("chilli");
164
$MainServiceStatus['chilli'] = checkServiceStatus("chilli");
165
$MainServiceStatus['mysqld'] = checkServiceStatus("mysqld");
165
$MainServiceStatus['mysqld'] = checkServiceStatus("mysqld");
166
$MainServiceStatus['httpd'] = checkServiceStatus("httpd");
166
$MainServiceStatus['lighttpd'] = checkServiceStatus("lighttpd");
167
$MainServiceStatus['dnsmasq'] = checkServiceStatus("dnsmasq");
167
$MainServiceStatus['dnsmasq'] = checkServiceStatus("dnsmasq");
168
$MainServiceStatus['ulogd_ssh'] = checkServiceStatus("ulogd-ssh");
168
$MainServiceStatus['ulogd_ssh'] = checkServiceStatus("ulogd-ssh");
169
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
169
$MainServiceStatus['ulogd_ext_access'] = checkServiceStatus("ulogd-ext-access");
170
$MainServiceStatus['ulogd_traceability'] = checkServiceStatus("ulogd-traceability");
170
$MainServiceStatus['ulogd_traceability'] = checkServiceStatus("ulogd-traceability");
171
 
171