fhiiqm/start.php
changeset 13 741b35e9ebbe
parent 12 2d8be944f381
child 19 33ee23fafd4d
--- 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>&nbsp;&nbsp;&nbsp;Datenbank f&uuml;r die Administration und Infrastruktur im FHI</h3>
+<?php 
+    echo "<div class='float-r smaller'>user: " . $_SESSION["userid"];
+    echo "&nbsp;&nbsp;&nbsp;<a href='/fhiiqm/pw_change.php' title='PW &auml;ndern'>pw &auml;ndern</a>";
+    echo "&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;Datenbank f&uuml;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%"/>&nbsp;&nbsp;&nbsp;</div>
+<div id="renavi" align="right"><img src="/fhiiqm/img/fhi.jpg" border="0" alt="FHI" width="100%"/>&nbsp;&nbsp;&nbsp;</div>
 
 </body>
 </html>
\ No newline at end of file