Show
Ignore:
Timestamp:
10/14/06 23:14:11 (15 years ago)
Author:
andrewgunn
Message:

Added: Delete Killmail option in admin menu (common/admin_menu.php), and code to handle deletions of killmails (common/kill_delete.php).

Fixed: Added some code to fix a serious bug when the killboard tries to import a mail with a "final blow".

Note: All of these code sniplets were grabbed off the EVE-Online forums. So I take no credit for them, and no responsiblity if break something else.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/class.parser.php

    r2 r3  
    1616        $this->killmail_ = str_replace( "**** Truncated - mail is too large ****", "", $this->killmail_ ); 
    1717      } 
     18 
     19/* Parser fix, since some killmails don't have a final blow, they would break the KB */ 
     20if ( strpos( $this->killmail_, "laid the final blow") < 1 ) { 
     21$this->needs_final_blow_ = 1; 
     22} 
     23/* END FIX */ 
    1824 
    1925//      if ( strpos( $this->killmail_, "Empty." ) > 0 ) { 
     
    106112        } else $finalblow = 0; 
    107113 
     114/* This is part of the final blow fix, mentioned above */ 
     115if ( $this->needs_final_blow_ ) { 
     116$finalblow = 1; 
     117$this->needs_final_blow_ = 0; 
     118} 
     119/* END FIX */ 
     120 
    108121        preg_match( "/Security: (.*)/", $involved[$i+1], $matches ); 
    109122        $secstatus = $matches[1];