Changeset 828


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

Legend:

Unmodified
Added
Removed
  • trunk/Application/Version.php

    r826 r828  
    11<?php
    22
    3 $Revision = 826; // Subversion revision
     3$Revision = 828; // Subversion revision
    44$DatabaseRevision = 824; // SQL structure revision
    5 $ReleaseTime = strtotime('2016-04-16');
     5$ReleaseTime = strtotime('2016-04-27');
  • trunk/Modules/IS/IS.php

    r825 r828  
    8686      {
    8787        $Class = new $Item['Callback'][0]($this->System);
    88         $Output .= $Class->$Item['Callback'][1]();
     88        $Method = $Item['Callback'][1];
     89        $Output .= $Class->$Method();
    8990      } else $Output .= call_user_func($Item['Callback']);
    9091    }
  • 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      }
  • trunk/Readme.txt

    r607 r828  
    2929 
    30305) Požadované balíky
    31   Možnost instalovat na Fedoře přes yum install
     31  htmldoc - Pro generování PDF z HTML
    3232 
    33   htmldoc - Pro generování PDF z HTML
     33  Ubuntu: apt-get install htmldoc php7-mbstrin
    3434
    35356) Speedtest
Note: See TracChangeset for help on using the changeset viewer.