1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-01-10 03:02:21 +00:00
plateforme-corres2math/server_files/controllers/profiles.php

9 lines
266 B
PHP
Raw Normal View History

<?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();
require_once "server_files/views/profiles.php";