<?php //setcookie("user","",time()-3600);
session_start();
?> 
<body style="color: #FFFF99; background:#333399; ">
<BR><BR><BR><BR><BR><BR><BR><BR><CENTER><B>Autentificare</B></CENTER><BR>
<center>
<form action='login.php' method='post'>
	<b>Utilizator : <input type=text name=username>
	<br><br>
	Parola :</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=password name=password><br><BR>
	<input type=submit name=submit value=Logare>
	<br><br>
	<input type=hidden name='doit' value=yes>
</form>
</center>
</body>
<?
if($_POST['doit']=='yes'){

	######################################################################
	///////////// here you can change your password/username //////////////
	$ma_user = "Mincu"; //your username
	$ma_pass = "702409"; //your password

////////////////////////////////////////////////////////////////////////

if(($_POST['username']==$ma_user)&&($_POST['password']==$ma_pass))
{
	$_SESSION['username']	=	$ma_user;
	$_SESSION['password']	=	$ma_pass;
	$_SESSION['hasacces']	=	'yes';
	$_SESSION['login'] = 'Da';

	echo "<script>location.replace('index.php')</script>";
}
else
	{echo "<script>alert('Numele de utilizator sau parola sunt eronate. REINCERCATI !!!')</script>";exit;}
}

?>