diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-09-14 18:16:13 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-09-14 18:20:27 -0400 |
commit | 13d193c2f742f037ff4e87e373922d8b6e7c5749 (patch) | |
tree | 991614998a749391854dea5bb3cb5edc5380e88a /usr/local/www/diag_dhcp_leases.php | |
parent | 40b48c6cd486efddf88a805efeb42e3181fd93bc (diff) | |
download | pfsense-13d193c2f742f037ff4e87e373922d8b6e7c5749.zip pfsense-13d193c2f742f037ff4e87e373922d8b6e7c5749.tar.gz |
Add pfSense_BUILDER_BINARIES: and pfSense_MODULE:. Adjust Copyright to include 2009 on files that I have asserted (C) on
Diffstat (limited to 'usr/local/www/diag_dhcp_leases.php')
-rwxr-xr-x | usr/local/www/diag_dhcp_leases.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/local/www/diag_dhcp_leases.php b/usr/local/www/diag_dhcp_leases.php index c79f309..1496685 100755 --- a/usr/local/www/diag_dhcp_leases.php +++ b/usr/local/www/diag_dhcp_leases.php @@ -2,7 +2,7 @@ /* $Id$ */ /* diag_dhcp_leases.php - Copyright (C) 2004 Scott Ullrich + Copyright (C) 2004-2009 Scott Ullrich All rights reserved. originially part of m0n0wall (http://m0n0.ch/wall) @@ -31,6 +31,11 @@ POSSIBILITY OF SUCH DAMAGE. */ +/* + pfSense_BUILDER_BINARIES: /usr/bin/awk /bin/cat /usr/sbin/arp /usr/bin/wc /usr/bin/grep + pfSense_MODULE: dhcpserver +*/ + ##|+PRIV ##|*IDENT=page-status-dhcpleases ##|*NAME=Status: DHCP leases page @@ -38,7 +43,6 @@ ##|*MATCH=diag_dhcp_leases.php* ##|-PRIV - require("guiconfig.inc"); $pgtitle = array("Status","DHCP leases"); @@ -111,9 +115,8 @@ $cleanpattern = "'{ gsub(\"#.*\", \"\");} { gsub(\";\", \"\"); print;}'"; $splitpattern = "'BEGIN { RS=\"}\";} {for (i=1; i<=NF; i++) printf \"%s \", \$i; printf \"}\\n\";}'"; /* stuff the leases file in a proper format into a array by line */ -exec("cat {$leasesfile} | {$awk} {$cleanpattern} | {$awk} {$splitpattern}", $leases_content); +exec("/bin/cat {$leasesfile} | {$awk} {$cleanpattern} | {$awk} {$splitpattern}", $leases_content); $leases_count = count($leases_content); - exec("/usr/sbin/arp -an", $rawdata); $arpdata = array(); foreach ($rawdata as $line) { @@ -272,9 +275,6 @@ foreach($config['interfaces'] as $ifname => $ifarr) { if ($_GET['order']) usort($leases, "leasecmp"); -?> - -<?php /* only print pool status when we have one */ if(count($pools) > 0) { ?> |