Changeset 510 for trunk/rss.php


Ignore:
Timestamp:
Feb 15, 2013, 11:02:13 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Novinky na webu nyní mají titulek. U starých novinek se nastaví jako titulek jméno uživatele, jako to bylo dříve.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rss.php

    r505 r510  
    66  if($_GET['channel'] == 'news')
    77  {
    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');
    911    while($DbRow = $DbResult->fetch_assoc())
    1012    {
    1113      $Items[] = array
    1214    (
    13         'Title' => $DbRow['Name'].'('.date('d.m.Y', MysqlDateTimeToTime($DbRow['Time'])).')',
     15        'Title' => $DbRow['Title'],
    1416        'Link' =>  'http://'.$Config['Web']['Host'].$System->Link('/'),
    15         'Description' => $DbRow['Text'],
     17        'Description' => $DbRow['Text'].' ('.$DbRow['Name'].')',
    1618        'Time' => $DbRow['UnixTime'],
    1719      );
Note: See TracChangeset for help on using the changeset viewer.