verschoben in root
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
include('../inc/check_admin.php');
|
||||
require_once('../inc/header.php'); ?>
|
||||
include('inc/check_admin.php');
|
||||
require_once('inc/header.php'); ?>
|
||||
|
||||
<div class="container mt-5">
|
||||
<h2 class="mb-4">Debug-Informationen</h2>
|
||||
@@ -34,4 +34,4 @@ require_once('../inc/header.php'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php require_once '../inc/footer.php'; ?>
|
||||
<?php require_once 'inc/footer.php'; ?>
|
||||
@@ -3,20 +3,14 @@
|
||||
// error_reporting(E_ALL);
|
||||
// ini_set('display_errors', 1);
|
||||
|
||||
include('../inc/check_login.php');
|
||||
include('../inc/db.php');
|
||||
require_once '../inc/helpers.php';
|
||||
|
||||
// Nur Admin darf diese Seite nutzen deaktiviert
|
||||
// if (!isset($_SESSION['role']) || $_SESSION['role'] !== 'admin') {
|
||||
// header("Location: ../index.php");
|
||||
// exit;
|
||||
// }
|
||||
include('inc/check_login.php');
|
||||
include('inc/db.php');
|
||||
require_once 'inc/helpers.php';
|
||||
|
||||
// Meeting-ID prüfen
|
||||
if (!isset($_GET['id'])) {
|
||||
$_SESSION['error_message'] = "Keine Meeting-ID angegeben.";
|
||||
header("Location: ../index.php");
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -24,7 +18,7 @@ $meeting_id = intval($_GET['id']);
|
||||
|
||||
// Quelle merken (für Weiterleitung)
|
||||
$source_page = isset($_GET['source']) && $_GET['source'] === 'history' ? 'history' : 'index';
|
||||
$cancel_link = $source_page === 'history' ? '../history.php' : '../index.php';
|
||||
$cancel_link = $source_page === 'history' ? 'history.php' : 'index.php';
|
||||
|
||||
// Meeting-Daten laden
|
||||
$stmt = mysqli_prepare($conn, "SELECT meeting_date, color_id, reason FROM meetings WHERE id = ?");
|
||||
@@ -123,7 +117,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once '../inc/header.php';
|
||||
require_once 'inc/header.php';
|
||||
?>
|
||||
|
||||
<div class="container mt-5">
|
||||
@@ -234,4 +228,4 @@ require_once '../inc/header.php';
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php include('../inc/footer.php'); ?>
|
||||
<?php include('inc/footer.php'); ?>
|
||||
Reference in New Issue
Block a user