<?php
	include("../pages/vars.php");
	include("../pages/db.php");
	include("password.php");
	
	session_cache_limiter('private');
	$cache_limiter = session_cache_limiter();

	session_cache_expire(90);
	$cache_expire = session_cache_expire();

	session_start();
	$s_secure = $_SESSION['s_secure'];			
	$admin_access = "no";
	$msg = "gverdi dablokilia";

if($s_secure == $u_secure && isset($_SESSION['s_secure']))
{
	$admin_access = "yes";
	$msg = "";
	$result = mysql_query("SELECT * FROM page_statics",$db);
	if($myrow = mysql_fetch_array($result))
	{
		$today_visits = $myrow['today_visits'];
		$all_visits = $myrow['all_visits'];
	}
	//
	$result2 = mysql_query("SELECT * FROM gsms_number", $db);
	if($myrow2 = mysql_fetch_array($result2))
	{
		$total_number2 = mysql_num_rows($result2);
	}
	//
	$result3 = mysql_query("SELECT * FROM gsms_secure", $db);
	if($myrow3 = mysql_fetch_array($result3))
	{
		$total_number3 = mysql_num_rows($result3);
	}
	//
	$result4 = mysql_query("SELECT * FROM gsms_send", $db);
	if($myrow4 = mysql_fetch_array($result4))
	{
		$total_number4 = $myrow4['count'];
	}
	//
	$result5 = mysql_query("SELECT * FROM register WHERE account_status = '1'", $db);
	if($myrow5 = mysql_fetch_array($result5))
	{
		$total_number5 = mysql_num_rows($result5);
	}
	//
	$result6 = mysql_query("SELECT * FROM holiday", $db);
	if($myrow6 = mysql_fetch_array($result6))
	{
		$total_number6 = mysql_num_rows($result6);
	}
	//
	$result7 = mysql_query("SELECT * FROM sms_book WHERE sms_status = '1'", $db);
	if($myrow7 = mysql_fetch_array($result7))
	{
		$total_number7 = mysql_num_rows($result7);
	}
	//
	$result8 = mysql_query("SELECT * FROM sms_type", $db);
	if($myrow8 = mysql_fetch_array($result8))
	{
		$total_number8 = mysql_num_rows($result8);
	}
}
?>
<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</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="597" id="table1" cellspacing="0" cellpadding="0">
	<tr>
		<td width="120" class="geo" align="right">&nbsp;</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo">&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><b>admin zona (meniu)</b>&nbsp;</td>
	<tr>
<?php
	if($admin_access == "yes")
	{
?>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;1.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo">momxmareblebi (<?=$total_number5?>) - <a href="users.php?u_secure=<?=$u_secure?>&type=1" class="eng">All</a> - <a href="users.php?u_secure=<?=$u_secure?>&type=2" class="eng">Not active</a> - <a href="users.php?u_secure=<?=$u_secure?>&type=3" class="eng">Active</a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;2.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo">kalendari (<?=$total_number6?>) - <a href="calendar.php?u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;3.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><font face='Tahoma,Arial,Verdana' size='1'>SMS</font>-ebis wignaki (<?=$total_number7?>) - <a href="sms_book.php?u_secure=<?=$u_secure?>&type=1" class="eng">All</a> - <a href="sms_book.php?u_secure=<?=$u_secure?>&type=2" class="eng">Not active</a> - <a href="sms_book.php?u_secure=<?=$u_secure?>&type=3" class="eng">Active</a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;4.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><font face='Tahoma,Arial,Verdana' size='1'>SMS</font>-is tipi (<?=$total_number8?>) - <a href="sms_type.php?u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;5.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo">baneri (didi) - <a href="banners_info.php?cur_id=1&u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;6.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo">baneri (patara) - <a href="banners_info.php?cur_id=2&u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;7.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><font face='Tahoma,Arial,Verdana' size='1'>SMS</font> reklama 1 - <a href="reklama_info.php?cur_id=1&u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;8.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><font face='Tahoma,Arial,Verdana' size='1'>SMS</font> reklama 2 - <a href="reklama_info.php?cur_id=2&u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;9.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><font face='Tahoma,Arial,Verdana' size='1'>SMS</font> reklama 3 - <a href="reklama_info.php?cur_id=3&u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;10.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><font face='Tahoma,Arial,Verdana' size='1'>SMS</font> reklama 4 - <a href="reklama_info.php?cur_id=4&u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;11.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><font face='Tahoma,Arial,Verdana' size='1'>SMS</font> reklama 5 - <a href="reklama_info.php?cur_id=5&u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;12.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><font face='Tahoma,Arial,Verdana' size='1'>SMS</font> reklama 6 - <a href="reklama_info.php?cur_id=6&u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;13.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><font face='Tahoma,Arial,Verdana' size='1'>SMS</font> reklama 7 - <a href="reklama_info.php?cur_id=7&u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;14.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><font face='Tahoma,Arial,Verdana' size='1'>SMS</font> reklama 8 - <a href="reklama_info.php?cur_id=8&u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;15.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><font face='Tahoma,Arial,Verdana' size='1'>SMS</font> reklama 9 - <a href="reklama_info.php?cur_id=9&u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;16.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo"><font face='Tahoma,Arial,Verdana' size='1'>SMS</font> reklama 10 - <a href="reklama_info.php?cur_id=10&u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;17.</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo">yvela <font face='Tahoma,Arial,Verdana' size='1'>SMS</font> reklama <a href="all_reklama_info.php?u_secure=<?=$u_secure?>" class="eng">>></a>&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo">&nbsp;</td>
	</tr>
	<tr>
		<td width="120" class="geo" align="right">&nbsp;</td>
		<td width="10">&nbsp;</td>
		<td width="467" class="geo">sul Cveneba - <?=$all_visits?><br>dRvandeli Cveneba - <?=$today_visits?><br>nomrebis raodenoba - <?=$total_number2?><br>dRevandeli nomrebi - <?=$total_number3?><br>gagzavnili reklama - <?=$total_number4?>&nbsp;</td>
	</tr>
<?php
	}
?>
	<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>