11 lines
292 B
PHP
11 lines
292 B
PHP
|
<?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";
|