Changeset 585 for trunk/rss.php


Ignore:
Timestamp:
May 15, 2009, 10:33:38 AM (16 years ago)
Author:
george
Message:
  • Přidáno: Stránka projektu HoF Client.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/rss.php

    r579 r585  
    11<?php
    22
    3 header('Content-Type: text/xml');
     3Header('Content-Type: text/xml');
    44
    55include('inc/db.php');
     
    1515    $Config['Web']['Title'] .= ' - články';
    1616    $DbResult = $db->query('SELECT UNIX_TIMESTAMP(date), articles.* FROM articles ORDER BY date DESC LIMIT '.$NewsCount);
    17     while($Row = $DbResult->fetch_array())
     17    while($Row = $DbResult->fetch_assoc())
    1818    {
    1919      $Items[] = array(
    2020        'Title' => $Row['title'],
    2121        'Link' => 'http://'.$_SERVER['SERVER_NAME'].$Config['Web']['BaseURL'],
    22         'Description' => $Row['text']." (".$Row['autor'].")",
     22        'Description' => $Row['text'].' ('.$Row['autor'].')',
    2323        'Time' => $Row['UNIX_TIMESTAMP(date)'],
    2424      );
     
    3030    $db->select_db($Config['Mangos']['DatabaseCharacters']);
    3131    $DbResult = $db->query('SELECT `character_ticket`.`ticket_text` AS `text`, `characters`.`name` AS `name` FROM `character_ticket` JOIN `characters` ON `characters`.`guid` = `character_ticket`.`guid`');
    32     while($Row = $DbResult->fetch_array())
     32    while($Row = $DbResult->fetch_assoc())
    3333    {
    3434      $Items[] = array(
     
    4545    $Config['Web']['Title'] .= ' - finanční příspěvky';
    4646    $DbResult = $db->query('SELECT UNIX_TIMESTAMP(time), operation, description, money FROM finance ORDER BY time DESC LIMIT '.$NewsCount);
    47     while($Row = $DbResult->fetch_array())
     47    while($Row = $DbResult->fetch_assoc())
    4848    {
    4949      $Items[] = array
Note: See TracChangeset for help on using the changeset viewer.