From 793c238d971a85c94af5dcece2a0f62c50d87550 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 6 Feb 2020 13:36:22 +0900 Subject: [PATCH] Update index.php --- index.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index ad8988b..e16977e 100644 --- a/index.php +++ b/index.php @@ -95,12 +95,24 @@ $max_execution_time = get_value_in_array("max_execution_time", $config, 0); //@set_time_limit($max_execution_time); // set memory limit -$memory_limit = get_value_in_array("memory_limit", $config, ""); +$memory_limit = get_value_in_array("memory_limit", $config, 0); if(!empty($memory_limit)) { @ini_set("memory_limit", $memory_limit); @ini_set("suhosin.memory_limit", $memory_limit); } +// set upload max filesize +$upload_max_filesize = get_value_in_array("upload_max_filesize", $config, 0); +if(!empty($upload_max_filesize)) { + @ini_set("upload_max_filesize", $upload_max_filesize); +} + +// set post max size +$post_max_size = get_value_in_array("post_max_size", $config, 0); +if(!empty($post_max_size)) { + @ini_set("post_max_size", $post_max_size); +} + // start session start_isolated_session();