<?php
session_start();
mysql_connect("localhost","root","")
or die("Could not connect to database.");
mysql_select_db("36949_0")
or die("Could not connect to database.");
if (!isset($_GET["page"])){
header("Location: index.php?page=home");
}
$date = date("D, d M Y H:i:s T");
if(isset($_GET["page"])){
switch($_GET["page"]){
case "home":
$title = "Startseite";
break;
case "blog":
$title = "» Blog";
break;
case "leistungen":
$title = "» Leistungen & Preise";
break;
case "referenzen":
$title = "» Referenzen";
break;
case "kontakt":
$title = "» Impressum & Kontakt";
break;
case "login":
$title = "» Login";
break;
case "logout":
$title = "» Logout";
break;
case "shorten":
$title = "» URL Shortener";
break;
default:
$title = "";
break;
}
} else {}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="de" xml:lang="de" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $title; ?> » Webdesign Toni Trommer » toni-trommer.de</title>
<meta name="author" content="Toni Trommer" />
<meta name="language" content="de" />
<meta name="keywords" lang="de" content="Webdesign, Webentwicklung, Programmierung, Design" />
<meta name="keywords" lang="en" content="Webdesign, Webdevelopment, Programming, Design" />
<meta name="description" content="Professionelles und barrierefreies Webdesign zu fairen Preisen Ihr Ansprechpartner für den Start in das World Wide Web in Saarbrücken." />
<meta name="generator" content="toni-trommer.de custom CMS"/>
<meta name="wot-verification" content="fce41f2f4773c492cb1d"/> <!-- Web of Trust -->
<meta name="y_key" content="8c3557a01becd865" /> <!-- Yahoo -->
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="content-language" content="de" />
<meta http-equiv="expires" content="Thu, 31 Dec 2015 23:59:59 GMT" />
<meta http-equiv="last-modified" content="<?php echo '$date'; ?>" />
<link rel="shortcut icon" href="http://www.html.de/images/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="style/style.css" type="text/css" />
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="style/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/BBCodes.js" ></script>
<script type="text/javascript">
function ct(obj) {
obj.target = '_blank';
}
</script>
</head>
<body>
<div class="wrapper">
<div class="main">
<div id="header">
<div id="headerContent">
<div id="headerLogo">
<a href="index.php?page=home" title="zur Startseite"><img src="http://www.html.de/images/logo.png" alt="Webdesign Toni Trommer - Logo" /></a>
</div>
<ul id="headerNavigation">
<li><a href="index.php?page=home" title="zur Startseite">Startseite</a></li>
<li><a href="index.php?page=home" title="zur Startseite">Leistungen</a></li>
<li><a href="index.php?page=home" title="zur Startseite">Referenzen</a></li>
<li><a href="index.php?page=home" title="zur Startseite">Blog</a></li>
<li><a href="index.php?page=home" title="zur Startseite">Kontakt</a></li>
</ul>
<div style="clear: both;"></div>
</div>
</div>
<div id="content">
<div class="mainContent">
<div id="contentLeft"></div>
<div id="contentText">
<?php
if (isset($_GET["page"])){
switch ($_GET["page"]) {
case "login":
include ("includes/login.inc");
break;
case "new":
include ("includes/new.inc");
break;
case "article":
include ("includes/article.inc");
break;
case "edit":
include ("includes/edit.inc");
break;
case "logout":
include ("includes/logout.inc");
break;
case "user":
include ("includes/user.inc");
break;
case "kontakt":
include ("includes/contact.inc");
break;
case "shortener":
include ("includes/shorten.inc");
break;
default:
include ("includes/page.inc");
break;
}
} else {
include ("includes/page.inc");
}
?></div>
</div>
<div style="clear: both;"></div>
</div>
</div>
<div class="push"></div>
</div>
<div class="footer">
<div class="footerContent">
<div id="footerLeft"></div>
<div id="footerText"></div>
<div style="clear: both;"></div>
</div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24468859-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>