diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-13 20:13:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-13 20:13:37 +0000 |
commit | 87c8f2c991b68033295dfb2a59484f578ec5b8d3 (patch) | |
tree | 7aeea4183281322cacc1c443747951a13c7a86f2 /usr/local/captiveportal | |
parent | 3aed9904470fc5aaba737b969be8f910b1a85785 (diff) | |
download | pfsense-87c8f2c991b68033295dfb2a59484f578ec5b8d3.zip pfsense-87c8f2c991b68033295dfb2a59484f578ec5b8d3.tar.gz |
Sync with Pascal's latest versin
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-x | usr/local/captiveportal/index.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index c51c073..1f35a57 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -106,19 +106,6 @@ if ($clientmac && portal_mac_fixed($clientmac)) { readfile("{$g['varetc_path']}/captiveportal-error.html"); } -} else if ($_POST['accept'] && $config['captiveportal']['auth_method']=="local") { - //check against local usermanager - - //erase expired accounts - if(trim($config['users'][$_POST['auth_user']]['expirationdate'])!="" && strtotime("-1 day")>strtotime($config['users'][$_POST['auth_user']]['expirationdate'])){ - unset($config['users'][$_POST['auth_user']]); - write_config(); - } - if($config['users'][$_POST['auth_user']]['password']==md5($_POST['auth_pass'])){ - portal_allow($clientip, $clientmac,$_POST['auth_user'],0,0); - } else { - readfile("{$g['varetc_path']}/captiveportal-error.html"); - } } else if ($_POST['accept'] && $clientip) { //KEYCOM: authorised up and down bandwidth defaults (set from webgui). If not set, use 128/128 if (isset($config['captiveportal']['peruserbw'])) { |