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-04-29 22:49:37 +0400
committerMarc Delisle <marc@infomarc.info>2012-04-29 22:49:37 +0400
commit3fd5b26f73536c7113f04539e0541910aa932392 (patch)
tree113d14c0b6354487fc3c1eb2af823eb987afe322 /schema_export.php
parent0100f26e97719ab67e9dc4a8f0c20e718ea44087 (diff)
Missing variables since grab_globals removal
Diffstat (limited to 'schema_export.php')
-rw-r--r--schema_export.php26
1 files changed, 24 insertions, 2 deletions
diff --git a/schema_export.php b/schema_export.php
index 193eac1965..637d5f4c83 100644
--- a/schema_export.php
+++ b/schema_export.php
@@ -28,8 +28,30 @@ require_once "libraries/schema/Export_Relation_Schema.class.php";
* call and include the appropriate Schema Class depending on $export_type
* default is PDF
*/
-global $db, $export_type;
-if (!isset($export_type) || !preg_match('/^[a-zA-Z]+$/', $export_type)) {
+
+$post_params = array(
+ 'all_table_same_wide',
+ 'chpage',
+ 'db',
+ 'do',
+ 'export_type',
+ 'orientation',
+ 'paper',
+ 'names',
+ 'pdf_page_number',
+ 'show_color',
+ 'show_grid',
+ 'show_keys',
+ 'show_table_dimension',
+ 'with_doc'
+);
+foreach ($post_params as $one_post_param) {
+ if (isset($_POST[$one_post_param])) {
+ $GLOBALS[$one_post_param] = $_POST[$one_post_param];
+ }
+}
+
+if (! isset($export_type) || ! preg_match('/^[a-zA-Z]+$/', $export_type)) {
$export_type = 'pdf';
}
PMA_DBI_select_db($db);