43 lines
1.5 KiB
PHP
43 lines
1.5 KiB
PHP
<?php
|
|
include('config.php')
|
|
?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<link href="<?php echo $design; ?>/style.css" rel="stylesheet" title="Style" />
|
|
<title>Espace membre</title>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<a href="<?php echo $url_home; ?>"><img src="<?php echo $design; ?>/images/logo.png" alt="Espace Membre" /></a>
|
|
</div>
|
|
<div class="content">
|
|
<?php
|
|
//On affiche un message de bienvenue, si lutilisateur est connecte, on affiche son pseudo
|
|
?>
|
|
Bonjour<?php if(isset($_SESSION['username'])){echo ' '.htmlentities($_SESSION['username'], ENT_QUOTES, 'UTF-8');} ?>,<br />
|
|
Bienvenue sur notre site.<br />
|
|
Vous pouvez <a href="users.php">voir la liste des utilisateurs</a>.<br /><br />
|
|
<?php
|
|
//Si lutilisateur est connecte, on lui donne un lien pour modifier ses informations, pour voir ses messages et un pour se deconnecter
|
|
if(isset($_SESSION['username']))
|
|
{
|
|
?>
|
|
<a href="edit_infos.php">Modifier mes informations personnelles</a><br />
|
|
<a href="connexion.php">Se déconnecter</a>
|
|
<?php
|
|
}
|
|
else
|
|
{
|
|
//Sinon, on lui donne un lien pour sinscrire et un autre pour se connecter
|
|
?>
|
|
<a href="sign_up.php">Inscription</a><br />
|
|
<a href="connexion.php">Se connecter</a>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
<div class="foot"><a href="http://www.supportduweb.com/">Support du Web</a></div>
|
|
</body>
|
|
</html>
|