Display .sql files only.

This commit is contained in:
Alexander M. Turek
2002-08-22 14:22:47 +00:00
parent bad5f5dd95
commit 5617ff622e
3 changed files with 3 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ $Source$
Backwards compatibility.
* lang/malay-*.inc.php3, libraries/select_lang.lib.php3, translators.html:
New language, thanks to "Shafique" (sicksand).
* db_details.php3, Documentation.html: Display .sql files only.
2002-08-21 Marc Delisle <lem9@users.sourceforge.net>
* db_details.php3, read_dump.php3, libraries/functions.js, lang/*,

View File

@@ -1346,8 +1346,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
Those files are available under a drop-down box when you click the
database name, then the SQL tab.
<br /><br />
Avoid using './', because users would see the whole phpMyAdmin
directory, including the configuration file.
Please note that the file names must have the suffix &quot;.sql&quot;.
<br /><br />
This feature is useful when your file is too big to be uploaded via
HTTP, or when file uploads are disabled in PHP.

View File

@@ -111,7 +111,7 @@ echo "\n";
if ($cfg['UploadDir'] != '' && $handle = @opendir($cfg['UploadDir'])) {
$is_first = 0;
while ($file = @readdir($handle)) {
if (is_file($cfg['UploadDir'] . $file)) {
if (is_file($cfg['UploadDir'] . $file) && substr($file, -4) == '.sql') {
if ($is_first == 0) {
echo "\n";
echo ' <i>' . $strOr . '</i> ' . $strWebServerUploadDirectory . '&nbsp;:<br />' . "\n";