From e6bfd3636c4f3671a0089b0c700fc029be93e585 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 10 Mar 2012 11:24:46 -0500 Subject: [PATCH] No longer depend on grab_globals.lib.php for $_POST variables --- db_create.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/db_create.php b/db_create.php index 2bebe0e18d56..6f9b36727752 100644 --- a/db_create.php +++ b/db_create.php @@ -18,6 +18,19 @@ } require './libraries/build_html_for_db.lib.php'; +/** + * Sets globals from $_POST + */ +$post_params = array( + 'db_collation', + 'new_db' +); +foreach ($post_params as $one_post_param) { + if (isset($_POST[$one_post_param])) { + $GLOBALS[$one_post_param] = $_POST[$one_post_param]; + } +} + PMA_checkParameters(array('new_db')); /**