Changeset 290

Show
Ignore:
Timestamp:
12/16/07 18:01:45 (12 years ago)
Author:
knifee
Message:

corrected a few kill_import -> admin_kill_import problems. Added a list of malformed files at the end of the import process

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/admin/admin_kill_import.php

    r279 r290  
    7373            $_SESSION['kill_import']['count'] = $i; 
    7474            $_SESSION['kill_import']['ext'] = $ext; 
     75            $_SESSION['kill_import']['malformed'] = array(); 
    7576        } 
    7677        else 
     
    135136                $invalid++; 
    136137                $html .= "Killmail is malformed: $file.<br>\n"; 
     138                $_SESSION['kill_import']['malformed'][] = $file; 
    137139                //unlink($dir.$file); 
    138140            } 
     
    189191                 .$_SESSION['kill_import']['posted_all'].' already posted, ' 
    190192                 .$_SESSION['kill_import']['invalid'].' malformed<br>'; 
    191         $html .= '<a href="?a=kill_import">Ok</a>'; 
     193            $html .= '<hr/>The following files contained malformed mails:<br/>';      
     194                 
     195            foreach($_SESSION['kill_import']['malformed'] as $mal_file){ 
     196                        $html .= $mal_file.'<br/>'; 
     197                } 
     198         
     199        $html .= '<a href="?a=admin_kill_import">Ok</a>'; 
    192200        unset($_SESSION['kill_import']); 
    193201    }