setTpl($tpl); $tpl->setTplFolder(TEMPLATES_PATH); $tpl->setDrawHeader(true); $tpl->setDrawFooter(true, $config); try { // Lade Content if (isset($_GET['s']) && isset($site[$_GET['s']]) && file_exists(CONTENT_PATH.$site[$_GET['s']])) include_once CONTENT_PATH.$site[$_GET['s']]; else { if (isset($_GET['s']) && (!isset($site[$_GET['s']]) || file_exists(CONTENT_PATH.$site[$_GET['s']]) === false)) { $tpl->setHeaderTitle(_t('Fehler')); $tpl->error(_t('Fehler'), _t('Leider existiert die angeforderte Seite nicht.')); } else include_once CONTENT_PATH.'install.php'; } if ($tpl->tplDraw === false) $tpl->draw(); } catch(Exception $e) { $errorHandler[] = 'Fehler [TPL]: '.$e->getFile().':'.$e->getLine().' => '.$e->getMessage(); echo '