]> git.gsnw.org Git - m0n0chwall.git/commitdiff
A paste happened in the wrong (radius.inc) file. This fixed the problem
authorjdegraeve <jdegraeve@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Thu, 9 Feb 2006 17:41:27 +0000 (17:41 +0000)
committerjdegraeve <jdegraeve@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Thu, 9 Feb 2006 17:41:27 +0000 (17:41 +0000)
git-svn-id: https://svn.m0n0.ch/wall/trunk@69 e36fee2c-cc09-0410-a7cc-ebac5c6737de

phpconf/inc/radius.inc

index 9538378429ada720e23b48d50bbb853fd99a490f..4a82e99ab7a0319198c2ef636a7c272a81852454 100644 (file)
@@ -236,23 +236,10 @@ class Auth_RADIUS extends PEAR {
         switch ($type) {
         case 'integer':
             return radius_put_int($this->res, $attrib, $value);
-        
+
         case 'addr':
-            return radius_put_addr($this->res, $attrib, $value);    // Construct data package
-    $racct->addServer($radiusip, $radiusport, $radiuskey);
-    $racct->username = $username;
-
-    if (PEAR::isError($racct->start())) {
-        $retvalue['acct_val'] = 1;
-        $retvalue['error'] = $racct->getMessage();
-        if ($debug)
-            printf("Radius start: %s<br>\n", $retvalue['error']);
-        // If we encounter an error immediately stop this function and go back
-        $racct->close();
-        return $retvalue;
-    }
+            return radius_put_addr($this->res, $attrib, $value);}
 
-            
         case 'string':
         default:
             return radius_put_attr($this->res, $attrib, $value);