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 /usr/local/captiveportal | |
parent | 388cb34e299b9bacf624017ca3a94e306b15f2ec (diff) | |
download | pfsense-8abb10307f6b278e533b95f0df57494d88eabaa0.zip pfsense-8abb10307f6b278e533b95f0df57494d88eabaa0.tar.gz |
Remove duplicate function portal_mac_fixed()
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-x | usr/local/captiveportal/index.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index e4fcb42..9489689 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -202,27 +202,6 @@ function portal_reply_page($redirurl, $type = null, $message = null, $clientmac echo $htmltext; } -function portal_mac_fixed($clientmac) { - 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 ; -} - function portal_mac_radius($clientmac,$clientip) { global $config ; |