diff options
Diffstat (limited to 'usr/local/captiveportal')
-rw-r--r-- | usr/local/captiveportal/radius_accounting.inc | 5 | ||||
-rw-r--r-- | usr/local/captiveportal/radius_authentication.inc | 1 |
2 files changed, 5 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" ; diff --git a/usr/local/captiveportal/radius_authentication.inc b/usr/local/captiveportal/radius_authentication.inc index c106da3..86e5bfe 100644 --- a/usr/local/captiveportal/radius_authentication.inc +++ b/usr/local/captiveportal/radius_authentication.inc @@ -30,6 +30,7 @@ function RADIUS_AUTHENTICATION($username,$password,$radiusip,$radiusport,$radiuskey) { $sharedsecret=$radiuskey ; + global $debug, $errno, $nasHostname, $errstr; # $debug = 1 ; exec("/bin/hostname", $nasHostname) ; |