32 lines
907 B
PHP
32 lines
907 B
PHP
<?php
|
|
|
|
require_once (__DIR__. '/../php/config.php');
|
|
require_once (__DIR__. '/php/pager.php');
|
|
require_once (__DIR__. '/php/replacer.php');
|
|
require_once (__DIR__. '/php/menumanager.php');
|
|
require_once (__DIR__. '/php/imager.php');
|
|
require_once (__DIR__. '/../php/dbutils.php');
|
|
|
|
header('Content-Type: text/html; charset=utf-8');
|
|
|
|
$headerFileTemplate = __DIR__. '/vorlagen/classic/header.html';
|
|
$footerFileTemplate = __DIR__. '/vorlagen/classic/footer.html';
|
|
$contentTemplate = __DIR__. '/vorlage-impressum.txt';
|
|
|
|
|
|
$pdo = DbUtils::openDbAndReturnPdo();
|
|
|
|
$header = Pager::readAndSubstituteFile($pdo,$headerFileTemplate);
|
|
|
|
$menu = Pager::getMenuItems($pdo,"impressum", null);
|
|
|
|
$footer = Pager::readAndSubstituteFile($pdo,$footerFileTemplate);
|
|
|
|
$content = "<div class='content'>" . Pager::readAndSubstituteFile($pdo, $contentTemplate) . "</div>";
|
|
|
|
$page = $header . $menu . $content . $footer;
|
|
echo $page;
|
|
|
|
|
|
|
|
?>
|