3.3.1 release
[phpmyadmin/dkf.git] / setup / frames / form.inc.php
blobba292d1a8789a2f267755fa5bd065676fda5e301
1 <?php
2 /**
3 * Form edit view
5 * @package phpMyAdmin-setup
6 * @author Piotr Przybylski <piotrprz@gmail.com>
7 * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
8 * @version $Id$
9 */
11 if (!defined('PHPMYADMIN')) {
12 exit;
15 /**
16 * Core libraries.
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';
22 $formsets = array(
23 'features' => array(
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')),
29 'import' => array(
30 'forms' => array('Import_defaults')),
31 'export' => array(
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);