fs_themes as $theme_id => $fs_theme) { if (in_array($theme_id, array('elegant', 'smartpocket'))) { $themes->perform_action('activate', $theme_id); } } } /** * Automatically activate some core plugins */ function activate_core_plugins() { include_once(PHPWG_ROOT_PATH.'admin/include/plugins.class.php'); $plugins = new plugins(); foreach($plugins->fs_plugins as $plugin_id => $fs_plugin) { if (in_array($plugin_id, array('TakeATour'))) { $plugins->perform_action('activate', $plugin_id); } } } /** * Connect to database during installation. Uses $_POST. * * @param array &$infos - populated with infos * @param array &$errors - populated with errors */ function install_db_connect(&$infos, &$errors) { try { pwg_db_connect($_POST['dbhost'], $_POST['dbuser'], $_POST['dbpasswd'], $_POST['dbname']); pwg_db_check_version(); } catch (Exception $e) { $errors[] = l10n($e->getMessage()); } } ?>