try to hook extraction in the browser
This commit is contained in:
parent
97d65aadb3
commit
6b07f7f68b
|
@ -103,8 +103,13 @@ if ($formu) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3: // Upload de fichier...
|
case 3: // Upload de fichier...
|
||||||
if (!$bro->UploadFile($R)) {
|
$target = $bro->UploadFile($R);
|
||||||
|
if (!$target) {
|
||||||
print $err->errstr();
|
print $err->errstr();
|
||||||
|
} elseif ($_POST['extract']) {
|
||||||
|
if (!$bro->ExtractFile($target)) {
|
||||||
|
print $err->errstr();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -430,7 +435,8 @@ else {
|
||||||
<hr />
|
<hr />
|
||||||
<?php __("Import this file"); ?> <input class="int" name="userfile" type="file" />
|
<?php __("Import this file"); ?> <input class="int" name="userfile" type="file" />
|
||||||
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
|
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
|
||||||
<input type="submit" class="inb" value="<?php __("Send"); ?>" />
|
<input type="submit" class="inb" name="upload" value="<?php __("Send"); ?>" />
|
||||||
|
<input type="submit" class="inb" name="extract" value="<?php __("Send & Extract"); ?>" />
|
||||||
<hr />
|
<hr />
|
||||||
</form>
|
</form>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
|
Loading…
Reference in New Issue