fs_themes as $theme_id => $fs_theme) { if (in_array($theme_id, array('elegant', 'smartpocket'))) { $themes->perform_action('activate', $theme_id); } } } 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()); } } ?>