Dateien nach "/" hochladen

This commit is contained in:
krueger 2025-02-26 21:40:01 +00:00
commit bacb5d59ca

35
index.php Normal file
View 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>