. */ /* */ /*************************************************************************************/ $step=6; include "header.php"; if($_SESSION['install']['step'] != $step && (empty($_POST['admin_login']) || empty($_POST['admin_password']) || ($_POST['admin_password'] != $_POST['admin_password_verif']))) { header('location: config.php?err=1'); } if($_SESSION['install']['step'] == 5) { $admin = new \Thelia\Model\Admin(); $admin->setLogin($_POST['admin_login']) ->setPassword($_POST['admin_password']) ->setFirstname('admin') ->setLastname('admin') ->save(); \Thelia\Model\ConfigQuery::create() ->filterByName('contact_email') ->update(array('Value' => $_POST['email_contact'])); \Thelia\Model\ConfigQuery::create() ->filterByName('company_name') ->update(array('Value' => $_POST['company_name'])); \Thelia\Model\ConfigQuery::create() ->filterByName('url_site') ->update(array('Value' => $_POST['url_site'])); } //clean up cache directories $fs = new \Symfony\Component\Filesystem\Filesystem(); $fs->remove(THELIA_ROOT . '/cache/prod'); $fs->remove(THELIA_ROOT . '/cache/dev'); $request = \Thelia\Core\HttpFoundation\Request::createFromGlobals(); $_SESSION['install']['step'] = $step; ?>
Thanks, you have installed Thelia
Don't forget to delete the web/install directory.