<?php
session_start();
$bdd = new PDO('mysql:host=localhost;dbname=####', '####', '####');
if(isset($_GET['id']) AND $_GET['id'] > 0)
{
$getid = intval($_GET['id']);
$requser = $bdd->prepare('SELECT * FROM membres WHERE id = ?');
$requser->execute(array($getid));
$userinfo = $requser->fetch();
}
?>
<html>
<head>
<meta charset="UTF-8" />
</head>
<body>
<div id="banniere"></div>
<ul id="MH">
<li><a href="index.php">Accueil</a></li>
<li><a href="pages\presentation.php">Présentation</a></li>
<li><a href="pages\medias.php">Médias</a></li>
<li><a href="pages\staff.php">Staff</a></li>
<li><a href="pages\reglement.php">Règlement</a></li>
<li><a href="pages\infos.php">Infos</a></li>
</ul>
<div id="conteneur">
<div id="CHG"></div><div id="CHD"></div><div id="BH"></div><div id="BG"><div id="BD">
<div id="corps">
<div id="MV">
<div class="groupe_MV">
<div class="groupe_lien_MV">
<?php
if(isset($_SESSION['id']) AND $userinfo['id'] == $_SESSION['id']) {
echo '<a href="authentification\connexion.php" class="lien_MV">'.Deconnexion.'</a>';
}
else
{
echo '<a href="authentification\deconnexion.php" class="lien_MV">'.Connexion.'</a>';
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>