-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
53 lines (47 loc) · 1.5 KB
/
main.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<html lang="de">
<head>
<title>main</title>
<meta http-equiv="content-type" content="text/html, charset=UTF-8" />
<meta charset="UTF-8" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<!-- IE9 9 edge
<meta http-equiv="X-UA-Compatible" content="IE=edge" />-->
<!--<meta http-equiv="X-UA-Compatible" content="IE=10">-->
<!-- iOS -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<link type="text/css" rel="stylesheet" href="style.css" />
<link type="text/css" rel="stylesheet" href="stylewww.css" />
<?php
session_start();
include "php/basis.php";
$seiteaktiv=$_SESSION['seite'];
$sessionuser=$_SESSION['userid'];
$sessionID=$_SESSION['sessid'];
if($sessionuser=="") header('location: index.php');//go to login
echo "<!--";
echo "SESSION:".($sessionuser==0)."\nsuser=".$sessionuser."\nstat=".session_status()."\nsid=".session_id()."\nsid:".$sessionID."\n";
echo "go:".$pfadphp.$seiteaktiv.".php\n";
echo "-->";
?>
<script>
//Aktueller User"name" für Stundeneintrag
var globaldata={
"user":"<?php echo $_SESSION['userid'];?>"
}
</script>
<link href="php/userstyle.php" rel="stylesheet" type="text/css">
</head>
<body class="main">
<nav>
<div class="logo">PROSTd</div>
<a href="index.php" class="icon_logout" title="logout"></a>
<?php
echo "<h1 id='loginout'>Hallo ".$_SESSION['userid']."</h1>";
?>
<div id="tabnav"></div>
</nav>
<?php
include $pfadphp.$seiteaktiv.".php";
?>
</body>
</html>