Файл: sys/inc/thead.php
Строк: 81
<?
include_once H.'guard/inc/siteguard.php';
$set['meta_keywords']=(isset($set['meta_keywords']))?$set['meta_keywords']:null;
$set['meta_description']=(isset($set['meta_description']))?$set['meta_description']:null;
if ($webbrowser=='web')
mysql_query("UPDATE `user` SET `wap_web` = 'web' WHERE `id` = '$user[id]' LIMIT 1");
else
mysql_query("UPDATE `user` SET `wap_web` = 'wap_web' WHERE `id` = '$user[id]' LIMIT 1");
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');
}
$admin_settings=mysql_fetch_array(mysql_query("SELECT * FROM `admin_settings`"));
if ($admin_settings["udacha"]==1){
if(isset($user)){
$ud=rand(1, 30);
if($ud==15){
mysql_query("INSERT INTO `udacha_yes` (`user`)values('$user[id]')");
}
}
}
if ($admin_settings['sneg']==1){
?><script language="JavaScript" src="/sys/inc/snow.js" type="text/javascript"></script><?
}
if (isset($_GET['addlink'])){
$buffer = isset($user['buffer']) ? mysql_escape_string($user['buffer']).' ' : '';
}
$set_password="adgjmptw";
$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><?echo $set['title'];?></title>
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="/style/themes/<?echo $set['set_them'];?>/style.css" type="text/css" />
</head>
<body>
<?
include H.'/notebook/reminders.php';
include H.'mail_vk.php';
include H.'mods/wealth/includes.php';
if (isset($user)){
$lider_q=mysql_query("SELECT * FROM `liders` ORDER BY rand() LIMIT 1");
if(mysql_num_rows($lider_q)==0)echo "<div class='forum2'><center><img src='/style/icons/add_lider.png' alt=''> <a href='/mods/liders/?add_lider'>Стать лидером</a></center></div>";
while ($lider_u = mysql_fetch_array($lider_q)){
$lider=get_user($lider_u['id_lider']);
echo "<div class='forum2'><center>";
echo "<img src='/style/icons/add_lider.png' alt=''> <a href='/mods/liders'>Лидеры:</a> ";
echo status($lider['id']);
echo "<a href='/id$lider[id]'> <span style='color:$lider[ncolor]'>$lider[nick]</span></a></center></div>";
mysql_query("DELETE FROM `liders` WHERE `time` < '".$time."'");
}
}
?>