Вход Регистрация
Файл: vsime.com/system/functions/ex_head.php
Строк: 468
<?
function ex_head($auth=1)
{


global 
$title$dbi$user$config$time$navigation$index_page;
include(
H.'system/includes/head.php');
echo 
"<div class='logo_panel'>";
echo 
"<span class=left'>";
echo 
"<a href='/index'><img src='/css/logo_small".WapWeb_show("_mobile"NULL).".png' style='margin-top:-2px;' /></a>";
echo 
"</span>";
echo 
"<span class='right' style='margin-top: 2px;'>";
if (isset(
$user)) {

if (isset(
$index_page))echo " <a href='/logout'><font color='#79358c'>Выход</font></a>";
} else {
echo 
"<a href='/login/index'>Вход</a> | <a href='/registration/index'>Регистрация</a>";
}

echo 
"</span>";
echo 
"</div>";
if (isset(
$user))
{
$link $_SERVER['REQUEST_URI'];
$name 'Ссылка';
$last_link mysqli_fetch_array(mysqli_query($dbi"SELECT * FROM `linkshist` WHERE `id_user` = '$user[id]' ORDER BY `time` DESC LIMIT 1"));
if (
$last_link['link']!=$link)
{
mysqli_query($dbi"INSERT INTO `linkshist` SET `id_user` = '$user[id]', `time` = '$time', `name` = '$name', `link` = '$link'");
$link_back_id mysqli_insert_id($dbi);
} else 
$link_back_id $last_link['id'];
$_SESSION['link_back_id'] = $link_back_id;
}
if (isset(
$user))
{


$color = array();
$color['newevent'] = '#'.$user['panel_newevent'];
$color['fon'] = '#'.$user['panel_fon'];
$color['link'] = '#'.$user['panel_link'];
$color['focus_fon'] = '#'.$user['panel_focus_fon'];
$color['focus_link'] = '#'.$user['panel_focus_link'];
$color['border'] = '#'.$user['panel_border'];

$panel = array();
$panel['font_size'] = $user['panel_font_size_up'];
if (
$user['panel']==1) {
$panel['home'] = imgsd("home_".WapWeb_show("small""big")."_".$user['panel_icons_list'].".png""panel");
$panel['mail'] = imgsd("mail_".WapWeb_show("small""big")."_".$user['panel_icons_list'].".png""panel");
$panel['journal'] = imgsd("journal_".WapWeb_show("small""big")."_".$user['panel_icons_list'].".png""panel");
$panel['lenta'] = imgsd("lenta_".WapWeb_show("small""big")."_".$user['panel_icons_list'].".png""panel");

if (
$user['anketa']['pol'] == 0) { // если женский пол
$panel['profile'] = imgsd("profile_zh_".WapWeb_show("small""big")."_".$user['panel_icons_list'].".png""panel");
} else { 
// если мужской пол
$panel['profile'] = imgsd("profile_".WapWeb_show("small""big")."_".$user['panel_icons_list'].".png""panel");
}

//$panel['search'] = $config['code_panel_search'];
} elseif ($user['panel']==2) {
$panel['home']='Старт';
$panel['mail']='Почта';
$panel['journal']='Жур';
$panel['lenta']='Лента';
//$panel['search']='Поиск';
$panel['profile']='Профиль';
} else {
$panel['home']='С';
$panel['mail']='Пч';
$panel['journal']='Ж';
$panel['lenta']='Л';
//$panel['search']='Пс';
$panel['profile']='Пр';
}
$panel_down = array();
$panel_down['font_size'] = $user['panel_font_size_down'];
?>
<style>
a.top_menu_link {
text-align: center;
display: block;
padding: 3px;
}
tbody {
display: table-row-group;
vertical-align: middle;
border-color: inherit;
}
table {
border-collapse: separate;

border-color: gray;
}


#panel_style {
background-color:<? echo $color['fon'];?>;
background: -o-linear-gradient(top, <? echo $color['fon'];?>,<? echo $color['focus_fon'];?>);
background: -webkit-gradient(linear,left top,left bottom,from(<? echo $color['fon'];?>),to(<? echo $color['focus_fon'];?>));
background: -moz-linear-gradient(top,<? echo $color['fon'];?>,<? echo $color['focus_fon'];?>);
background: -ms-linear-gradient(top,<? echo $color['fon'];?>,<? echo $color['focus_fon'];?>);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<? echo $color['fon'];?>',endColorstr='<? echo $color['focus_fon'];?>');
}

#navi{padding-top: 0px;color:<? echo $color['focus_fon'];?>;
font-size:small;
background-color:<? echo $color['fon'];?>;
}

