diff options
author | Marc Delisle <marc@infomarc.info> | 2013-07-24 15:40:04 +0400 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2013-07-24 15:40:04 +0400 |
commit | e32a429038eac2cabfe588cad68c613e061e483c (patch) | |
tree | 9d5a4b617ead9177f191de8700f581703f640272 /import_status.php | |
parent | 32faada5167f9e3e88476347a4c92fec687bb078 (diff) |
Directly use the GET parameters
Diffstat (limited to 'import_status.php')
-rw-r--r-- | import_status.php | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/import_status.php b/import_status.php index 9b79f3fff6..f2e661ce24 100644 --- a/import_status.php +++ b/import_status.php @@ -63,24 +63,11 @@ if (defined('SESSIONUPLOAD')) { } } -/** - * Sets globals from $_GET - */ -$get_params = array( - 'message', - 'id' -); -foreach ($get_params as $one_get_param) { - if (isset($_GET[$one_get_param])) { - $GLOBALS[$one_get_param] = $_GET[$one_get_param]; - } -} - // AJAX requests can't be cached! PMA_noCacheHeader(); -// $GLOBALS["message"] is used for asking for an import message -if (isset($GLOBALS["message"]) && $GLOBALS["message"]) { +// $_GET["message"] is used for asking for an import message +if (isset($_GET["message"]) && $_GET["message"]) { header('Content-type: text/html'); @@ -100,6 +87,6 @@ if (isset($GLOBALS["message"]) && $GLOBALS["message"]) { echo '</fieldset>'."\n"; } else { - PMA_importAjaxStatus($GLOBALS["id"]); + PMA_importAjaxStatus($_GET["id"]); } ?> |