Changeset 828 for trunk/Modules/User


Ignore:
Timestamp:
Apr 27, 2016, 11:02:50 PM (9 years ago)
Author:
chronos
Message:
  • Fixed: Errors raised by PHP 7.
Location:
trunk/Modules/User
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/UserModel.php

    r746 r828  
    7474    {
    7575      // Refresh time of last access
    76       $this->Database->update('UserOnline', 'SessionId="'.$SID.'"', array('ActivityTime' => 'NOW()'));
     76      $this->Database->update('UserOnline', '`SessionId`="'.$SID.'"', array('ActivityTime' => 'NOW()'));
    7777    } else $this->Database->insert('UserOnline', array('SessionId' => $SID,
    7878      'User' => null, 'LoginTime' => 'NOW()', 'ActivityTime' => 'NOW()',
    7979      'IpAddress' => GetRemoteAddress(), 'HostName' => gethostbyaddr(GetRemoteAddress()),
    80       'ScriptName' => $_SERVER['PHP_SELF']));
     80      'ScriptName' => $_SERVER['PHP_SELF'], 'StayLogged' => 0, 'StayLoggedHash' => ''));
    8181
    8282    // Logged permanently?
     
    200200  function Login($Login, $Password, $StayLogged = false)
    201201  {
     202    if($StayLogged) $StayLogged = 1; else $StayLogged = 0;
    202203    $SID = session_id();
    203204    $Query = $this->Database->select('User', '*', 'Login="'.$Login.'"');
  • trunk/Modules/User/UserPage.php

    r826 r828  
    6464        {
    6565          $Class = new $Action[0]($this->System);
    66           $Actions .= $Class->$Action[1]();
     66          $Method = $Action[1];
     67          $Actions .= $Class->$Method();
    6768        } else $Actions .= call_user_func($Action).'<br/>';
    6869      }
Note: See TracChangeset for help on using the changeset viewer.