1 | <?php |
---|
2 | |
---|
3 | class Killboard_Controller extends Controller |
---|
4 | { |
---|
5 | |
---|
6 | public function index() |
---|
7 | { |
---|
8 | // header |
---|
9 | // nav |
---|
10 | // left col |
---|
11 | // Weekly stats |
---|
12 | // right col |
---|
13 | // Latest kills |
---|
14 | // footer |
---|
15 | |
---|
16 | // NB: Week #'s change on Mondays |
---|
17 | $thisWeek = date("W"); |
---|
18 | $startOfWeek = mktime(0,0,0,date("n"),date("j")-date("N")+1); |
---|
19 | |
---|
20 | $kill = new Killboard_kill_Model; |
---|
21 | $kill->ParseMail("2008.09.06 22:24:00 |
---|
22 | |
---|
23 | Victim: SirKnyghtMare |
---|
24 | Corp: Orion Industry and Business |
---|
25 | Alliance: Quantum Star Alliance |
---|
26 | Faction: NONE |
---|
27 | Destroyed: Helios |
---|
28 | System: YI-GV6 |
---|
29 | Security: 0.0 |
---|
30 | Damage Taken: 1428 |
---|
31 | |
---|
32 | Involved parties: |
---|
33 | |
---|
34 | Name: Zyer |
---|
35 | Security: -2.1 |
---|
36 | Corp: The Priory |
---|
37 | Alliance: NONE |
---|
38 | Faction: NONE |
---|
39 | Ship: Zealot |
---|
40 | Weapon: Heavy Pulse Laser II |
---|
41 | Damage Done: 660 |
---|
42 | |
---|
43 | Name: Dray (laid the final blow) |
---|
44 | Security: -1.6 |
---|
45 | Corp: The Priory |
---|
46 | Alliance: NONE |
---|
47 | Faction: NONE |
---|
48 | Ship: Zealot |
---|
49 | Weapon: Heavy Pulse Laser II |
---|
50 | Damage Done: 388 |
---|
51 | |
---|
52 | Name: Szaman |
---|
53 | Security: -1.6 |
---|
54 | Corp: The Priory |
---|
55 | Alliance: NONE |
---|
56 | Faction: NONE |
---|
57 | Ship: Zealot |
---|
58 | Weapon: Heavy Pulse Laser II |
---|
59 | Damage Done: 380 |
---|
60 | |
---|
61 | Name: JC Weyland |
---|
62 | Security: -2.1 |
---|
63 | Corp: Endgame. |
---|
64 | Alliance: NONE |
---|
65 | Faction: NONE |
---|
66 | Ship: Kitsune |
---|
67 | Weapon: 75mm Gatling Rail II |
---|
68 | Damage Done: 0 |
---|
69 | |
---|
70 | Name: Parad iseLost |
---|
71 | Security: 1.8 |
---|
72 | Corp: The Priory |
---|
73 | Alliance: NONE |
---|
74 | Faction: NONE |
---|
75 | Ship: Ishtar |
---|
76 | Weapon: Warp Disruptor II |
---|
77 | Damage Done: 0 |
---|
78 | |
---|
79 | Name: Gus Preston |
---|
80 | Security: -2.2 |
---|
81 | Corp: The Priory |
---|
82 | Alliance: NONE |
---|
83 | Faction: NONE |
---|
84 | Ship: Scimitar |
---|
85 | Weapon: Warp Disruptor II |
---|
86 | Damage Done: 0 |
---|
87 | |
---|
88 | Destroyed items: |
---|
89 | |
---|
90 | Covert Ops Cloaking Device II |
---|
91 | Cynosural Field Generator I |
---|
92 | Expanded Cargohold II |
---|
93 | 1MN MicroWarpdrive II |
---|
94 | |
---|
95 | Dropped items: |
---|
96 | |
---|
97 | Expanded Cargohold II, Qty: 2 |
---|
98 | Liquid Ozone, Qty: 450 (Cargo)")->Save(); |
---|
99 | |
---|
100 | $ship_classes = Killboard_Ship_Class_Model::All(); |
---|
101 | |
---|
102 | $set = array( |
---|
103 | 'header' => View::factory('template/header')->set( |
---|
104 | array( |
---|
105 | 'title' => 'Killboard', |
---|
106 | 'banner_img' => './media/skins/default/images/banner.jpg' |
---|
107 | ) |
---|
108 | ), |
---|
109 | 'footer' => View::factory('template/footer'), |
---|
110 | 'ship_classes' => $ship_classes |
---|
111 | ); |
---|
112 | $view = View::factory('killboard/frontpage')->set($set)->render(TRUE); |
---|
113 | } |
---|
114 | |
---|
115 | } |
---|
116 | |
---|
117 | ?> |
---|