'Français', 'en' => 'English', 'es' => 'Español', 'de' => 'Deutsch', 'it' => 'Italiano', ]; require_once '../app/inc/init.php'; define('CONF_FILENAME', ROOT_DIR . '/app/inc/config.php'); if (file_exists(CONF_FILENAME)) { header(('Location: ' . Utils::get_server_name())); exit; } $error = null; if (!empty($_POST)) { $installService = new InstallService(); $result = $installService->install($_POST, $smarty); if ($result['status'] === 'OK') { header(('Location: ' . Utils::get_server_name() . '/admin/migration.php')); exit; } else { $error = __('Error', $result['code']); } } $smarty->assign('error', $error); $smarty->assign('title', __('Admin', 'Installation')); $smarty->assign('logsAreReadable', is_readable('../' . LOG_FILE)); $smarty->display('admin/install.tpl');