From b93fa7cceeea321c548b8d7abe4350a52492aca7 Mon Sep 17 00:00:00 2001 From: Mafoo Date: Wed, 8 Jun 2016 14:36:13 +0100 Subject: [PATCH] Reinstated the detect Configuration (#1624) it is no longer required for the detect_switch to pass but this reinstates the ability to change the values and check them with detect configuration --- core/install/install.php | 23 ++++++++++++------- .../page_parts/install_event_socket.php | 8 +++---- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/core/install/install.php b/core/install/install.php index 96235aba7c..df48ed0216 100644 --- a/core/install/install.php +++ b/core/install/install.php @@ -97,6 +97,7 @@ //intialize variables $install_step = ''; $return_install_step = ''; + $re_detect_switch = false; //process the the HTTP POST if (count($_POST) > 0) { @@ -116,6 +117,9 @@ $install_template_name = $_POST["install_template_name"]; $domain_name = $_POST["domain_name"]; } + if($install_step == 'config_detail' and strlen(check_str($_POST["re_detect_switch"])) > 0 ){ + $re_detect_switch = true; + } } //set the install step if it is not set @@ -177,7 +181,10 @@ elseif (strlen($admin_password) < 5) { $messages[] = "Please provide an Admin Password that is 5 or more characters.
\n"; } if ( count($messages) > $existing_errors) { $install_step = 'config_detail'; } } - + if($re_detect_switch == true ){ + $install_step = 'detect_config'; + } + if($install_step =='execute') { //set the max execution time to 1 hour ini_set('max_execution_time',3600); @@ -214,17 +221,17 @@ echo "\n"; } elseif($install_step == 'detect_config'){ if(!($event_host == '' || $event_host == 'localhost' || $event_host == '::1' || $event_host == '127.0.0.1' )){ - echo "

Warning you have choosen a value other than localhost for event_host, this is unsoported at present

\n"; + echo "

Warning you have chosen a value other than localhost for event_host, this is unsupported at present

\n"; } //if($detect_ok){ echo "
\n"; include "resources/page_parts/install_event_socket.php"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; + //echo " \n"; + //echo " \n"; + //echo " \n"; + //echo " \n"; + //echo " \n"; + //echo " \n"; //echo "
\n"; //echo " \n"; //echo " \n"; diff --git a/core/install/resources/page_parts/install_event_socket.php b/core/install/resources/page_parts/install_event_socket.php index 2927eaf217..911a455492 100644 --- a/core/install/resources/page_parts/install_event_socket.php +++ b/core/install/resources/page_parts/install_event_socket.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2012 + Portions created by the Initial Developer are Copyright (C) 2008-2016 the Initial Developer. All Rights Reserved. Contributor(s): @@ -31,8 +31,8 @@ try { $switch_detect->detect(); } catch(Exception $e){ - //echo "

Failed to detect configuration detect_switch reported: " . $e->getMessage() ."

\n"; - //$detect_ok = false; + echo "

Failed to detect configuration detect_switch reported: " . $e->getMessage() ."

\n"; + $detect_ok = false; } echo "\n"; echo "\n"; @@ -41,7 +41,7 @@ echo "\n"; echo "".$text['header-event_socket']."

\n"; echo ""; - //echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo "\n";