1
0
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:
galaxyoyo
2019-09-17 00:19:01 +02:00
parent a8db4a421c
commit 1e67b8569d
11 changed files with 50 additions and 16 deletions

View File

@ -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");
}
}

View 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";