diff --git a/install/index.php b/install/index.php index c5f10ff95..003b8d98d 100644 --- a/install/index.php +++ b/install/index.php @@ -74,7 +74,7 @@ if (file_exists($db_file_path)) { } // Only load the classes in case the user submitted the form -if($_POST) { +if ($_POST) { // Load the classes and create the new objects require_once('includes/core_class.php'); @@ -200,7 +200,7 @@ if($_POST) {

PHP Modules

@@ -215,10 +215,11 @@ if($_POST) { $moduleData) { $condition = $moduleData['condition']; - $allChecksPassed = $allChecksPassed && $condition; + if (!$condition) { + $allChecksPassed = 'failed'; + } ?> @@ -260,11 +261,12 @@ if($_POST) { @@ -277,11 +279,12 @@ if($_POST) { ($max_upload_file_size * 1024 * 1024)) { // compare with given value in bytes - ?> + if ($maxUploadFileSizeBytes > ($max_upload_file_size * 1024 * 1024)) { // compare with given value in bytes ?> + if ($allChecksPassed != 'failed') { // Check current value before changing to 'warning' + $allChecksPassed = 'warning'; + }?> @@ -294,11 +297,12 @@ if($_POST) { ($post_max_size * 1024 * 1024)) { // compare with given value in bytes - ?> + if ($maxUploadFileSizeBytes > ($post_max_size * 1024 * 1024)) { // compare with given value in bytes ?> + if ($allChecksPassed != 'failed') { // Check current value before changing to 'warning' + $allChecksPassed = 'warning'; + } ?> @@ -313,7 +317,7 @@ if($_POST) { ?> On + $allChecksPassed = 'failed'; ?> Off @@ -321,16 +325,22 @@ if($_POST) {
= $max_execution_time) { - ?> + if ($maxExecutionTime >= $max_execution_time) { ?> + if ($allChecksPassed != 'failed') { // Check current value before changing to 'warning' + $allChecksPassed = 'warning'; + } ?>
- - - + + + + +
@@ -618,7 +628,7 @@ if($_POST) { $('#ContinueButton').on('click', nextTab); $('#BackButton').on('click', prevTab); - + // Check if the active tab is the precheck-tab and disable the ContinueButton if not all Checks passed $(document).on('shown.bs.tab', function(e) { const activeTabId = e.target.id;