Login working
This commit is contained in:
@@ -17,7 +17,9 @@ class Videotex extends AbstractFrame
|
||||
public static $cost_length = 7;
|
||||
public static $cost_unit = 'u';
|
||||
|
||||
public function fields($startline=0,$fieldchar='.')
|
||||
public static $if_filler = '.';
|
||||
|
||||
public function fields($startline=0)
|
||||
{
|
||||
$infield = FALSE; // In a field
|
||||
$fieldtype = NULL; // Type of field
|
||||
@@ -46,13 +48,13 @@ class Videotex extends AbstractFrame
|
||||
$infield = TRUE;
|
||||
$fieldlength = 1;
|
||||
$fieldtype = ord(substr($this->frame->content,$posn+1,1))%128;
|
||||
$this->output .= $fieldchar;
|
||||
$this->output .= static::$if_filler;
|
||||
|
||||
} else {
|
||||
if ($infield) {
|
||||
if ($byte == $fieldtype) {
|
||||
$fieldlength++;
|
||||
$byte = ord($fieldchar); // Replace field with $fieldchar.
|
||||
$byte = ord(static::$if_filler); // Replace field with static::$if_filler.
|
||||
|
||||
if ($fieldx === FALSE) {
|
||||
$fieldx = $x;
|
||||
@@ -79,7 +81,7 @@ class Videotex extends AbstractFrame
|
||||
// Drop the last dot and replace it.
|
||||
if ($fieldlength == 2) {
|
||||
$datetime = date('D d M H:ia');
|
||||
$this->output = rtrim($this->output,$fieldchar);
|
||||
$this->output = rtrim($this->output,static::$if_filler);
|
||||
$this->output .= $datetime{0};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user