2 # Extract a zip, tar, tar.gz or tar.bz file on the server
4 require './file-lib.pl';
6 print "Content-type: text/plain\n\n";
9 $disallowed_buttons{'upload'} && &error($text{'ebutton'});
10 if (!&can_access($in{'file'})) {
11 print &text('extract_eperm', $in{'file'}),"\n";
16 &webmin_log("extract", undef, $in{'file'});
17 $realfile = &unmake_chroot($in{'file'});
19 $err = &extract_archive($realfile, $in{'delete'});