diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-08-12 16:51:33 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-08-12 16:51:33 +0000 |
commit | 8abb10307f6b278e533b95f0df57494d88eabaa0 (patch) | |
tree | 7069136c131dc2cb47422ca5de3e6355f86245d5 /etc/inc/captiveportal.inc | |
parent | 388cb34e299b9bacf624017ca3a94e306b15f2ec (diff) | |
download | pfsense-8abb10307f6b278e533b95f0df57494d88eabaa0.zip pfsense-8abb10307f6b278e533b95f0df57494d88eabaa0.tar.gz |
Remove duplicate function portal_mac_fixed()
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index c940fd7..b64fc16 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1116,24 +1116,24 @@ function getNasIP() } function portal_mac_fixed($clientmac) { - global $g ; + global $g ; - /* open captive portal mac db */ - if (file_exists("{$g['vardb_path']}/captiveportal_mac.db")) { - $fd = @fopen("{$g['vardb_path']}/captiveportal_mac.db","r") ; - if (!$fd) { - return FALSE; - } - while (!feof($fd)) { - $mac = trim(fgets($fd)) ; - if(strcasecmp($clientmac, $mac) == 0) { - fclose($fd) ; - return TRUE ; - } - } - fclose($fd) ; - } - return FALSE ; + /* open captive portal mac db */ + if (file_exists("{$g['vardb_path']}/captiveportal_mac.db")) { + $fd = @fopen("{$g['vardb_path']}/captiveportal_mac.db","r") ; + if (!$fd) { + return FALSE; + } + while (!feof($fd)) { + $mac = trim(fgets($fd)) ; + if(strcasecmp($clientmac, $mac) == 0) { + fclose($fd) ; + return TRUE ; + } + } + fclose($fd) ; + } + return FALSE ; } -?> +?>
\ No newline at end of file |