12 |
my %properties = $ibay->props; |
my %properties = $ibay->props; |
13 |
my $key = $ibay->key; |
my $key = $ibay->key; |
14 |
+ my $dynamicContent = $properties{'CgiBin'} || "disabled"; |
+ my $dynamicContent = $properties{'CgiBin'} || "disabled"; |
15 |
+ my $secureEXEC = $properties{'ModDavsecureEXEC'} || 'enabled'; |
+ my $secureEXEC = $properties{'ModDavSecureEXEC'} || 'enabled'; |
16 |
+ my $access = $properties{'PublicAccess'} || 'none'; |
+ my $access = $properties{'PublicAccess'} || 'none'; |
17 |
+ $OUT .= "\n # ibay $key disabled for httpd so no DAV access\n" if $access eq 'none'; |
+ $OUT .= "\n # ibay $key disabled for httpd so no DAV access\n" if $access eq 'none'; |
18 |
+ next if $access eq 'none'; |
+ next if $access eq 'none'; |
39 |
+ $OUT .= " <FilesMatch \\.php\$>\n"; |
+ $OUT .= " <FilesMatch \\.php\$>\n"; |
40 |
+ $OUT .= " #disabling php\n"; |
+ $OUT .= " #disabling php\n"; |
41 |
+ $OUT .= " SetHandler !\n"; # could use also SetHandler none |
+ $OUT .= " SetHandler !\n"; # could use also SetHandler none |
42 |
+ $OUT .= " deny from all\n" if ( $properties{'ModDavHidephp'} || 'enabled' ) eq 'enabled'; |
+ $OUT .= " deny from all\n" if ( $properties{'ModDavHidePHP'} || 'enabled' ) eq 'enabled'; |
43 |
+ $OUT .= " </FilesMatch>\n"; |
+ $OUT .= " </FilesMatch>\n"; |
44 |
+ $OUT .= " Options -ExecCGI\n"; |
+ $OUT .= " Options -ExecCGI\n"; |
45 |
+ $OUT .= " RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo\n"; |
+ $OUT .= " RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo\n"; |