private function generate_website_configuration($server_url, $server_path, $site_name, $site_slogan = '', $site_desc = '', $site_timezone = '') { $locale = LangLoader::get_locale(); $user = new AdminUser(); $user->set_locale($locale); AppContext::set_current_user($user); $this->save_general_config($server_url, $server_path, $site_name, $site_slogan, $site_desc, $site_timezone); $this->save_server_environnement_config(); $this->init_graphical_config(); $this->init_debug_mode(); $this->init_user_accounts_config($locale); $this->install_locale($locale); $this->configure_theme($this->distribution_config['theme']); }