source: branches/old/administrace/rss_tickets.php

Last change on this file was 404, checked in by george, 16 years ago
  • Upraveno: Názvy databází MaNGOSu přesunuty do konfiguračního souboru a odkazované skripty upraveny k použití těchto proměnných.
File size: 901 bytes
Line 
1<?php
2Header("Content-Type: text/xml");
3
4include_once('../global.php');
5include_once('rss_generator.php');
6
7// Get news from database by selected categories
8$Items = array();
9$Database->select_db($Config['Mangos']['DatabaseCharacters']);
10$DbResult = $Database->query("SELECT `character_ticket`.`ticket_text` AS `text`, `characters`.`name` AS `name` FROM `character_ticket` JOIN `characters` ON `characters`.`guid` = `character_ticket`.`guid`");
11while($Row = $DbResult->fetch_array())
12{
13 $Items[] = array(
14 'Title' => $Row['name'].': '.$Row['text'],
15 'Link' => '',
16 'Description' => $Row['name'].': '.$Row['text'],
17 'Time' => 0,
18 );
19}
20
21echo(GenerateRSS(array(
22 'Title' => 'WoW GM žádanky',
23 'Link' => 'http://wow.zdechov.net/administrace/',
24 'Description' => 'Požadavky hráčů na GM',
25 'WebmasterEmail' => 'wow@zdechov.net',
26 'Items' => $Items)));
27?>
Note: See TracBrowser for help on using the repository browser.