diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-12-12 17:31:34 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-12-12 17:31:34 +0000 |
commit | 2653f75032d789090ae9a3228de24b10fda3d635 (patch) | |
tree | f5ad39b16ee326174ba19bdc474d3e4592594a08 /usr/local | |
parent | 56ea4f477a1c94a606ec5833956914a72fd65686 (diff) | |
download | pfsense-2653f75032d789090ae9a3228de24b10fda3d635.zip pfsense-2653f75032d789090ae9a3228de24b10fda3d635.tar.gz |
Log an error to system logs when $type is not set.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/captiveportal/index.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 71bf804..2f6970f 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -334,6 +334,10 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut $radiusservers[0]['key'], $clientip, $clientmac); + + if(!type) + log_error("WARNING: \$type has not been set in captiveportal/index.php"); + if ($acct_val == 1) captiveportal_logportalauth($username,$clientmac,$clientip,$type,"RADIUS ACCOUNTING FAILED"); } |