Ignore:
Timestamp:
Mar 1, 2010, 9:12:44 PM (14 years ago)
Author:
george
Message:
  • Přidáno: Skript pro import ze databáze centrály.
  • Přidáno: Zprovozněno přihalšování a odhlašování uživatelů, prohlížení a změna profilu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Base/UserOnline.php

    r16 r22  
    77  var $Id;
    88  var $User;
     9  var $AnonymousUserId;
    910
    1011  function __construct($System)
     
    1213    parent::__construct($System);
    1314    $this->Id = 0;
    14     $this->User = 1;
     15    $this->AnonymousUserId = 98;
     16    $this->User = $this->AnonymousUserId;
    1517  }
    1618
     
    2931    {
    3032      // Create new record
    31       $this->System->Database->insert('UserOnline', array('User' => 1,
     33      $this->System->Database->insert('UserOnline', array('User' => $this->AnonymousUserId,
    3234        'ActivityTime' => 'NOW()', 'SessionId' => '"'.session_id().'"',
    3335        'IpAddress' => '"'.$this->System->GetRemoteAddress().'"',
     
    5254    {
    5355      $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;
    5658    }
    5759  }
Note: See TracChangeset for help on using the changeset viewer.