root/dev/mods/rss_feed/rss.php @ 149

Revision 149, 1.0 KB (checked in by exi, 16 years ago)

Changed custom ship values to also display unknown types.
Changed comment class to allow html code insertion.
Added pullout of externalids on killlists.
Fixed next week link.
Small change to the sql-inserter to remove the ';'.
Fixed the double http-link on rss feeds.
Fixed VictimAllianceURL on kill_details.
Fixed wrong links on standings page.

Line 
1<?php
2
3/**
4* Author: Doctor Z
5* eMail:  east4now11@hotmail.com
6*
7*/
8
9require_once("common/class.corp.php");
10require_once("common/class.alliance.php");
11require_once("common/class.killlist.php");
12require_once("common/class.killlisttable.php");
13require_once("class.rss.php");
14
15header('Content-Type: text/xml');
16$html .= "<"."?xml version=\"1.0\"?".">
17<rss version=\"2.0\">
18<channel>
19<title>".KB_TITLE."</title>
20<description>20 Most Recent Kills</description>
21<link>".KB_HOST."</link>
22<copyright>".KB_TITLE."</copyright>\n";
23
24$klist = new KillList();
25$klist->setOrdered(true);
26if (CORP_ID)
27{
28    $klist->addInvolvedCorp(new Corporation(CORP_ID));
29}
30if (ALLIANCE_ID)
31{
32    $klist->addInvolvedAlliance(new Alliance(ALLIANCE_ID));
33}
34
35if ($_GET['scl_id'])
36{
37    $klist->addVictimShipClass(new ShipClass($_GET['scl_id']));
38}
39else
40{
41    $klist->setPodsNoobShips(false);
42}
43$klist->setLimit(20);
44
45$table = new RSSTable($klist);
46$html .= $table->generate();
47
48$html .= "</channel>
49</rss>";
50echo $html;
51?>
Note: See TracBrowser for help on using the browser.