Changeset 376 for dev/mods/apoc_fitting

Show
Ignore:
Timestamp:
06/18/09 09:52:00 (14 years ago)
Author:
kovell
Message:

MyISAM can be selected again on install
duplicate item descriptions removed from install
alliance/corp/pilot optional installs now have external id and correct structure
alliance/corp/pilot/kill details can be selected by external id
corp/alliance/kill now have get and set methods for external ids
killlist has method to select only kills with an external id set
monthly views mod now shows clock and combined kills if selected
optimisations and fixes to killlists and toplists

Location:
dev/mods/apoc_fitting
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/apoc_fitting/kill_detail.php

    r375 r376  
    6868    } 
    6969 
    70 if (!$kll_id=intval($_GET['kll_id'])) 
    71     { 
    72     $html="No kill id specified."; 
     70$kll_id = intval($_GET['kll_id']); 
     71$kll_external_id = intval($_GET['kll_external_id']); 
     72if (!$kll_id && !$kll_external_id) 
     73{ 
     74    $html = "No kill id specified."; 
    7375    $page->setContent($html); 
    7476    $page->generate($html); 
    7577    exit; 
    76     } 
    77  
    78 $kill=new Kill($kll_id); 
     78} 
     79 
     80if($kll_id) $kill = new Kill($kll_id); 
     81else 
     82{ 
     83        $kill = new Kill($kll_external_id, true); 
     84        $kll_id = $kill->getID(); 
     85} 
    7986 
    8087if (!$kill->exists()) 
     
    825832} 
    826833 
    827 if ($kill->relatedKillCount() > 1 || $kill->relatedLossCount() > 1) 
    828     { 
    829     $menubox->addOption("link", "Related kills (" . $kill->relatedKillCount() . "/" . $kill->relatedLossCount() . ")", 
    830                         "?a=kill_related&kll_id=" . $kill->getID()); 
    831     } 
     834if ($kill->relatedKillCount() > 1 || $kill->relatedLossCount() > 1 || 
     835        ((ALLIANCE_ID || CORP_ID || PILOT_ID) && $kill->relatedKillCount() + $kill->relatedLossCount() > 1)) 
     836{ 
     837        $menubox->addOption("link", "Related kills (" . $kill->relatedKillCount() . "/" . $kill->relatedLossCount() . ")", 
     838                                        "?a=kill_related&kll_id=" . $kill->getID()); 
     839} 
    832840 
    833841if ($page->isAdmin()) 
  • dev/mods/apoc_fitting/settings.php

    r370 r376  
    7979 
    8080// Apoc Fitting Options 
     81/* 
    8182if (!$apocfitting_db) { 
    8283    include_once './mods/apoc_fitting/sql.php'; 
     
    9798    config::set('apocfitting_db', '1'); 
    9899} 
    99  
     100*/ 
    100101$html .= "<div>For further display options, configure the <a href='./?a=admin&amp;field=Appearance&amp;sub=Kill Details'>Kill Details</a> page.</div>"; 
    101102$html .= "<div class=block-header2>Apoc Fitting Options</div>";