Ignore:
Timestamp:
Jan 19, 2014, 12:43:49 AM (11 years ago)
Author:
chronos
Message:
  • Opraveno: Namísto číselného id anonyma používat null hodnotu.
Location:
branches/php
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/php

    • Property svn:ignore
      •  

        old new  
        1 
        21config.php
        3 
        42error.log
         3.project
  • branches/php/Base/UserOnline.php

    r22 r111  
    77  var $Id;
    88  var $User;
    9   var $AnonymousUserId;
    109
    1110  function __construct($System)
    1211  {
    1312    parent::__construct($System);
    14     $this->Id = 0;
    15     $this->AnonymousUserId = 98;
    16     $this->User = $this->AnonymousUserId;
     13    $this->Id = null;
    1714  }
    1815
     
    3128    {
    3229      // Create new record
    33       $this->System->Database->insert('UserOnline', array('User' => $this->AnonymousUserId,
     30      $this->System->Database->insert('UserOnline', array('User' => null,
    3431        'ActivityTime' => 'NOW()', 'SessionId' => '"'.session_id().'"',
    3532        'IpAddress' => '"'.$this->System->GetRemoteAddress().'"',
     
    5451    {
    5552      $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;
    5855    }
    5956  }
Note: See TracChangeset for help on using the changeset viewer.