mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-26 20:22:23 +00:00
16 lines
432 B
PHP
16 lines
432 B
PHP
<?php
|
|
|
|
if (!isset($_SESSION["user_id"]) || $_SESSION["role"] != Role::ADMIN)
|
|
require_once "server_files/403.php";
|
|
|
|
$orphans = isset($_GET["orphans"]);
|
|
$users = $orphans ? User::getOrphanUsers() : User::getAllUsers();
|
|
|
|
$emails = [];
|
|
|
|
if ($_SESSION["role"] == Role::ORGANIZER || $_SESSION["role"] == Role::ADMIN) {
|
|
foreach ($users as $user)
|
|
$emails[] = $user->getEmail();
|
|
}
|
|
|
|
require_once "server_files/views/profils.php"; |