6 |
|| ("/home/e-smith/files/ibays/" . $ibay->key . "/"); |
|| ("/home/e-smith/files/ibays/" . $ibay->key . "/"); |
7 |
$OUT .= " php_admin_value open_basedir $basedir\n"; |
$OUT .= " php_admin_value open_basedir $basedir\n"; |
8 |
+ |
+ |
9 |
+ # Set the upload_tmp_folder where php can upload files |
+ # Set the upload_tmp_folder where php can upload files |
10 |
+ my $tmpdir = $ibay->prop('PHPTmpDir') || 'enabled'; |
+ my $tmpdir = $ibay->prop('PHPTmpDir') || 'enabled'; |
11 |
+ $tmpdir = ('/home/e-smith/files/ibays/' . $ibay->key . '/tmp') if $tmpdir eq 'enabled'; |
+ $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); |
+ $OUT .= " php_admin_value upload_tmp_dir $tmpdir\n" unless ($tmpdir eq 'disabled' || ! -d $tmpdir); |
13 |
$OUT .= "</Directory>\n"; |
$OUT .= "</Directory>\n"; |
14 |
} |
} |
15 |
} |
} |