$nondirs = array();
foreach (glob("*") as $filename) {
if ($_GET['noplots'] || !in_array($filename, $displayed)) {
if (isset($_GET['match']) && !fnmatch('*'.$_GET['match'].'*', $filename)) continue;
if (is_dir($filename)) {
print "- [DIR] $filename
";
} else if ($filename != "index.php") {
array_push($nondirs,"- $filename
");
}
}
}
foreach ($nondirs as $file) {
print $file;
}
?>
a gp production