$userinfo = array();
- $fpp = new fcFPP($this->config->host, $this->config->port);
+ $fpp = new fcFPP($this->config->host, $this->config->fppport);
if ($fpp->open()) {
if ($fpp->login($this->config->userid, $this->config->passwd)) {
$userinfo['firstname'] = $fpp->getUserInfo($username,"1202");
$fcgroups = array();
- $fpp = new fcFPP($this->config->host, $this->config->port);
+ $fpp = new fcFPP($this->config->host, $this->config->fppport);
if ($fpp->open()) {
if ($fpp->login($this->config->userid, $this->config->passwd)) {
$fcgroups = $fpp->getGroups($username);
}
// save settings
- set_config('host', $config->user, 'auth/fc');
+ set_config('host', $config->host, 'auth/fc');
set_config('fppport', $config->fppport, 'auth/fc');
set_config('userid', $config->userid, 'auth/fc');
set_config('passwd', $config->passwd, 'auth/fc');
$conn = fsockopen($host, $port, $errno, $errstr, 5);
if (!$conn)
{
- print_error('auth_fcconnfail','auth', array($errno, $errstr));
+ print_error('auth_fcconnfail','auth', '', array($errno, $errstr));
return false;
}
$string['auth_fcpasswd'] = 'Password for the account above.';
$string['auth_fctitle'] = 'FirstClass server';
$string['auth_fcuserid'] = 'Userid for FirstClass account with privilege \'Subadministrator\' set.';
-$string['auth_fchost_key'] = 'Host:';
+$string['auth_fchost_key'] = 'Host';
$string['auth_fcfppport_key'] = 'Port';
$string['auth_fcuserid_key'] = 'User ID';
$string['auth_fcpasswd_key'] = 'Password';