mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-30 20:01:19 +02:00
Redesign du site
This commit is contained in:
@ -3,12 +3,12 @@
|
||||
if (!isset($_SESSION["role"]) || ($_SESSION["role"] != Role::PARTICIPANT && $_SESSION["role"] != Role::ENCADRANT))
|
||||
require_once "server_files/403.php";
|
||||
|
||||
$tournaments_response = $DB->query("SELECT `id`, `name` FROM `tournaments` WHERE `date_inscription` > CURRENT_DATE AND `year` = '$YEAR';");
|
||||
$tournaments_response = $DB->query("SELECT `id`, `name` FROM `tournaments` WHERE `date_inscription` > CURRENT_TIMESTAMP AND `year` = $YEAR;");
|
||||
|
||||
$has_error = false;
|
||||
$error_message = null;
|
||||
|
||||
if (isset($_POST["submitted"])) {
|
||||
if (isset($_POST["add_team"])) {
|
||||
$new_team = new NewTeam($_POST);
|
||||
try {
|
||||
$new_team->makeVerifications();
|
||||
|
Reference in New Issue
Block a user