<?php
	include("../pages/vars.php");
	include("../pages/db.php");
	include("password.php");
	

if($REQUEST_METHOD == "POST")
{
	if($active_code && $password1 && $user_ip)
	{
		if($active_code == $f_active_code && $password1 == $f_password)
		{

			$randomt = rand(5,8888)*date('Ydms');
			$randomt .= $password1;
			$randomt = md5($randomt);
			session_start();
			$_SESSION['s_secure'] = $randomt;
			header("Location: admin_book.php?u_secure=".$randomt);
		}
		else
		{
			$msg = "ar aris swori kodi an paroli";
		}
	}
	else
	{
		$msg = "ar Sedis";
	}
}
?>
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Georgiansms.com | Admin Panel</title>
<link rel="shortcut icon" href="../js_css/favicon.ico">
<link href="../js_css/iframe.css" rel="stylesheet">
</head>

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" bgcolor="#1AB9F1">
<script language="javascript" src="../js_css/admin.js"></script>
<form name="form1" action="<?=$_SERVER['REQUEST_URI']?>" method="POST">
<table border="0" width="297" id="table1" cellspacing="0" cellpadding="0">
	<tr>
		<td width="120" class="geo" align="right">&nbsp;</td>
		<td width="10">&nbsp;</td>
		<td width="167" class="geo">&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;</td>
		<td width="10">&nbsp;</td>
		<td width="167" class="geo"><b>admin zona</b>&nbsp;</td>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;kodi</td>
		<td width="10">&nbsp;</td>
		<td width="167" class="geo"><input type=text class="in_eng" name="active_code" size="15" value="" maxlength="60">&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;paroli</td>
		<td width="10">&nbsp;</td>
		<td width="167" class="eng"><input type=password class="in_eng" name="password1" size="15" value="" maxlength="60">&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;</td>
		<td width="10">&nbsp;</td>
		<td width="167" class="geo"><input type=button class="bu_geo" name="send" value="  Sesvla" style="cursor:hand;" onclick="admin_login();">&nbsp;</td>
	</tr>
	<tr>
		<td height="19" colspan="3" width="297" class="geo" align="center">&nbsp;</td>
	</tr>
	<tr>
		<td height="19" colspan="3" width="297" class="geo" align="center">&nbsp;<?=@$msg?></td>
	</tr>
</table>
</form>
</body>

</html>