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);