<?PHP
/***************************************************************************
* Stat_logoff.php
*
* begin : June 2004
* version : 10 October 2006
* copyright : (C) 2004,2006 grandolini.net
*
* Log user off statistics
*
***************************************************************************/
include_once('Session.php');
if($USER_ID=='') { return; }
#
$sth=db_query("SELECT * FROM g_stat_online WHERE stat_online_skin='".$_SESSION[misc][skin]."' AND stat_online_user='$USER_ID'");
if($sth[1]>0) { $sth=db_query("DELETE FROM g_stat_online WHERE stat_online_skin='".$_SESSION[misc][skin]."' AND stat_online_user='$USER_ID'"); }
?>