oWizard->SaveParameter('accept_license', 'no'); return new WizardState(WizStepDBParams::class); } /** * @return bool true if we need to display a GDPR confirmation * @throws \Exception * @since 2.7.7 3.0.2 3.1.0 N°5037 method creation * @since 2.7.8 3.0.3 3.1.0 N°5758 rename from NeedsRgpdConsent to NeedsGdprConsent */ private function NeedsGdprConsent() { $sMode = $this->oWizard->GetParameter('install_mode'); if ($sMode !== 'install') { return false; } $aModules = SetupUtils::AnalyzeInstallation($this->oWizard); return SetupUtils::IsConnectableToITopHub($aModules); } /** * @param WebPage $oPage */ public function Display(WebPage $oPage) { $aLicenses = SetupUtils::GetLicenses(); $oPage->add_style( <<add('

Licenses agreements for the components of '.ITOP_APPLICATION.'

'); $oPage->add_style('div a.no-arrow { background:transparent; padding-left:0;}'); $oPage->add_style('.toggle { cursor:pointer; text-decoration:underline; color:#1C94C4; }'); $oPage->add('
'); $oPage->add('Components of '.ITOP_APPLICATION.''); $oPage->add(''); $oPage->add('
'); $sChecked = ($this->oWizard->GetParameter('accept_license', 'no') == 'yes') ? ' checked ' : ''; $oPage->add('
'); if ($this->NeedsGdprConsent()) { $oPage->add('
'); $oPage->add('
'); $oPage->add('European General Data Protection Regulation'); $oPage->add('
'.ITOP_APPLICATION.' software is compliant with the processing of personal data according to the European General Data Protection Regulation (GDPR).

By installing '.ITOP_APPLICATION.' you agree that some information will be collected by Combodo to help you manage your instances and for statistical purposes. This data remains anonymous until it is associated to a user account on iTop Hub.

List of collected data available in our Data privacy section.


'); $oPage->add(''); $oPage->add(''); $oPage->add('
'); } $oPage->add_ready_script('$(".check_select").on("click change", function() { WizardUpdateButtons(); });'); $oPage->add_script( <<