diff --git a/config.php b/config.php
new file mode 100644
index 0000000..d8063bb
--- /dev/null
+++ b/config.php
@@ -0,0 +1,4 @@
+
@@ -11,42 +22,39 @@
\n";
- } else {
- return "
\n\n" . basename($path) . "
\n\n \n\n";
- }
- }
- }
-
- if (substr($path, -4) == ".cfg") {
- return "
" . basename($path) . "\n";
- }
-
- return "";
+ if (is_dir($path)) {
+ $str = "";
+ foreach (scandir($path) as $filename) {
+ $str .= recursive_ls("$path/$filename");
+ }
+ if ($str == "") {
+ return "";
+ } else {
+ if ($path == $basedir) {
+ return "
\n";
+ } else {
+ return "
\n\n" . basename($path) . "
\n\n \n\n";
}
+ }
+ }
- echo recursive_ls($basedir);
- ?>
+ if (substr($path, -4) == ".cfg") {
+ return "
" . basename($path) . "\n";
+ }
+
+ return "";
+}
+
+echo recursive_ls($basedir);
+?>
diff --git a/show.php b/show.php
index 0566754..ec04174 100644
--- a/show.php
+++ b/show.php
@@ -1,10 +1,9 @@