Changeset 510 for trunk/rss.php
- Timestamp:
- Feb 15, 2013, 11:02:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/rss.php
r505 r510 6 6 if($_GET['channel'] == 'news') 7 7 { 8 $DbResult = $System->Database->query('SELECT UNIX_TIMESTAMP(`News`.`Time`) AS `UnixTime`, `News`.`Time`, `User`.`Name`, `News`.`Text` FROM `News` JOIN `User` ON `User`.`ID` = `News`.`User` ORDER BY `Time` DESC LIMIT 10'); 8 $DbResult = $System->Database->query('SELECT UNIX_TIMESTAMP(`News`.`Time`) AS `UnixTime`, '. 9 '`News`.`Title`, `News`.`Time`, `User`.`Name`, `News`.`Text` '. 10 'FROM `News` JOIN `User` ON `User`.`ID` = `News`.`User` ORDER BY `Time` DESC LIMIT 10'); 9 11 while($DbRow = $DbResult->fetch_assoc()) 10 12 { 11 13 $Items[] = array 12 14 ( 13 'Title' => $DbRow[' Name'].'('.date('d.m.Y', MysqlDateTimeToTime($DbRow['Time'])).')',15 'Title' => $DbRow['Title'], 14 16 'Link' => 'http://'.$Config['Web']['Host'].$System->Link('/'), 15 'Description' => $DbRow['Text'] ,17 'Description' => $DbRow['Text'].' ('.$DbRow['Name'].')', 16 18 'Time' => $DbRow['UnixTime'], 17 19 );
Note:
See TracChangeset
for help on using the changeset viewer.