Subversion Repositories ALCASAR

Rev

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

Rev 2492 Rev 2521
Line 18... Line 18...
18
	$l_service_status_img_ok= "Démarré";
18
	$l_service_status_img_ok= "Démarré";
19
	$l_service_status_img_ko= "Arrété";
19
	$l_service_status_img_ko= "Arrété";
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_e2guardian		= "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_lighttpd		= "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";
Line 55... Line 55...
55
	$l_service_status_img_ok= "Running";
55
	$l_service_status_img_ok= "Running";
56
	$l_service_status_img_ko= "Stopped";
56
	$l_service_status_img_ko= "Stopped";
57
	$l_service_action 	= "Actions";
57
	$l_service_action 	= "Actions";
58
	$l_radiusd		= "Authentication and authorisation server";
58
	$l_radiusd		= "Authentication and authorisation server";
59
	$l_chilli		= "Interception gateway";
59
	$l_chilli		= "Interception gateway";
60
	$l_dansguardian		= "URL and WEB content filter";
60
	$l_e2guardian		= "URL and WEB content filter";
61
	$l_mysqld		= "User database server";
61
	$l_mysqld		= "User database server";
62
	$l_lighttpd		= "WEB server (ALCASAR Control Center)";
62
	$l_lighttpd		= "WEB server (ALCASAR Control Center)";
63
	$l_sshd			= "Secure remote access";
63
	$l_sshd			= "Secure remote access";
64
	$l_freshclam		= "Antivirus update process (every 2 hours)";
64
	$l_freshclam		= "Antivirus update process (every 2 hours)";
65
	$l_ntpd			= "Network time server";
65
	$l_ntpd			= "Network time server";
Line 134... Line 134...
134
 
134
 
135
//-------------------------------
135
//-------------------------------
136
// Actions on services
136
// Actions on services
137
//-------------------------------
137
//-------------------------------
138
//sécurité sur les actions à réaliser
138
//sécurité sur les actions à réaliser
139
$autorizeService = ['radiusd','chilli','dansguardian','mysqld','lighttpd','sshd','freshclam','ntpd','havp','tinyproxy','dnsmasq','dnsmasq-blacklist','dnsmasq-whitelist','dnsmasq-blackhole', 'ulogd-ssh', 'ulogd-ext-access', 'ulogd-traceability','nfsen','fail2ban','vnstat'];
139
$autorizeService = ['radiusd','chilli','e2guardian','mysqld','lighttpd','sshd','freshclam','ntpd','havp','tinyproxy','dnsmasq','dnsmasq-blacklist','dnsmasq-whitelist','dnsmasq-blackhole', 'ulogd-ssh', 'ulogd-ext-access', 'ulogd-traceability','nfsen','fail2ban','vnstat'];
140
$autorizeAction = ['start','stop','restart'];
140
$autorizeAction = ['start','stop','restart'];
141
 
141
 
142
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
142
if (isset($_GET['service'])&&(in_array($_GET['service'], $autorizeService))) {
143
    if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
143
    if (isset($_GET['action'])&&(in_array($_GET['action'], $autorizeAction))) {
144
    	$execStatus = serviceExec($_GET['service'], $_GET['action']);
144
    	$execStatus = serviceExec($_GET['service'], $_GET['action']);
Line 180... Line 180...
180
 
180
 
181
$FilterServiceStatus = array();
181
$FilterServiceStatus = array();
182
$FilterServiceStatus['dnsmasq-blacklist'] = checkServiceStatus("dnsmasq-blacklist");
182
$FilterServiceStatus['dnsmasq-blacklist'] = checkServiceStatus("dnsmasq-blacklist");
183
$FilterServiceStatus['dnsmasq-whitelist'] = checkServiceStatus("dnsmasq-whitelist");
183
$FilterServiceStatus['dnsmasq-whitelist'] = checkServiceStatus("dnsmasq-whitelist");
184
$FilterServiceStatus['dnsmasq-blackhole'] = checkServiceStatus("dnsmasq-blackhole");
184
$FilterServiceStatus['dnsmasq-blackhole'] = checkServiceStatus("dnsmasq-blackhole");
185
$filterServiceStatus['dansguardian'] = checkServiceStatus("dansguardian");
185
$filterServiceStatus['e2guardian'] = checkServiceStatus("e2guardian");
186
$FilterServiceStatus['havp'] = checkServiceStatus("havp");
186
$FilterServiceStatus['havp'] = checkServiceStatus("havp");
187
$FilterServiceStatus['tinyproxy'] = checkServiceStatus("tinyproxy");
187
$FilterServiceStatus['tinyproxy'] = checkServiceStatus("tinyproxy");
188
$FilterServiceStatus['freshclam'] = checkServiceStatus("freshclam");
188
$FilterServiceStatus['freshclam'] = checkServiceStatus("freshclam");
189
 
189
 
190
 
190