Changeset 857 for trunk/Modules/Log
- Timestamp:
- Jan 20, 2016, 11:16:40 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Log/Log.php
r843 r857 140 140 if($this->System->User->Licence(LICENCE_MODERATOR)) 141 141 { 142 $Output = '<strong> Filtr:</strong>';143 $Item = '<a href="'.$this->System->Link('/log/?type=').'" title="Bez filtrování"> Všechny</a>';142 $Output = '<strong>'.T('Filter').':</strong>'; 143 $Item = '<a href="'.$this->System->Link('/log/?type=').'" title="Bez filtrování">'.T('All').'</a>'; 144 144 if($_SESSION['type'] == '') $Item = '<strong>'.$Item.'</strong>'; 145 145 $Output .= ' '.$Item; … … 148 148 { 149 149 $Item = '<a href="'.$this->System->Link('/log/?type='.$LogType['Id']).'" style="color:'. 150 $LogType['Color'].'" title="'.$LogType['Name'].'">'. $LogType['Name'].'</a>';150 $LogType['Color'].'" title="'.$LogType['Name'].'">'.T($LogType['Name']).'</a>'; 151 151 if($_SESSION['type'] == $LogType['Id']) $Item = '<strong>'.$Item.'</strong>'; 152 152 $Output .= ' '.$Item; … … 170 170 171 171 $TableColumns = array( 172 array('Name' => 'Date', 'Title' => 'Čas'),172 array('Name' => 'Date', 'Title' => T('Time')), 173 173 ); 174 174 if($_SESSION['type'] == '') $TableColumns[] = 175 array('Name' => 'LogName', 'Title' => 'Typ');175 array('Name' => 'LogName', 'Title' => T('Type')); 176 176 $TableColumns = array_merge($TableColumns, array( 177 array('Name' => 'Text', 'Title' => 'Text'),178 array('Name' => 'UserName', 'Title' => 'Uživatel'),179 array('Name' => 'IP', 'Title' => 'Adresa'),180 array('Name' => 'URL', 'Title' => 'URL'),177 array('Name' => 'Text', 'Title' => T('Content')), 178 array('Name' => 'UserName', 'Title' => T('User')), 179 array('Name' => 'IP', 'Title' => T('Address')), 180 array('Name' => 'URL', 'Title' => T('URL')), 181 181 )); 182 182 $Order = GetOrderTableHeader($TableColumns, 'date', 1); … … 190 190 { 191 191 if($Line['Type'] == LOG_TYPE_ERROR) $Line['Text'] = htmlspecialchars($Line['Text']); 192 $Line['Text'] = str_replace("\n", '<br >', $Line['Text']);192 $Line['Text'] = str_replace("\n", '<br/>', $Line['Text']); 193 193 $Output .= '<tr><td>'.$Line['Date'].'</td>'; 194 if($_SESSION['type'] == '') $Output .= '<td>'. $Line['LogName'].'</td>';194 if($_SESSION['type'] == '') $Output .= '<td>'.T($Line['LogName']).'</td>'; 195 195 $Output .= '<td><span style="color: '.$Line['LogColor'].'">'.$Line['Text'].'</span></td>'. 196 196 '<td><a href="'.$this->System->Link('/user/?user='.$Line['User']).'">'.$Line['UserName'].'</a></td>'. … … 202 202 if($this->System->User->Licence(LICENCE_ADMIN)) 203 203 { 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>';204 $Output .= '<div>'.T('Remove').': <a href="'.$this->System->Link('/log/?a=delerrlog&type='.LOG_TYPE_ERROR).'">'.T('Error logs').'</a> '. 205 '<a href="'.$this->System->Link('/log/?a=delerrlog&type='.LOG_TYPE_PAGE_NOT_FOUND).'">'.T('Missing').'</a></div>'; 206 206 } 207 207 } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
Note:
See TracChangeset
for help on using the changeset viewer.