Changeset 477 for branches/beta


Ignore:
Timestamp:
Mar 8, 2009, 5:16:41 PM (16 years ago)
Author:
amun
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/beta/rss.php

    r476 r477  
    1111<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    1212  <channel>
    13     <title>WoW Zdechov RSS</title>
    14     <link><b>Webová stranka serveru:</b> http://wow.zdechov.net/</link>
    15  
     13    <title>HoF Ticket RSS</title>
     14    <link>http://wow.zdechov.net/</link>
     15    <description>HoF Ticket RSS</description>
     16    <language>cs</language>
    1617    <lastBuildDate><?php echo date("j/m/Y H:i:s").""; ?></lastBuildDate>
    1718    <atom:link href="http://www.samuraj-cz.com/rss/" rel="self" type="application/rss+xml" />
     
    2425   $result = mysql_query("SELECT * FROM character_ticket ORDER BY ticket_lastchange DESC, ticket_id DESC LIMIT 20 ");
    2526    while($rec = mysql_fetch_array($result)) {
     27        $guid = $rec["guid"];
    2628        $time = $rec["ticket_lastchange"];
    27             $human_date = date("d.m.Y  H:i", strtotime($time)); ?>
     29    $human_date = date("d.m.Y  H:i", strtotime($time));
     30        $result2 = mysql_query("SELECT name FROM characters where guid='$guid' ");
     31        while($rec2 = mysql_fetch_array($result2)) {
     32        $name = $rec2["name"];
     33        }
     34        ?>
    2835    <item>
    29           <pubDate><?php echo"<br><b> $human_date </b></br> ";?></pubDate>
    30       <description><?php echo "".htmlspecialchars(strip_tags($rec[ticket_text]))." "; ?></description>
    31      
     36       
     37     <title><?php echo "<br><b>$name</b></br>"; ?> sss</title>
     38         <pubDate><?php echo"$human_date";?></pubDate>
     39         <link>http://wow.zdechov.net/beta</link>
     40         <description><?php echo "<br>".htmlspecialchars(strip_tags($rec[ticket_text]))." </br>"; ?></description>
     41     
     42         
    3243    </item>
    3344<?php
    34     }
     45   }
     46 
    3547?>
    3648 </channel>
Note: See TracChangeset for help on using the changeset viewer.