<?php $listeUser = User::Lister(); include __DIR__ . "/../view/pubs.php"; include __DIR__ . "/../view/carteRoliste.php";
<?php $ordre = "LOGIN ASC"; if (isset($_GET["ordre"])) { $ordre = $_GET["ordre"]; } $login = ""; if (isset($_GET["login"])) { $login = $_GET["login"]; } $listeJoueur = User::Lister($ordre, $login); include "view/pubs.php"; include "view/archiveJoueur.php";
<?php if (isset($user)) { if ($user->admin || $user->superadmin) { $action = "liste"; if (isset($_GET["action"])) { $action = $_GET["action"]; } switch ($action) { case "liste": $users = User::Lister(); include "view/userListe.php"; break; case "modifier": $user_ = new User($_GET["id"]); include "view/userModifier.php"; break; case "modifier_action": $user_ = new User($_POST["id"]); if (!isset($_POST["mj"])) { $_POST["mj"] = 0; } else { $_POST["mj"] = 1; } if ($user->superadmin) { if (!isset($_POST["admin"])) { $_POST["admin"] = 0; } else { $_POST["admin"] = 1; } if (!isset($_POST["superadmin"])) {