Beispiel #1
0
try {
    // ALWAYS AVAILABLE ROUTES
    if ($route == 'feedback/read') {
        require 'view/feedback-read.php';
    } else {
        if ($route == 'schedule.json') {
            require 'view/schedule-json.php';
        } else {
            if ($route == 'gen/main.css') {
                if (Conferences::hasCustomStyles($mandator)) {
                    handle_lesscss_request(Conferences::getCustomStyles($mandator), '../../' . Conferences::getCustomStylesDir($mandator));
                } else {
                    handle_lesscss_request('assets/css/main.less', '../../assets/css/');
                }
            } else {
                if (!$conference->hasBegun()) {
                    require 'view/not-started.php';
                } else {
                    if (preg_match('@^relive/([0-9]+)$@', $route, $m)) {
                        $_GET = array('id' => $m[1]);
                        require 'view/relive-player.php';
                    } else {
                        if ($route == 'relive') {
                            require 'view/relive.php';
                        } else {
                            if ($conference->hasEnded()) {
                                require 'view/closed.php';
                            } else {
                                if ($route == '') {
                                    require 'view/overview.php';
                                } else {