moved Import by LOAD DATA settings to CSV category
moved PMA_array_* functions to core.lib.php moved PMA_read_userprefs_fieldnames() to user_preferences.lib.php server/database/table filename templates are saved to pmadb when "remember template" is checked
This commit is contained in:
@@ -246,17 +246,20 @@ if ($asfile) {
|
||||
$pma_uri_parts = parse_url($cfg['PmaAbsoluteUri']);
|
||||
if ($export_type == 'server') {
|
||||
if (isset($remember_template)) {
|
||||
$GLOBALS['PMA_Config']->setCookie('pma_server_filename_template', $filename_template);
|
||||
$GLOBALS['PMA_Config']->setUserValue('pma_server_filename_template',
|
||||
'Export/file_template_server', $filename_template);
|
||||
}
|
||||
$filename = str_replace('__SERVER__', $GLOBALS['cfg']['Server']['host'], strftime($filename_template));
|
||||
} elseif ($export_type == 'database') {
|
||||
if (isset($remember_template)) {
|
||||
$GLOBALS['PMA_Config']->setCookie('pma_db_filename_template', $filename_template);
|
||||
$GLOBALS['PMA_Config']->setUserValue('pma_db_filename_template',
|
||||
'Export/file_template_database', $filename_template);
|
||||
}
|
||||
$filename = str_replace('__DB__', $db, str_replace('__SERVER__', $GLOBALS['cfg']['Server']['host'], strftime($filename_template)));
|
||||
} else {
|
||||
if (isset($remember_template)) {
|
||||
$GLOBALS['PMA_Config']->setCookie('pma_table_filename_template', $filename_template);
|
||||
$GLOBALS['PMA_Config']->setUserValue('pma_table_filename_template',
|
||||
'Export/file_template_table', $filename_template);
|
||||
}
|
||||
$filename = str_replace('__TABLE__', $table, str_replace('__DB__', $db, str_replace('__SERVER__', $GLOBALS['cfg']['Server']['host'], strftime($filename_template))));
|
||||
}
|
||||
|
Reference in New Issue
Block a user