<?php
error_reporting(E_ALL ^ E_NOTICE);
session_start();
if (! isset($_SESSION["userid"]))
{
header("Location: /fhiiqm/login.php");
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link href="/fhiiqm/css/db.css" rel="STYLESHEET" type="TEXT/CSS" />
<link href="/fhiiqm/css/navio.css" rel="STYLESHEET" type="TEXT/CSS" />
<meta name="author" content="Bettina Schwarzer, FHI" />
<title>FHI Administration</title>
</head>
<body>
<?php
echo "<div class='float-r smaller'>user: " . $_SESSION["userid"];
echo " <a href='/fhiiqm/pw_change.php' title='PW ändern'>pw ändern</a>";
echo " <a href='/fhiiqm/logout.php' title='Session beenden'>logout</a></div>\n";
echo "<div id=\"navi\">\n
<h3> Datenbank für die Administration und Infrastruktur im FHI</h3>\n";
// print_r ($_SESSION['recht']);
include_once($_SERVER["DOCUMENT_ROOT"] . "/fhiiqm/inc/menu.inc.php");
if (date("Y-m-d") < date("Y-m-d", mktime(0,0,0,12,25,2011)))
{
echo "<p> </p><p class='red'>
<img src='/fhiiqm/img/weihnachtsmann.gif' height='75' />";
$heute = new DateTime();
$weih = new DateTime('2011-12-24');
$tage = $weih -> diff($heute)->days+1;
if ($tage <2) $tag = "Tag"; else $tag="Tage";
echo "noch $tage $tag bis <em>Weihnachten</em>!</p>";
}
?>
</div>
<div id="renavi" align="right"><img src="/fhiiqm/img/fhi.jpg" border="0" alt="FHI" width="100%"/> </div>
</body>
</html>