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

@@ -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";