diff --git a/setup/index.php b/setup/index.php
index 6bacb5d11..ecafd39c3 100644
--- a/setup/index.php
+++ b/setup/index.php
@@ -981,7 +981,7 @@ function ModulesSelection(SetupWebPage $oP, $aParamValues, $iCurrentStep, $oConf
$oP->add("\n");
if ($aParamValues['mode'] == 'upgrade')
{
- $oP->add("
Next: Sample data selection
\n");
+ $oP->add("Next: Application path
\n");
AddHiddenParam($oP, 'operation', 'step6');
}
else
@@ -1042,7 +1042,7 @@ function AdminAccountDefinition(SetupWebPage $oP, $aParamValues, $iCurrentStep,
$aForm[] = array('label' => "Retype password$sRedStar:", 'input' => "");
$oP->form($aForm);
$oP->add("\n");
- $oP->add("Next: Sample data selection
\n");
+ $oP->add("Next: Application path
\n");
$oP->add("\n");
$oP->add(" | \n");
$oP->add("> \"/> | \n");
@@ -1052,6 +1052,51 @@ function AdminAccountDefinition(SetupWebPage $oP, $aParamValues, $iCurrentStep,
$oP->add("\n");
}
+
+/**
+ * Display the form for validating/entering the URL (path) to the application
+ * which consists in
+ */
+function ApplicationPathSelection(SetupWebPage $oP, $aParamValues, $iCurrentStep, Config $oConfig)
+{
+ $sNextOperation = 'step7';
+ if ($aParamValues['mode'] == 'upgrade')
+ {
+ $iPrevStep = 4;
+ }
+ else
+ {
+ $iPrevStep = 5;
+ }
+
+ $oP->set_title("Application Path");
+
+ $oP->add("\n");
+}
+
/**
* Display the form for the fourth step of the configuration wizard
* which consists in
@@ -1060,15 +1105,8 @@ function AdminAccountDefinition(SetupWebPage $oP, $aParamValues, $iCurrentStep,
*/
function SampleDataSelection(SetupWebPage $oP, $aParamValues, $iCurrentStep, Config $oConfig)
{
- $sNextOperation = 'step7';
- if ($aParamValues['mode'] == 'upgrade')
- {
- $iPrevStep = 4;
- }
- else
- {
- $iPrevStep = 5;
- }
+ $sNextOperation = 'step8';
+ $iPrevStep = 6;
$oP->set_title("Application initialization");
$sAdminUser = $aParamValues['auth_user'];
@@ -1081,6 +1119,7 @@ function SampleDataSelection(SetupWebPage $oP, $aParamValues, $iCurrentStep, Con
$aAvailableModules = AnalyzeInstallation($oConfig);
BuildConfig($oP, $oConfig, $aParamValues, $aAvailableModules); // Load all the includes based on the modules selected
+ $oConfig->Set('app_root_url', $aParamValues['application_path']);
// in case of upgrade, the value is already present in the config file
$oConfig->WriteToFile(TMP_CONFIG_FILE);
@@ -1111,7 +1150,7 @@ function SampleDataSelection(SetupWebPage $oP, $aParamValues, $iCurrentStep, Con
$oP->add("Next: Installation summary
\n");
$oP->add("\n");
$oP->add("\n");
}
@@ -1179,6 +1218,9 @@ function DisplaySummary(SetupWebPage $oP, $aParamValues, $iCurrentStep, Config $
}
$oP->collapsible('sample_data', "Sample Data", array($sSampleData));
+ // Application Path
+ $oP->collapsible('application_path', "Application path", array('URL:'.htmlentities($aParamValues['application_path'], ENT_QUOTES, 'UTF-8')));
+
// Admin account
$oP->collapsible('admin_account', "Administrator account", array('Login:'.htmlentities($aParamValues['auth_user'], ENT_QUOTES, 'UTF-8')));
// Default language
@@ -1190,9 +1232,9 @@ function DisplaySummary(SetupWebPage $oP, $aParamValues, $iCurrentStep, Config $
$oP->add("\n");
AddParamsToForm($oP, $aParamValues);
$oP->add("\n");
- $oP->add(" | \n");
+ $oP->add(" | \n");
// Note: the Next >> button is NOT a submit, since moving to the next page is triggered asynchronously
- $oP->add(" | \n");
+ $oP->add(" | \n");
$oP->add("
\n");
$oP->add("\n");
break;
@@ -1289,6 +1331,9 @@ function DisplaySummary(SetupWebPage $oP, $aParamValues, $iCurrentStep, Config $
$sSampleData = 'No sample data will be loaded.';
}
$oP->collapsible('sample_data', "Sample Data", array($sSampleData));
+
+ // Application Path
+ $oP->collapsible('application_path', "Application path", array('URL:'.htmlentities($aParamValues['application_path'], ENT_QUOTES, 'UTF-8')));
$oP->add('');
$oP->add("