| Server IP : 134.236.29.77 / Your IP : 216.73.217.92 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/file/ |
Upload File : |
#!/usr/bin/perl
# setext.cgi
# Sets the EXT attributes for some file
require './file-lib.pl';
$disallowed_buttons{'ext'} && &error($text{'ebutton'});
&ReadParse();
&switch_acl_uid_and_chroot();
print "Content-type: text/plain\n\n";
if ($access{'ro'} || !&can_access($in{'file'})) {
print $text{'facl_eaccess'},"\n";
}
else {
$cmd = "chattr '=$in{'attrs'}' '$in{'file'}'";
$out = `$cmd 2>&1`;
if ($?) {
print $out,"\n";
}
else {
print "\n";
}
}