Ejemplo n.º 1
0
<?php

session_start();
define('TITLE', 'Liste des utilisateurs');
require_once '../inc/config.inc.php';
require '../inc/fonctions.inc.php';
require_once '../classes/db.php';
require_once '../classes/Utilisateurs.php';
$us = new Utilisateurs();
$liste = $us->Lister();
if (isset($_SESSION['auth'])) {
    if ($_SESSION['auth'][6] == 2) {
        $_SESSION['flash']['danger'] = "Vous devez étre connecté en tant que Administrateur";
        header('Location:../gestion_incidents/index.php');
        die;
    }
    require '../inc/header.inc.php';
    ?>
	<a class="btn btn-success"  href="register.php">Ajouter un utilisateur</a>
	<br />
	<br />
	<table class="table" >
	<thead>
	<tr>
		<th>Nom</th>
		<th>Prenom</th>
		<th>Mail</th>
		<th>Login</th>
		<th>Profil</th>
		<th></th>
		<th></th>