mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-07-06 13:34:03 +02:00
Modification mineure
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
include "config.php";
|
||||
require_once "config.php";
|
||||
|
||||
if (!isset($_SESSION["role"]) || $_SESSION["role"] != "ORGANIZER" && $_SESSION["role"] != "ADMIN") {
|
||||
include "403.php";
|
||||
require_once "403.php";
|
||||
}
|
||||
|
||||
$id = $_GET["id"];
|
||||
$user_data = $DB->query("SELECT * FROM `users` WHERE `id` = $id;")->fetch();
|
||||
|
||||
if ($user_data === false) {
|
||||
include "404.php";
|
||||
require_once "404.php";
|
||||
}
|
||||
|
||||
$team_data = false;
|
||||
@ -22,7 +22,7 @@ $tournaments_req = $DB->query("SELECT `tournament`, `name` FROM `organizers` JOI
|
||||
|
||||
?>
|
||||
|
||||
<?php include "header.php" ?>
|
||||
<?php require_once "header.php" ?>
|
||||
|
||||
<h1><?= $user_data["first_name"] . " " . $user_data["surname"] ?></h1>
|
||||
|
||||
@ -93,4 +93,4 @@ elseif ($user_data["role"] == "PARTICIPANT" || $user_data["role"] == "ENCADRANT"
|
||||
}
|
||||
} ?>
|
||||
|
||||
<?php include "footer.php" ?>
|
||||
<?php require_once "footer.php" ?>
|
||||
|
Reference in New Issue
Block a user