Файл: style/head.php
Строк: 107
<?
ob_start();
// Собственно верх
if (empty($head))
{$head = $title;}
$title = $set['name'].'|'.$title;
@header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
@header("Cache-Control: no-cache, must-revalidate");
@header("Pragma: no-cache");
@header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
@header("Content-type:text/html; charset=utf-8");
echo '
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru"/>
<head><meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>
<link rel="shortcut icon" href="/favicon.ico" />
<meta name="copyright" content="raduga.mobi" />
<Meta name="author" Content="Чеширский"/>
<Meta name="Reply-to" Content="admin@raduga.mobi"/>
<Meta name="description" Content="Закрытый wap-клуб дизайнеров"/>
<Meta name="keywords" Content="Дизайны, иконки, фоны, смайлы, подарки, баннеры, шаблоны, эксклюзив"/>
<link rel="stylesheet" type="text/css" href="/style/'.$them.'.css"/>
<title>'.$title.'</title>';
echo '</head><body>';
$query = @mysql_query ("select * from `adv` where `in` = '1' order by `id` asc" );
while( FALSE !== ( $fetch = mysql_fetch_array( $query ) ) )
{
if( !empty( $fetch['color'] ) )
{
$font = '<font color="' . $fetch['color'] . '">';
$cfont = '</font>';
}
else
{
$font = '';
$cfont = '';
}
echo '<img src="/img/adv.gif"/> <a href="http://' . $fetch['url'] . '">' . $font . $fetch['name'] . $cfont . '</a><br/>';
}
echo '<div class="logo">'.$fs1.$head.$fs2.'</div><div class="links" align="'.$align.'">';
/*if (isset($user['user']))
{
echo '<META HTTP-EQUIV="Refresh" CONTENT="180; URL='.$_SERVER['REQUEST_URI'].'">';
$pr_n = $db->sql_fetchfield ($db->sql_query("select count(*)as num from privat where to_id= '".$user['id']."' and `readin` = '0'"),0);
echo '<div class="hdrs"><center>'.$fs1.$head. $fs2.'<br/>';
if ($pr_n > 0)
{
$sql=mysql_query("select * from privat where to_id= '".$user['id']."' and `readin` = '0' and `sound` = '0'");
while($SQL=mysql_fetch_assoc($sql))
{
echo '
<embed src="/style/chat_sound.swf"
quality="high"
bgcolor="#FFFFFF"
width="0"
height="0"
align="center"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer">';
mysql_query("UPDATE `privat` SET `sound` = '1' where `id` = '".$SQL['id']."'");
}
echo '+'. $pr_n.'[<a href="/my/privat?mod=in"><img src="/icon/msg.png" alt="*"/></a>]';
}*/
if (isset($user['id']))
{
$pr_n = $db->sql_fetchfield($db->sql_query("select count(*) as num from privat where to_id = '".$user['id']."' and `readin` = '0'"),0);
$msg_n = $db->sql_fetchfield($db->sql_query("SELECT count(`id`) FROM `cpanel_messege` WHERE `komu` = '".$user['id']."' AND `reed` = 0"),0);
$tr_n = $db->sql_fetchfield($db->sql_query("SELECT count(`id`) FROM `cpanel_transfer` WHERE `komu` = '".$user['id']."' AND `reed` = 0"),0);
if ($tr_n > 0)
{echo menu.'<img src="/img/new.gif" alt="*"/> <b><a href="/my/cpanel?mod=in">Перевод денег ('.$tr_n.')</a></b>'.div;}
if ($pr_n > 0)
{echo menu.'<img src="/img/new.gif" alt="*"/> <b><a href="/my/privat?mod=in">Приватное сообщение ('.$pr_n.')</a></b>'.div;}
if ($msg_n > 0)
{echo menu.'<img src="/img/new.gif" alt="*"/> <b><a href="/my/cpanel?mod=messege">Cpanel Сообщения ('.$msg_n.')</a></b>'.div;}
}
?>