Dateien nach "/" hochladen
This commit is contained in:
commit
bacb5d59ca
35
index.php
Normal file
35
index.php
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
session_start();
|
||||||
|
if(!isset($_SESSION['logon']) || $_SESSION['logon']==0){
|
||||||
|
header("Location:login.php");
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<title>Office Organizer</title>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<link rel="stylesheet" href="styles.css">
|
||||||
|
<?php
|
||||||
|
include "dbconnect.php";
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<navbar>
|
||||||
|
<?php
|
||||||
|
include "navbar.php";
|
||||||
|
?>
|
||||||
|
</navbar>
|
||||||
|
<h2>Office Organizer</h2>
|
||||||
|
<h1>Dashboard</h1>
|
||||||
|
<div>
|
||||||
|
<?php
|
||||||
|
echo "Du bist eingeloggt als " . $_SESSION['username'] . ".";
|
||||||
|
//var_dump($_SESSION);
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<a href="login.php">Zum Login</a>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user