Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2012-03-13 01:07:57 +0400
committerMarc Delisle <marc@infomarc.info>2012-03-13 01:07:57 +0400
commit92ef8d8a8b863fc8c097690fac9c51bc7b1191a2 (patch)
tree179df1c600455aaf45d452617972bf3dca487f71 /sql.php
parent59e4ec57790983e31cecf25341ba5c456de173a5 (diff)
Confirmation after a bookmark creation needs these $_GET parameters
Diffstat (limited to 'sql.php')
-rw-r--r--sql.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/sql.php b/sql.php
index f0cb94304c..bdc6ab2751 100644
--- a/sql.php
+++ b/sql.php
@@ -38,6 +38,21 @@ foreach ($post_params as $one_post_param) {
}
}
+/**
+ * Sets globals from $_GET
+ */
+$get_params = array(
+ 'id_bookmark',
+ 'label',
+ 'sql_query'
+);
+foreach ($get_params as $one_get_param) {
+ if (isset($_GET[$one_get_param])) {
+ $GLOBALS[$one_get_param] = $_GET[$one_get_param];
+ }
+}
+
+
if (isset($_REQUEST['printview'])) {
$GLOBALS['printview'] = $_REQUEST['printview'];
}