Display .sql files only.
This commit is contained in:
@@ -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/*,
|
||||
|
@@ -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 ".sql".
|
||||
<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.
|
||||
|
@@ -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 . ' :<br />' . "\n";
|
||||
|
Reference in New Issue
Block a user