public function execute(HTTPRequestCustom $request) { parent::load_lang($request); $view = new FileTemplate('install/welcome.tpl'); $this->add_navigation($view); return $this->create_response($view); }
public function execute(HTTPRequestCustom $request) { parent::load_lang($request); $this->build_form(); if ($this->submit->has_been_submited()) { $this->handle_form(); } return $this->create_response(); }
public function execute(HTTPRequestCustom $request) { parent::load_lang($request); $this->build_form(); if ($this->submit_button->has_been_submited() && $this->form->validate()) { $host = $this->form->get_value('host'); $port = $this->form->get_value('port'); $login = $this->form->get_value('login'); $password = $this->form->get_value('password'); $schema = $this->form->get_value('schema'); $tables_prefix = $this->form->get_value('tablesPrefix'); $this->handle_form($host, $port, $login, $password, $schema, $tables_prefix); } return $this->create_response(); }
public function execute(HTTPRequestCustom $request) { parent::load_lang($request); $this->build_form(); if ($this->submit_button->has_been_submited() && $this->form->validate()) { $login = $this->form->get_value('email'); if ($this->form->get_value('custom_login', false)) { $login = $this->form->get_value('login'); } $installation_services = new InstallationServices(); $installation_services->create_admin($login, $this->form->get_value('password'), $this->form->get_value('email'), $this->form->get_value('createSession'), $this->form->get_value('autoconnect')); HtaccessFileCache::regenerate(); AppContext::get_response()->redirect(InstallUrlBuilder::finish()); } return $this->create_response(); }