summaryrefslogtreecommitdiff
path: root/public_html/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public_html/index.php')
-rw-r--r--public_html/index.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/public_html/index.php b/public_html/index.php
new file mode 100644
index 0000000..66c930c
--- /dev/null
+++ b/public_html/index.php
@@ -0,0 +1,32 @@
+<?php
+
+/*
+ * Kolab Admin Panel
+ *
+ * (C) Copyright 2011 Kolab Systems AG
+ *
+ */
+
+// application constants
+define('KADM_START', microtime(true));
+define('KADM_VERSION', '0.1');
+define('KADM_CHARSET', 'utf-8');
+define('INSTALL_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
+
+// environment initialization
+require_once INSTALL_PATH . '/include/init.php';
+
+// starting task
+$task = kolab_utils::get_input('task', 'GET');
+
+if (!$task) {
+ $task = 'main';
+}
+
+$class = "kolab_admin_task_$task";
+
+$KADM = new $class;
+
+// run actions and send output
+$KADM->run();
+$KADM->send();