From: jdegraeve Date: Fri, 10 Feb 2006 14:47:12 +0000 (+0000) Subject: Wrong initialization for accounting X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=466b1dce99bdd3048442ff3d55a2b68a60bad6e3;p=m0n0chwall.git Wrong initialization for accounting git-svn-id: https://svn.m0n0.ch/wall/trunk@80 e36fee2c-cc09-0410-a7cc-ebac5c6737de --- diff --git a/captiveportal/radius_accounting.inc b/captiveportal/radius_accounting.inc index 8d3acca..5d167d5 100644 --- a/captiveportal/radius_accounting.inc +++ b/captiveportal/radius_accounting.inc @@ -179,9 +179,9 @@ function RADIUS_ACCOUNTING_STOP($ruleno,$username,$sessionid,$start_time,$radius // Create our instance, see if we should use Accounting Interim Updates or Accounting STOP messages if ($interimupdate) - $racct = new_Auth_RADIUS_Acct_Update; + $racct = new Auth_RADIUS_Acct_Update; else - $racct = new_Auth_RADIUS_Acct_Stop; + $racct = new Auth_RADIUS_Acct_Stop; /* * Currently disabled @@ -238,7 +238,7 @@ function RADIUS_ACCOUNTING_STOP($ruleno,$username,$sessionid,$start_time,$radius $racct->putAttribute(RADIUS_ACCT_OUTPUT_GIGAWORDS, $volume['output_gigawords']); if (!$interimupdate) - $racct->putAttribute(RADIUS_ACCT_TERMINATE_CAUSE, $radius_term_cause); + $racct->putAttribute(RADIUS_ACCT_TERMINATE_CAUSE, $term_cause); // Send request $result = $racct->send();