summaryrefslogtreecommitdiff
path: root/public_html/index.php
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-12-23 11:41:45 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-12-23 11:41:45 (GMT)
commit7b7b26250580f713edc9aa459ad12abfcaa24ea0 (patch)
treecd246ba8f55f00ba6046da2bb9aa242f4f84d3f1 /public_html/index.php
parent69169e37f63c2885fe0176b5c7aa7ee2079b814e (diff)
downloadkolab-wap-7b7b26250580f713edc9aa459ad12abfcaa24ea0.tar.gz
Restructure the files that do not belong in public_html to live in lib/
Use lib/Conf.php for configuration Reuse as much of the existing utilities as possible, by sharing the common codebase (i.e. kolab_utils, etc)
Diffstat (limited to 'public_html/index.php')
-rw-r--r--public_html/index.php37
1 files changed, 14 insertions, 23 deletions
diff --git a/public_html/index.php b/public_html/index.php
index 66c930c..60ee06c 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -1,32 +1,23 @@
<?php
-/*
- * Kolab Admin Panel
- *
- * (C) Copyright 2011 Kolab Systems AG
- *
- */
+ require_once(dirname(__FILE__) . "/../lib/functions.php");
-// application constants
-define('KADM_START', microtime(true));
-define('KADM_VERSION', '0.1');
-define('KADM_CHARSET', 'utf-8');
-define('INSTALL_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
+ // starting task
+ $task = kolab_utils::get_input('task', 'GET');
-// environment initialization
-require_once INSTALL_PATH . '/include/init.php';
+ console(__FILE__.":".__LINE__.": " . $task);
-// starting task
-$task = kolab_utils::get_input('task', 'GET');
+ if (!$task) {
+ $task = 'main';
+ }
-if (!$task) {
- $task = 'main';
-}
+ console(__FILE__.":".__LINE__.": " . $task);
-$class = "kolab_admin_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();
+?>