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