Pfadanpassung und Admin-Ordner
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
require_once 'inc/header.php'; ?>
|
require_once '../inc/header.php'; ?>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1 class="mb-4">Debug-Informationen</h1>
|
<h1 class="mb-4">Debug-Informationen</h1>
|
||||||
@@ -37,4 +37,4 @@ require_once 'inc/header.php'; ?>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php require_once 'inc/footer.php'; ?>
|
<?php require_once '../inc/footer.php'; ?>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
include('inc/check_login.php');
|
include('../inc/check_login.php');
|
||||||
require_once('inc/db.php');
|
require_once('../inc/db.php');
|
||||||
|
|
||||||
// Zugriff nur für eingeloggte Admins
|
// Zugriff nur für eingeloggte Admins
|
||||||
if ($_SESSION['role'] !== 'admin') {
|
if ($_SESSION['role'] !== 'admin') {
|
||||||
@@ -33,7 +33,7 @@ if ($result) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once 'inc/header.php';
|
require_once '../inc/header.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h1>Benutzerverwaltung</h1>
|
<h1>Benutzerverwaltung</h1>
|
||||||
@@ -68,4 +68,4 @@ require_once 'inc/header.php';
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<?php include('inc/footer.php'); ?>
|
<?php include('../inc/footer.php'); ?>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
include('inc/db.php');
|
include('db.php');
|
||||||
|
|
||||||
// Funktion zum Löschen von Cookies und Weiterleiten zum Login
|
// Funktion zum Löschen von Cookies und Weiterleiten zum Login
|
||||||
function redirect_to_login()
|
function redirect_to_login()
|
||||||
@@ -9,7 +9,7 @@ function redirect_to_login()
|
|||||||
setcookie('user_id', '', time() - 3600, "/");
|
setcookie('user_id', '', time() - 3600, "/");
|
||||||
$_SESSION = array();
|
$_SESSION = array();
|
||||||
session_destroy();
|
session_destroy();
|
||||||
header("Location: login.php");
|
header("Location: ./login.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
include('inc/secure.php');
|
include('secure.php');
|
||||||
|
|
||||||
// Verbindung herstellen
|
// Verbindung herstellen
|
||||||
$conn = mysqli_connect($host, $user, $password, $dbname);
|
$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/icon?family=Material+Icons" rel="stylesheet">
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">
|
||||||
<!-- Custom styles -->
|
<!-- Custom styles -->
|
||||||
<link rel="stylesheet" href="css/style.css">
|
<link rel="stylesheet" href="../css/style.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<!-- Farbe über Bootstrap festlegen mit Transparent -->
|
<!-- Farbe über Bootstrap festlegen mit Transparent -->
|
||||||
@@ -19,4 +19,4 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<? include('inc/menu.php') ?>
|
<? include('menu.php') ?>
|
||||||
Reference in New Issue
Block a user