Changeset 518 for trunk/log.php
- Timestamp:
- Feb 18, 2013, 10:30:36 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/log.php
r507 r518 86 86 87 87 $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']; 88 //echo($sql);89 88 $DbResult = $System->Database->query($sql); 90 89 while($Line = $DbResult->fetch_assoc()) 91 90 { 92 //$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>'; 91 $Output .= '<tr><td>'.$Line['Date'].'</td>'. 92 '<td><span style="color: '.$Line['LogColor'].'">'.htmlspecialchars($Line['Text']).'</span></td>'. 93 '<td>'.$Line['UserName'].'</td>'. 94 '<td>'.$Line['IP'].'</td></tr>'; 93 95 } 94 96 $Output .= '</table>'.
Note:
See TracChangeset
for help on using the changeset viewer.