Revision 190, 1.1 KB
(checked in by exi, 16 years ago)
|
This is a big update...
Moved all admin scripts to common/admin.
Moved all includes and classes to common/includes.
Edited all include-paths to reflect the movement.
Fixed a bug with the session system allowing every registered user to access admin pages.
Replaced calls to date() to use a wrapper so gmdate can be used.
Replaced some calls to $config with calls to the static object.
Fixed a big which caused the portrait_grab to not download a new picute.
Added a classified-state to kills.
Removed the sync_server server script in this tree.
Added code to help modules find the includes to index.php.
|
Rev | Line | |
---|
[134] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | * Author: Doctor Z |
---|
| 5 | * eMail: east4now11@hotmail.com |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
[190] | 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"); |
---|
[134] | 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> |
---|
[149] | 21 | <link>".KB_HOST."</link> |
---|
[134] | 22 | <copyright>".KB_TITLE."</copyright>\n"; |
---|
| 23 | |
---|
| 24 | $klist = new KillList(); |
---|
| 25 | $klist->setOrdered(true); |
---|
| 26 | if (CORP_ID) |
---|
| 27 | { |
---|
| 28 | $klist->addInvolvedCorp(new Corporation(CORP_ID)); |
---|
| 29 | } |
---|
| 30 | if (ALLIANCE_ID) |
---|
| 31 | { |
---|
| 32 | $klist->addInvolvedAlliance(new Alliance(ALLIANCE_ID)); |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | if ($_GET['scl_id']) |
---|
| 36 | { |
---|
| 37 | $klist->addVictimShipClass(new ShipClass($_GET['scl_id'])); |
---|
| 38 | } |
---|
| 39 | else |
---|
| 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>"; |
---|
| 50 | echo $html; |
---|
| 51 | ?> |
---|