Pfadanpassung und Admin-Ordner

This commit is contained in:
Borgal
2025-08-11 15:50:08 +02:00
parent debee07afd
commit 53f568552d
5 changed files with 11 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
<?php
session_start();
include('inc/db.php');
include('db.php');
// Funktion zum Löschen von Cookies und Weiterleiten zum Login
function redirect_to_login()
@@ -9,7 +9,7 @@ function redirect_to_login()
setcookie('user_id', '', time() - 3600, "/");
$_SESSION = array();
session_destroy();
header("Location: login.php");
header("Location: ./login.php");
exit;
}

View File

@@ -1,5 +1,5 @@
<?php
include('inc/secure.php');
include('secure.php');
// Verbindung herstellen
$conn = mysqli_connect($host, $user, $password, $dbname);

View File

@@ -11,7 +11,7 @@
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">
<!-- Custom styles -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="../css/style.css">
</head>
<!-- Farbe über Bootstrap festlegen mit Transparent -->
@@ -19,4 +19,4 @@
<body>
<? include('inc/menu.php') ?>
<? include('menu.php') ?>