Add new index file.
This commit is contained in:
37
public/index.php
Normal file
37
public/index.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
|
||||
// Include required components.
|
||||
$path2root = __DIR__ . '/..';
|
||||
include $path2root . '/inc/config.php';
|
||||
|
||||
if (isset($_GET['section']) and isset($titel[$_GET['section']])) {
|
||||
$temp_titel = $titel[$_GET['section']];
|
||||
} else {
|
||||
$temp_titel = "Ferienhaus Wille";
|
||||
}
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title><?php echo $temp_titel; ?></title>
|
||||
<link rel="stylesheet" type="text/css" href="css/page.css" />
|
||||
<meta name="description" content="Ferienhaus Wille, Silvi Jörg" />
|
||||
<meta name="keywords" content="Ferienhaus Wille, Hindelang, Silvi Jörg" />
|
||||
<meta name="generator" content="Christian Steinle" />
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="root">
|
||||
<div id="header"><?php include $path2root . '/header.php'; ?></div>
|
||||
<div class="clear"></div>
|
||||
<div class="cleaner"></div>
|
||||
<div id="inhalt"><?php include $path2root . '/inhalt.php'; ?></div>
|
||||
<div class="cleaner"></div>
|
||||
<div class="clear2"></div>
|
||||
<div id="footer"><?php include $path2root . '/footer.php'; ?></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user