Automatic detection of compression for uploaded data.
This commit is contained in:
@@ -224,15 +224,7 @@ if (isset($table) && !empty($table) && !isset($num_tables)) {
|
||||
<input type="text" name="filename_template"
|
||||
<?php
|
||||
echo ' value="';
|
||||
if (isset($table)) {
|
||||
if (isset($_COOKIE) && !empty($_COOKIE['pma_table_filename_template'])) {
|
||||
echo $_COOKIE['pma_table_filename_template'];
|
||||
} elseif (isset($HTTP_COOKIE_VARS) && !empty($HTTP_COOKIE_VARS['pma_table_filename_template'])) {
|
||||
echo $HTTP_COOKIE_VARS['pma_table_filename_template'];
|
||||
} else {
|
||||
echo '__TABLE__';
|
||||
}
|
||||
} else {
|
||||
if (isset($multi_tables) && $multi_tables != '') {
|
||||
if (isset($_COOKIE) && !empty($_COOKIE['pma_db_filename_template'])) {
|
||||
echo $_COOKIE['pma_db_filename_template'];
|
||||
} elseif (isset($HTTP_COOKIE_VARS) && !empty($HTTP_COOKIE_VARS['pma_db_filename_template'])) {
|
||||
@@ -240,6 +232,14 @@ if (isset($table) && !empty($table) && !isset($num_tables)) {
|
||||
} else {
|
||||
echo '__DB__';
|
||||
}
|
||||
} else {
|
||||
if (isset($_COOKIE) && !empty($_COOKIE['pma_table_filename_template'])) {
|
||||
echo $_COOKIE['pma_table_filename_template'];
|
||||
} elseif (isset($HTTP_COOKIE_VARS) && !empty($HTTP_COOKIE_VARS['pma_table_filename_template'])) {
|
||||
echo $HTTP_COOKIE_VARS['pma_table_filename_template'];
|
||||
} else {
|
||||
echo '__TABLE__';
|
||||
}
|
||||
}
|
||||
echo '" ';
|
||||
?>
|
||||
|
Reference in New Issue
Block a user