NetBeansProjects
This commit is contained in:
37
sioa/NetBeansProjects/Authentification24/entete.php
Normal file
37
sioa/NetBeansProjects/Authentification24/entete.php
Normal file
@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
* entete.php
|
||||
* entete à inclure au début de chaque page
|
||||
-->
|
||||
<?php
|
||||
session_start();
|
||||
if(!isset($_SESSION['id'])) {
|
||||
$message = "Authentifiez-vous avant de poursuivre";
|
||||
header("location:index.php?msg=$message");
|
||||
exit();
|
||||
}
|
||||
$id = $_SESSION['id'];
|
||||
$nom = $_SESSION['nom'];
|
||||
$prenom = $_SESSION['prenom'];
|
||||
$role = $_SESSION['role'];
|
||||
|
||||
if($role==0){
|
||||
$libRole='Visiteur';
|
||||
}
|
||||
else{
|
||||
$libRole= 'Responsable';
|
||||
}
|
||||
?>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title> Gestion des visites - V4</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<?php echo $libRole;?> identifié : <?php echo $prenom." ".$nom." "; ?>
|
||||
<a href="deconnexion.php">Déconnexion</a>
|
||||
</p>
|
||||
<h1>Organisation des visites clients</h1>
|
||||
|
Reference in New Issue
Block a user