mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-24 04:28:46 +02:00
Phase 1 : affichage des vidéos pour les admins
This commit is contained in:
@ -127,7 +127,7 @@ class MyTeam
|
||||
$this->team->setTrigram($this->trigram);
|
||||
$this->team->setProblem($this->problem);
|
||||
|
||||
header("Location: $URL_BASE/mon_equipe");
|
||||
header("Location: $URL_BASE/mon-equipe");
|
||||
}
|
||||
}
|
||||
|
||||
|
11
server_files/controllers/videos_solutions.php
Normal file
11
server_files/controllers/videos_solutions.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
if (!isset($_SESSION["user_id"]) || $_SESSION["role"] != Role::ADMIN)
|
||||
require_once "server_files/403.php";
|
||||
|
||||
$videos = [];
|
||||
|
||||
for ($problem = 1; $problem <= 4; ++$problem)
|
||||
$videos[] = Video::getVideos(Reason::SOLUTION, $problem);
|
||||
|
||||
require_once "server_files/views/videos_solutions.php";
|
Reference in New Issue
Block a user