Revision 240, 0.9 KB
(checked in by ralle030583, 15 years ago)
|
Implemented exi's involvedloader class
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Author: Doctor Z |
---|
5 | * eMail: east4now11@hotmail.com |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | require_once("common/includes/class.corp.php"); |
---|
10 | require_once("common/includes/class.alliance.php"); |
---|
11 | require_once("common/includes/class.killlist.php"); |
---|
12 | require_once("common/includes/class.killlisttable.php"); |
---|
13 | require_once("class.rss.php"); |
---|
14 | |
---|
15 | header('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); |
---|
26 | involved::load($klist,'kill'); |
---|
27 | |
---|
28 | if ($_GET['scl_id']) |
---|
29 | { |
---|
30 | $klist->addVictimShipClass(new ShipClass($_GET['scl_id'])); |
---|
31 | } |
---|
32 | else |
---|
33 | { |
---|
34 | $klist->setPodsNoobShips(false); |
---|
35 | } |
---|
36 | $klist->setLimit(20); |
---|
37 | |
---|
38 | $table = new RSSTable($klist); |
---|
39 | $html .= $table->generate(); |
---|
40 | |
---|
41 | $html .= "</channel> |
---|
42 | </rss>"; |
---|
43 | echo $html; |
---|
44 | ?> |
---|