Permalink
Browse files

Add {AllowUrlfOpen,MemoryLimit,UpMaxFileSize,PostMaxSize,MaxExecTime,…

…MaxFileUploads} php_admin_value to http templates
  • Loading branch information...
stephdl committed Feb 21, 2015
1 parent 8932e23 commit f0f23e2cc058064910ad502fb0b7381e14cd7a27
@@ -45,6 +45,12 @@
'CgiBinStatus' => $ih{HttpCgiBinStatus} || 'disabled',
'Profile' => $ih{HttpProfileType} || 'default',
'ServerName' => $vhostName,
'AllowUrlfOpen' => $ih{PhpAllowUrlfOpen} || 'enabled',
'MemoryLimit'=> $ih{PhpMemoryLimit} || 'disabled',
'UpMaxFileSize'=> $ih{PhpUpMaxFileSize} || 'disabled',
'PostMaxSize'=> $ih{PhpPostMaxSize} || 'disabled',
'MaxExecTime'=> $ih{PhpMaxExecTime} || 'disabled',
'MaxFileUploads'=>$ih{PhpMaxFileUploads} || 'disabled',
};
if( ! defined $ih{HttpAliasType} || $ih{HttpAliasType} eq 'default') {
@@ -0,0 +1,8 @@
{
$OUT .= " php_admin_flag allow_url_fopen off\n" if ($AllowUrlfOpen eq 'disabled');
$OUT .= " php_admin_value memory_limit $MemoryLimit\n" if ($MemoryLimit ne 'disabled');
$OUT .= " php_admin_value upload_max_filesize $UpMaxFileSize\n" if ($UpMaxFileSize ne 'disabled');
$OUT .= " php_admin_value post_max_size $PostMaxSize\n" if ($PostMaxSize ne 'disabled');
$OUT .= " php_admin_value max_execution_time $MaxExecTime\n" if ($MaxExecTime ne 'disabled');
$OUT .= " php_admin_value max_file_uploads $MaxFileUploads\n" if ($MaxFileUploads ne 'disabled');
}

0 comments on commit f0f23e2

Please sign in to comment.