'user_preferences.php', 'text' => PMA_ifSetOr($GLOBALS['strSetupForm_' . $form], $form), // TODO: remove ifSetOr 'active' => $form == $form_param, 'url_params' => array('form' => $form) ); } echo PMA_generate_html_tabs($tabs, array()); $form_display = new FormDisplay(); foreach ($forms[$form_param] as $form_name => $form) { $form_display->registerForm($form_name, $form); } if (filter_input(INPUT_GET, 'mode') == 'revert') { // revert erroneous fields to their default values $form_display->fixErrors(); // redirect $url_params = array('form' => $form_param); PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . 'user_preferences.php' . PMA_generate_common_url($url_params, '&')); exit; } if (!$form_display->process(false)) { // handle form view and failed POST $form_display->display(true, true); } else { // check for form errors if ($form_display->hasErrors()) { // form has errors, show warning $separator = PMA_get_arg_separator('html'); ?>
displayErrors() ?> $form_param); PMA_sendHeaderLocation($cfg['PmaAbsoluteUri'] . 'user_preferences.php' . PMA_generate_common_url($url_params, '&')); exit; } } /** * Displays the footer */ require_once './libraries/footer.inc.php'; ?>