fs_themes as $theme_id => $fs_theme) { if (in_array($theme_id, array('elegant', 'Sylvia', 'clear', 'dark', '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) { array_push( $errors, l10n($e->getMessage())); } } ?>