Просмотр файла template/head.php

Размер файла: 1.4Kb
<?
include $_SERVER['DOCUMENT_ROOT']."/template/start.php"; 
include $_SERVER['DOCUMENT_ROOT']."/template/func.php";
include $_SERVER['DOCUMENT_ROOT']."/template/data.php";
if(isset($_GET['exit']))
{
	unset($_SESSION['meil']);
	unset($_SESSION['pass']);
}

include $_SERVER['DOCUMENT_ROOT']."/template/log.php";
 


?>

<html>
<head>
<link rel="stylesheet" href="http://<?echo $sit;?>/template/black.css" type="text/css">
<title>Личная сетка, Своя страничка, Мой сайт</title>
</head>
<body>

	<img src="img/logo.png" alt="logo" width="">

<?if(empty($id)){?>
<div class="e">
	<a href="http://<?echo $sit;?>/">Главная</a>
</div>
<?=$err?>
<?}?>
<?
if(!empty($id)){
$new_mess = mysql_result(mysql_query("select count(*) from `priv` where `id_user`='$id' and `sys`='1'"),0)
?>
<div class="e">
	<a href="http://<?echo $sit;?>/">Моя страница</a> | 
	<a href="http://<?echo $sit;?>/priv.php">Моя почта 
	<?if($new_mess = mysql_result(mysql_query("select count(*) from `priv` where `id_user`='$id' and `sys`='1'"),0)!=0)echo'+'.$new_mess;?></a> | 
	<a href="http://<?echo $sit;?>/user.php">Жители сайта</a> | 
	<a href="http://<?echo $sit;?>/?exit">Выход</a>
</div>
<?}?>
<?if(isset($_GET['exit'])){echo'Спасибо за пользование нашим порталом,<br/>заходите к нам еще!';}?>