[ PHPXref.com ] [ Generated: Sun Jul 20 16:48:44 2008 ] [ Chaussette 1.0 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> logout.php (source)

   1  <?php
   2  include  "include.php";
   3  
   4  if (!isset ($_SESSION["user"]) || empty ($_SESSION["user"])) {
   5      echo '<div align="center" class="style1">Pas de session en cours</div>';
   6  } else {
   7      $db= new DBConnection();
   8      $vars = array(0 => $_SESSION["user"]);
   9      $db->query("delete_from_whoisonline2", $vars);
  10      echo '<div align="center" class="style1">Destruction de la session \''.$_SESSION["user"]."'</div>";
  11      session_destroy();
  12  }
  13  echo '<meta http-equiv="Refresh" content="1; url=index.php">';
  14  ?>
  15  
  16  <style type="text/css">
  17  <!--
  18  body {
  19      background-color: #e5e5e5;
  20  }
  21  .style1 {
  22      font-family: tahoma;
  23      font-size: 12px;
  24  }
  25  -->
  26  </style>


[ Powered by PHPXref - Served by Debian GNU/Linux ]