From: jdegraeve Date: Thu, 9 Feb 2006 17:41:27 +0000 (+0000) Subject: A paste happened in the wrong (radius.inc) file. This fixed the problem X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3aa23838096964cc82b9a2df0e32c490f0fd38e;p=m0n0chwall.git A paste happened in the wrong (radius.inc) file. This fixed the problem git-svn-id: https://svn.m0n0.ch/wall/trunk@69 e36fee2c-cc09-0410-a7cc-ebac5c6737de --- diff --git a/phpconf/inc/radius.inc b/phpconf/inc/radius.inc index 9538378..4a82e99 100644 --- a/phpconf/inc/radius.inc +++ b/phpconf/inc/radius.inc @@ -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
\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);