#navi a:link,#navi a:visited{color:#fffafa;text-decoration:none;font-size:small}
#navi a:focus,#navi a:hover,#navi a:active{background-color:<? echo $color['focus_fon'];?>;}


.tou_link:hover {
background: -o-linear-gradient(top,<? echo $color['focus_fon'];?><? echo $color['fon'];?>);
background: -webkit-gradient(linear,left top,left bottom,from(<? echo $color['focus_fon'];?>),to(<? echo $color['fon'];?>));
background: -moz-linear-gradient(top,<? echo $color['focus_fon'];?>,<? echo $color['fon'];?>);
background: -ms-linear-gradient(top,<? echo $color['focus_fon'];?>,<? echo $color['fon'];?>);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='<? echo $color['focus_fon'];?>',endColorstr='<? echo $color['fon'];?>');
}

#time {
color: #000;
text-align: right;
padding: 3px;
background: #d0d2d6;
border-left: 1px solid #cccaca;
border-right: 1px solid #cccaca;
border-bottom: 1px solid #b3b3b3;
font-size: small;

}

.newevent {
color:<? echo $color['newevent'];?>;
font-size: <? echo $panel['font_size'];?>;
vertical-align:bottom;
}


.panel_style {
background-color:<? echo $color['fon'];?>;
background: -o-linear-gradient(top, <? echo $color['fon'];?>,<? echo $color['focus_fon'];?>);
background: -webkit-gradient(linear,left top,left bottom,from(<? echo $color['fon'];?>),to(<? echo $color['focus_fon'];?>));
background: -moz-linear-gradient(top,<? echo $color['fon'];?>,<? echo $color['focus_fon'];?>);
background: -ms-linear-gradient(top,<? echo $color['fon'];?>,<? echo $color['focus_fon'];?>);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<? echo $color['fon'];?>',endColorstr='<? echo $color['focus_fon'];?>');
}


.touch, .tou_link, .tou_dos{
display:block;
position: relative;
white-space: nowrap;
text-overflow: ellipsis;
//border-right: 1px solid #6176A3;
width: 10%;
text-align: center;
float:left;
overflow: hidden;
}

.foot_padd{
padding: 5px 0px;
display: block;
}
.tou_dos {
//background: #000000;
}



