- Timestamp:
- 01/07/07 06:33:27 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/mods/rss_feed/class.rss.php
r145 r173 27 27 while ($kill = $this->kill_list_->getKill()) 28 28 { 29 $url = KB_HOST; 30 if(strncasecmp("http://", KB_HOST, 7)) 31 { 32 $url = "http://".KB_HOST; 33 } 34 if($url[strlen($url) - 1] != '/') 35 { 36 $url .= '/'; 37 } 38 /* date in format: Tue, 03 Jun 2003 09:39:21 GMT 39 Hack added because the time is not parsed correctly by strtotime() 40 */ 41 $timestamp = $kill->getTimeStamp(); 42 $timestring = explode(" ", $timestamp); 43 $datestring = strftime("%a, %d %b %Y " , strtotime($timestamp)); 44 $datestring .= $timestring[1]; 45 $datestring .= strftime(" %Z" , strtotime($timestamp)); 29 46 $html .= "<item> 30 47 <title>".$kill->getVictimName()." was killed</title> … … 35 52 <br /><b>Corp:</b> ".shorten($kill->getVictimCorpName())." 36 53 <br /><b>System:</b> ".shorten($kill->getSolarSystemName(), 10)." 54 <br /><b>Date:</b> ".$timestamp." 37 55 <br /> 38 56 <br /><b>Killed By:</b> 39 57 <br /><b>Final Blow:</b> ".$kill->getFBPilotName()." 40 58 <br /><b>Corp:</b> ".shorten($kill->getFBCorpName())." 41 <br />42 59 </p> 43 60 ]]> 44 61 </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>62 <guid>".$url."index.php?a=kill_detail&kll_id=".$kill->getID()."</guid> 63 <pubDate>".$datestring."</pubDate> 47 64 </item>\n"; 48 65 }