5 * @package phpMyAdmin-setup
6 * @author Piotr Przybylski <piotrprz@gmail.com>
7 * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
11 if (!defined('PHPMYADMIN')) {
18 require_once './setup/lib/Form.class.php';
19 require_once './setup/lib/FormDisplay.class.php';
20 require_once './setup/lib/form_processing.lib.php';
24 'forms' => array('Import_export', 'Security', 'Sql_queries', 'Other_core_settings')),
25 'left_frame' => array(
26 'forms' => array('Left_frame', 'Left_servers', 'Left_databases', 'Left_tables')),
27 'main_frame' => array(
28 'forms' => array('Startup', 'Browse', 'Edit', 'Tabs', 'Sql_box')),
30 'forms' => array('Import_defaults')),
32 'forms' => array('Export_defaults'))
35 $formset_id = filter_input(INPUT_GET
, 'formset');
36 $mode = filter_input(INPUT_GET
, 'mode');
37 if (!isset($formsets[$formset_id])) {
38 die('Incorrect formset, check $formsets array in setup/frames/form.inc.php');
41 $formset = $formsets[$formset_id];
42 if (isset($GLOBALS['strSetupFormset_' . $formset_id])) {
43 echo '<h2>' . $GLOBALS['strSetupFormset_' . $formset_id] . '</h2>';
45 $form_display = new FormDisplay();
46 foreach ($formset['forms'] as $form_name) {
47 $form_display->registerForm($form_name);
49 process_formset($form_display);