|
|
@ -12,7 +12,8 @@ foreach my $share ($a->get_all_by_prop(type => 'share')){ |
|
|
|
my $post_max_size = $share->prop('PHPPostMaxSize') || '10M'; |
|
|
|
my $post_max_size = $share->prop('PHPPostMaxSize') || '10M'; |
|
|
|
my $upload_max_filesize = $share->prop('PHPUploadMaxFilesize') || '10M'; |
|
|
|
my $upload_max_filesize = $share->prop('PHPUploadMaxFilesize') || '10M'; |
|
|
|
my $file_upload = $share->prop('PHPFileUpload') || 'enabled'; |
|
|
|
my $file_upload = $share->prop('PHPFileUpload') || 'enabled'; |
|
|
|
my $open_basedir = $share->prop('PHPBaseDir') || '/home/e-smith/files/shares/' . $key . ':/var/lib/php/' . $pool_name; |
|
|
|
my $open_basedir = $share->prop('PHPBaseDir') || '/home/e-smith/files/shares/' . $$pool_name . |
|
|
|
|
|
|
|
':/var/lib/php/' . $pool_name; |
|
|
|
my $disabled_functions = $share->prop('PHPDisabledFunctions') || 'system,show_source,' . |
|
|
|
my $disabled_functions = $share->prop('PHPDisabledFunctions') || 'system,show_source,' . |
|
|
|
'symlink,exec,dl,shell_exec,' . |
|
|
|
'symlink,exec,dl,shell_exec,' . |
|
|
|
'passthru,phpinfo,' . |
|
|
|
'passthru,phpinfo,' . |
|
|
@ -22,7 +23,8 @@ foreach my $share ($a->get_all_by_prop(type => 'share')){ |
|
|
|
$allow_url_fopen = ($allow_url_fopen =~ m/^1|yes|on|enabled$/) ? 'on' : 'off'; |
|
|
|
$allow_url_fopen = ($allow_url_fopen =~ m/^1|yes|on|enabled$/) ? 'on' : 'off'; |
|
|
|
$disabled_functions = join(', ', split /[,;:]/, $disabled_functions); |
|
|
|
$disabled_functions = join(', ', split /[,;:]/, $disabled_functions); |
|
|
|
my $version = $share->prop('PHPVersion') || 'default'; |
|
|
|
my $version = $share->prop('PHPVersion') || 'default'; |
|
|
|
$OUT .=<<"_EOF" if ($version == $PHP_VERSION or ($PHP_VERSION eq '' && $version == 'default')); |
|
|
|
|
|
|
|
|
|
|
|
$OUT .=<<"_EOF" if ($version eq $PHP_VERSION or ($PHP_VERSION eq '' && $version eq 'default')); |
|
|
|
|
|
|
|
|
|
|
|
[$pool_name] |
|
|
|
[$pool_name] |
|
|
|
user = www |
|
|
|
user = www |
|
|
|