Initial echomail import
This commit is contained in:
@@ -65,15 +65,28 @@ class FTNMessage extends FTN
|
||||
|
||||
$result = unpack($this->unpackheader($struct),$header);
|
||||
|
||||
$this->src = sprintf('%s/%s',array_get($result,'onet'),array_get($result,'onode'));
|
||||
$this->dst = sprintf('%s/%s',array_get($result,'dnet'),array_get($result,'dnode'));
|
||||
$this->fn = array_get($result,'onet');
|
||||
$this->ff = array_get($result,'onode');
|
||||
|
||||
$this->src = sprintf('%s/%s',
|
||||
$this->fn,
|
||||
$this->ff
|
||||
);
|
||||
|
||||
$this->tn = array_get($result,'dnet');
|
||||
$this->tf = array_get($result,'dnode');
|
||||
|
||||
$this->dst = sprintf('%s/%s',
|
||||
$this->tn,
|
||||
$this->tf
|
||||
);
|
||||
$this->flags = array_get($result,'flags');
|
||||
$this->cost = array_get($result,'cost');
|
||||
}
|
||||
|
||||
public function __get($k)
|
||||
{
|
||||
return $this->{$k};
|
||||
return isset($this->{$k}) ? $this->{$k} : NULL;
|
||||
}
|
||||
|
||||
public function __set($k,$v)
|
||||
@@ -130,7 +143,7 @@ class FTNMessage extends FTN
|
||||
}
|
||||
|
||||
foreach ($this->_kludge as $a => $b) {
|
||||
if ($t = $this->kludge($b, $v)) {
|
||||
if ($t = $this->kludge($b,$v)) {
|
||||
$this->kludge->put($a,$t);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user