Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2965 → Rev 2964

/web/acc/manager/htdocs/activity.php
29,11 → 29,8
fclose($file_conf);
 
$tmp = explode("/",$conf["PRIVATE_IP"]);
$intif = $conf["INTIF"];
$private_ip=$tmp[0];
$intif = $conf["INTIF"];
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';
59,7 → 56,6
$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";
78,7 → 74,6
$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";
97,7 → 92,6
$l_captureon = "Authorize and capture";
$l_captureoff = "Stop capture";
$l_captureonly_on = "Capture";
$l_gw = "Router";
}
function taille_fichier($fichier)
{
164,11 → 158,8
<th><?= $l_mac_adr ?></th>
<th><?= $l_user ?></th>
<th><?= $l_action ?></th>
<?php
if ($conf['MULTIWAN'] !== 'Off') {
echo "<th>$l_gw</th>";
}
echo "</tr>";
</tr>
<?php
$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
296,19 → 287,6
}
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>";
}