This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/plugins/provision/_rrad/hAuthCommand.php

28 lines
502 B
PHP
Raw Normal View History

<?
class hAuthCommand extends hCommand
{
var $username;
var $password;
var $salesperson;
function hAuthCommand($u,$p,$s)
{
$this->username = $u;
$this->password = $p;
$this->salesperson = $s;
$this->prefix = "L I";
}
function assemble()
{
$str = $this->prefix.$this->delim.$this->username
. $this->delim.$this->password.$this->delim.RRAD_FAMILY."-"
. RRAD_F_VERSION;
if (strlen($this->salesperson))
$str .= $this->delim.$this->salesperson;
return $str;
}
}
?>