Line 2... |
Line 2... |
2 |
<?
|
2 |
<?
|
3 |
echo "$l_static_dhcp_title</td></tr>";
|
3 |
echo "$l_static_dhcp_title</td></tr>";
|
4 |
echo "<tr><td align='center' valign='middle'>";
|
4 |
echo "<tr><td align='center' valign='middle'>";
|
5 |
echo "<FORM action='network.php' method='POST'>";
|
5 |
echo "<FORM action='network.php' method='POST'>";
|
6 |
echo "<table cellspacing=2 cellpadding=3 border=1>";
|
6 |
echo "<table cellspacing=2 cellpadding=3 border=1>";
|
7 |
echo "<tr><th>$l_mac_address<th>$l_ip_address<th>$l_mac_del</tr>";
|
7 |
echo "<tr><th>$l_mac_address<th>$l_ip_address<th>$l_del</tr>";
|
8 |
// Read the "ether" file
|
8 |
// Read the "ether" file
|
9 |
$intif = $conf["INTIF"];
|
9 |
$intif = $conf["INTIF"];
|
10 |
exec ("sudo /sbin/ip link show $intif", $output);
|
10 |
exec ("sudo /sbin/ip link show $intif", $output);
|
11 |
$detail = explode (" " , $output[1]);
|
11 |
$detail = explode (" " , $output[1]);
|
12 |
$intif_mac_addr=strtoupper(str_replace(":","-",$detail[5]));
|
12 |
$intif_mac_addr=strtoupper(str_replace(":","-",$detail[5]));
|