summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 000000000..d63d09edf
--- /dev/null
+++ b/index.php
@@ -0,0 +1,19 @@
+<?php
+
+define('INSTALLDIR', dirname(__FILE__));
+
+require_once(INSTALLDIR . "/common.php");
+
+$action = $_REQUEST['action'];
+$actionfile = INSTALLDIR."/actions/$action.php";
+
+if (file_exists($actionfile)) {
+ require_once($actionfile);
+ $action_function = 'handle_' . $action;
+ if (function_exists($action_function)) {
+ call_user_func($action_function);
+} else {
+ // redirect to main
+}
+
+?> \ No newline at end of file