2 # Show the contents of 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 $realfile = &unmake_chroot($in{'file'});
18 ($err, @lines) = &extract_archive($realfile, 0, 1);
20 foreach my $l (@lines) {