root/dev/common/includes/class.involvedloader.php

Revision 370, 0.8 KB (checked in by kovell, 13 years ago)

- SQL queries optimised for speed and error protection.
- feed syndication optimised
- front page includes optional clock and optional kill/loss display
- mysqli support added
- transaction protection of kills added where supported (mysqli and InnoDB)
- summary tables and contracts show total destroyed value instead of ship value
- html errors reduced
- related kill calculation improved
- query caching errors reduced
- minor bugfixes
- Smarty 2.6.25 added
- apoc fitting mod added and modded
- code optimisations
- code comments added (doxygen format)
- conflicting mods are now identified

Line 
1<?php
2
3
4class involved
5{
6    function involved()
7    {
8        trigger_error('The class "involved" may only be invoked statically.', E_USER_ERROR);
9    }
10
11    function load(&$killlist, $type = 'kill')
12    {
13        if ($type == 'kill')
14        {
15            if (PILOT_ID)
16                $killlist->addInvolvedPilot(PILOT_ID);
17            elseif (CORP_ID)
18                $killlist->addInvolvedCorp(CORP_ID);
19            elseif (ALLIANCE_ID)
20                $killlist->addInvolvedAlliance(ALLIANCE_ID);
21        }
22        elseif ($type == 'loss')
23        {
24            if (PILOT_ID)
25                $killlist->addVictimPilot(PILOT_ID);
26            elseif (CORP_ID)
27                $killlist->addVictimCorp(CORP_ID);
28            elseif (ALLIANCE_ID)
29                $killlist->addVictimAlliance(ALLIANCE_ID);
30        }
31    }
32
33}
34?>
Note: See TracBrowser for help on using the browser.