Show
Ignore:
Timestamp:
12/16/06 03:19:06 (14 years ago)
Author:
exi
Message:

Added option to show a link to the pod killmail instead of a pod picture on the battle summary.
Battle summaries will now be sorted by shippoints, shipname, pilotname.
Added option to disable mailposting without having to change the password.
Fixed a typo on the standingslist.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/kill_related.php

    r155 r157  
    169169    { 
    170170        global $pods; 
    171         $pods[] = $kill->getVictimID(); 
     171        $pods[$kill->getID()] = $kill->getVictimID(); 
    172172 
    173173        // return when we've added him already 
     
    203203        return -1; 
    204204    } 
     205    // sort after points, shipname, pilotname 
    205206    elseif ($a['scl'] == $b['scl']) 
    206207    { 
    207         if ($a['ship'] > $b['ship']) 
     208        if ($a['ship'] == $b['ship']) 
     209        { 
     210            if ($a['name'] > $b['name']) 
     211            { 
     212                return 1; 
     213            } 
     214            return -1; 
     215        } 
     216        elseif ($a['ship'] > $b['ship']) 
    208217        { 
    209218            return 1; 
     
    232241    global $pods; 
    233242 
    234     if (in_array((string)$pilot, $pods)) 
    235     { 
     243    if ($result = array_search((string)$pilot, $pods)) 
     244    { 
     245        global $smarty; 
     246 
     247        $smarty->assign('pod_kll_id', $result); 
    236248        return true; 
    237249    }