.tou_link, .tou_dos {
position: relative;
width: 25%;
}
.t-block_item {
display: block;
}
.no_w {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.tou_link:hover{
    background: <? echo $color['focus_fon'];?>;
filter:progid:DXImageTransform.Microsoft.gradient(enabled='false');
}

.touch, .tou_link{
//border-right: 1px solid #D3D3D3;
//border-bottom: 1px solid #D3D3D3;
}


.t-bor{
border-right: 1px solid <? echo $color['focus_fon'];?>;
border-bottom: 1px solid <? echo $color['focus_fon'];?>;
border-left: 1px solid <? echo $color['fon'];?>;
}

a.user_color_link {
color:<? echo $color['link'];?>;
}
</style>

<?
include(H.'system/includes/count_panel.php');?>

<div id='navi'>
<div id='panel_style'>
<table style='width:100%' cellspacing='0' cellpadding='0'><tbody><tr>
<td style='vertical-align:top;width:19%;border-right: 1px solid <? echo $color['focus_fon'];?>;border-top: 1px solid <? echo $color['focus_fon'];?>;border-bottom: 1px solid <? echo $color['focus_fon'];?>;border-left: 1px solid <? echo $color['fon'];?>;'>
<a style='text-align:center;display:block;padding:5px' href='/start' title='Старт'><? echo $panel['home'];?></a>
</td>
<td style='vertical-align:top;width:20%;border-right: 1px solid <? echo $color['focus_fon'];?>;border-top: 1px solid <? echo $color['focus_fon'];?>;border-bottom: 1px solid <? echo $color['focus_fon'];?>;border-left: 1px solid <? echo $color['fon'];?>;'>
<a  style='text-align:center;display:block;padding:5px' href='/mail' title='Почта'><? echo $panel['mail'].$mail_new;?></a>
</td>
<td style='vertical-align:top;width:19%;border-right: 1px solid <? echo $color['focus_fon'];?>;border-top: 1px solid <? echo $color['focus_fon'];?>;border-bottom: 1px solid <? echo $color['focus_fon'];?>;border-left: 1px solid <? echo $color['fon'];?>;'>
<a style='text-align:center;display:block;padding:5px' href='/journal' title='Журнал'><? echo $panel['journal'].$journal_new;?></a>
</td>
<td style='vertical-align:top;width:20%;border-right: 1px solid <? echo $color['focus_fon'];?>;border-top: 1px solid <? echo $color['focus_fon'];?>;border-bottom: 1px solid <? echo $color['focus_fon'];?>;border-left: 1px solid <? echo $color['fon'];?>;'>
<a style='text-align:center;display:block;padding:5px' href='/lenta' title='Лента'><? echo $panel['lenta'].$lenta_new;?></a>
</td>
<td style='vertical-align:top;width:19%;border-right: 1px solid <? echo $color['focus_fon'];?>;border-top: 1px solid <? echo $color['focus_fon'];?>;border-bottom: 1px solid <? echo $color['focus_fon'];?>;border-left: 1px solid <? echo $color['fon'];?>;'>
<a style='text-align:center;display:block;padding:5px' href='<? echo "/id".$user['id'];?>' title='Я'><? echo $panel['profile'];?></a>
</td>

</td></tr></tbody></table></div>

<?
                $count_new_komm_guestbook 
mysqli_result("SELECT COUNT(*) FROM `guestbook` WHERE `id_user_adm` = '$user[id]' AND `id_user` != '$user[id]' AND `time` > '$user[a_time_guestbook]'");
                if (
$count_new_komm_guestbook || $count_journal_fotos || $count_journal_files || $count_journal_diary) {
                    echo 
"<div style='padding-top:2px;padding-left:2px;padding-bottom:0px;border-top:solid;border-width:1px;'>n";
                        if (
$count_new_komm_guestbook)echo "<a href='/guestbook/?id=$user[id]' class='user_color_link'>Гостевая</a> <span class='newevent'>$count_new_komm_guestbook</span>n";
                        
                        if (
$count_journal_diary) {
                            if (
$count_new_komm_guestbook)echo " | n";
                            echo 
"<a href='/journal/?sort=1' class='user_color_link'>Дневник</a> <span class='newevent'>$count_journal_diary</span>n";
                        }
                        
                        if (
$count_journal_fotos) {
                            if (
$count_new_komm_guestbook || $count_journal_diary)echo " | n";
                            echo 
"<a href='/journal/?sort=2' class='user_color_link'>Фото</a> <span class='newevent'>$count_journal_fotos</span>n";
                        }
                        
                        if (
$count_journal_files) {
                            if (
$count_new_komm_guestbook || $count_journal_diary || $count_journal_fotos)echo " | n";
                            echo 
"<a href='/journal/?sort=3' class='user_color_link'>Файлы</a> <span class='newevent'>$count_journal_files</span>n";
                        }
                    echo 
"</div>n";
                }
?>
    </div>
    <? if ($user['panel_time_show'] == 1) {?>
<div id='time'>
        <? echo vremja($time + ($user['panel_time_zone'] * 3600));?>

    </div>
    <? ?>
<?
        
} elseif (!isset($user)) {
        
?>
        <style>
.touch, .tou_link, .tou_dos{
display:block;
position: relative;
white-space: nowrap;
text-overflow: ellipsis;
//border-right: 1px solid #6176A3;
width: 20%;
text-align: center;
float:left;
overflow: hidden;
}

.foot_padd{
padding: 5px 0px;
display: block;
}
.tou_dos {
//background: #;
}



.tou_link, .tou_dos {
position: relative;
width: 20%;
}
.t-block_item {
display: block;
}
.no_w {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.tou_link:hover{
    background: #;
filter:progid:DXImageTransform.Microsoft.gradient(enabled='false');
}

#navi_foot{color:#99F;font-size:small;padding: 4px 2px 5px 4px;background-color: #677FB3;border: 1px solid #ABBEFB;}
#navi_foot a:link,#navi_foot a:visited{color:white;text-decoration:none;font-size:small}
#navi_foot a:focus,#navi_foot a:hover,#navi a:active{color:white;background-color:#52658E;}
.foot_gr {background: -o-linear-gradient(top, #7C98D6, #52658E);background: -webkit-gradient(linear,left top,left bottom,from(#7C98D6),to(#52658E));background: -moz-linear-gradient(top,#7C98D6,#52658E);}
.t-bor{border-right: 1px solid #6176A3;border-bottom: 1px solid #52658E;border-left: 1px solid #7C98D6;
}

            a.user_color_link{
            color:#ffffff;
            }
        </style><?
        
}
        if (isset(
$_SESSION['message']))
        {
            
msg("$_SESSION[message]");
            unset(
$_SESSION['message']);
        }
        echo 
"<div class='main_bord'>n";
        if (isset(
$title) && $title != NULL || isset($navigation))
        {
            echo 
"<div class='header_navig'>n";
            if (isset(
$navigation))echo $navigation; else echo $title;
            echo 
"n";
            echo 
"</div>n";
        }
    }
?>
Онлайн: 1
Реклама