Файл: sys/inc/thead.php
Строк: 56
<?
if (isset($user))
{
if($user)mysql_query("insert into `user_logs` (`id_user`,`data`,`time`) values ('$user[id]','IP: ".long2ip($user['ip'])." | UA: $user[ua] | PAGE: ".my_esc($_SERVER['QUERY_STRING'])."','$time');");
if ($webbrowser=='web')
mysql_query("UPDATE `user` SET `browser` = 'web' WHERE `id` = '$user[id]' LIMIT 1");
else
mysql_query("UPDATE `user` SET `browser` = 'wap' WHERE `id` = '$user[id]' LIMIT 1"); // это можно куда нибудь в head например
$timeactiv=time() - $user['date_last'];
if($timeactiv < 120)
{
$newtimeactiv=$user['time']+$timeactiv;
mysql_query("UPDATE `user` SET `time` ='$newtimeactiv', `perehodu` = '".($user['perehodu']+1)."' WHERE `id` = '$user[id]' LIMIT 1");
echo mysql_error();
}
}
$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');
}
echo '<body oncopy="return false">';
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><?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" />
<link rel="alternate" title="Новости RSS" href="/news/rss.php" type="application/rss+xml" />
</head>
<body>
<div class="body">
<?
}
?>