Subversion Repositories ALCASAR

Rev

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

Rev 2817 Rev 2853
Line 53... Line 53...
53
	$l_edit_user = "Editer l'utilisateur";
53
	$l_edit_user = "Editer l'utilisateur";
54
	$l_connect = "Autoriser temporairement";
54
	$l_connect = "Autoriser temporairement";
55
	$l_captureon = "Autoriser et capturer";
55
	$l_captureon = "Autoriser et capturer";
56
	$l_captureoff = "Arrêter la capture";
56
	$l_captureoff = "Arrêter la capture";
57
	$l_captureonly_on = "Capturer";
57
	$l_captureonly_on = "Capturer";
-
 
58
} else if ($Language === 'es') {
-
 
59
	$l_activity = "Actividad en la LAN";
-
 
60
	$l_ip_adr = "Dirección IP";
-
 
61
	$l_mac_adr = "MAC Adress";
-
 
62
	$l_user = "Usuario";
-
 
63
	$l_mac_allowed = "@MAC autorizada";
58
 
-
 
-
 
64
	$l_mac_temporarily_allowed = "@MAC temporalmente autorizada";
-
 
65
	$l_action = "Acción";
-
 
66
	$l_dissociate = "Liberar @IP";
-
 
67
	$l_disconnect = "Desconectar";
-
 
68
	$l_stop_capture_disconnect = "Deje de capturar y desconecte";
-
 
69
	$l_refresh = "Esta información es actualizada cada 30''";
-
 
70
	$l_edit_user = "usuario de edición"; 
-
 
71
	$l_connect = "Permitir temporalmente";
-
 
72
	$l_captureon = "Autorizar y capturar";
-
 
73
	$l_captureoff = "Detener la captura";
-
 
74
	$l_captureonly_on = "Captura";
59
} else {
75
} else {
60
	$l_activity = "Activity on the consultation LAN";
76
	$l_activity = "Activity on the consultation LAN";
61
	$l_ip_adr = "IP Adress";
77
	$l_ip_adr = "IP Adress";
62
	$l_mac_adr = "MAC Adress";
78
	$l_mac_adr = "MAC Adress";
63
	$l_user = "User";
79
	$l_user = "User";
Line 99... Line 115...
99
				exec('sudo /usr/local/bin/alcasar-iot_capture.sh -f '.$macc);
115
				exec('sudo /usr/local/bin/alcasar-iot_capture.sh -f '.$macc);
100
				exec("sudo /usr/sbin/chilli_query logout ".escapeshellarg($_POST['mac_addr']));
116
				exec("sudo /usr/sbin/chilli_query logout ".escapeshellarg($_POST['mac_addr']));
101
				unset($_POST['mac_addr']);
117
				unset($_POST['mac_addr']);
102
				exit;
118
				exit;
103
			}
119
			}
104
 
-
 
105
		break;
120
		break;
106
		case "$l_dissociate" :
121
		case "$l_dissociate" :
107
			exec("sudo /usr/sbin/chilli_query dhcp-release ".escapeshellarg($_POST['mac_addr']));
122
			exec("sudo /usr/sbin/chilli_query dhcp-release ".escapeshellarg($_POST['mac_addr']));
108
			unset($_POST['mac_addr']);
123
			unset($_POST['mac_addr']);
109
		break;
124
		break;