-sort($files);
-foreach ($files as $file) {
- $size = round((filesize($argv[2]."/junkcode/".$file) + 1023) / 1024);
- echo "<tr><td><a href=\"junkcode/$file\">$file (${size}K)</a></td><tr>\n";
+sort($dirs);
+foreach ($dirs as $dir) {
+ $size = round((filesize($argv[3]."/junkcode/".$dir.".tar.bz2") + 1023) / 1024);
+ echo "<tr><td><a href=\"junkcode/$dir.tar.bz2\">$dir.tar.bz2 (${size}K)</a></td>\n";
+ echo "<td><a href=\"junkcode/$dir.html\">Browse contents...</a></td><tr>\n";