Changeset 586 for trunk/Modules/Log
- Timestamp:
- Oct 7, 2013, 11:52:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Log/Log.php
r581 r586 79 79 if(array_key_exists('type', $_GET)) $Where = ' WHERE `Type` = "'.($_GET['type'] * 1).'"'; 80 80 else $Where = ''; 81 $sql = 'SELECT *, UNIX_TIMESTAMP(`Date`) AS `TimeCreate`, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `Log`.`User`) AS `UserName` FROM `Log`'.$Where.' ORDER BY `Date` DESC LIMIT 100'; 81 $sql = 'SELECT *, UNIX_TIMESTAMP(`Date`) AS `TimeCreate`, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `Log`.`User`) AS `UserName` FROM `Log`'. 82 $Where.' ORDER BY `Date` DESC LIMIT 100'; 82 83 $DbResult = $this->System->Database->query($sql); 83 84 while($Line = $DbResult->fetch_assoc()) … … 93 94 'Title' => $LogType['Name'].' ('.$Line['UserName'].', '.$Line['IP'].')', 94 95 'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/log.php'), 95 'Description' => $LogType['Name'].': '.$Line['Text'].' ('.$Line['UserName'].', '.$Line['IP'].' )',96 'Description' => $LogType['Name'].': '.$Line['Text'].' ('.$Line['UserName'].', '.$Line['IP'].', '.$Line['TimeCreate'].')', 96 97 'Time' => $Line['TimeCreate'], 97 98 );
Note:
See TracChangeset
for help on using the changeset viewer.