summaryrefslogtreecommitdiffstats
path: root/etc/inc/captiveportal.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-12 16:51:33 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-12 16:51:33 +0000
commit8abb10307f6b278e533b95f0df57494d88eabaa0 (patch)
tree7069136c131dc2cb47422ca5de3e6355f86245d5 /etc/inc/captiveportal.inc
parent388cb34e299b9bacf624017ca3a94e306b15f2ec (diff)
downloadpfsense-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.inc36
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
OpenPOWER on IntegriCloud