summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Chatzimichos <tampakrap@gentoo.org>2010-09-15 18:40:24 +0300
committerTheo Chatzimichos <tampakrap@gentoo.org>2010-09-15 18:40:24 +0300
commit77f2ae513594f6ea8f10c24425d7ddc7266da47c (patch)
tree9a851d1befaedf9a5d8f6d61428f4db2fa7de7b4
parentCopy templates/common/ files inside ${BASE_DIR} due to permissions (diff)
downloadplanet-77f2ae513594f6ea8f10c24425d7ddc7266da47c.tar.gz
planet-77f2ae513594f6ea8f10c24425d7ddc7266da47c.tar.bz2
planet-77f2ae513594f6ea8f10c24425d7ddc7266da47c.zip
Apply the archives fix to universe too, small fix in the path so the
archive files are actually shown. Patch by my brother
-rw-r--r--archives/planet/index.php2
-rw-r--r--archives/universe/index.php14
2 files changed, 9 insertions, 7 deletions
diff --git a/archives/planet/index.php b/archives/planet/index.php
index a0e7d38..b3c190b 100644
--- a/archives/planet/index.php
+++ b/archives/planet/index.php
@@ -65,7 +65,7 @@
$cscan = scandir('./' . $curdir, 1);
foreach($cscan as $filename) {
if ( $filename == "." || $filename == ".." ) continue;
- echo "<li> <a href='$filename'>$filename</a></li>\n";
+ echo "<li> <a href='$curdir/$filename'>$filename</a></li>\n";
}
}
echo "</ul>";
diff --git a/archives/universe/index.php b/archives/universe/index.php
index 754c1dd..1d1a3a0 100644
--- a/archives/universe/index.php
+++ b/archives/universe/index.php
@@ -59,16 +59,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='$curdir/$filename'>$filename</a></li>\n";
+ }
}
echo "</ul>";
?>
-
</td></tr>