Source
new CTag('p', true, _s('Please check configuration parameters. If all is correct, press "%1$s" button, or "%2$s" button to change configuration parameters.', _('Next step'), _('Back'))),
<?php
/*
** Zabbix
** Copyright (C) 2001-2022 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
/**
* Setup wizard form.
*/
class CSetupWizard extends CForm {
public const STAGE_WELCOME = 1;
public const STAGE_REQUIREMENTS = 2;
public const STAGE_DB_CONNECTION = 3;
public const STAGE_SETTINGS = 4;
public const STAGE_SUMMARY = 5;
public const STAGE_INSTALL = 6;
private $frontend_setup;
private $stages;
private $disable_cancel_button = false;
private $disable_back_button = false;
private $show_retry_button = false;
private $step_failed = false;
public function __construct() {
parent::__construct();
$this->setId('setup-form');
$this->frontend_setup = new CFrontendSetup();
$this->stages = [
self::STAGE_WELCOME => [
'title' => _('Welcome'),
'fn' => 'stageWelcome'
],
self::STAGE_REQUIREMENTS => [
'title' => _('Check of pre-requisites'),
'fn' => 'stageRequirements'
],
self::STAGE_DB_CONNECTION => [
'title' => _('Configure DB connection'),
'fn' => 'stageDbConnection'
],
self::STAGE_SETTINGS => [