Changeset 532 for trunk/Common/Page.php


Ignore:
Timestamp:
Apr 24, 2013, 9:09:32 PM (11 years ago)
Author:
chronos
Message:
  • Upraveno: Metoda ShowMain v PageNews rozdělena do jednotlivých metod dle vybrané akce.
  • Opraveno: V souboru EmailQueue se vkládaly na výstup chybně dva znaky mezer.
  • Opraveno: Zamezení úpravy aktualit vložených bez nastaveného uživatele (jako anonym).
  • Opraveno: Odstraněny některé pevné reference na server centrala.
  • Opraveno: Uložení úpravy odkazu aktualit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Page.php

    r529 r532  
    1616  function __construct($System)
    1717  {
    18     global $Config;
    19    
    2018    parent::__construct($System);
    2119   
    22     $this->FormatHTML = $Config['Web']['FormatHTML'];
    23     $this->ShowRuntimeInfo = $Config['Web']['ShowRuntimeInfo'];
     20    $this->FormatHTML = $this->System->Config['Web']['FormatHTML'];
     21    $this->ShowRuntimeInfo = $this->System->Config['Web']['ShowRuntimeInfo'];
    2422  }
    2523
     
    7674          else $Output .= $this->System->User->User['Name'].' <a href="'.$this->System->Link('/?Action=Logout').'">Odhlásit</a>';
    7775     } else $Output .= '&nbsp;';
    78 //   <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení</a>';
     76//   <a href="'.$this->System->Link('/?Action=UserOptions').'">Nastavení</a>';
    7977      $Output .= '</div></div>';
    8078    }
     
    9189      $Output .= '<div id="Footer">
    9290     <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' |';
    93       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 |';
     91      if($this->ShowRuntimeInfo == true) $Output .= ' Doba generování: '.$Time.' s / '.ini_get('max_execution_time').
     92        ' s | Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B |';
    9493      $Output .= '</i></div>';
    9594    }
     
    9998
    10099  function GetOutput()
    101   {
    102     $Output = $this->Show();
     100  {
     101    try {
     102      $Output = $this->Show();
     103    } catch (Exception $E) {
     104      $Output = 'Chyba: '.$E->getMessage();
     105    }
    103106    if($this->ClearPage == false)
    104107    {
     
    119122  }
    120123
    121   // Funkce formatovani vystupu
     124  // XML formating function
    122125  function FormatOutput($s)
    123126  {
Note: See TracChangeset for help on using the changeset viewer.