<?php

// Header lieber ganz am Anfang senden
header('Content-Type: text/html; charset=utf-8');

include_once 'language.php';
include_once 'page.php';

// Setup
$dataDir  = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'data';
$baseUrl  = 'https://ese.ifsr.de/2009';
//$baseUrl  = 'http://localhost/2009';
$language = Language::getLanguage();

try {
    $page = new Page($dataDir, $baseUrl, $language);
    $page->display();
} catch (PageException $e) {
    echo "Fehler: ", $e->getMessage(), ".\n";
}
