function getFaxData($fax_id) { $path = Hylax::getVFSPath($fax_id); $file = $fax_id . '.ps'; try { return $this->_vfs->read($path, $file); } catch (Horde_Vfs_Exception $e) { Horde::log(sprintf("%s '%s/%s'.", $e->getMessage(), $path, $file), 'ERR'); throw $e; } }
/** * Finds out if a username and password is valid. * * @param string $user The userID to check. * @param string $oldPassword An old password to check. * * @throws Passwd_Exception */ protected function _lookup($user, $oldPassword) { try { $contents = $this->_ftp->read($this->_params['path'], $this->_params['file']); } catch (Horde_Vfs_Exception $e) { throw new Passwd_Exception($e); } $this->_contents = $this->_decode($contents); foreach ($this->_contents as $line) { if ($line[1] == $user && ($line[2] == $this->_params['imaphost'] || !empty($line[4]) && $line[4] == $this->_params['imaphost'])) { $this->_comparePasswords($line[0], $oldPassword); return; } } throw new Passwd_Exception(_("User not found.")); }