1 |
unnilennium |
1.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 |
|
|
} |