summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
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 /usr/local/captiveportal
parent388cb34e299b9bacf624017ca3a94e306b15f2ec (diff)
downloadpfsense-8abb10307f6b278e533b95f0df57494d88eabaa0.zip
pfsense-8abb10307f6b278e533b95f0df57494d88eabaa0.tar.gz
Remove duplicate function portal_mac_fixed()
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php21
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 ;
OpenPOWER on IntegriCloud