Translation update done using Pootle.
[phpmyadmin/crack.git] / setup / frames / form.inc.php
blob27429b44be9446d20441a184a68c10005ccccff4
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Form edit view
6 * @package phpMyAdmin-setup
7 */
9 if (!defined('PHPMYADMIN')) {
10 exit;
13 /**
14 * Core libraries.
16 require_once './libraries/config/Form.class.php';
17 require_once './libraries/config/FormDisplay.class.php';
18 require_once './setup/lib/form_processing.lib.php';
20 require './libraries/config/setup.forms.php';
22 $formset_id = filter_input(INPUT_GET, 'formset');
23 $mode = filter_input(INPUT_GET, 'mode');
24 if (!isset($forms[$formset_id])) {
25 die('Incorrect formset, check $formsets array in setup/frames/form.inc.php');
28 if (isset($GLOBALS['strConfigFormset_' . $formset_id])) {
29 echo '<h2>' . $GLOBALS['strConfigFormset_' . $formset_id] . '</h2>';
31 $form_display = new FormDisplay();
32 foreach ($forms[$formset_id] as $form_name => $form) {
33 $form_display->registerForm($form_name, $form);
35 process_formset($form_display);