Ignore:
Timestamp:
Sep 11, 2013, 10:37:54 PM (11 years ago)
Author:
chronos
Message:
  • Modified: Moved some code from global to system file. System class is now serving as main application class. Now old files which still use ShowPage function need system initialization with $InitSystem = true; before global.php inclusion.
  • Modified: Get rid of some global reference to $System, $Config and $User variables.
  • Modified: Search result functionality moved to application module from action.php file.
File:
1 edited

Legend:

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

    r563 r577  
    2121        function Start()
    2222        {
     23                global $User;
     24               
    2325                $this->System->User = new User($this->System);
    24                 $this->System->RegisterPage('userlist.php', 'PageUserList');
     26    $this->System->RegisterPage('userlist.php', 'PageUserList');
    2527                $this->System->RegisterPage('Options.php', 'PageUserOptions');
    2628                $this->System->RegisterPage('registrace.php', 'PageUserRegistration');
     
    8789      $this->Id = $User['ID'];     
    8890      $this->Load();
    89       WriteLog('Login: '.$Name, LOG_TYPE_USER);
     91      $this->System->ModuleManager->Modules['Log']->WriteLog('Login: '.$Name, LOG_TYPE_USER);
    9092      $this->UpdateState();
    9193    } else $this->Role = LICENCE_ANONYMOUS;
Note: See TracChangeset for help on using the changeset viewer.