summaryrefslogtreecommitdiffstats
path: root/hosted
diff options
context:
space:
mode:
authorTorsten Grote <grote@kolabsys.com>2012-06-28 15:57:32 +0200
committerTorsten Grote <grote@kolabsys.com>2012-06-28 15:57:32 +0200
commit580f3da14989d9771f792c474bd28c2681116705 (patch)
tree6922e667d5ab9ffee9922e0079806a53880af204 /hosted
parent4f5b2a1330ac60d46ac7f0c56af45bef24fd7a9f (diff)
downloadwebadmin-580f3da14989d9771f792c474bd28c2681116705.tar.gz
beginning of hosted functionality
Diffstat (limited to 'hosted')
l---------hosted/api1
-rw-r--r--hosted/index.php42
l---------hosted/js1
l---------hosted/skins1
4 files changed, 45 insertions, 0 deletions
diff --git a/hosted/api b/hosted/api
new file mode 120000
index 0000000..4000823
--- /dev/null
+++ b/hosted/api
@@ -0,0 +1 @@
+../public_html/api/ \ No newline at end of file
diff --git a/hosted/index.php b/hosted/index.php
new file mode 100644
index 0000000..867a6e1
--- /dev/null
+++ b/hosted/index.php
@@ -0,0 +1,42 @@
+<?php
+/*
+ +--------------------------------------------------------------------------+
+ | This file is part of the Kolab Web Admin Panel |
+ | |
+ | Copyright (C) 2011-2012, Kolab Systems AG |
+ | |
+ | This program is free software: you can redistribute it and/or modify |
+ | it under the terms of the GNU Affero 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 Affero General Public License for more details. |
+ | |
+ | You should have received a copy of the GNU Affero General Public License |
+ | along with this program. If not, see <http://www.gnu.org/licenses/> |
+ +--------------------------------------------------------------------------+
+ | Author: Aleksander Machniak <machniak@kolabsys.com> |
+ | Author: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> |
+ +--------------------------------------------------------------------------+
+*/
+
+// environment initialization
+require_once '../lib/functions.php';
+
+// starting task
+$task = kolab_utils::get_input('task', kolab_utils::REQUEST_GET);
+
+if (!$task) {
+ $task = 'signup';
+}
+
+$class = "kolab_client_task_$task";
+
+$KADM = new $class;
+
+// run actions and send output
+$KADM->run();
+$KADM->send();
diff --git a/hosted/js b/hosted/js
new file mode 120000
index 0000000..0723f3a
--- /dev/null
+++ b/hosted/js
@@ -0,0 +1 @@
+../public_html/js/ \ No newline at end of file
diff --git a/hosted/skins b/hosted/skins
new file mode 120000
index 0000000..536cdba
--- /dev/null
+++ b/hosted/skins
@@ -0,0 +1 @@
+../public_html/skins/ \ No newline at end of file