Changeset 587 for trunk/Modules/Log/Log.php
- Timestamp:
- Oct 15, 2013, 8:46:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Log/Log.php
r586 r587 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`'.81 $sql = 'SELECT *, UNIX_TIMESTAMP(`Date`) AS `TimeCreate`, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `Log`.`User`) AS `UserName`, `Date` FROM `Log`'. 82 82 $Where.' ORDER BY `Date` DESC LIMIT 100'; 83 83 $DbResult = $this->System->Database->query($sql); … … 94 94 'Title' => $LogType['Name'].' ('.$Line['UserName'].', '.$Line['IP'].')', 95 95 'Link' => 'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/log.php'), 96 'Description' => $LogType['Name'].': '.$Line['Text'].' ('.$Line['UserName'].', '.$Line['IP'].', '.$Line['TimeCreate'].')', 96 'Description' => $LogType['Name'].': '.$Line['Text'].' ('.$Line['UserName']. 97 ', '.$Line['IP'].', '.HumanDate($Line['Date']).')', 97 98 'Time' => $Line['TimeCreate'], 98 99 );
Note:
See TracChangeset
for help on using the changeset viewer.