diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 04:30:17 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 04:30:17 +0000 |
commit | b0d1849040b0ffcd39ceb598c07144e373217be1 (patch) | |
tree | ea9f1fd06000cbb92a17f2c1c6d12f599e27e449 /usr/local | |
parent | 1c9bd6333e40e9f9fc0dce580fca8c5c8241d76e (diff) | |
download | pfsense-b0d1849040b0ffcd39ceb598c07144e373217be1.zip pfsense-b0d1849040b0ffcd39ceb598c07144e373217be1.tar.gz |
* Rename Copy my MAC address to Insert my local MAC address
* Do not show Insert my local MAC address when no mac is detected
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/interfaces.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 39bc9cc..e9460f0 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -779,8 +779,10 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" $ip = getenv('REMOTE_ADDR'); $mac = `/usr/sbin/arp -an | grep {$ip} | cut -d" " -f4`; $mac = str_replace("\n","",$mac); + if($mac): ?> - <a OnClick="document.forms[0].spoofmac.value='<?=$mac?>';" href="#">Copy my MAC address</a> + <a OnClick="document.forms[0].spoofmac.value='<?=$mac?>';" href="#">Insert my local MAC address</a> + <?php endif; ?> <br> This field can be used to modify ("spoof") the MAC address of the WAN interface<br> |