Support for user specific upload and save directories (RFE #1260039).

This commit is contained in:
Michal Čihař
2005-10-18 19:55:11 +00:00
parent cc1147cca9
commit 2a9f434d87
11 changed files with 31 additions and 19 deletions

View File

@@ -469,7 +469,7 @@ function PMA_sqlQueryFormUpload() {
$matcher = '@\.sql(\.(' . PMA_supportedDecompressions() . '))?$@'; // we allow only SQL here
if (!empty($GLOBALS['cfg']['UploadDir'])) {
$files = PMA_getFileSelectOptions($GLOBALS['cfg']['UploadDir'], $matcher, (isset($timeout_passed) && $timeout_passed && isset($local_import_file)) ? $local_import_file : '');
$files = PMA_getFileSelectOptions(PMA_userDir($GLOBALS['cfg']['UploadDir']), $matcher, (isset($timeout_passed) && $timeout_passed && isset($local_import_file)) ? $local_import_file : '');
} else {
$files = '';
}