root/2.0.0-dev/application/controllers/killboard.php @ 331

Revision 331, 2.3 KB (checked in by knyghtmare, 12 years ago)

Added items remotely

V:\users\knyghtmare\edk\application
V:\users\knyghtmare\edk\media
V:\users\knyghtmare\edk\system
V:\users\knyghtmare\edk\.htaccess
V:\users\knyghtmare\edk\index.php

Line 
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
23Victim: SirKnyghtMare
24Corp: Orion Industry and Business
25Alliance: Quantum Star Alliance
26Faction: NONE
27Destroyed: Helios
28System: YI-GV6
29Security: 0.0
30Damage Taken: 1428
31
32Involved parties:
33
34Name: Zyer
35Security: -2.1
36Corp: The Priory
37Alliance: NONE
38Faction: NONE
39Ship: Zealot
40Weapon: Heavy Pulse Laser II
41Damage Done: 660
42
43Name: Dray (laid the final blow)
44Security: -1.6
45Corp: The Priory
46Alliance: NONE
47Faction: NONE
48Ship: Zealot
49Weapon: Heavy Pulse Laser II
50Damage Done: 388
51
52Name: Szaman
53Security: -1.6
54Corp: The Priory
55Alliance: NONE
56Faction: NONE
57Ship: Zealot
58Weapon: Heavy Pulse Laser II
59Damage Done: 380
60
61Name: JC Weyland
62Security: -2.1
63Corp: Endgame.
64Alliance: NONE
65Faction: NONE
66Ship: Kitsune
67Weapon: 75mm Gatling Rail II
68Damage Done: 0
69
70Name: Parad iseLost
71Security: 1.8
72Corp: The Priory
73Alliance: NONE
74Faction: NONE
75Ship: Ishtar
76Weapon: Warp Disruptor II
77Damage Done: 0
78
79Name: Gus Preston
80Security: -2.2
81Corp: The Priory
82Alliance: NONE
83Faction: NONE
84Ship: Scimitar
85Weapon: Warp Disruptor II
86Damage Done: 0
87
88Destroyed items:
89
90Covert Ops Cloaking Device II
91Cynosural Field Generator I
92Expanded Cargohold II
931MN MicroWarpdrive II
94
95Dropped items:
96
97Expanded Cargohold II, Qty: 2
98Liquid 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?>
Note: See TracBrowser for help on using the browser.