Файл: sys/inc/thead.php
Строк: 46
<?
ob_start();
$set['meta_keywords']= $set['meta_keywords'] != null ? $set['meta_keywords']:null;
$set['meta_description']= $set['meta_description'] != null ? $set['meta_description']:null;
if ($set['title'] != null)
query("UPDATE `user` SET `url_title` = '".my_esc($set['title'])."' WHERE `id` = '{$user['id']}' LIMIT 1");
if ($set['meta_keywords'] != NULL or $set['meta_description'] != NULL)
{
function meta_function($out)
{
global $set;
return str_replace('</head>', '
<meta name="keywords" content="'.$set['meta_keywords'].'" />
<meta name="description" content="'.$set['meta_description'].'" />'."n</head>", $out);
}
ob_start('meta_function');
}
include_once H.'sys/inc/style_add.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: 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">
<?
}
?>