1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-25 03:40:28 +02:00

Divserses corrections, phase 0 terminée

This commit is contained in:
galaxyoyo
2019-09-12 16:01:40 +02:00
parent 416264b53c
commit 61bec11bdb
7 changed files with 17 additions and 16 deletions

View File

@ -1,7 +1,7 @@
<?php
if (!isset($_SESSION["user_id"]) || $_SESSION["role"] != Role::ADMIN)
require_once "server_files/403.php";
//if (!isset($_SESSION["user_id"]) || $_SESSION["role"] != Role::ADMIN)
// require_once "server_files/403.php";
$trigram = htmlspecialchars($_GET["trigram"]);
@ -15,7 +15,7 @@ if (isset($_POST["validate"])) {
}
if (isset($_POST["download_zip"])) {
$file_name = getZipFile(DocumentType::PHOTO_CONSENT, $team->getProblem(), $team->getId());
$file_name = getZipFile($team->getProblem(), $team->getId());
header("Content-Type: application/zip");
header("Content-Disposition: attachment; filename=\"Documents de l'équipe " . $team->getTrigram() . ".zip\"");
@ -26,6 +26,6 @@ if (isset($_POST["download_zip"])) {
exit();
}
$documents = Document::getAllDocuments($team->getId());
$documents = Document::getAllDocuments($team->getProblem(), $team->getId());
require_once "server_files/views/equipe.php";