示例#1
0
文件: commsy.php 项目: a2call/commsy
        } elseif ($environment->getCurrentModule() === 'room' && $environment->getCurrentFunction() === 'change') {
            require_once 'pages/room_change.php';
        } else {
            $controller_name = 'cs_' . $environment->getCurrentModule() . '_' . $environment->getCurrentFunction() . '_controller';
            require_once 'classes/controller/' . $environment->getCurrentFunction() . '/' . $controller_name . '.php';
        }
        if ($c_smarty) {
            $controller = new $controller_name($environment);
            $controller->processTemplate();
            $controller->displayTemplate();
        }
    }
} else {
    // with or without modifiying options
    $with_modifying_actions = $context_item_current->isOpen();
    if ($environment->isOutputMode('XML')) {
        $params = array();
        $params['environment'] = $environment;
        $params['with_modifying_actions'] = $with_modifying_actions;
        $page = $class_factory->getClass(PAGE_XML_VIEW, $params);
        unset($params);
    } elseif ($environment->isOutputMode('JSON')) {
        $params = array();
        $params['environment'] = $environment;
        $params['with_modifying_actions'] = $with_modifying_actions;
        $page = $class_factory->getClass(PAGE_JSON_VIEW, $params);
        unset($params);
    } elseif ($environment->isOutputMode('BLANK')) {
        $params = array();
        $params['environment'] = $environment;
        $params['with_modifying_actions'] = $with_modifying_actions;