Changeset 111 for branches/php/Base/UserOnline.php
- Timestamp:
- Jan 19, 2014, 12:43:49 AM (11 years ago)
- Location:
- branches/php
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/php
- Property svn:ignore
-
old new 1 2 1 config.php 3 4 2 error.log 3 .project
-
- Property svn:ignore
-
branches/php/Base/UserOnline.php
r22 r111 7 7 var $Id; 8 8 var $User; 9 var $AnonymousUserId;10 9 11 10 function __construct($System) 12 11 { 13 12 parent::__construct($System); 14 $this->Id = 0; 15 $this->AnonymousUserId = 98; 16 $this->User = $this->AnonymousUserId; 13 $this->Id = null; 17 14 } 18 15 … … 31 28 { 32 29 // Create new record 33 $this->System->Database->insert('UserOnline', array('User' => $this->AnonymousUserId,30 $this->System->Database->insert('UserOnline', array('User' => null, 34 31 'ActivityTime' => 'NOW()', 'SessionId' => '"'.session_id().'"', 35 32 'IpAddress' => '"'.$this->System->GetRemoteAddress().'"', … … 54 51 { 55 52 $this->System->Database->update('UserOnline', 'SessionId="'.session_id().'"', 56 array('User' => $this->AnonymousUserId));57 $this->User = $this->AnonymousUserId;53 array('User' => null)); 54 $this->User = null; 58 55 } 59 56 }
Note:
See TracChangeset
for help on using the changeset viewer.