summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal/radius_accounting.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-15 03:33:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-15 03:33:18 +0000
commit767a716ecd96105621e239633c04651a02bd8fb8 (patch)
treea9455173dba67b71599f611cb3eebb6aaa584745 /usr/local/captiveportal/radius_accounting.inc
parent3e789a8b1385cbd0ccc952b7eac5e1e01ff1a478 (diff)
downloadpfsense-767a716ecd96105621e239633c04651a02bd8fb8.zip
pfsense-767a716ecd96105621e239633c04651a02bd8fb8.tar.gz
Correct warnings and errors found eclipse
Diffstat (limited to 'usr/local/captiveportal/radius_accounting.inc')
-rw-r--r--usr/local/captiveportal/radius_accounting.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/captiveportal/radius_accounting.inc b/usr/local/captiveportal/radius_accounting.inc
index 14264f6..9744809 100644
--- a/usr/local/captiveportal/radius_accounting.inc
+++ b/usr/local/captiveportal/radius_accounting.inc
@@ -35,6 +35,7 @@
*/
function RADIUS_ACCOUNTING_START($username,$sessionid,$radiusip,$radiusport,$radiuskey,$clientip) {
+ global $debug, $nasHostname, $errstr;
$sharedsecret=$radiuskey ;
# $debug = 1 ;
@@ -42,6 +43,7 @@ function RADIUS_ACCOUNTING_START($username,$sessionid,$radiusip,$radiusport,$rad
if(!$nasHostname[0])
$nasHostname[0] = "m0n0wall" ;
+ $errno = "";
$fd = @fsockopen("udp://$radiusip",$radiusport,$errno,$errstr,3) ;
if(!$fd)
return 1 ; /* error return */
@@ -137,8 +139,9 @@ function RADIUS_ACCOUNTING_START($username,$sessionid,$radiusip,$radiusport,$rad
function RADIUS_ACCOUNTING_STOP($ruleno,$username,$sessionid,$start_time,$radiusip,$radiusport,$radiuskey,$clientip,$interimupdate=false) {
$sharedsecret=$radiuskey ;
+ global $debug, $errno, $ipfw, $errstr,$nasHostname;
+ $matches = "";
# $debug = 1 ;
-
exec("/bin/hostname", $nasHostname) ;
if(!$nasHostname[0])
$nasHostname[0] = "quewall" ;
OpenPOWER on IntegriCloud