/[smeserver]/rpms/e-smith-ibays/sme9/e-smith-ibays-2.4.0_add_php_values_and_SSLRequireSSL.patch
ViewVC logotype

Diff of /rpms/e-smith-ibays/sme9/e-smith-ibays-2.4.0_add_php_values_and_SSLRequireSSL.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by stephdl, Sat Mar 15 17:10:40 2014 UTC Revision 1.2 by stephdl, Tue Apr 8 20:05:03 2014 UTC
# Line 5  diff -Nur e-smith-ibays-2.4.0.old/root/e Line 5  diff -Nur e-smith-ibays-2.4.0.old/root/e
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";
# Line 23  diff -Nur e-smith-ibays-2.4.0.old/root/e Line 23  diff -Nur e-smith-ibays-2.4.0.old/root/e
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           }           }
# Line 34  diff -Nur e-smith-ibays-2.4.0.old/root/e Line 34  diff -Nur e-smith-ibays-2.4.0.old/root/e
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           {           {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed