Файл: PROFIWM.COM/system/header.php
Строк: 53
<?php
// ЛУЧШИЕ СКРИПТЫ ТОЛЬКО НА 4MAST.RU
// АВТОР Chainsaw
// ТОЛЬКО ЭКСКЛЮЗИВНЫЕ СКРИПТЫ
if($user['id'])
{
if(!empty($user['css'])){
$css = mysql_fetch_assoc(mysql_query("SELECT * FROM `css` WHERE `id` = '".$user['css']."'LIMIT 5"));
if($css != 0)
{
$_style = $css['file'];
}
else
{
$_style = standart_css;
}
}
else
{
$_style = standart_css;
}
}
else
{
$_style = standart_css;
}
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
echo '<html><head><link rel="stylesheet" href="'.((!$user['id']) ? '/css/25082014_99329_css.css':'/css/'.$_style.'.css').'" type="text/css">';
echo'<script src="/js/jquery.min.js"></script>';
echo'<title>'.(empty($_title) ? '4MAST.RU-мастерам' : $_title ).'</title><link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/></head><body>';
echo "<a href='/'><div class='logos'><img src='/images/logo.png' alt='$k_new_fav' title='4MASt.RU - Мастерам!' /></div> </a> ";
////////////////////////////////////////////////////////////////////////////////////
$rek = mysql_query("SELECT * FROM `ads` WHERE `mode` = '1'");
echo '<div class="rek"><div class="rekl">';
while($rek2 = mysql_fetch_array($rek))
{
echo '<img src="/images/r.png" alt="*"> <a href="'.$rek2['link'].'">'.$rek2['name'].'</a></br>';
}
echo '<img src="/images/r.png" alt="*"> <a href="bl?bl=rek">Купить рекламу</a>';
echo '</div>';
echo '</div>';
include 'system/nvg.php';
/////////////////////////////////////////////////
if($user['id']) {
echo ' <div class="start">';
echo '<div class="s" style="border-bottom:none;">';
echo '<table style="width:100%" cellspacing="0" cellpadding="0">';
echo '<tbody><tr><td style="vertical-align:top;width:10%;">';
echo '<center>';
echo '<a href="cab" title="Кабинет"><img class="ico" align="middle" src="/images/vcard.png" alt="*"></a></center></td>';
echo '<td style="vertical-align:top;width:10%;">';
echo '<center>';
echo '<a href="privat/" title="Почта"><img class="ico" align="middle" src="/images/mail2.png" alt="*"></a>';
if($user['id']){
$c = mysql_result(mysql_query('select count(`id`) from `privat` where `ho` = "'.$user['id'].'" and `read` = "0"'),0);
if($c) echo ' <b> (+'.$c.')</b>';
}
echo '</center></td>';
echo '<td style="vertical-align:top;width:10%;">';
echo '<center><a href="op/" title="Оповещения"><img class="ico" align="middle" src="/images/warning.png" alt="*"></a>';
if($user['id']){
$c = mysql_result(mysql_query('select count(`id`) from `op` where `who` = "'.$user['id'].'" and `read` = "0"'),0);
if($c != 0) echo '<b> (+'.$c.')</b>';
}
echo '</center></td>';
if($user['status'] >= 1){
echo '<td style="vertical-align:top;width:10%;">';
echo '<center><a href="/admin" title="Админка"><img class="ico" align="middle" src="/images/documents.png" alt="*"></a>';
echo '</center></td>';
}
echo '</tr></tbody></table>';
echo '</div>';
}
list($msec,$sec)
= explode(chr(32), microtime());
$gtime = $sec+$msec;
?>