Changeset 281 for dev/mods

Show
Ignore:
Timestamp:
12/11/07 13:45:56 (12 years ago)
Author:
ralle030583
Message:

- redesign of public mode, so only choosen summarytables are changed not all
- rowcount summarytables increased setBreak(5)-> setBreak(6)

Location:
dev/mods
Files:
5 modified

Legend:

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

    r240 r281  
    11<?php 
    2 require_once('common/includes/class.killsummarytable.php'); 
     2require_once('common/includes/class.killsummarytable.public.php'); 
    33require_once('common/includes/class.corp.php'); 
    44require_once('common/includes/class.alliance.php'); 
     
    1111$year = kbdate('Y'); 
    1212 
    13 $page = new Page("omgwtfpwnd!!!1"); 
     13$page = new Page('THIS PAGE IS REPLACED BY THE ONE FROM EXAMPLE MOD!'); 
    1414 
    1515$kslist = new KillList(); 
     
    1818$kslist->setYear($year); 
    1919 
    20 $llist = new KillList(); 
    21 involved::load($llist,'loss'); 
    22 $llist->setWeek($week); 
    23 $llist->setYear($year); 
    24  
    25 $summarytable = new KillSummaryTable($kslist, $llist); 
    26 $summarytable->setBreak(5); 
     20if (config::get('public_summarytable')){ 
     21        $summarytable = new KillSummaryTablePublic($kslist); 
     22} 
     23else 
     24{ 
     25        $llist = new KillList(); 
     26        involved::load($llist,'loss'); 
     27        $llist->setWeek($week); 
     28        $llist->setYear($year); 
     29        $summarytable = new KillSummaryTable($kslist, $llist); 
     30} 
     31$summarytable->setBreak(6); 
    2732$html .= $summarytable->generate(); 
    2833 
  • dev/mods/forum_post/cc_detail.php

    r240 r281  
    5252$llist = $contract->getLossList(); 
    5353$killsummary = new KillSummaryTable($klist, $llist); 
    54 $killsummary->setBreak(5); 
     54$killsummary->setBreak(6); 
    5555if ($_GET['view'] == "") 
    5656    $killsummary->setFilter(false); 
  • dev/mods/forum_post/forum_post.php

    r240 r281  
    1515$llist = $contract->getLossList(); 
    1616$killsummary = new KillSummaryTable($klist, $llist); 
    17 $killsummary->setBreak(5); 
     17$killsummary->setBreak(6); 
    1818        if ($_GET['view'] == ""){ 
    1919                $killsummary->setFilter(false); 
     
    9999 
    100100$killsummary = new KillSummaryTable($kslist, $lslist); 
    101 $killsummary->setBreak(5); 
     101$killsummary->setBreak(6); 
    102102$name = $system->getName()." ".substr($firstts,0, 16)." ". substr($lastts,-8,5); 
    103103} 
  • dev/mods/forum_post/kill_related.php

    r240 r281  
    8989 
    9090$summarytable = new KillSummaryTable($kslist, $lslist); 
    91 $summarytable->setBreak(5); 
     91$summarytable->setBreak(6); 
    9292$html .= $summarytable->generate(); 
    9393 
  • dev/mods/known_members/corp_detail.php

    r233 r281  
    6767{ 
    6868    $summarytable = new KillSummaryTable($klist, $llist); 
    69     $summarytable->setBreak(5); 
     69    $summarytable->setBreak(6); 
    7070 
    7171    $html .= $summarytable->generate();