Changeset 22 for trunk/Base/UserOnline.php
- Timestamp:
- Mar 1, 2010, 9:12:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Base/UserOnline.php
r16 r22 7 7 var $Id; 8 8 var $User; 9 var $AnonymousUserId; 9 10 10 11 function __construct($System) … … 12 13 parent::__construct($System); 13 14 $this->Id = 0; 14 $this->User = 1; 15 $this->AnonymousUserId = 98; 16 $this->User = $this->AnonymousUserId; 15 17 } 16 18 … … 29 31 { 30 32 // Create new record 31 $this->System->Database->insert('UserOnline', array('User' => 1,33 $this->System->Database->insert('UserOnline', array('User' => $this->AnonymousUserId, 32 34 'ActivityTime' => 'NOW()', 'SessionId' => '"'.session_id().'"', 33 35 'IpAddress' => '"'.$this->System->GetRemoteAddress().'"', … … 52 54 { 53 55 $this->System->Database->update('UserOnline', 'SessionId="'.session_id().'"', 54 array('User' => 1));55 $this->User = 1;56 array('User' => $this->AnonymousUserId)); 57 $this->User = $this->AnonymousUserId; 56 58 } 57 59 }
Note:
See TracChangeset
for help on using the changeset viewer.