Guest User

Untitled

a guest
Nov 12th, 2013
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   <?php
  2.     session_start();
  3.     ?>
  4.     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5.  
  6.     <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
  7.  
  8.     <head>
  9.  
  10.      <meta http-equiv="content-type" content="text/html; charset=UTF-8" />    <link rel="stylesheet" href="style.css" />   
  11.      <title></title>
  12.    
  13.     </head>
  14.     <body>
  15.    
  16.     <?php
  17.     /* si le membre est connecte*/
  18.     if(isset ($_SESSION['id']))
  19.     {
  20.     if( $_SESSION['id']!="" || $_SESSION['pseudo']!="")
  21.     {
  22.     ?>
  23.     <a href="loginout.php">Deconnexion</a><br />
  24.     <?php
  25.     }
  26.     }
  27.     else
  28.     {
  29.     ?>
  30.     <a href="login.php">Connexion</a><br />
  31.     <a href="inscription.php">Inscription</a><br />
  32.     <?php
  33.     }
  34.     ?>
Advertisement
Add Comment
Please, Sign In to add comment