Вход Регистрация
Файл: gruzmo_top/system/header.php
Строк: 86
<?php
echo '<!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>
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="format-detection" content="telephone=no"/>
    <link rel="shortcut icon" href="/design/style/favicon.png">'
;
    
$config mysql_fetch_assoc(mysql_query("SELECT * FROM `config` WHERE `id` = '1'"));
    
if(isset(
$user['id'])) echo '<link rel="stylesheet" href="'.$HOME.'/design/theme/'.$user['style'].'/style.css" type="text/css" /> ';
else echo 
'<link rel="stylesheet" href="'.$HOME.'/design/theme/'.$config['style'].'/style.css" type="text/css" /> ';

echo 
' <title>'$title .'</title>
</head>
<body>'
;
$t microtime(1);
echo 
'<div class="verx"><a href="/"><img src="/images/logo.png" alt="logotip"></a></a></div>';

echo 
'<div class="ads">
<div class="adstwo">'
;
include 
'ads.php';
echo 
"</div></div>";

if(!isset(
$user['id'])) {
echo 
'<table cols="2" width="100%" cellpadding="0" cellspacing="0" style="font-size:11px;"><tr>
<td class="men" width="50%"><a href="/login.php" class="user1">Авторизация</a></td>

<td class="men" width="50%"><a href="'
.$HOME.'/registr.php" class="user2">Регистрация</a></td>';
echo 
'</tr></table>';

}

if(isset(
$user['id'])) {
$len mysql_result(mysql_query("SELECT COUNT(id) FROM `lenta` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0);
$mes mysql_result(mysql_query("SELECT COUNT(id) FROM `message` WHERE `komy` = '".$user['id']."' and `readlen` = '0'"),0);
$load_mod mysql_result(mysql_query("SELECT COUNT(*) FROM `load_file` WHERE `mod` = '0'"), 0);

echo 
'<div class="podmenu">';
echo 
'<table style="width:100%" cellspacing="0" cellpadding="0" class="touch_panel"><tr>
<td><a href="/user/cab.php"><center><img src="/images/up_panel/cab.png" class="white" type="button" alt="*"></center></a></td>
<td ><a href="/lenta.php"><center><img class="white" type="button"  src="/images/up_panel/lent.png" alt="*"><font color="red"><b>' 
. ($len '+'.$len.'' '') . '</b></font></center></a></td> 
<td><a href="/mes"><center><img class="white" type="button"  src="/images/up_panel/maill.png" alt="*"><font color="red"><b> ' 
. ($mes '+'.$mes.'' '') . ' </b></font> </center></a></td>
<td ><a href="/exit.php"><center><img class="white" type="button"  src="/images/up_panel/exit.png" alt="*"></center></a></td></tr></table>'
;
}
$rek mysql_result(mysql_query("SELECT COUNT(id) FROM `ads` WHERE `time_srok` > '".time()."' and `tip` = '0'"),0);
$sql_rek mysql_query("SELECT * FROM `ads` WHERE `time_srok` > '".time()."' and `tip` = '0' ORDER BY rand() ");
echo 
"</div>";

// Реклама
$rek mysql_result(mysql_query("SELECT COUNT(id) FROM `ads` WHERE `time_srok` > '".time()."' and `tip` = '0'"),0);
$sql_rek mysql_query("SELECT * FROM `ads` WHERE `time_srok` > '".time()."' and `tip` = '0' ORDER BY rand() ");
if(
$rek != 0) {
echo 
'<div class="podmenu">';
while(
$sql mysql_fetch_assoc($sql_rek)){
echo 
'<a href="'.$sql['url'].'"><img src="'.$HOME.'/images/rr.png" alt="*" title="Реклама" /> ';

echo 
'<font color="'.$sql['color'].'">'
if(
$sql['b'] == 1) echo '<b>'
if(
$sql['i'] == 1) echo '<i>';
echo 
$sql['name'];
if(
$sql['i'] == 1) echo '</i>';
if(
$sql['b'] == 1) echo '</b>'
 echo 
'</font>';
echo 
'</a>';
if(
$rek 1) echo '</div>';
}
}
echo 
'</div>';
 



?>
Онлайн: 0
Реклама