29,8 → 29,11 |
fclose($file_conf); |
|
$tmp = explode("/",$conf["PRIVATE_IP"]); |
$private_ip=$tmp[0]; |
$intif = $conf["INTIF"]; |
$private_ip=$tmp[0]; |
if ($conf['MULTIWAN'] !== 'Off') { |
exec ('sudo /usr/local/bin/alcasar-list-ip_gw.sh', $list_ip_gw); |
} |
require('/etc/freeradius-web/config.php'); |
# Choice of language |
$Language = 'en'; |
56,6 → 59,7 |
$l_captureon = "Autoriser et capturer"; |
$l_captureoff = "Arrêter la capture"; |
$l_captureonly_on = "Capturer"; |
$l_gw = "Routeur"; |
} else if ($Language === 'es') { |
$l_activity = "Actividad en la LAN"; |
$l_ip_adr = "Dirección IP"; |
74,6 → 78,7 |
$l_captureon = "Autorizar y capturar"; |
$l_captureoff = "Detener la captura"; |
$l_captureonly_on = "Captura"; |
$l_gw = "Router"; |
} else { |
$l_activity = "Activity on the consultation LAN"; |
$l_ip_adr = "IP Address"; |
92,6 → 97,7 |
$l_captureon = "Authorize and capture"; |
$l_captureoff = "Stop capture"; |
$l_captureonly_on = "Capture"; |
$l_gw = "Router"; |
} |
function taille_fichier($fichier) |
{ |
158,8 → 164,11 |
<th><?= $l_mac_adr ?></th> |
<th><?= $l_user ?></th> |
<th><?= $l_action ?></th> |
</tr> |
<?php |
if ($conf['MULTIWAN'] !== 'Off') { |
echo "<th>$l_gw</th>"; |
} |
echo "</tr>"; |
$IoT_capture = $conf["IOT_CAPTURE"]; |
$output = array(); $detail = array(); $nb_ligne = 0; |
exec("sudo /sbin/ip link show ".escapeshellarg($intif), $output); // retrieve ALCASAR MAC address |
287,6 → 296,19 |
} |
echo "</FORM></TD>"; |
} |
if ($conf['MULTIWAN'] !== 'Off') { |
if ($detail[4] == "1"){ // authenticated equipment |
while (list(,$ligne2) = each($list_ip_gw)){ |
$detail2 = explode (" ", $ligne2); |
if ($detail2[0] == $detail[1]){ |
echo "<td>$detail2[1]</td>"; |
break;} |
} |
} |
else { |
echo "<td> </td>"; |
} |
} |
unset ($mac_in_ether_file); |
echo "</tr>"; |
} |