mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-24 18:20:33 +02:00
Modification mineure
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
include 'config.php';
|
||||
require_once 'config.php';
|
||||
|
||||
$tournament_name = htmlspecialchars($_GET["nom"]);
|
||||
|
||||
@ -9,7 +9,7 @@ $response->execute([$tournament_name]);
|
||||
$data = $response->fetch();
|
||||
|
||||
if ($data === false)
|
||||
include "404.php";
|
||||
require_once "404.php";
|
||||
|
||||
$orgas_req = $DB->query("SELECT `users`.`id` AS `id`, `surname`, `first_name` FROM `users` JOIN `organizers` ON `users`.`id` = `organizer` WHERE `tournament` = " . $data["id"] . ";");
|
||||
$orgas = [];
|
||||
@ -20,7 +20,7 @@ while (($orga_data = $orgas_req->fetch()) !== false) {
|
||||
}
|
||||
|
||||
if (isset($_GET["modifier"]) && $_SESSION["role"] != "ADMIN" && !in_array($_SESSION["user_id"], $orgas_id))
|
||||
include "403.php";
|
||||
require_once "403.php";
|
||||
|
||||
if (isset($_POST["edit_tournament"])) {
|
||||
$error_message = updateTournament();
|
||||
@ -130,7 +130,7 @@ function updateTournament() {
|
||||
|
||||
?>
|
||||
|
||||
<?php include "header.php" ?>
|
||||
<?php require_once "header.php" ?>
|
||||
|
||||
<h2>Tournoi de <?php echo $data["name"] ?></h2>
|
||||
|
||||
@ -356,4 +356,4 @@ else {
|
||||
}
|
||||
?>
|
||||
|
||||
<?php include "footer.php" ?>
|
||||
<?php require_once "footer.php" ?>
|
Reference in New Issue
Block a user