1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-26 21:02:20 +00:00
plateforme-corres2math/server_files/controllers/probleme.php
Yohann 5c88ccb91a Nombreuses petites corrections, ajout de texte.
Les Correspondances peuvent démarrer :)
2019-10-22 14:55:33 +02:00

17 lines
376 B
PHP

<?php
$problem = htmlspecialchars($_GET["probleme"]);
if (!preg_match("#[0-4]#", $problem))
require_once "server_files/404.php";
if (!isset($_SESSION["user_id"]) || $_SESSION["role"] != Role::ADMIN)
require_once "server_files/403.php";
$has_error = false;
$error_message = null;
$teams = Team::getAllTeams($problem);
require_once "server_files/views/probleme.php";