public function __construct($filePath = null) { parent::__construct($filePath); $this->data['msgsId'] = 100000; $this->data['msgs'] = array(); $this->data['timeCreated'] = time(); }
public function __construct($filePath = null) { #print __CLASS__.'->'.__FUNCTION__.''."\n"; parent::__construct($filePath); $this->data['timeCreated'] = time(); $this->data['nodesId'] = 0; $this->data['nodes'] = array(); }
public function __construct($filePath = null) { #print __CLASS__.'->'.__FUNCTION__.''."\n"; parent::__construct($filePath); #$this->data['id'] = 0; #$this->data['prefix'] = ''; #$this->data['prefixName'] = ''; $this->data['distance'] = 0; $this->data['distanceName'] = ''; $this->data['maskByte'] = 0; $this->data['maskByteName'] = 0; $this->data['maskBit'] = 0; $this->data['maskBitName'] = 0; $this->data['isFull'] = false; $this->data['isUpper'] = false; $this->data['isLower'] = false; $this->data['sizeMax'] = static::$SIZE_MAX; $this->data['timeCreated'] = time(); }
public function __construct($filePath = null) { parent::__construct($filePath); $this->data['version'] = 1; $this->data['id'] = ''; $this->data['relayNodeId'] = ''; $this->data['srcNodeId'] = ''; $this->data['dstNodeId'] = ''; $this->data['body'] = ''; $this->data['password'] = ''; $this->data['checksum'] = ''; $this->data['sentNodes'] = array(); $this->data['relayCount'] = 0; $this->data['forwardCycles'] = 0; $this->data['encryptionMode'] = ''; $this->data['status'] = ''; $this->data['ignore'] = false; $this->data['timeCreated'] = time(); $this->data['timeReceived'] = 0; }
public function __construct($filePath = null) { parent::__construct($filePath); $this->data['version'] = PhpChat::VERSION; $this->data['release'] = PhpChat::RELEASE; $this->data['datadir'] = 'data'; $this->data['firstRun'] = true; $this->data['timeCreated'] = time(); $this->data['node'] = array(); $this->data['node']['uriLocal'] = 'tcp://0.0.0.0:25000'; $this->data['node']['uriPub'] = ''; $this->data['node']['id'] = ''; $this->data['node']['sslKeyPrvPass'] = ''; $this->data['node']['sslKeyPrvPath'] = 'id_rsa.prv'; $this->data['node']['sslKeyPubPath'] = 'id_rsa.pub'; $this->data['node']['traffic'] = array(); $this->data['node']['traffic']['in'] = '0'; $this->data['node']['traffic']['out'] = '0'; $this->data['node']['bridge'] = array(); $this->data['node']['bridge']['server'] = array(); $this->data['node']['bridge']['server']['enabled'] = false; $this->data['node']['bridge']['client'] = array(); $this->data['node']['bridge']['client']['enabled'] = false; $this->data['user'] = array(); $this->data['user']['nickname'] = ''; $this->data['console'] = array(); $this->data['console']['history'] = array(); $this->data['console']['history']['enabled'] = true; $this->data['console']['history']['entriesMax'] = 1000; $this->data['console']['history']['saveToFile'] = true; $this->load(); if ($this->isLoaded()) { $this->data['version'] = PhpChat::VERSION; $this->data['release'] = PhpChat::RELEASE; } else { $this->data['user']['nickname'] = 'user_' . substr(md5(time()), 0, 4); $this->setDataChanged(true); $this->save(); } }
public function __construct($filePath = null) { parent::__construct($filePath); $this->uri = UriFactory::factory('tcp://'); #ve($this->uri); $this->data['id'] = '00000000-0000-4000-8000-000000000000'; $this->data['uri'] = ''; $this->data['sslKeyPubFingerprint'] = ''; $this->data['sslKeyPubStatus'] = 'U'; $this->data['distance'] = null; $this->data['connectionsOutboundSucceed'] = 0; $this->data['connectionsOutboundAttempts'] = 0; $this->data['connectionsInboundSucceed'] = 0; #$this->data['connectionsInboundAttempts'] = 0; $this->data['bridgeServer'] = false; $this->data['bridgeClient'] = false; $this->data['bridgeDst'] = array(); $this->data['bridgeSubscribed'] = false; $this->data['timeCreated'] = time(); $this->data['timeLastSeen'] = 0; $this->setIdHexStr($this->data['id']); }
public function __construct($filePath = null) { parent::__construct($filePath); #$this->data['bucketsId'] = 0; $this->data['timeCreated'] = time(); }