No longer depend on grab_globals.lib.php for $_GET variables

This commit is contained in:
Marc Delisle 2012-03-04 06:55:38 -05:00
parent ad7f2f283c
commit 1c50bea438
2 changed files with 16 additions and 0 deletions

View File

@ -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
*/

View File

@ -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'));