Bonjour, mon souci c'est que j'utilise une session qui reçoit d'une page vérification (log & pass), donc cette page ne doit être afficher que si l'utilisateur existe.. voir mes codes, merci
J'ai fais un teste avec une page simple:
Et maintenant je veux l’intégrer ici..
page profile.php
Modifié par hilalovish (19 Jul 2014 - 16:32)
J'ai fais un teste avec une page simple:
<?php
session_start();
if($_SESSION['login'])
{
echo "Bienvenue ".$_SESSION['login']."! <br/><a href='deconnexion.php'>Se déconnécter</a>";
}
else
{
header('Location:../index.php');
}
?>
Et maintenant je veux l’intégrer ici..
page profile.php
<?php
session_start();
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6 lt8"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7 lt8"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8 lt8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset="UTF-8" />
<!-- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> -->
<title>Espace administrateur</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../css/style.css"/>
</head>
<body>
<div id="wrapper">
<div class="header">
<?php include("../includes/nav3.php"); ?>
</div>
<div class="section">
<div class="head">
</div>
<div class="content">
<?php include("../includes/menu2.php"); ?>
<div class="container">
</div>
</div>
</div>
</div>
</body>
</html>
Modifié par hilalovish (19 Jul 2014 - 16:32)