5 |
my $followSymLinks = $properties{'FollowSymLinks'} || "disabled"; |
my $followSymLinks = $properties{'FollowSymLinks'} || "disabled"; |
6 |
my $indexes = $properties{'Indexes'} || "enabled"; |
my $indexes = $properties{'Indexes'} || "enabled"; |
7 |
my $sslRequireSSL = $properties{'SSLRequireSSL'} || "disabled"; |
my $sslRequireSSL = $properties{'SSLRequireSSL'} || "disabled"; |
8 |
+ my $ssldb = $properties{'SSL'} || "disabled"; |
+ my $ssldb = $properties{'SSL'} || 'disabled'; |
9 |
+ |
+ |
10 |
+###php values for each ibay or set "disabled" if not defined |
+###php values for each ibay or set 'disabled' if not defined |
11 |
+ my $allowurlfopen = $properties{'AllowUrlfOpen'} || "disabled"; |
+ my $allowurlfopen = $properties{'AllowUrlfOpen'} || 'disabled'; |
12 |
+ my $MemoryLimit = $properties{'MemoryLimit'} || "disabled"; |
+ my $memoryLimit = $properties{'MemoryLimit'} || 'disabled'; |
13 |
+ my $maxfileSize = $properties{'UpMaxFileSize'} || "disabled"; |
+ my $upmaxfileSize = $properties{'UpMaxFileSize'} || 'disabled'; |
14 |
+ my $postmaxSize = $properties{'PostMaxSize'} || "disabled"; |
+ my $postmaxSize = $properties{'PostMaxSize'} || 'disabled'; |
15 |
+ my $maxexecutionTime = $properties{'MaxExecTime'} || "disabled"; |
+ my $maxexecutionTime = $properties{'MaxExecTime'} || 'disabled'; |
16 |
+ $maxexecutionTime = '0' if $maxexecutionTime eq "unlimited"; |
+ $maxexecutionTime = '0' if $maxexecutionTime eq 'unlimited'; |
17 |
+ |
+ |
18 |
$OUT .= "\n"; |
$OUT .= "\n"; |
19 |
$OUT .= "#------------------------------------------------------------\n"; |
$OUT .= "#------------------------------------------------------------\n"; |
23 |
$OUT .= "\n"; |
$OUT .= "\n"; |
24 |
$OUT .= "<Directory /home/e-smith/files/ibays/$key/html>\n"; |
$OUT .= "<Directory /home/e-smith/files/ibays/$key/html>\n"; |
25 |
- if ($sslRequireSSL eq 'enabled') |
- if ($sslRequireSSL eq 'enabled') |
26 |
+ if (("$sslRequireSSL" eq 'enabled') || ("$ssldb" eq 'enabled')) |
+ if (($sslRequireSSL eq 'enabled') || ($ssldb eq 'enabled')) |
27 |
{ |
{ |
28 |
$OUT .=" SSLRequireSSL\n"; |
$OUT .=" SSLRequireSSL\n"; |
29 |
} |
} |
34 |
- { |
- { |
35 |
+ { |
+ { |
36 |
$OUT .= " Options +Includes\n"; |
$OUT .= " Options +Includes\n"; |
37 |
+ $OUT .= " php_admin_flag allow_url_fopen on\n" if ($allowurlfopen eq "enabled"); |
+ $OUT .= " php_admin_flag allow_url_fopen on\n" if ($allowurlfopen eq 'enabled'); |
38 |
+ $OUT .= " php_admin_value memory_limit $MemoryLimit\n" if ($MemoryLimit ne "disabled"); |
+ $OUT .= " php_admin_value memory_limit $memoryLimit\n" if ($memoryLimit ne 'disabled'); |
39 |
+ $OUT .= " php_admin_value upload_max_filesize $maxfileSize\n" if ($maxfileSize ne "disabled"); |
+ $OUT .= " php_admin_value upload_max_filesize $upmaxfileSize\n" if ($upmaxfileSize ne 'disabled'); |
40 |
+ $OUT .= " php_admin_value post_max_size $postmaxSize\n" if ($postmaxSize ne "disabled"); |
+ $OUT .= " php_admin_value post_max_size $postmaxSize\n" if ($postmaxSize ne 'disabled'); |
41 |
+ $OUT .= " php_admin_value max_execution_time $maxexecutionTime\n" if ($maxexecutionTime ne "disabled"); |
+ $OUT .= " php_admin_value max_execution_time $maxexecutionTime\n" if ($maxexecutionTime ne 'disabled'); |
42 |
} |
} |
43 |
else |
else |
44 |
{ |
{ |