<?
session_start();

$qwe=$_GET["viewbaner"];
if($qwe!="ok")
{
	$t=time();
	$t=$t+$_SESSION["timer"];
	$_SESSION["endtime"]=$t;
}
?>

<script language=javascript>
if(self==parent) self.window.location='dban.php';
</script>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<style type="text/css">
	a, a:link, a:visited { color: #057fac; text-decoration: none; font-family: Verdana; font-size: 13px; }
	a:hover {color: #f00; text-decoration: none; font-family: Verdana; font-size: 13px; }
</style>
</head>
<body>

<?
if($qwe!="ok")
{
?>
	<script type="text/javascript">
	setTimeout('location.replace("vls1.php?viewbaner=ok")', <?=$_SESSION["timer"]*1000 ?>);
	</script>

	<noscript>
	<meta http-equiv="refresh" content="<?=$_SESSION["timer"]?>; url=vlsb.php?viewbaner=ok">
	</noscript>
<?
}
?>

<table id="tbl" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="font-family: Verdana; font-size: 13px;" width="30%" rowspan=2 valign=center>
<?
if($qwe!="ok")
{
	?><span style="border: medium none ; padding: 0pt; font-size: 8pt; font-family: Verdana; vertical-align: top;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Подождите, пожалуйста, <span style="color:#ff0000"><?=$_SESSION["timer"] ?></span> секунд...</span><?
}else{
	include('success1.php');
}
?>
</td>

<td style="font-family: Verdana; font-size: 10px;">
<b>Описание: </b><?=$_SESSION["desc"] ?>
</td>
</tr>

<tr>
<td style="font-family: Verdana; font-size: 10px;">
<b>Ссылка на сайт: </b><a href="<?=$_SESSION["urlsite"] ?>" target="_blank"><?=$_SESSION["urlsite"] ?></a>
</td>
</tr>
</table>

</body>
</html>