Revision 145, 1.4 KB
(checked in by liq, 16 years ago)
|
fixed rss <guid> tag error where a http:// was missing and the link didnt want to linky linky
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Author: Doctor Z |
---|
5 | * eMail: east4now11@hotmail.com |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | class RSSTable extends KillListTable |
---|
10 | { |
---|
11 | function RSSTable($kill_list) |
---|
12 | { |
---|
13 | $this->limit = 0; |
---|
14 | $this->offset = 0; |
---|
15 | |
---|
16 | $this->kill_list_ = $kill_list; |
---|
17 | $this->daybreak_ = true; |
---|
18 | } |
---|
19 | |
---|
20 | function generate() |
---|
21 | { |
---|
22 | global $config; |
---|
23 | $odd = false; |
---|
24 | $prevdate = ""; |
---|
25 | $this->kill_list_->rewind(); |
---|
26 | |
---|
27 | while ($kill = $this->kill_list_->getKill()) |
---|
28 | { |
---|
29 | $html .= "<item> |
---|
30 | <title>".$kill->getVictimName()." was killed</title> |
---|
31 | <description> |
---|
32 | <![CDATA[ |
---|
33 | <p><b>Ship:</b> ".$kill->getVictimShipName()." |
---|
34 | <br /><b>Victim:</b> ".$kill->getVictimName()." |
---|
35 | <br /><b>Corp:</b> ".shorten($kill->getVictimCorpName())." |
---|
36 | <br /><b>System:</b> ".shorten($kill->getSolarSystemName(), 10)." |
---|
37 | <br /> |
---|
38 | <br /><b>Killed By:</b> |
---|
39 | <br /><b>Final Blow:</b> ".$kill->getFBPilotName()." |
---|
40 | <br /><b>Corp:</b> ".shorten($kill->getFBCorpName())." |
---|
41 | <br /> |
---|
42 | </p> |
---|
43 | ]]> |
---|
44 | </description> |
---|
45 | <guid>http://".KB_HOST."?a=kill_detail&kll_id=".$kill->getID()."</guid> |
---|
46 | <pubDate>".strftime("%a, %d %b %Y %T %Z" , strtotime($kill->getTimeStamp()))."</pubDate> |
---|
47 | </item>\n"; |
---|
48 | } |
---|
49 | |
---|
50 | return $html; |
---|
51 | } |
---|
52 | } |
---|
53 | ?> |
---|