Файл: incfiles/bhead.php
Строк: 195
<?php
if (!empty($user_id) && $device == 'Computer') $rand = rand(0000,9999);
if ($ajax_query == false)
{
echo '<!DOCTYPE html><html lang="ua">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=1">
<meta name="keywords" content="'.lang('украинский,украинская,социальная,социальный,сеть','український,українська,соціальна,соціальний,мережа').'" />
<meta name="description" content="LiveBook.com.ua - '.lang('социальная сеть Украины','соціальна мережа України').'" />
<link rel="shortcut icon" href="'.URL.'/design/img/favicon.ico" />
<link rel="stylesheet" href="'.URL.'/design/style.css?r='.$rand.'" type="text/css"/>
<link rel="stylesheet" href="'.URL.'/design/style2.css?r='.$rand.'" type="text/css"/>';
echo'<script src="'.URL.'/jscript/jquery.js" type="text/javascript"></script>
<script src="'.URL.'/jscript/ajaxupload.3.5.js" type="text/javascript"></script>
<script src="'.URL.'/jscript/form.js" type="text/javascript"></script>
<script src="'.URL.'/jscript/page.js" type="text/javascript"></script>';
if (!empty($user_id) && $device == 'Computer')echo'
<script type="text/javascript" src="'.URL.'/jscript/soundmanager2-nodebug-jsmin.js"></script>
<script src="'.URL.'/jscript/audio.js" type="text/javascript"></script>';
if (!empty($user_id) && $device == 'Computer') echo '<script type="text/javascript" src="'.URL.'/jscript/bar-ui.js"></script>
<link rel="stylesheet" href="'.URL.'/design/bar-ui.css?r='.$rand.'" type="text/css"/>';
?>
<script type="text/javascript">
soundManager.url = '/swf/';
soundManager.onload = function(){};
soundManager.onerror = function(){alert('Error!');};
</script>
<?
echo '<title>'.(!empty($title)?$title:'LiveBook.com.ua - '.lang('социальная сеть Украины!','соціальна мережа України!')).'</title>
</head>
<body><div id="box_player"></div>';
if ($device == 'Computer') echo '<div class="body for_pc"></div>';
}
?>
<script type="text/javascript">
document.title = '<?echo $title;?>';
</script>
<?
if ($ajax_query == false)
{
echo '<div class="head"><span>';
if (!empty($user_id) && $device == 'Computer') require_once HOME.'/incfiles/headplayer.php';
echo '<div class="head_nav">';
if (!empty($user_id)) echo '<a id="home" href="'.URL.'/user/menu.php" onclick="Page.Go(this.href); return false"></a>
<a id="mail" href="'.URL.'/mail/" onclick="Page.Go(this.href); return false"><span id="count_mail_mobile">'.($user['notifications_mail']>0?'<b>'.$user['notifications_mail'].'</b>':'').'</span></a>
<a id="journal" href="'.URL.'/user/journal.php" onclick="Page.Go(this.href); return false"><span id="count_journal_mobile">'.($user['notifications_journal']>0?'<b>'.$user['notifications_journal'].'</b>':'').'</span></a>
<a id="user" href="'.URL.'/?id='.$user_id.'" onclick="Page.Go(this.href); return false"></a>';
else echo '<div class="logo"><img style="height:40px; margin-top: -4px;" src="'.URL.'/design/img/lb.jpg"/></div>';
echo '</div></span></div>';
echo '<table cellpadding="0" cellspacing="0"><tr>
<td class="content_left">
<div class="logo"><img style="height:40px; margin-top: -4px;" src="'.URL.'/design/img/lb.jpg"/></div>
<div class="content_block">';
}
if ($ajax_query == false && !empty($user_id))
{
echo '<a href="'.URL.'/?id='.$user_id.'" onclick="Page.Go(this.href); return false"><li><img src="'.URL.'/design/img/menu/user.png"/>'.lang('Моя Страница','Моя Сторінка').'</li></a>
<a href="'.URL.'/feed/" onclick="Page.Go(this.href); return false"><li><img src="'.URL.'/design/img/menu/feed.png"/>'.lang('Новости','Новини').'</li></a>
<a href="'.URL.'/friends/?id='.$user_id.'" onclick="Page.Go(this.href); return false"><li><img src="'.URL.'/design/img/menu/users.png"/>'.lang('Друзья','Друзі').'<span id="count_friends">'.($user['notifications_friends']>0?'<b>'.$user['notifications_friends'].'</b>':'').'</span></li></a>
<a href="'.URL.'/user/journal.php" onclick="Page.Go(this.href); return false"><li><img src="'.URL.'/design/img/menu/journal.png"/>'.lang('Ответы','Відповіді').'<span id="count_journal">'.($user['notifications_journal']>0?'<b>'.$user['notifications_journal'].'</b>':'').'</span></li></a>
<a href="'.URL.'/mail/" onclick="Page.Go(this.href); return false"><li><img src="'.URL.'/design/img/menu/mail.png"/>'.lang('Сообщения','Повідомлення').'<span id="count_mail">'.($user['notifications_mail']>0?'<b>'.$user['notifications_mail'].'</b>':'').'</span></li></a>
<a href="'.URL.'/photos/?id='.$user_id.'" onclick="Page.Go(this.href); return false"><li><img src="'.URL.'/design/img/menu/photo.png"/>'.lang('Фотоальбомы','Фотоальбоми').'</li></a>
';
if ($user['level'] > 0) echo '<a href="'.URL.'/adm/" onclick="Page.Go(this.href); return false"><li><img src="'.URL.'/design/img/menu/exit.png"/>'.lang('Админ-панель','Адмін-панель').'</li></a>';
}
else if ($ajax_query == false && empty($user_id) && $index == false)
{
echo '<div class="menu">
<form action="'.URL.'" method="post">
<li>
E-mail:<br/>
<input class="input" type="text" name="auth_mail"/>
</li><li>
Пароль:<br/>
<input class="input" type="password" name="auth_pass"/>
</li><center><li>
<input class="button" type="submit" value="'.lang('Войти','Увійти').'"/>
</ceneter></li>
</form>
<li><center><a href="'.URL.'/restore.php" onclick="Page.Go(this.href); return false">'.lang('Забыли пароль?','Забули пароль?').'</a></center></li>
<li><center><a href="'.URL.'/reg.php" onclick="Page.Go(this.href); return false">'.lang('Регистрация','Зареєструватися').'</a></center></li>
</div>';
}
if ($ajax_query == false) echo '</div><div class="scroll_fix_bg"></div></td><td class="content"></div>';
echo '<div id="notifications"></div><div class="wrap">';
if (!empty($arr_user) && $arr_user['ban'] == 1)
{
echo err(lang('Страница пользователя заблокирована администрацией сайта.','Сторінка користувача заблокована адміністрацією сайту.'));
require_once HOME.'/incfiles/foot.php'; exit;
}
?>