' . "\n" .
"\n" . '' .
"\n" . '' .
"\n" . '
' .
"\n" . '' .
"\n" . ''; // ВНИМАНИЕ!!! Данный копирайт удалять нельзя
if (!empty($set['meta_key']))
echo "\n" . '';
if (!empty($set['meta_desc']))
echo "\n" . '';
echo "\n" . '' .
"\n" . '' . $textl . '' .
"\n" . '' .
"\n" . '
';
/*
-----------------------------------------------------------------
Рекламный модуль
-----------------------------------------------------------------
*/
$cms_ads = array ();
$view = $user_id ? 2 : 1;
$layout = ($headmod == 'mainpage' && !$act) ? 1 : 2;
$req = mysql_query("SELECT * FROM `cms_ads` WHERE `to` = '0' AND (`layout` = '$layout' or `layout` = '0') AND (`view` = '$view' or `view` = '0') ORDER BY `mesto` ASC");
if (mysql_num_rows($req) > 0 && $headmod != 'admin') {
while ($res = mysql_fetch_array($req)) {
$name = explode("|", $res['name']);
$name = htmlentities($name[mt_rand(0, (count($name) - 1))], ENT_QUOTES, 'UTF-8');
if (!empty($res['color']))
$name = '' . $name . '';
// Если было задано начертание шрифта, то применяем
$font = $res['bold'] ? 'font-weight: bold;' : false;
$font .= $res['italic'] ? ' font-style:italic;' : false;
$font .= $res['underline'] ? ' text-decoration:underline;' : false;
if ($font)
$name = '' . $name . '';
$cms_ads[$res['type']] .= '' . $name . '
';
if (($res['day'] != 0 && $realtime >= ($res['time'] + $res['day'] * 3600 * 24)) || ($res['count_link'] != 0 && $res['count'] >= $res['count_link']))
mysql_query("UPDATE `cms_ads` SET `to` = '1' WHERE `id` = '" . $res['id'] . "'");
}
}
/*
-----------------------------------------------------------------
Рекламный блок сайта
-----------------------------------------------------------------
*/
if ($cms_ads[0])
echo $cms_ads[0];
/*
-----------------------------------------------------------------
Выводим логотип
-----------------------------------------------------------------
*/
echo '';
/*
-----------------------------------------------------------------
Выводим верхний блок с приветствием
-----------------------------------------------------------------
*/
require_once ($rootpath . 'incfiles/func_warna.php');
echo '';
echo '