Changeset 579 for trunk/rss.php
- Timestamp:
- Apr 30, 2009, 8:10:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/rss.php
r555 r579 1 1 <?php 2 2 3 header( "Content-Type: text/xml");3 header('Content-Type: text/xml'); 4 4 5 5 include('inc/db.php'); … … 29 29 $Config['Web']['Title'] .= ' - žádosti hráčů'; 30 30 $db->select_db($Config['Mangos']['DatabaseCharacters']); 31 $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`");31 $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 32 while($Row = $DbResult->fetch_array()) 33 33 { … … 42 42 if($_GET['category'] == 'finance') 43 43 { 44 $OperationType = array('consumption' => 'Spotřeba', 'contribution' => 'Příspěvek', 'buy' => 'Nákup', 'sell' => 'Prodej', 'internet' => 'Internet'); 44 45 $Config['Web']['Title'] .= ' - finanční příspěvky'; 45 46 $DbResult = $db->query('SELECT UNIX_TIMESTAMP(time), operation, description, money FROM finance ORDER BY time DESC LIMIT '.$NewsCount); … … 50 51 'Title' => $OperationType[$Row['operation']].' '.$Row['description'].' ('.$Row['money'].' Kč)', 51 52 'Link' => 'http://'.$_SERVER['SERVER_NAME'].$Config['Web']['BaseURL'].'finance/', 52 'Description' => $OperationType[$Row['operation']].' '.$Row['description']. "<br>".$Row['money']." Kč",53 'Description' => $OperationType[$Row['operation']].' '.$Row['description'].'<br />'.$Row['money'].' Kč', 53 54 'Time' => $Row['UNIX_TIMESTAMP(time)'], 54 55 );
Note:
See TracChangeset
for help on using the changeset viewer.