1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-24 09:48:45 +02:00

Design phase 4

This commit is contained in:
galaxyoyo
2019-09-27 23:53:34 +02:00
parent 9b343e24f5
commit a050956614
3 changed files with 92 additions and 110 deletions

View File

@ -7,10 +7,10 @@ if (!isset($_SESSION["user_id"]) || $_SESSION["role"] != Role::PARTICIPANT && $_
require_once "server_files/403.php";
if (isset($_POST["upload_answer"])) {
$new_video = new NewAnswer($_POST);
$new_answer = new NewAnswer($_POST);
try {
$new_video->makeVerifications();
$new_video->uploadVideo();
$new_answer->makeVerifications();
$new_answer->uploadVideo();
} catch (AssertionError $e) {
$has_error = true;
$error_message = $e->getMessage();