27,6 → 27,8 |
fclose($ouvre); |
$tmp = explode("/",$conf["PRIVATE_IP"]); |
$private_ip=$tmp[0]; |
$tmp = explode("/",$conf["INTIF"]); |
$intif = $tmp[0]; |
require('/etc/freeradius-web/config.php'); |
# Choice of language |
$Language = 'en'; |
91,9 → 93,11 |
<th>$l_user</th> |
<th>$l_action</th> |
</tr>"; |
$output = array(); $output_mac = array(); $nb_ligne = 0; |
exec ('sudo /sbin/ip link show eth1 |grep ether|cut -d" " -f6', $output_mac); |
$eth1_mac_addr=strtoupper(str_replace(":","-",$output_mac[0])); |
$output = array(); $detail = array(); $nb_ligne = 0; |
exec ("sudo /sbin/ip link show $intif", $output); |
$detail = explode (" " , $output[1]); |
$intif_mac_addr=strtoupper(str_replace(":","-",$detail[5])); |
unset ($output);unset ($detail); |
exec ('sudo /usr/sbin/chilli_query list|sort -k5 -r', $output); |
while (list(,$ligne) = each($output)){ |
$detail = explode (" ", $ligne); |
123,7 → 127,7 |
} |
} |
# equipment without authenticated user |
else if (($detail[0] == $eth1_mac_addr) || ($detail[1] == $private_ip)){ |
else if (($detail[0] == $intif_mac_addr) || ($detail[1] == $private_ip)){ |
echo "ALCASAR system"; |
echo "</TD>"; |
echo "<TD>"; |