diff --git a/app/main/controller/setup.php b/app/main/controller/setup.php index ccfa5863..36d9ca71 100644 --- a/app/main/controller/setup.php +++ b/app/main/controller/setup.php @@ -322,6 +322,20 @@ class Setup extends Controller { 'required' => 'installed', 'version' => (extension_loaded('curl') && function_exists('curl_version')) ? 'installed' : 'not installed', 'check' => (extension_loaded('curl') && function_exists('curl_version')) + ], + 'maxInputVars' => [ + 'label' => 'max_input_vars', + 'required' => $f3->get('REQUIREMENTS.PHP.MAX_INPUT_VARS'), + 'version' => ini_get('max_input_vars'), + 'check' => ini_get('max_input_vars') >= $f3->get('REQUIREMENTS.PHP.MAX_INPUT_VARS'), + 'tooltip' => 'PHP default = 1000. Increase it in order to import larger maps.' + ], + 'maxExecutionTime' => [ + 'label' => 'max_execution_time', + 'required' => $f3->get('REQUIREMENTS.PHP.MAX_EXECUTION_TIME'), + 'version' => ini_get('max_execution_time'), + 'check' => ini_get('max_execution_time') >= $f3->get('REQUIREMENTS.PHP.MAX_EXECUTION_TIME'), + 'tooltip' => 'PHP default = 30. Max execution time for PHP scripts.' ] ]; diff --git a/app/requirements.ini b/app/requirements.ini index dce58551..48ceaf08 100644 --- a/app/requirements.ini +++ b/app/requirements.ini @@ -17,6 +17,15 @@ VERSION = 5.6 ; but needs to be additionally updated on CentOS or Red Hat systems PCRE_VERSION = 8.02 +; max execution time for requests +MAX_EXECUTION_TIME = 10 + +; max variable size for $_GET, $_POST and $_COOKIE +; this is required for importing larger maps +; http://php.net/manual/en/info.configuration.php +; PHP default = 1000 +MAX_INPUT_VARS = 3000 + [REQUIREMENTS.MYSQL] ; min MySQL Version ; newer "deviation" of MySQL like "MariaDB" > 10.1 are recommended diff --git a/public/templates/view/setup.html b/public/templates/view/setup.html index 6ee38aa1..5814aab1 100644 --- a/public/templates/view/setup.html +++ b/public/templates/view/setup.html @@ -95,7 +95,7 @@ Feature required - installed + found