<?php
	//header("X-FRAME-OPTIONS: DENY");
	header("Content-Security-Policy: default-src 'self'; frame-ancestors 'none'; frame-src: 'self' www.youtube.com");
	if(isset($_COOKIE['perm_token']) && isset($_COOKIE['var_token']) && isset($_COOKIE['aesiv'])){
		header("Location: login.php");
		//echo $_COOKIE['user']."<br />";
		//echo $_COOKIE['aesiv'];
		exit;
	}
?><!DOCTYPE HTML>
<html lang="bg-BG">
<head>
	<title>Първи уебсайт</title>
	<meta charset="utf-8" />
	<script>
		if(top!=window){
			top.location=window.location;
		}
	</script>
</head>
<body>
	<form action="login.php" method="POST">
		Име: <input type="text" name="user" /><br />
		Парола: <input type="password" name="pass" /><br />
		Запомни ме? <input type="checkbox" name="remember" value="1" /><br />
		<img src="captcha.php" alt="security code" /><br />
		Security code: <input type="text" name="captcha" /><br />
		<input type="submit" name="submit" value="Влез!" />
	</form>
</body>
</html>