<?php
/*
******************************************************
*** A-Dater Pro Version 2 ***
*** File name online_check.php ***
*** Script Owner Alfacom Systems ***
*** Script Homepage www.a-dater.com ***
*** Licence Terms www.a-dater.com/licence ***
*** ***
*** You need to purchase a license if you want ***
*** to use this script with ads or without the ***
*** reference to www.a-dater.com ***
******************************************************
*/
if(isset($_SESSION['id'])){
$select = mysql_query("SELECT * FROM online WHERE kasutaja_id='".$_SESSION['id']."'");
if(mysql_num_rows($select) > 0){
mysql_query("UPDATE online SET date=now(), online = 1 WHERE kasutaja_id='".$_SESSION['id']."'");
}
}
?>