summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-25 04:30:17 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-25 04:30:17 +0000
commitb0d1849040b0ffcd39ceb598c07144e373217be1 (patch)
treeea9f1fd06000cbb92a17f2c1c6d12f599e27e449 /usr/local/www/interfaces.php
parent1c9bd6333e40e9f9fc0dce580fca8c5c8241d76e (diff)
downloadpfsense-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/www/interfaces.php')
-rwxr-xr-xusr/local/www/interfaces.php4
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 (&quot;spoof&quot;) the MAC
address of the WAN interface<br>
OpenPOWER on IntegriCloud