aboutsummaryrefslogtreecommitdiffstats
path: root/modules/planet/templates
diff options
context:
space:
mode:
Diffstat (limited to 'modules/planet/templates')
-rw-r--r--modules/planet/templates/index.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/planet/templates/index.php b/modules/planet/templates/index.php
new file mode 100644
index 00000000..3a8b3534
--- /dev/null
+++ b/modules/planet/templates/index.php
@@ -0,0 +1,19 @@
+<html>
+<body>
+<h1>Planet Mageia</h1>
+<h3>Please choose one of the following locales:</h3>
+<ul>
+<?php
+function displayloc($path = ''){
+ return array_slice(scandir($path), 2);
+}
+
+foreach(displayloc('.') as $loc)
+ if(is_dir($loc))
+ {
+ echo '<li><a href="'.$loc.'">'.$loc.'</a></li>';
+ }
+?>
+</ul>
+</body>
+</html>