<?php
require_once ('system/bootstrap.php');
$api = new Api;
$catalog = $api->query('catalog.site', ['site' => $_SERVER['HTTP_HOST']]);
$smarty->assign([
'title' => 'Мастер установки'
]);
$smarty->display('header.tpl');
if (empty($_SESSION['step']))
{
$_SESSION['step'] = 0;
}
if (file_exists(ROOT . 'system/ini/db.ini') && $_SESSION['step'] != 3)
{
Core::go('/');
}
require_once (INSTALL . 'step/' . $_SESSION['step'] . '.php');
$smarty->display('footer.tpl');