Файл: thead.php
Строк: 169
<?
if($u['setting_theme']){
$theme = '/themes/'.$u['setting_theme'].'/';
if(!is_dir($theme)){
$theme = '/themes/default/';
}
} else {
$theme = '/themes/default/';
}
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>
<!--1345106472-->
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=utf-8"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="cache-control" content="must-revalidate"/>
<meta http-equiv="cache-control" content="no-store"/>
<meta name="keywords" content="Знакомства, общение, форум, чат, развлечения, , приложения, конкурсы, загрузки, библиотека, фан клубы, фото-бои, Wap Базар">
<meta name="description" content="Мир Друзей, Приятных Знакомств и Яркого Общения! Знакомства, общение, форум, чат, развлечения, , приложения, конкурсы, загрузки, библиотека! Заходи и найди у нас, отдых по душе!">
<meta name="author" content="vKollektive.net">
<meta name="copyright" content="vkollektive.net">
<meta name="generator" content="vKollektive_net_core_beta_test">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="'.$theme.'style.css" type="text/css"/>
<title>'.$title.'</title>
</head>
<body>';
echo'<script type="text/javascript">
document.ondragstart = test;
document.onselectstart = test;
document.oncontextmenu = test;
function test() {
return false;
}
document.oncontextmenu;
function catchControlKeys(event){
var code=event.keyCode ? event.keyCode : event.which ? event.which : null;
if (event.ctrlKey){
// Ctrl+U
if (code == 117) return false;
if (code == 85) return false;
// Ctrl+C
if (code == 99) return false;
if (code == 67) return false;
// Ctrl+A
if (code == 97) return false;
if (code == 65) return false;
}
}
</script>';
/*
echo'<div id="georglenta">
<a rel="nofollow" href="http://vkollektive.net">
<img src="/ico/9may3.png" />
</a>
</div>';
*/
echo '<div class="logo"><img src="image/logo.png" width="210" height="75"></div>';
echo '<div class="logo2"></div>';
# background-color: #b4c8e9; /ico/top.png
if($u['id']){
echo '<div style="
background: url(/image/1.png);
color: #434e60;
padding:0px 0px 0px 0px;
margin: 0px;
line-height: 25px;
">';
echo ' <div class="menu_icon">
<table style="width:100%" cellspacing="0" cellpadding="0"><tr>
<td style="vertical-align:top;width:24%;border-right: 1px solid #D4EEFF;white-space: nowrap;">
<a href = "/page.php?id='.$u['id'].'"style="text-align:center;display:block;padding:5px;font-size: small;"><font color="black">'.$u['login'].'</font></a></td>
<td style="vertical-align:top;width:24%;white-space: nowrap;"><a href = "login.php?out=1"style="text-align:center;display:block;padding:5px;font-size: small;"><font color="black">Выход</font></a></td>
</tr></table></div></div>';
if($u['admin'] ==1 || $u['admin'] ==2){
$count_spam = mysql_result(mysql_query("SELECT COUNT(*) FROM `spam`"), 0);
if($count_spam){
if($count_spam) echo '<div class="cred"><a href = "adminka.php?act=spam">Спам почта</a> (<font color="red">+'.$count_spam.'</font>)</div>';
}
}
echo '</div>';
mysql_query("UPDATE `users` SET `online` = '".time()."', `location` = '$location', `chat_location` = '$chat_location' WHERE `id` = '".$u['id']."'");
if($u['online']){
$timeplus = time()-$u['online'];
if($timeplus < $system['online_time']){
mysql_query("UPDATE `users` SET `anketa_alltime` = '".($u['anketa_alltime'] + $timeplus)."' WHERE `id` = '".$u['id']."'");
} else {
mysql_query("UPDATE `users` SET `anketa_alltime` = '".($u['anketa_alltime'] + $system['online_time'])."' WHERE `id` = '".$u['id']."'");
}
}
} else
{
echo '<div style="
background: url(../image/1.png);
color: #434e60;
padding:0px 0px 0px 0px;
margin: 0px;
line-height: 25px;
">';
echo ' <div class="menu_icon">
<table style="width:100%" cellspacing="0" cellpadding="0"><tr>
<td style="vertical-align:top;width:24%;border-right: 1px solid #D4EEFF;white-space: nowrap;"><a href = "/login.php"style="text-align:center;display:block;padding:5px;font-size: small;"><font color="black">Вход</font></a></td>
<td style="vertical-align:top;width:24%;white-space: nowrap;"><a href = "/registration.php"style="text-align:center;display:block;padding:5px;font-size: small;"><font color="black">Регистрация</font></a></td>
</tr></table></div></div>';
}
?>