diff --git a/admin/check_session.php b/check_session.php
similarity index 89%
rename from admin/check_session.php
rename to check_session.php
index fb28af3..9f5fcba 100755
--- a/admin/check_session.php
+++ b/check_session.php
@@ -1,8 +1,8 @@
+include('inc/check_admin.php');
+require_once('inc/header.php'); ?>
Debug-Informationen
@@ -34,4 +34,4 @@ require_once('../inc/header.php'); ?>
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/admin/participant.php b/participant.php
similarity index 95%
rename from admin/participant.php
rename to participant.php
index c756407..2a06a65 100755
--- a/admin/participant.php
+++ b/participant.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';
?>
@@ -234,4 +228,4 @@ require_once '../inc/header.php';
-
\ No newline at end of file
+
\ No newline at end of file