Changeset 842 for trunk/Modules/Log


Ignore:
Timestamp:
Jan 12, 2016, 10:55:07 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Admin section transformed to application module.
File:
1 edited

Legend:

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

    r838 r842  
    2020  function DoStart()
    2121  {
    22     $this->System->RegisterPage('log.php', 'PageLog');
     22    $this->System->RegisterPage('log', 'PageLog');
    2323    $this->System->ModuleManager->Modules['Error']->OnError[] = array($this, 'DoAddItem');
    2424    $this->System->ModuleManager->Modules['News']->RegisterRSS(array('Title' => T('Logs'),
     
    9191      (
    9292        'Title' => $LogType['Name'].' ('.$Line['UserName'].', '.$Line['IP'].')',
    93         'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/log.php'),
     93        'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/log/'),
    9494        'Description' => $LogType['Name'].': '.$Line['Text'].' ('.$Line['UserName'].
    9595          ', '.$Line['IP'].', '.HumanDate($Line['Date']).')',
     
    141141    {
    142142      $Output = '<strong>Filtr:</strong>';
    143         $Item = '<a href="log.php?type=" title="Bez filtrování">Všechny</a>';
     143        $Item = '<a href="'.$this->System->Link('/log/?type=').'" title="Bez filtrování">Všechny</a>';
    144144      if($_SESSION['type'] == '') $Item = '<strong>'.$Item.'</strong>';
    145145      $Output .= ' '.$Item;
     
    147147      while($LogType = $DbResult->fetch_assoc())
    148148      {
    149         $Item = '<a href="log.php?type='.$LogType['Id'].'" style="color:'.$LogType['Color'].'" title="'.$LogType['Name'].'">'.$LogType['Name'].'</a>';
     149        $Item = '<a href="'.$this->System->Link('/log/?type='.$LogType['Id']).'" style="color:'.
     150          $LogType['Color'].'" title="'.$LogType['Name'].'">'.$LogType['Name'].'</a>';
    150151        if($_SESSION['type'] == $LogType['Id']) $Item = '<strong>'.$Item.'</strong>';
    151152        $Output .= ' '.$Item;
     
    201202      if($this->System->User->Licence(LICENCE_ADMIN))
    202203      {
    203         $Output .= '<div>Vymazat: <a href="'.$this->System->Link('/log.php?a=delerrlog&amp;type='.LOG_TYPE_ERROR).'">Chybové záznamy</a> '.
    204           '<a href="'.$this->System->Link('/log.php?a=delerrlog&amp;type='.LOG_TYPE_PAGE_NOT_FOUND).'">Neznámé stránky</a></div>';
     204        $Output .= '<div>Vymazat: <a href="'.$this->System->Link('/log/?a=delerrlog&amp;type='.LOG_TYPE_ERROR).'">Chybové záznamy</a> '.
     205          '<a href="'.$this->System->Link('/log/?a=delerrlog&amp;type='.LOG_TYPE_PAGE_NOT_FOUND).'">Neznámé stránky</a></div>';
    205206      }
    206207    } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
Note: See TracChangeset for help on using the changeset viewer.