]> git.gsnw.org Git - m0n0chwall.git/commitdiff
Wrong initialization for accounting
authorjdegraeve <jdegraeve@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Fri, 10 Feb 2006 14:47:12 +0000 (14:47 +0000)
committerjdegraeve <jdegraeve@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Fri, 10 Feb 2006 14:47:12 +0000 (14:47 +0000)
git-svn-id: https://svn.m0n0.ch/wall/trunk@80 e36fee2c-cc09-0410-a7cc-ebac5c6737de

captiveportal/radius_accounting.inc

index 8d3accac6544c8ef2a8f115791d5aa8208c818bc..5d167d559e62d2a2955de7d54968e4d458c45c84 100644 (file)
@@ -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();