Файл: selemege.tk/sys/inc/thead.php
Строк: 219
<?
$set['meta_keywords']=(isset($set['meta_keywords']))?$set['meta_keywords']:null;
$set['meta_description']=(isset($set['meta_description']))?$set['meta_description']:null;
// Ключевые слова
if ($set['meta_keywords']!=NULL)
{
function meta_keywords($str)
{
global $set;
return str_replace('</head>', '<meta name="keywords" content="'.$set['meta_keywords'].'" />'."n</head>", $str);
}
ob_start('meta_keywords');
}
// Описание мета
if ($set['meta_description']!=NULL)
{
function meta_description($str)
{
global $set;
return str_replace('</head>', '<meta name="description" content="'.$set['meta_description'].'" />'."n</head>", $str);
}
ob_start('meta_description');
}
include_once H.'reg_users/inc/inc.php';
if (file_exists(H."style/themes/$set[set_them]/head.php"))
include_once H."style/themes/$set[set_them]/head.php";
else
{
$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="/favicon.ico" />
<link rel="stylesheet" href="/style/themes/<?=$set['set_them']?>/style.css" type="text/css" />
<link rel="alternate" title="Новости RSS" href="/news/rss.php" type="application/rss+xml" />
</head>
<body>
<div class="body">
<?
}
// Уведомления
if (isset($_SESSION['message']))
{
echo '<div class="msg">' . $_SESSION['message'] . '</div>';
$_SESSION['message'] = NULL;
}
// Вывод ошибок
if (isset($_SESSION['err']))
{
echo '<div class="msg">' . $_SESSION['err'] . '</div>';
$_SESSION['err'] = NULL;
}
/*---------------------виджеты----------*/
?>
<link rel="stylesheet" href="/style/system.css" type="text/css" />
<?
$k_frend_on=mysql_result(mysql_query("SELECT COUNT(*) FROM `frends` INNER JOIN `user` ON `frends`.`frend`=`user`.`id` WHERE `frends`.`user` = '$user[id]' AND `frends`.`i` = '1' AND `user`.`date_last`>'".(time()-600)."'"), 0);
if ($webbrowser=='web' && $k_frend_on != 0){
?>
<!--
@author Kiper
@link http://kopeyka.biz
@contacts ICQ: 383991000, Mail: kazama.ru@mail.ru
-->
<script>
function bottom_FR_open(type)
{
if (type == 'open')
{
$('#bottom_frends').css({'display':'block'});
$('#bottom_close').css({'display':'block'});
}
if (type == 'close')
{
$('#bottom_frends').css({'display':'none'});
$('#bottom_close').css({'display':'none'});
}
}
</script>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
.ok_online_frend
{
display: none;
}
@media screen and (min-width: 980px)
{
.ok_online_frend
{
display: block;
}
}
.ok_mail_link
{
background: rgb(243, 180, 243);
box-shadow:inset 0 0 9px #104E8B;
border-radius: 3px;
-moz-border-radius: 3px;
padding: 4px;
margin: 2px;
display: inline-block;
}
.ok_mail_link:hover
{
background: #6495ED;
}
.ok_hover
{
background:rgb(115, 140, 219);
}
.ok_hover:hover
{
background: rgb(241, 173, 204);
}
</style>
<div style="position: fixed; bottom: 0; right: 43px; height: 70%; width: 300px; display: none; z-index: 10;" onmouseover="bottom_FR_open('close')" id="bottom_close">
</div>
<div style="position: fixed; bottom: 0; right: 60px; width: 260px; z-index: 10;" class="ok_online_frend">
<div style="display: inline-block; width: 240px; padding: 10px; background-color: rgb(241, 187, 255);background: linear-gradient(to top, rgb(235, 166, 235), #6495ED);border:3px ridge #6495ED;border-radius:4px 4px 4px 4px; color:#ffffff; font-weight: bold;" onmouseover="bottom_FR_open('open')">
Друзья на сайте <span style="position:absolute; right: 10px;"><? echo $k_frend_on; ?></span>
</div>
<div style="display: none; border: 3px ridge rgb(225, 177, 243);" id="bottom_frends">
<?
$q2 = mysql_query("SELECT * FROM `frends` INNER JOIN `user` ON `frends`.`frend`=`user`.`id` WHERE `frends`.`user` = '$user[id]' AND `frends`.`i` = '1' AND `user`.`date_last`>'".(time()-600)."' ORDER BY `user`.`date_last` DESC LIMIT 7");
echo '<table cellspacing="0" cellpadding="0">';
while ($frend = mysql_fetch_assoc($q2))
{
$frend=get_user($frend['frend']);
echo '<tr class="ok_hover">';
echo '<td style="width: 50px; padding: 1px;">';
$avatar = mysql_fetch_array(mysql_query("SELECT id,ras FROM `gallery_foto` WHERE `id_user` = '$frend[id]' AND `avatar` = '1' LIMIT 1"));
if (is_file(H.'sys/gallery/50/' . $avatar['id'] . '.' . $avatar['ras']))
echo ' <img class="avatar" src="/foto/foto50/' . $avatar['id'] . '.' . $avatar['ras'] . '" alt="Avatar" /> ';
else
echo '<img class="avatar" src="/style/user/avatar.gif" width="50" alt="No Avatar" />';
echo '</td>';
echo '<td style="vertical-align:top; padding:2px;"> ' . user::avatar($frend['id'], 2) . user::nick($frend['id'], 1, 1, 1) . ' <br /><div class="ok_mail_link"><a href="/user/info/anketa.php?id='.$frend[id].'" ><img src="/style/icons/anketa.gif" alt="*"/></a></div><div class="ok_mail_link"><a href="/mail.php?id='.$frend[id].'" ><img src="/style/icons/ok_mail.png" alt="*"/></a></div></td></tr>';
}
echo '</table>';
//if ($k_frend_on >= 7)
echo '<div style = "width: 240px; padding: 10px;background-color: rgb(241, 187, 255);background: linear-gradient(to top, rgb(235, 166, 235), #6495ED);;border:3px ridge #6495ED;border-radius:4px 4px 4px 4px; color:#ffffff; font-weight: bold; text-align: center;" > <a href="/user/frends/online.php">'.( ($k_frend_on >= 7) ? 'Все друзья на сайте' : 'Список друзей' ).'</a></div>';
echo '</div></div>';
}
//конец
/*
* Поймать каплю
*/
if (!isset($fortuna))$fortuna = 1;
if (isset($user['id']) && $fortuna == 1)
{
$rand = rand(1,500);
$key = rand(1111111111,9999999999);
if ($rand == 10 or $rand == 20 or $rand == 30 or $rand == 40 or $rand == 50 or $rand == 60 or $rand == 70 or $rand == 80 or $rand == 90 or $rand == 100)
{
$_SESSION['s_code'] = $key;
$_SESSION['s_rand'] = $rand;
$_SESSION['s_str'] = $_SERVER['PHP_SELF'];
echo '<div class="nav2"><img src="/style/icons/fav.gif" /> <a href="/plugins/games/kaplya/fortuna.php?key=' . $key . '">Лови Каплю</a></div>';
}
}
/*
* Поймать добычу
*/
if (!isset($fortuna))$fortuna = 1;
if (isset($user['id']) && $fortuna == 1)
{
$rand = rand(1,500);
$key = rand(1111111111,9999999999);
if ($rand == 10 or $rand == 20 or $rand == 30 or $rand == 40 or $rand == 50 or $rand == 60 or $rand == 70 or $rand == 80 or $rand == 90 or $rand == 100)
{
$_SESSION['s_code'] = $key;
$_SESSION['s_rand'] = $rand;
$_SESSION['s_str'] = $_SERVER['PHP_SELF'];
echo '<div class="nav2"><img src="/style/icons/fav.gif" /> <a href="/plugins/games/zagon/fortuna.php?key=' . $key . '">Поймать добычу</a></div>';
}
}
?>
<link rel="stylesheet" href="/style/system.css" type="text/css" />