Directories to contain miscellaneous files
authorFrederic Massart <fred@moodle.com>
Tue, 4 Dec 2012 09:51:15 +0000 (17:51 +0800)
committerFrederic Massart <fred@moodle.com>
Wed, 5 Dec 2012 06:15:09 +0000 (14:15 +0800)
extra/apache.conf [new file with mode: 0644]
extra/bash_completion [moved from bash_completion with 100% similarity]
extra/welcome.php [new file with mode: 0644]

diff --git a/extra/apache.conf b/extra/apache.conf
new file mode 100644 (file)
index 0000000..b517b74
--- /dev/null
@@ -0,0 +1,19 @@
+# Uncomment the following line if you want any server name /m to point to moodle-sdk.
+# (Do not forget to update your config.json file accordingly.)
+# Alias /m /var/lib/moodle-sdk/www
+<VirtualHost *:80>
+    ServerName moodle-sdk
+
+    DocumentRoot /var/lib/moodle-sdk/www
+    <Directory /var/lib/moodle-sdk/www/>
+        Options Indexes FollowSymLinks MultiViews
+        AllowOverride All
+        Order allow,deny
+        Allow from all
+    </Directory>
+
+    ErrorLog ${APACHE_LOG_DIR}/error-moodle-sdk.log
+    LogLevel notice
+
+    CustomLog ${APACHE_LOG_DIR}/access-moodle-sdk.log combined
+</VirtualHost>
\ No newline at end of file
similarity index 100%
rename from bash_completion
rename to extra/bash_completion
diff --git a/extra/welcome.php b/extra/welcome.php
new file mode 100644 (file)
index 0000000..8962852
--- /dev/null
@@ -0,0 +1,35 @@
+<?php
+/**
+ * Moodle Development Kit
+ *
+ * Copyright (c) 2012 Frédéric Massart - FMCorz.net
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * http://github.com/FMCorz/mdk
+*/
+
+echo "<h2>Moodle Development Kit</h1>";
+echo "<ul>";
+
+$path = dirname(__FILE__);
+$dirs = scandir($path);
+foreach ($dirs as $dir) {
+    if (!is_dir($path . $dir)) {
+        continue;
+    }
+    print "<li><a href='$dir'>$dir</a></li>";
+}
+
+echo "</ul>";