Pfadanpassung und Admin-Ordner
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
include('inc/secure.php');
|
||||
include('secure.php');
|
||||
|
||||
// Verbindung herstellen
|
||||
$conn = mysqli_connect($host, $user, $password, $dbname);
|
||||
|
||||
@@ -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') ?>
|
||||
Reference in New Issue
Block a user