Changeset 524 for trunk/Common/Page.php


Ignore:
Timestamp:
Apr 20, 2013, 8:51:15 PM (11 years ago)
Author:
chronos
Message:
  • Upraveno: Definice třída User přesunuta do modulu User. Existuje aplikační modul System->ModuleManager->ModulesUser a samotná instance třídy System->User.
  • Upraveno: Zbylá inicializace starého modulového systému třídy Module přesunuta do startovní části aplikačních modulů.
  • Upraveno: Třída System přesunuta ze souboru Common/Global do samostatného souboru Common/System.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Page.php

    r521 r524  
    6767    if($this->System->Config['Web']['UserSupport'] == 1)
    6868    {
    69       if($this->System->Modules['User']->User['Id'] == null)
     69      if($this->System->User->User['Id'] == null)
    7070        $Output .= '<a href="'.$this->System->Link('/?Action=LoginForm').'">Přihlášení</a> <a href="'.$this->System->Link('/?Action=UserRegister').'">Registrace</a>';
    71         else $Output .= $this->System->Modules['User']->User['Name'].' <a href="'.$this->System->Link('/?Action=Logout').'">Odhlásit</a>';
     71        else $Output .= $this->System->User->User['Name'].' <a href="'.$this->System->Link('/?Action=Logout').'">Odhlásit</a>';
    7272   } else $Output .= '&nbsp;';
    7373// <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení</a>';
     
    7878  function ShowFooter()
    7979  {
    80   global $ScriptTimeStart;
     80    global $ScriptTimeStart;
    8181    $Time = round(GetMicrotime() - $ScriptTimeStart, 2);
    8282    $Output = '<div id="Footer">
    8383   <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' |';
    8484    if($this->ShowRuntimeInfo == true) $Output .= ' Doba generování: '.$Time.' s / '.ini_get('max_execution_time').' s | Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B |';
    85   $Output .= '</i></div></body></html>';
     85    $Output .= '</i></div></body></html>';
    8686    return($Output);
    8787  }
Note: See TracChangeset for help on using the changeset viewer.