1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-26 16:22:21 +00:00
plateforme-corres2math/server_files/controllers/videos_solutions.php

11 lines
292 B
PHP
Raw Normal View History

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