Changeset 2089

Show
Ignore:
Timestamp:
01/22/08 04:23:56 (10 months ago)
Author:
anarcat
Message:

try to hook extraction in the browser

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/bureau/admin/bro_main.php

    r2085 r2089  
    104104    break; 
    105105  case 3:  // Upload de fichier... 
    106     if (!$bro->UploadFile($R)) { 
     106    $target = $bro->UploadFile($R); 
     107    if (!$target) { 
    107108      print $err->errstr(); 
     109    } elseif ($_POST['extract']) { 
     110      if (!$bro->ExtractFile($target)) { 
     111        print $err->errstr(); 
     112      } 
    108113    } 
    109114    break; 
     
    431436     <?php __("Import this file"); ?>&nbsp;&nbsp;<input class="int" name="userfile" type="file" /> 
    432437     <input type="hidden" name="MAX_FILE_SIZE" value="10000000" /> 
    433      <input type="submit" class="inb" value="<?php __("Send"); ?>" /> 
     438     <input type="submit" class="inb" name="upload" value="<?php __("Send"); ?>" /> 
     439     <input type="submit" class="inb" name="extract" value="<?php __("Send & Extract"); ?>" /> 
    434440     <hr /> 
    435441     </form>