diff --git a/modules/itop-config-mgmt-1.0.0/module.itop-config-mgmt.php b/modules/itop-config-mgmt-1.0.0/module.itop-config-mgmt.php index f836a5583..532bba652 100644 --- a/modules/itop-config-mgmt-1.0.0/module.itop-config-mgmt.php +++ b/modules/itop-config-mgmt-1.0.0/module.itop-config-mgmt.php @@ -34,7 +34,7 @@ SetupWebPage::AddModule( // Documentation // - 'doc.manual_setup' => '/doc/xxx/yyy.htm', + 'doc.manual_setup' => '', // No manual installation required 'doc.more_information' => '/doc/xxx/yyy.htm', ) ); diff --git a/modules/itop-knownerror-mgmt-1.0.0/module.itop-knownerror-mgmt.php b/modules/itop-knownerror-mgmt-1.0.0/module.itop-knownerror-mgmt.php index 359d68d5d..a87e271f2 100644 --- a/modules/itop-knownerror-mgmt-1.0.0/module.itop-knownerror-mgmt.php +++ b/modules/itop-knownerror-mgmt-1.0.0/module.itop-knownerror-mgmt.php @@ -35,7 +35,7 @@ SetupWebPage::AddModule( // Documentation // - 'doc.manual_setup' => '/doc/xxx/yyy.htm', + 'doc.manual_setup' => '', // No manual installation instructions 'doc.more_information' => '/doc/xxx/yyy.htm', ) ); diff --git a/modules/itop-problem-mgmt-1.0.0/module.itop-problem-mgmt.php b/modules/itop-problem-mgmt-1.0.0/module.itop-problem-mgmt.php index 793eee1e7..58a09df3b 100644 --- a/modules/itop-problem-mgmt-1.0.0/module.itop-problem-mgmt.php +++ b/modules/itop-problem-mgmt-1.0.0/module.itop-problem-mgmt.php @@ -35,7 +35,7 @@ SetupWebPage::AddModule( // Documentation // - 'doc.manual_setup' => '/doc/xxx/yyy.htm', + 'doc.manual_setup' => '', // No manual installation instructions 'doc.more_information' => '/doc/xxx/yyy.htm', ) ); diff --git a/modules/itop-service-mgmt-1.0.0/module.itop-service-mgmt.php b/modules/itop-service-mgmt-1.0.0/module.itop-service-mgmt.php index b338da1b6..d5b423acf 100644 --- a/modules/itop-service-mgmt-1.0.0/module.itop-service-mgmt.php +++ b/modules/itop-service-mgmt-1.0.0/module.itop-service-mgmt.php @@ -34,7 +34,7 @@ SetupWebPage::AddModule( // Documentation // - 'doc.manual_setup' => '/doc/xxx/yyy.htm', + 'doc.manual_setup' => '', // No manual installation instructions 'doc.more_information' => '/doc/xxx/yyy.htm', ) ); diff --git a/setup/index.php b/setup/index.php index 7f6150f78..2dd641455 100644 --- a/setup/index.php +++ b/setup/index.php @@ -552,6 +552,7 @@ function BuildConfig(SetupWebpage $oP, Config &$oConfig, $aParamValues) // Make sure when don't load the same file twice... foreach($aParamValues['module'] as $sModuleId) { + $oP->log('Installed iTop module: '. $sModuleId); $aDataModels = array_unique(array_merge($aDataModels, $aAvailableModules[$sModuleId]['datamodel'])); $sDictionaries = array_unique(array_merge($sDictionaries, $aAvailableModules[$sModuleId]['dictionary'])); } @@ -803,11 +804,11 @@ function ModulesSelection(SetupWebPage $oP, $aParamValues, $iCurrentStep, $oConf function AdminAccountDefinition(SetupWebPage $oP, $aParamValues, $iCurrentStep, Config $oConfig) { $sNextOperation = 'step'.($iCurrentStep+1); - $oP->add("

iTop configuration wizard

\n"); - $oP->add("

Creation of the database structure

\n"); + $oP->set_title("Configuration of the admin account"); + $oP->add("

Creation of the database structure

"); $oP->add("
\n"); $oP->add("\n"); - AddParamsToForm($oP, $aParamValues, array('auth_user', 'auth_pwd')); + AddParamsToForm($oP, $aParamValues, array('auth_user', 'auth_pwd', 'language')); $sDBName = $aParamValues['db_name']; if ($sDBName == '') @@ -822,7 +823,21 @@ function AdminAccountDefinition(SetupWebPage $oP, $aParamValues, $iCurrentStep, if (CreateDatabaseStructure($oP, $oConfig, $sDBName, $sDBPrefix)) { $sRedStar = "*"; - $oP->add("

Step 3: Definition of the administrator account

\n"); + $oP->add("

Default language for the application:

\n"); + // Possible languages (depends on the dictionaries loaded in the config) + $aForm = array(); + $aAvailableLanguages = Dict::GetLanguages(); + $sLanguages = ''; + $sDefaultCode = $oConfig->GetDefaultLanguage(); + foreach($aAvailableLanguages as $sLangCode => $aInfo) + { + $sSelected = ($sLangCode == $sDefaultCode ) ? 'selected ' : ''; + $sLanguages.=""; + } + + $aForm[] = array('label' => "Default Language$sRedStar:", 'input' => "\n"); @@ -866,7 +882,7 @@ function SampleDataSelection(SetupWebPage $oP, $aParamValues, $iCurrentStep, Con if (CreateAdminAccount($oP, $oConfig, $sAdminUser, $sAdminPwd) && UserRights::Setup()) { - $oP->add("

Step 4: Loading of sample data

\n"); + $oP->add("

Loading of sample data

\n"); $oP->p("
Do you want to load sample data into the database ? \n"); $oP->p("\n"); $oP->p("\n"); @@ -924,12 +940,44 @@ function SetupFinished(SetupWebPage $oP, $aParamValues, $iCurrentStep, Config $o // try to make the final config file read-only @chmod(FINAL_CONFIG_FILE, 0440); // Read-only for owner and group, nothing for others - $oP->add("

iTop configuration wizard

\n"); - $oP->add("

Configuration completed

\n"); + $oP->set_title("Configuration completed"); $oP->add("\n"); - $oP->ok("The initialization completed successfully."); + + // Check if there are some manual steps required: + $aAvailableModules = GetAvailableModules($oP); + $aManualSteps = array(); + foreach($aParamValues['module'] as $sModuleId) + { + if (!empty($aAvailableModules[$sModuleId]['doc.manual_setup'])) + { + $aManualSteps[$aAvailableModules[$sModuleId]['label']] = $aAvailableModules[$sModuleId]['doc.manual_setup']; + } + } + if (count($aManualSteps) > 0) + { + $oP->add("

Manual operations required

"); + $oP->p("In order to complete the installation, the following manual operations are required:"); + foreach($aManualSteps as $sModuleLabel => $sUrl) + { + $oP->p("Manual instructions for $sModuleLabel"); + } + } + else + { + $oP->add("

Congratulations for installing iTop

"); + $oP->ok("The initialization completed successfully."); + } // Form goes here.. No back button since the job is done ! - $oP->add("\n"); + $oP->add("

Let us know what you think about iTop

"); + $oP->add(''); + $oP->add('
'); + $oP->add(''); + $oP->add("Combodo built iTop because Combodo believes that modern ITIL tools should be at the center of any IT department."); + $oP->p("Combodo invested a lot of time and effort in iTop, but you can help us improve it even further by providing your feedbacks

"); + $oP->p("Register online to get informed about all iTop related events (new versions, webinars, etc...)"); + $oP->p("Check out the support options available for iTop."); + $oP->add('
'); + $oP->add("

\n"); $oP->add("\n"); } else @@ -1008,7 +1056,7 @@ catch(Exception $e) } try { - $aParams = array('licence_ok', 'db_server', 'db_user', 'db_pwd','db_name', 'new_db_name', 'db_prefix', 'module', 'sample_data', 'auth_user', 'auth_pwd'); + $aParams = array('licence_ok', 'db_server', 'db_user', 'db_pwd','db_name', 'new_db_name', 'db_prefix', 'module', 'sample_data', 'auth_user', 'auth_pwd', 'language'); foreach($aParams as $sName) { $aParamValues[$sName] = utils::ReadParam($sName, '');