Changeset 504 for trunk/log.php
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 2 2 aowow 3 3 nbproject 4 .settings 5 .project 6 .buildpath
-
- Property svn:ignore
-
trunk/log.php
r482 r504 3 3 include_once('includes/global.php'); 4 4 5 $Output = ''; 5 6 if(array_key_exists('rss', $_GET)) 6 7 { … … 24 25 } 25 26 26 echo(GenerateRSS(array27 $Output .= GenerateRSS(array 27 28 ( 28 29 'Title' => 'WoWpřeklad', 29 30 'Link' => 'http://'.$Config['Web']['Host'].$System->Link('/'), 30 'Description' => 'Překlad textů WoW',31 'Description' => $Config['Web']['Title'], 31 32 'WebmasterEmail' => $Config['Web']['AdminEmail'], 32 33 'Items' => $Items, 33 ))); 34 )); 35 echo($Output); 34 36 } else 35 37 { … … 43 45 44 46 $RSSChannels = array(array('Title' => 'Záznamy změn', 'URL' => 'log.php?rss&type='.$_SESSION['type'])); 45 ShowPage();46 47 47 48 if($User->Licence(LICENCE_MODERATOR)) 48 49 { 49 echo('<strong>Filtr: </strong>');50 echo('<span style="color:black"><a href="log.php?type=" title="Bez filtrování">Všechny</a></span> ');50 $Output = '<strong>Filtr: </strong>'. 51 '<span style="color:black"><a href="log.php?type=" title="Bez filtrování">Všechny</a></span> '; 51 52 $DbResult = $System->Database->query('SELECT * FROM `LogType`'); 52 53 while($LogType = $DbResult->fetch_assoc()) 53 54 { 54 echo('<a href="log.php?type='.$LogType['Id'].'" style="color:'.$LogType['Color'].'" title="'.$LogType['Name'].'">'.$LogType['Name'].'</a> ');55 $Output .= '<a href="log.php?type='.$LogType['Id'].'" style="color:'.$LogType['Color'].'" title="'.$LogType['Name'].'">'.$LogType['Name'].'</a> '; 55 56 } 56 57 } 57 58 // echo ' Formát: datum: text zprávy (uživatel, IP)<br /><br />'; 58 echo('<br /><br />');59 $Output .= '<br /><br />'; 59 60 60 61 if(array_key_exists('type', $_SESSION)) $Where = ' WHERE '.$WhereType; … … 70 71 $PageList = GetPageList($DbRow[0]); 71 72 72 echo($PageList['Output']);73 $Output .= $PageList['Output']; 73 74 74 75 $TableColumns = array( … … 79 80 ); 80 81 $Order = GetOrderTableHeader($TableColumns, 'date', 1); 81 echo('<table width="98%" class="BaseTable">');82 echo($Order['Output']);82 $Output .= '<table width="98%" class="BaseTable">'. 83 $Order['Output']; 83 84 84 85 $sql = 'SELECT *, `LogType`.`Color` AS `LogColor`, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `Log`.`User`) AS `UserName` FROM `Log` LEFT JOIN `LogType` ON `LogType`.`Id`=`Log`.`Type` '.$Where.$Order['SQL'].$PageList['SQLLimit']; … … 87 88 while($Line = $DbResult->fetch_assoc()) 88 89 { 89 echo('<tr><td>'.$Line['Date'].'</td><td><span style="color: '.$Line['LogColor'].'">'.$Line['Text'].'</span></td><td>'.$Line['UserName'].'</td><td>'.$Line['IP'].'</td></tr>');90 $Output .= '<tr><td>'.$Line['Date'].'</td><td><span style="color: '.$Line['LogColor'].'">'.$Line['Text'].'</span></td><td>'.$Line['UserName'].'</td><td>'.$Line['IP'].'</td></tr>'; 90 91 } 91 echo('</table>');92 echo($PageList['Output']);92 $Output .= '</table>'. 93 $PageList['Output']; 93 94 94 Show Footer();95 ShowPage($Output); 95 96 } 96 97
Note:
See TracChangeset
for help on using the changeset viewer.