Commit 9a746cb6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add PHP_allow_url_fopen and PHP_disable_functions support

parent 944b71dd
......@@ -135,7 +135,9 @@ tune_php()
local aphp="$1"
#[ -s php7.add ] && cat php7.add | st tee -a $aphp
[ -n "$PHP_memory_limit" ] && subst "s|^memory_limit =.*|memory_limit = $PHP_memory_limit|" $aphp
[ -n "$PHP_max_execution_time" ] && subst "s|^max_execution_time = .*|max_execution_time = $PHP_max_execution_time|" $aphp
[ -n "$PHP_max_execution_time" ] && subst "s|^max_execution_time =.*|max_execution_time = $PHP_max_execution_time|" $aphp
[ -n "$PHP_allow_url_fopen" ] && subst "s|^allow_url_fopen =.*|allow_url_fopen = $PHP_allow_url_fopen|" $aphp
[ -n "$PHP_disable_functions" ] && subst "s|^disable_functions =.*|disable_functions = $PHP_disable_functions|" $aphp
if [ -n "$PHP_post_max_size" ] ; then
subst "s|^post_max_size = .*|post_max_size = $PHP_post_max_size|" $aphp
subst "s|^upload_max_filesize = .*|upload_max_filesize = $PHP_post_max_size|" $aphp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment