[ PHPXref.com ] [ Generated: Sun Jul 20 20:23:56 2008 ] [ Siteseed 1.6 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/siteseed/ -> logout.php (source)

   1  <?
   2  /**************************************
   3  
   4  Project: Siteseed (copyright MrNet 2001 - All right reserved)
   5  Filename: logout.php
   6  Last modified: 20013103
   7  
   8  ***************************************/ 
   9  require_once  "whoisthis.php";
  10  require_once  "include/db_connect.php";
  11  
  12  if ($session_id)
  13  {
  14      // we dont want quotes in session_id, do we?
  15      $session_id = AddSlashes(StripSlashes($session_id));
  16      
  17      // clean the database entry
  18      $query = mysql_query ("    UPDATE users SET session_id='' WHERE session_id='$session_id'");
  19      
  20      // kill the damn cookie
  21      setcookie ("session_id");
  22      
  23      # Data Mining
  24      recordsession("logout.php","ok",$HTTP_USER_AGENT,$remoteip,$datamining);    
  25  }
  26  
  27  // go back to homepage
  28  header ("Location: index.php");
  29  ?>


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