diff --git a/pmd_general.php b/pmd_general.php index 2ebeac228d..a16812d9b6 100644 --- a/pmd_general.php +++ b/pmd_general.php @@ -12,20 +12,6 @@ require_once 'libraries/common.inc.php'; require_once 'libraries/pmd_common.php'; -/** - * Sets globals from $_GET - */ -$get_params = array( - 'db', - 'table', - 'token' -); -foreach ($get_params as $one_get_param) { - if (isset($_GET[$one_get_param])) { - $GLOBALS[$one_get_param] = $_GET[$one_get_param]; - } -} - $script_display_field = get_tables_info(); $tab_column = get_columns_info(); $script_tables = get_script_tabs(); @@ -35,8 +21,8 @@ $tables_pk_or_unique_keys = get_pk_or_unique_keys(); $tables_all_keys = get_all_keys(); $params = array('lang' => $GLOBALS['lang']); -if (isset($GLOBALS['db'])) { - $params['db'] = $GLOBALS['db']; +if (isset($_GET['db'])) { + $params['db'] = $_GET['db']; } $response = PMA_Response::getInstance(); @@ -60,10 +46,10 @@ echo '