Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1581 → Rev 1582

/web/acc/admin/network2.php
6,6 → 6,11
echo "<table cellspacing=2 cellpadding=3 border=1>";
echo "<tr><th>$l_mac_address<th>$l_ip_address<th>$l_mac_del</tr>";
// Read the "ether" file
$intif = $conf["INTIF"];
exec ("sudo /sbin/ip link show $intif", $output);
$detail = explode (" " , $output[1]);
$intif_mac_addr=strtoupper(str_replace(":","-",$detail[5]));
unset ($output);unset ($detail);
$line_exist=False;
$tab=file(ETHERS_FILE);
if ($tab) # le fichier n'est pas vide
18,7 → 23,9
$ip_addr=$field[1];
echo "<tr><td>$mac_addr";
echo "<td>$ip_addr";
echo "<td><input type='checkbox' name='$mac_addr'>";
if ($mac_addr != $intif_mac_addr)
echo "<td><input type='checkbox' name='$mac_addr'>";
else echo "<td>";
echo "</tr>";
}
}