summaryrefslogtreecommitdiff
path: root/public_html/index.php
blob: 66c930ccb844a5ba5d2c524a24bdbaa6d2d27fbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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();