| Server IP : 189.126.111.107 / Your IP : 216.73.217.69 Web Server : Apache System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64 User : gadotticar ( 1000) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/usermin/file/ |
Upload File : |
#!/usr/bin/perl
# Extract a zip, tar, tar.gz or tar.bz file on the server
require './file-lib.pl';
&ReadParse();
print "Content-type: text/plain\n\n";
# Check permissions
$disallowed_buttons{'upload'} && &error($text{'ebutton'});
if (!&can_access($in{'file'})) {
print &text('extract_eperm', $in{'file'}),"\n";
exit(0);
}
# Go for it
&webmin_log("extract", undef, $in{'file'});
$realfile = &unmake_chroot($in{'file'});
&switch_acl_uid();
$err = &extract_archive($realfile, $in{'delete'});
print $err,"\n";