Also Filter Directories
This commit is contained in:
parent
aef49fb30f
commit
63602e44c9
1 changed files with 2 additions and 0 deletions
|
@ -71,10 +71,12 @@ if (isset($_GET['f'])) {
|
||||||
$tr = array('(' => '\(', ')' => '\)');
|
$tr = array('(' => '\(', ')' => '\)');
|
||||||
$f = strtr($_GET['f'], $tr);
|
$f = strtr($_GET['f'], $tr);
|
||||||
$files = array_values(preg_grep('/.*'.$f.'.*/i', $files));
|
$files = array_values(preg_grep('/.*'.$f.'.*/i', $files));
|
||||||
|
$dirs = array_values(preg_grep('/.*'.$f.'.*/i', $dirs));
|
||||||
$filter='&f='.$_GET['f'];
|
$filter='&f='.$_GET['f'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Sort and Reverse Filelist
|
// Sort and Reverse Filelist
|
||||||
natcasesort($files);
|
natcasesort($files);
|
||||||
$files = array_reverse($files);
|
$files = array_reverse($files);
|
||||||
|
|
Loading…
Reference in a new issue