<?php
/*
******************************************************
*** A-Dater Pro Version 2 ***
*** File name mode_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 ***
******************************************************
*/
$select_admin = mysql_query("SELECT staatus FROM kasutajad WHERE id='".$_SESSION['id']."'");
$row_admin = mysql_fetch_assoc($select_admin);
if ($row_admin['staatus'] < '1'){
header('Location: index.php');
exit();
}
?>