Subversion Repositories ALCASAR

Rev

Rev 3076 | Rev 3132 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log

Rev 3076 Rev 3130
Line 111... Line 111...
111
	else {$taille_fichier = $taille_fichier . " o";}
111
	else {$taille_fichier = $taille_fichier . " o";}
112
	return $taille_fichier;
112
	return $taille_fichier;
113
}
113
}
114
 
114
 
115
if (isset($_POST['action'])){
115
if (isset($_POST['action'])){
116
	$mac= str_replace ("'",'',escapeshellarg($_POST['mac_addr']));
116
	if (filter_var(trim($_POST['mac_addr']), FILTER_VALIDATE_MAC) !== false){
117
	unset($_POST['mac_addr']);
117
		$mac= trim($_POST['mac_addr']);
118
	switch ($_POST['action']){
118
		switch ($_POST['action']){
119
		case "$l_disconnect" :
119
			case "$l_disconnect" :
120
			exec("sudo /usr/sbin/chilli_query logout ".$mac);
120
				exec("sudo /usr/sbin/chilli_query logout ".$mac);
121
		break;
121
			break;
122
		case "$l_stop_capture_disconnect" :
122
			case "$l_stop_capture_disconnect" :
Line 139... Line 139...
139
		case "$l_captureoff" :
139
			case "$l_captureoff" :
140
			exec('sudo /usr/local/bin/alcasar-iot_capture.sh -k '.$mac.' &>/dev/null &');
140
				exec('sudo /usr/local/bin/alcasar-iot_capture.sh -k '.$mac.' &>/dev/null &');
141
		break;
141
			break;
142
	}
142
		}
143
}
143
	}
-
 
144
	unset($_POST['mac_addr']);
-
 
145
}
144
?>
146
?>
145
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
147
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
146
<html><!-- written by Rexy -->
148
<html><!-- written by Rexy -->
147
<head>
149
<head>
148
<meta HTTP-EQUIV="Refresh" CONTENT="30">
150
<meta HTTP-EQUIV="Refresh" CONTENT="30">