View file Garbuyik-By-ArIzOn/default/head.php

File size: 2.18Kb
<?
$set['web'] = false;
//header("Content-type: application/vnd.wap.xhtml+xml");
//header("Content-type: application/xhtml+xml");
header("Content-type: text/html");
echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>

<title>
<?=$set['title']?>
</title>

<link rel="shortcut icon" href="/style/themes/<?=$set['set_them']?>/favicon.ico" />
<link rel="stylesheet" href="/style/themes/<?=$set['set_them']?>/style.css" type="text/css" />
</head>
<body>
<?
################################################################################
if (isset($user['id']))
{
$extra_n=rand(1,100);
if ($extra_n == 100 or $extra_n == 50 or $extra_n == 1)
{
@session_start();
$extra_unic=rand(1111111111,9999999999);
$_SESSION['unic_code']=$extra_unic;
$_SESSION['is_str']=$_SERVER['PHP_SELF'];
echo '<div class="aut"><a href="/plugins/pages/extra_ball.php?unic_code='.$extra_unic.'">Поймать подарок!</a></div>';
}}
################################################################################
?>
<div class="body">

<?
if (isset($_SESSION['message']))
{
	echo '<div class="msg">' . $_SESSION['message'] . '</div>';
	$_SESSION['message'] = NULL;
}

if (isset($user) && $webbrowser == true)
{
	?><script>  
	function show()  
	{  
		$.ajax({  
			url: "/ajax/frend.ajax.php",  
			cache: false,  
			success: function(html){  
				$("#frends").html(html);  
			}  
		});  
	}  
  
	$(document).ready(function(){  
		show();  
		setInterval('show()',10000);  
	});  
</script><div style="position:fixed; left: 10px; bottom:15px;" id="frends"></div><?
}

	?>

<div class="header">
	
	
	<span class="logo">
	<img src="/style/themes/<?=$set['set_them']?>/logo.png" alt="logo" />
	</span>
	

	<span class='head_menu'>
	<?
	if (isset($user))
	{
	?>

	
		<?=user::nick($user['id'])?> <a href="exit.php">Выход</a>
		<?
	}
	else
	{
		?>

		<a href="/aut.php">Вход</a> <a href="/reg.php">Регистрация</a>

		<?
	}
	?></span>

	
	<?
	if (isset($user))
         include H.'activday/include.php';
	{?>

	<span class="ava">
	<?
	?>
	</span>

	<?}?>
	
</div>