diff options
-rw-r--r-- | archives/planet/index.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/archives/planet/index.php b/archives/planet/index.php index 3dcde8b..0083a61 100644 --- a/archives/planet/index.php +++ b/archives/planet/index.php @@ -62,16 +62,18 @@ <? $scandir = scandir('./', 1); - $scandir = preg_grep('/html$/', $scandir); - - echo "<ul>\n"; - foreach($scandir as $filename) { - echo "<li> <a href='$filename'>$filename</a></li>\n"; + echo "<ul>"; + foreach ($scandir as $curdir) { + if ( $curdir == "index.php" || $curdir == ".." || $curdir == "." ) continue; + $cscan = scandir('./' . $curdir, 1); + foreach($cscan as $filename) { + if ( $filename == "." || $filename == ".." ) continue; + echo "<li> <a href='$filename'>$filename</a></li>\n"; + } } echo "</ul>"; ?> - </td></tr> |