--- a/fhiiqm/start.php Tue Sep 27 14:59:40 2011 +0200
+++ b/fhiiqm/start.php Wed Oct 05 16:46:09 2011 +0200
@@ -1,26 +1,40 @@
+<?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="css/db.css" rel="STYLESHEET" type="TEXT/CSS" />
- <link href="css/navio.css" rel="STYLESHEET" type="TEXT/CSS" />
+ <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>
-<div id="navi">
-<h3> Datenbank für die Administration und Infrastruktur im FHI</h3>
+<?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";
-<?php
- include_once($_SERVER["DOCUMENT_ROOT"] . "/fhiiqm/inc/menu.inc.html");
-// session_start();
+ 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");
?>
</div>
-<div id="renavi" align="right"><img src="img/fhi.jpg" border="0" alt="FHI" width="100%"/> </div>
+<div id="renavi" align="right"><img src="/fhiiqm/img/fhi.jpg" border="0" alt="FHI" width="100%"/> </div>
</body>
</html>
\ No newline at end of file