Changeset 376 for dev/mods/monthly_views

Show
Ignore:
Timestamp:
06/18/09 09:52:00 (11 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/monthly_views
Files:
1 removed
1 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/monthly_views/home.php

    r343 r376  
    77require_once('common/includes/class.contract.php'); 
    88require_once('common/includes/class.toplist.php'); 
     9if(config::get('show_clock')) require_once('common/includes/class.clock.php'); 
    910 
    1011$week = kbdate('W'); 
     
    3738{ 
    3839    $pyear = kbdate("Y") - 1; 
    39     $pweek = 52; 
     40    $pweek = 53; 
    4041} 
    4142else 
     
    6869if (strpos(config::get('mods_active'), 'rss_feed') !== false) 
    6970{ 
    70     $html .= "<div class=kb-kills-header style=\"margin-top: 30px\"><a href=\"?a=rss\"><img src=\"mods/rss_feed/rss_icon.png\" alt=\"RSS-Feed\" border=\"0\"></a>&nbsp;20 most recent kills</div>"; 
     71    $html .= "<div class=kb-kills-header style=\"margin-top: 30px\"><a href=\"?a=rss\"><img src=\"mods/rss_feed/rss_icon.png\" alt=\"RSS-Feed\" border=\"0\"></a>&nbsp;".config::get('killcount')." most recent kills</div>"; 
    7172} 
    7273else 
     
    7879$klist = new KillList(); 
    7980$klist->setOrdered(true); 
    80 involved::load($klist,'kill'); 
     81    if(config::get('show_comb_home')) 
     82    { 
     83        if(ALLIANCE_ID >0) $klist->addCombinedAlliance(ALLIANCE_ID); 
     84        if(CORP_ID >0) $klist->addCombinedCorp(CORP_ID); 
     85        if(PILOT_ID>0) $klist->addCombinedPilot(PILOT_ID); 
     86    } 
     87    else involved::load($klist,'kill'); 
    8188 
    82 // boards with low killcount could not display 20 kills with those limits 
    8389$klist->setLimit(config::get('killcount')); 
    8490 
     
    8995 
    9096$table = new KillListTable($klist); 
     97if(config::get('show_comb_home')) $table->setCombined(true); 
    9198$table->setLimit(config::get('killcount')); 
    9299$html .= $table->generate(); 
     
    96103$menubox->setIcon("menu-item.gif"); 
    97104$menubox->addOption("caption","Navigation"); 
    98 $menubox->addOption("link","Kills ". date('F'), "?a=killsmonthly&m=" . $month . "&y=" . $year); 
    99 $menubox->addOption("link","Losses ". date('F'), "?a=lossesmonthly&m=" . $month . "&y=" . $year); 
     105$menubox->addOption("link","Kills ". date('F'), "?a=killsmonthly&amp;m=" . $month . "&amp;y=" . $year); 
     106$menubox->addOption("link","Losses ". date('F'), "?a=lossesmonthly&amp;m=" . $month . "&amp;y=" . $year); 
    100107$page->addContext($menubox->generate()); 
    101108 
     109// Show the Eve time. 
     110if(config::get('show_clock')) 
     111{ 
     112        $clock = new Clock(); 
     113        $page->addContext($clock->generate()); 
     114} 
    102115$tklist = new TopKillsList(); 
    103116$tklist->setStartDate(date('Y-m').'-1 00:00:00');