<?php
// (c)2011 by Muhammad Fauzan Sholihin 		www.tetuku.com		Paypal donation: tecnixindo@gmail.com		LR donation: U1462159 (Iyin payment gateway)		Bank : BCA 0372344006 SwiftCode=CENA IDJA
// Your donation will keep development process of this web apps. Thanks for your kindness
// You may use, modify, redistribute my apps for free as long as keep the origin copywrite
session_start ();
include_once('functions.inc.php');

if ($_SESSION['username'] == '' && $_SESSION['username'] != $username) {
$_SESSION['note'] = "Akses ditolak ! \nSilahkan login !";
redirect('gallery_login.php',0.1); die();
}

if ($_SESSION['username'] != '') {
$history[1] = session_id();
$history[2] = date('Y-m-d H:i:s');
$history[3] = $position;

add_db($doc_root.'/files/login_history_detail.txt',$history);
}

if (getenv("HTTP_USER_AGENT") == '') {
?>
<h3 color="#FF0000">Flood protection activated....! <br />Please come back again after 10 minutes  ! </h3>
<?php 
die(); }
?>
