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