예제 #1
0
* This program is not free software; you can't may redistribute it and modify it under
**
* This file contains configuration settings that need to altered
* in order for CE Live to work, and other settings that
**/
include '../include/config.inc.php';
include CE_ROOT . '/include/admin/check.inc.php';
include CE_ROOT . '/include/celive.class.php';
include CE_ROOT . '/include/version.inc.php';
$version = $config['version'];
$system = new celive();
$system->template();
$system->file();
$system->auth();
$system->celsysteminfo();
$system->department();
$system->auth();
if ($GLOBALS['auth']->admin()) {
    $GLOBALS['template']->assign('ifadmin', 1);
}
$GLOBALS['template']->assign('username', $_SESSION['cel_username']);
if (!$GLOBALS['auth']->admin()) {
    $GLOBALS['template']->assign('createcode', true);
    $GLOBALS['template']->assign('cel_departments', $GLOBALS['department']->listall('', 'all'));
    if (isset($_POST['departmentid'])) {
        $GLOBALS['template']->assign('departmentid', $_POST['departmentid']);
    } else {
        $GLOBALS['template']->assign('departmentid', '');
    }
    if (isset($_POST['ifimages']) && $_POST['ifimages'] == 'text') {
        $GLOBALS['template']->assign('mode', 'text');