From 1c50bea438ab588ba855fd41fadce85d9602bcff Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 4 Mar 2012 06:55:38 -0500 Subject: [PATCH] No longer depend on grab_globals.lib.php for $_GET variables --- libraries/mult_submits.inc.php | 12 ++++++++++++ tbl_alter.php | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/libraries/mult_submits.inc.php b/libraries/mult_submits.inc.php index bccc7b4152..68f48e1424 100644 --- a/libraries/mult_submits.inc.php +++ b/libraries/mult_submits.inc.php @@ -8,6 +8,18 @@ if (! defined('PHPMYADMIN')) { exit; } +if (isset($_REQUEST['table_type'])) { + $GLOBALS['table_type'] = $_REQUEST['table_type']; +} + +if (isset($_REQUEST['selected_fld'])) { + $GLOBALS['selected_fld'] = $_REQUEST['selected_fld']; +} + +if (isset($_REQUEST['submit_mult'])) { + $GLOBALS['submit_mult'] = $_REQUEST['submit_mult']; +} + /** * Prepares the work and runs some other scripts if required */ diff --git a/tbl_alter.php b/tbl_alter.php index 344d65a2b2..c9262ea036 100644 --- a/tbl_alter.php +++ b/tbl_alter.php @@ -16,6 +16,10 @@ require_once './libraries/common.inc.php'; require_once './libraries/header.inc.php'; +if (isset($_REQUEST['field'])) { + $GLOBALS['field'] = $_REQUEST['field']; +} + // Check parameters PMA_checkParameters(array('db', 'table'));