<?php
/*
******************************************************
*** A-Dater Pro Version 2 ***
*** File name log_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'])){
header('Location: index.php?leht=logi');
exit();
}
else{
$select = mysql_query("SELECT id FROM kasutajad WHERE id='".$_SESSION['id']."'");
if(mysql_num_rows($select) == 0){
session_destroy();
header('Location: index.php');
exit();
}
}
?>