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

Diff 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 | View Patch Patch

Revision 1.1 by unnilennium, Thu Jun 23 04:24:30 2016 UTC Revision 1.2 by unnilennium, Thu Jun 23 14:56:11 2016 UTC
# Line 6  diff -Nur e-smith-php-2.4.0.old/root/etc Line 6  diff -Nur e-smith-php-2.4.0.old/root/etc
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          }          }


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