2019-09-12 10:18:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$problem = htmlspecialchars($_GET["probleme"]);
|
|
|
|
|
2019-10-04 19:41:12 +00:00
|
|
|
if (!preg_match("#[0-4]#", $problem))
|
2019-09-12 10:18:15 +00:00
|
|
|
require_once "server_files/404.php";
|
|
|
|
|
2019-10-22 12:55:33 +00:00
|
|
|
if (!isset($_SESSION["user_id"]) || $_SESSION["role"] != Role::ADMIN)
|
2019-09-12 10:18:15 +00:00
|
|
|
require_once "server_files/403.php";
|
|
|
|
|
|
|
|
$has_error = false;
|
|
|
|
$error_message = null;
|
|
|
|
|
2019-09-19 22:02:01 +00:00
|
|
|
$teams = Team::getAllTeams($problem);
|
2019-09-12 10:18:15 +00:00
|
|
|
|
2019-12-13 18:50:32 +00:00
|
|
|
$validated_emails = [];
|
|
|
|
$not_validated_emails = [];
|
|
|
|
|
|
|
|
foreach ($teams as $team) {
|
|
|
|
if ($team->getValidationStatus() == ValidationStatus::VALIDATED)
|
|
|
|
$validated_emails = array_merge($validated_emails, $team->getAllEmails());
|
|
|
|
else
|
|
|
|
$not_validated_emails = array_merge($not_validated_emails, $team->getAllEmails());
|
|
|
|
}
|
|
|
|
|
2019-09-12 10:18:15 +00:00
|
|
|
require_once "server_files/views/probleme.php";
|