summaryrefslogtreecommitdiffstats
path: root/etc/inc/captiveportal.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-12 16:53:28 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-12 16:53:28 +0000
commit89e3d8f3b28527997473039cf975efac094d3160 (patch)
tree9cd334b3a53b938da45d9863d1e5ef038171296a /etc/inc/captiveportal.inc
parentf7b35fcd38d9c2ee229b2a6c68e381e7789ffdbe (diff)
downloadpfsense-89e3d8f3b28527997473039cf975efac094d3160.zip
pfsense-89e3d8f3b28527997473039cf975efac094d3160.tar.gz
Remove duplicate function portal_mac_fixed()
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r--etc/inc/captiveportal.inc34
1 files changed, 17 insertions, 17 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 9474133..c41894d 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -1100,24 +1100,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