Esempio n. 1
0
 public static function getConferenceInformation($mandator)
 {
     if (isset($GLOBALS['CONFIG'])) {
         $saved_config = $GLOBALS['CONFIG'];
     }
     Conferences::load($mandator);
     $conf = new Conference();
     $info = ['slug' => $mandator, 'link' => forceslash($mandator), 'active' => !$conf->isClosed(), 'title' => $conf->getTitle(), 'description' => $conf->getDescription(), 'relive' => forceslash($mandator) . $conf->getReliveUrl(), 'releases' => $conf->getReleasesUrl(), 'CONFIG' => $GLOBALS['CONFIG']];
     unset($GLOBALS['CONFIG']);
     if (isset($saved_config)) {
         $GLOBALS['CONFIG'] = $saved_config;
     }
     return $info;
 }
Esempio n. 2
0
            } else {
                // multiple clients
                //   show overview
                require 'view/allconferences.php';
                exit;
            }
        }
    } else {
        if (!Conferences::exists($mandator)) {
            // old url OR wrong client OR
            // -> error
            require 'view/404.php';
            exit;
        }
    }
    Conferences::load($mandator);
} catch (Exception $e) {
    ob_clean();
    require 'view/500.php';
}
// PER-CONFERENCE CODE
$GLOBALS['MANDATOR'] = $mandator;
$conference = new Conference();
// update template information
$tpl->set(array('baseurl' => forceslash(baseurl()), 'route' => $route, 'canonicalurl' => forceslash(baseurl()) . forceslash($route), 'assets' => '../assets/', 'conference' => $conference, 'feedback' => new Feedback(), 'schedule' => new Schedule(), 'subtitles' => new Subtitles()));
ob_start();
try {
    // ALWAYS AVAILABLE ROUTES
    if ($route == 'feedback/read') {
        require 'view/feedback-read.php';
    } else {