Changeset 842 for trunk/Modules/Log/Log.php
- Timestamp:
- Jan 12, 2016, 10:55:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Log/Log.php
r838 r842 20 20 function DoStart() 21 21 { 22 $this->System->RegisterPage('log .php', 'PageLog');22 $this->System->RegisterPage('log', 'PageLog'); 23 23 $this->System->ModuleManager->Modules['Error']->OnError[] = array($this, 'DoAddItem'); 24 24 $this->System->ModuleManager->Modules['News']->RegisterRSS(array('Title' => T('Logs'), … … 91 91 ( 92 92 '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/'), 94 94 'Description' => $LogType['Name'].': '.$Line['Text'].' ('.$Line['UserName']. 95 95 ', '.$Line['IP'].', '.HumanDate($Line['Date']).')', … … 141 141 { 142 142 $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>'; 144 144 if($_SESSION['type'] == '') $Item = '<strong>'.$Item.'</strong>'; 145 145 $Output .= ' '.$Item; … … 147 147 while($LogType = $DbResult->fetch_assoc()) 148 148 { 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>'; 150 151 if($_SESSION['type'] == $LogType['Id']) $Item = '<strong>'.$Item.'</strong>'; 151 152 $Output .= ' '.$Item; … … 201 202 if($this->System->User->Licence(LICENCE_ADMIN)) 202 203 { 203 $Output .= '<div>Vymazat: <a href="'.$this->System->Link('/log .php?a=delerrlog&type='.LOG_TYPE_ERROR).'">Chybové záznamy</a> '.204 '<a href="'.$this->System->Link('/log .php?a=delerrlog&type='.LOG_TYPE_PAGE_NOT_FOUND).'">Neznámé stránky</a></div>';204 $Output .= '<div>Vymazat: <a href="'.$this->System->Link('/log/?a=delerrlog&type='.LOG_TYPE_ERROR).'">Chybové záznamy</a> '. 205 '<a href="'.$this->System->Link('/log/?a=delerrlog&type='.LOG_TYPE_PAGE_NOT_FOUND).'">Neznámé stránky</a></div>'; 205 206 } 206 207 } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
Note:
See TracChangeset
for help on using the changeset viewer.