Changeset 23

Show
Ignore:
Timestamp:
10/19/06 21:29:13 (14 years ago)
Author:
andrewgunn
Message:

Added: The date selector code for the post_igb.php file so that killmails posted using the IGB are checked for age.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/post_igb.php

    r2 r23  
    1919      $killid = $parser->parse( true ); 
    2020 
    21       if ( $killid == 0 || $killid == -1 || $killid == -2 ) { 
     21      if ( $killid == 0 || $killid == -1 || $killid == -2 || $killid == -3) { 
    2222        if ( $killid == 0 ) 
    2323          $html = "Killmail is malformed."; 
     
    2727          $html = "You are not authorized to post this killmail."; 
    2828            
     29        if ($killid == -3) { 
     30        $filterdate = date("j F Y",$config->getConfig("filter_date")); 
     31          $html = "You are not allowed to post killmails older than $filterdate."; 
     32        } 
     33 
    2934        $html .= "<br><br><a href=\"?a=post_igb\">Try again</a>"; 
    3035      }