summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_dhcp_leases.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2006-11-11 17:52:40 +0000
committerBill Marquette <billm@pfsense.org>2006-11-11 17:52:40 +0000
commit6a01ea44fbb8ed7144eed374a77681f32cf17cac (patch)
tree286b2936b36489f41f67c61bbea2a5c3189e3a48 /usr/local/www/diag_dhcp_leases.php
parent0dbac999dc6f706c5496bb0bc7c4bc40aacb6dba (diff)
downloadpfsense-6a01ea44fbb8ed7144eed374a77681f32cf17cac.zip
pfsense-6a01ea44fbb8ed7144eed374a77681f32cf17cac.tar.gz
MFC [15285]
add dhcpd static mappings to dns forwarder
Diffstat (limited to 'usr/local/www/diag_dhcp_leases.php')
-rwxr-xr-xusr/local/www/diag_dhcp_leases.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_dhcp_leases.php b/usr/local/www/diag_dhcp_leases.php
index 4a94a54..de1d645 100755
--- a/usr/local/www/diag_dhcp_leases.php
+++ b/usr/local/www/diag_dhcp_leases.php
@@ -191,7 +191,7 @@ foreach($config['interfaces'] as $ifname => $ifarr) {
$slease['start'] = gmdate("M d Y H:i:s", time());
$slease['end'] = gmdate("M d Y H:i:s", time());
$slease['end'] = gmdate("M d Y H:i:s", strtotime('+5 minutes'));
- $slease['hostname'] = $static['descr'];
+ $slease['hostname'] = $static['hostname'];
$slease['act'] = "static";
$online = exec("/usr/sbin/arp -an |/usr/bin/grep {$slease['mac']}| /usr/bin/wc -l|/usr/bin/awk '{print $1;}'");
if ($online == 1) {
@@ -263,7 +263,7 @@ foreach ($leases as $data) {
echo "<td class=\"listr\">{$fspans}{$data['act']}{$fspane}&nbsp;</td>\n";
if ($data['type'] == "dynamic") {
- echo "<td class=\"list\" valign=\"middle\"><a href=\"services_dhcp_edit.php?if={$data['if']}&mac={$data['mac']}&descr={$data['hostname']}\">";
+ echo "<td class=\"list\" valign=\"middle\"><a href=\"services_dhcp_edit.php?if={$data['if']}&mac={$data['mac']}&hostname={$data['hostname']}\">";
echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"add a static mapping for this MAC address\"></a></td>\n";
} else {
echo "<td class=\"list\" valign=\"middle\">";
OpenPOWER on IntegriCloud