9 lines
265 B
PHP
9 lines
265 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();
|
||
|
|
||
|
require_once "server_files/views/profils.php";
|