Automatic detection of compression for uploaded data.

This commit is contained in:
Michal Čihař
2003-03-20 23:17:18 +00:00
parent 138afbc58f
commit a329a2bfb4
99 changed files with 131 additions and 20 deletions

View File

@@ -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 '" ';
?>