summaryrefslogtreecommitdiff
path: root/public_html/index.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2011-12-25 16:58:03 (GMT)
committerAleksander Machniak <alec@alec.pl>2011-12-25 16:58:03 (GMT)
commit92a5add47382cd41e782f45ef47e46806acdd615 (patch)
tree2a7993dc635df3746a037f78203746d2a3cbf330 /public_html/index.php
parente8ea8f9522098c104eae131b773c4fd6cb7d329c (diff)
downloadkolab-wap-92a5add47382cd41e782f45ef47e46806acdd615.tar.gz
Restructured directory tree and class names (I'm not happy with it still)
Some improvements in the client
Diffstat (limited to 'public_html/index.php')
-rw-r--r--public_html/index.php33
1 files changed, 18 insertions, 15 deletions
diff --git a/public_html/index.php b/public_html/index.php
index 60ee06c..9e07188 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -1,23 +1,26 @@
<?php
- require_once(dirname(__FILE__) . "/../lib/functions.php");
+/*
+ * Kolab Admin Panel
+ *
+ * (C) Copyright 2011 Kolab Systems AG
+ *
+ */
- // starting task
- $task = kolab_utils::get_input('task', 'GET');
+// environment initialization
+require_once '../lib/functions.php';
- console(__FILE__.":".__LINE__.": " . $task);
+// starting task
+$task = kolab_utils::get_input('task', kolab_utils::REQUEST_GET);
- if (!$task) {
- $task = 'main';
- }
+if (!$task) {
+ $task = 'main';
+}
- console(__FILE__.":".__LINE__.": " . $task);
+$class = "kolab_admin_client_task_$task";
- $class = "kolab_admin_client_task_$task";
+$KADM = new $class;
- $KADM = new $class;
-
- // run actions and send output
- $KADM->run();
- $KADM->send();
-?>
+// run actions and send output
+$KADM->run();
+$KADM->send();