Show
Ignore:
Timestamp:
02/02/07 01:25:07 (15 years ago)
Author:
exi
Message:

Added stripslashes to the mail_forward eventhandler.
Changed db.php to check for strict type of define.
Reworked large chunks of the battle overview to reflect the actual count of lost/killed ships which was really mind numbing.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/templates/battle_overview.tpl

    r181 r185  
    55<div class="kb-date-header">Friendly ({$friendlycnt})</div> 
    66<br/> 
    7 <table class="kb-table" width="95%" align="center"> 
    8     <tr class="kb-table-header"> 
    9       <td class="kb-table-header" colspan="2" align="center">Ship/Pilot</td> 
    10       <td class="kb-table-header" align="center" style="min-width: 45%; width: 45%; max-width: 45%;">Corp/Alliance</td> 
    11     </tr> 
    12 {cycle reset=true print=false name=ccl values="kb-table-row-even,kb-table-row-odd"} 
    13 {foreach from=$pilots_a item=i key=pilot} 
    14     <tr class="{cycle name=ccl}"{if is_destroyed($pilot)} style="background-color: #EE4444;"{/if}> 
    15       <td width="32" height="32" style="max-width: 32px;"> 
    16 {if is_destroyed($pilot)} 
    17         <a href="?a=kill_detail&amp;kll_id={$kll_id}"><img src="{$i.spic}" width="32" height="32" border="0"></a> 
    18 {else} 
    19         <img src="{$i.spic}" width="32" height="32" border="0"> 
    20 {/if} 
    21       </td> 
    22 {if podded($pilot) and $i.ship != 'Capsule'} 
    23 {if $config->getConfig('bs_podlink')} 
    24       <td class="kb-table-cell"> 
    25         <b><a href="?a=pilot_detail&amp;plt_id={$pilot}">{$i.name}</a>&nbsp;<a href="?a=kill_detail&amp;kll_id={$pod_kll_id}">[Pod]</a></b><br/>{$i.ship} 
    26       </td> 
    27 {else} 
    28       <td class="kb-table-cell" style="background-image: url({$podpic}); background-repeat: no-repeat; background-position: right;"> 
    29         <b><a href="?a=pilot_detail&amp;plt_id={$pilot}">{$i.name}</a></b><br/>{$i.ship} 
    30       </td> 
    31 {/if} 
    32 {else} 
    33       <td class="kb-table-cell"><b><a href="?a=pilot_detail&amp;plt_id={$pilot}">{$i.name}</a></b><br/>{$i.ship}</td> 
    34 {/if} 
    35       <td class="kb-table-cell"><b><a href="?a=corp_detail&amp;crp_id={$i.cid}">{$i.corp}</a></b><br/><a href="?a=alliance_detail&amp;all_id={$i.aid}" style="font-weight: normal;">{$i.alliance}</a></td> 
    36     </tr> 
    37 {/foreach} 
    38 </table> 
     7 
     8{assign var='loop' value=$pilots_a} 
     9{include file="battle_overview_table.tpl"} 
     10 
    3911</td><td width="55%" valign="top"> 
    4012<div class="kb-date-header">Hostile ({$hostilecnt})</div> 
    4113<br/> 
    42 <table class="kb-table" width="95%" align="center"> 
    43     <tr class="kb-table-header"> 
    44       <td class="kb-table-header" colspan="2" align="center">Ship/Pilot</td> 
    45       <td class="kb-table-header" align="center" style="min-width: 45%; width: 45%; max-width: 45%;">Corp/Alliance</td> 
    46     </tr> 
    47 {cycle reset=true print=false name=ccl values="kb-table-row-even,kb-table-row-odd"} 
    48 {foreach from=$pilots_e item=i key=pilot} 
    49     <tr class="{cycle name=ccl}"{if is_destroyed($pilot)} style="background-color: #EE4444;"{/if}> 
    50       <td width="32" height="32" style="max-width: 32px;"> 
    51 {if is_destroyed($pilot)} 
    52         <a href="?a=kill_detail&amp;kll_id={$kll_id}"><img src="{$i.spic}" width="32" height="32" border="0"></a> 
    53 {else} 
    54         <img src="{$i.spic}" width="32" height="32" border="0"> 
    55 {/if} 
    56       </td> 
    57 {if podded($pilot) and $i.ship != 'Capsule'} 
    58 {if $config->getConfig('bs_podlink')} 
    59       <td class="kb-table-cell"> 
    60         <b><a href="?a=pilot_detail&amp;plt_id={$pilot}">{$i.name}</a></b>&nbsp;<a href="?a=kill_detail&amp;kll_id={$pod_kll_id}">[Pod]</a><br/>{$i.ship} 
    61       </td> 
    62 {else} 
    63       <td class="kb-table-cell" style="background-image: url({$podpic}); background-repeat: no-repeat; background-position: right;"> 
    64         <b><a href="?a=pilot_detail&amp;plt_id={$pilot}">{$i.name}</a></b><br/>{$i.ship} 
    65       </td> 
    66 {/if} 
    67 {else} 
    68       <td class="kb-table-cell"><b><a href="?a=pilot_detail&amp;plt_id={$pilot}">{$i.name}</a></b><br/>{$i.ship}</td> 
    69 {/if} 
    70       <td class="kb-table-cell"><b><a href="?a=corp_detail&amp;crp_id={$i.cid}">{$i.corp}</a></b><br/><a href="?a=alliance_detail&amp;all_id={$i.aid}" style="font-weight: normal;">{$i.alliance}</a></td> 
    71     </tr> 
    72 {/foreach} 
    73 </table> 
     14 
     15{assign var='loop' value=$pilots_e} 
     16{include file="battle_overview_table.tpl"} 
     17 
    7418</td> 
    7519</tr>