$plugins = $pluginsManager->getPlugins(); if ($plugins != false) { foreach ($plugins as $plugin) { if ($plugin->getLibFile()) { include_once $plugin->getLibFile(); if (!$plugin->isInstalled()) { $pluginsManager->installPlugin($plugin->getName(), true); } $plugin->setConfigVal('activate', '1'); $pluginsManager->savePluginConfig($plugin); } } } } if (count($_POST) > 0 && $administrator->isAuthorized()) { $adminPwd = $administrator->encrypt($_POST['adminPwd']); $adminEmail = $_POST['adminEmail']; $config = array('siteName' => "Nom du site", 'siteDescription' => "Description du site", 'adminPwd' => $administrator->encrypt($_POST['adminPwd']), 'adminEmail' => $_POST['adminEmail'], 'siteUrl' => $core->makeSiteUrl(), 'urlRewriting' => '0', 'theme' => 'default', 'siteLang' => $lang, 'hideTitles' => '0', 'defaultPlugin' => 'page', 'checkUrl' => base64_decode('aHR0cDovLzk5a28ub3JnL3ZlcnNpb24='), 'debug' => '0', 'defaultAdminPlugin' => 'page', 'urlSeparator' => ','); if (!@file_put_contents(DATA . 'config.json', json_encode($config)) || !@chmod(DATA . 'config.json', 0666)) { $msg = $core->lang('An error has occurred'); ${$msgType} = "error"; } else { $_SESSION['installOk'] = true; header('location:admin/'); die; } } ?> <!doctype html> <!--[if IE 9]><html class="lt-ie10" lang="<?php