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. Backwards compatibility.
* lang/malay-*.inc.php3, libraries/select_lang.lib.php3, translators.html: * lang/malay-*.inc.php3, libraries/select_lang.lib.php3, translators.html:
New language, thanks to "Shafique" (sicksand). New language, thanks to "Shafique" (sicksand).
* db_details.php3, Documentation.html: Display .sql files only.
2002-08-21 Marc Delisle <lem9@users.sourceforge.net> 2002-08-21 Marc Delisle <lem9@users.sourceforge.net>
* db_details.php3, read_dump.php3, libraries/functions.js, lang/*, * 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 Those files are available under a drop-down box when you click the
database name, then the SQL tab. database name, then the SQL tab.
<br /><br /> <br /><br />
Avoid using './', because users would see the whole phpMyAdmin Please note that the file names must have the suffix &quot;.sql&quot;.
directory, including the configuration file.
<br /><br /> <br /><br />
This feature is useful when your file is too big to be uploaded via This feature is useful when your file is too big to be uploaded via
HTTP, or when file uploads are disabled in PHP. HTTP, or when file uploads are disabled in PHP.

View File

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