diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-11-17 17:59:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-11-17 17:59:56 +0000 |
commit | 3f2b92d27424b7ae495a3e07d763ebc7d4c81122 (patch) | |
tree | 78e158d90c2f1d0be1d42e000997ed61d678e8f3 /usr/local/captiveportal/index.php | |
parent | c8e8de6f3c2ed780da6bb42f3ec025a27c08ec10 (diff) | |
download | pfsense-3f2b92d27424b7ae495a3e07d763ebc7d4c81122.zip pfsense-3f2b92d27424b7ae495a3e07d763ebc7d4c81122.tar.gz |
Add captive portal logging.
Patch-submitted-to-m0n0wall-list-by: Matt Juszczak <matt_AT_atopia.net>
Diffstat (limited to 'usr/local/captiveportal/index.php')
-rwxr-xr-x | usr/local/captiveportal/index.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index c264625..af1e1bc 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -34,6 +34,7 @@ require("util.inc"); require("config.inc"); require("radius_authentication.inc") ; require("radius_accounting.inc") ; +require("portal_log.inc") ; header("Expires: 0"); header("Cache-Control: no-store, no-cache, must-revalidate"); @@ -73,6 +74,7 @@ if ($clientmac && portal_mac_fixed($clientmac)) { $radiusservers[0]['port'], $radiusservers[0]['key']); if ($auth_val == 2) { + captiveportal_logportalauth($_POST['auth_user'],$clientmac,$clientip,TRUE); $sessionid = portal_allow($clientip, $clientmac, $_POST['auth_user']); if (isset($config['captiveportal']['radacct_enable']) && isset($radiusservers[0])) { $auth_val = RADIUS_ACCOUNTING_START($_POST['auth_user'], @@ -82,6 +84,7 @@ if ($clientmac && portal_mac_fixed($clientmac)) { $radiusservers[0]['key']); } } else { + captiveportal_logportalauth($_POST['auth_user'],$clientmac,$clientip,FALSE); readfile("{$g['varetc_path']}/captiveportal-error.html"); } } else { |