/[smeserver]/rpms/e-smith-php/sme10/e-smith-php-2.6.0_add_upload_tmp_folder.patch
ViewVC logotype

Contents of /rpms/e-smith-php/sme10/e-smith-php-2.6.0_add_upload_tmp_folder.patch

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


Revision 1.1 - (show annotations) (download)
Thu Jun 23 04:24:30 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: e-smith-php-2_6_0-3_el7_sme
* Thu Jun 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme
- add tmp folder to ibays [SME: 7011]

1 diff -Nur e-smith-php-2.4.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays e-smith-php-2.4.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays
2 --- e-smith-php-2.4.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays 2014-03-22 18:09:55.349034164 +0100
3 +++ e-smith-php-2.4.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays 2014-03-22 23:09:00.603783904 +0100
4 @@ -17,6 +17,11 @@
5 my $basedir = $ibay->prop('PHPBaseDir')
6 || ("/home/e-smith/files/ibays/" . $ibay->key . "/");
7 $OUT .= " php_admin_value open_basedir $basedir\n";
8 +
9 + # Set the upload_tmp_folder where php can upload files
10 + my $tmpdir = $ibay->prop('PHPTmpDir') || 'enabled';
11 + $tmpdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/tmp') if $tmpdir eq 'enabled';
12 + $OUT .= " php_admin_value upload_tmp_dir $tmpdir\n" unless ($tmpdir eq 'disabled' || ! -d $tmpdir);
13 $OUT .= "</Directory>\n";
14 }
15 }

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