Файл: core/cuctema/function/games_aut.php
Строк: 120
<?
function games_aut()
{
global $set;
if ($set['web']==false)
{
if (isset($_SERVER["HTTP_USER_AGENT"]) && preg_match('#up-browser|blackberry|windows ce|symbian|palm|nokia#i', $_SERVER["HTTP_USER_AGENT"]))
$webbrowser=false;
elseif (isset($_SERVER["HTTP_USER_AGENT"]) && (preg_match('#windows#i', $_SERVER["HTTP_USER_AGENT"]) ||preg_match('#linux#i', $_SERVER["HTTP_USER_AGENT"]) ||preg_match('#bsd#i', $_SERVER["HTTP_USER_AGENT"]) ||preg_match('#x11#i', $_SERVER["HTTP_USER_AGENT"]) ||preg_match('#unix#i', $_SERVER["HTTP_USER_AGENT"]) ||preg_match('#macos#i', $_SERVER["HTTP_USER_AGENT"]) ||preg_match('#macintosh#i', $_SERVER["HTTP_USER_AGENT"])))
$webbrowser=true;else $webbrowser=false; // определение типа браузера
if ($webbrowser == true)
{
$web = true;
} else $web = false;
global $user;
$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'];
$color['newevent'] = '#'.$user['panel_newevent'];
$panel = array();
$panel['font_size'] = $user['panel_font_size'];
if (isset($user))
{
?>
<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-spacing: 2px;
border-color: gray;
}
.navi {
color: <? echo $color['border'];?>;
font-size: <? echo $panel['font_size'];?>;
padding:4px 2px;
background-color:<? echo $color['fon'];?>;
border: 1px solid #445988;
}
#navi {
color: <? echo $color['border'];?>;
font-size: <? echo $panel['font_size'];?>;
padding:4px 2px;
background-color:<? echo $color['fon'];?>;
border: 1px solid #445988;
}
#navi a:link,#navi a:visited {
color:<? echo $color['link'];?>;
text-decoration:none;
font-size: <? echo $panel['font_size'];?>;
}
#navi a:focus,#navi a:hover,#navi a:active {
color:<? echo $color['focus_link'];?>;
background-color:<? echo $color['focus_fon'];?>;
}
.navi a:link,#navi a:visited {
color:<? echo $color['link'];?>;
text-decoration:none;
font-size: <? echo $panel['font_size'];?>;
}
.navi a:focus,#navi a:hover,#navi a:active {
color:<? echo $color['focus_link'];?>;
background-color:<? echo $color['focus_fon'];?>;
}
#time {
background-color:#ccc;
color:#000;
font-size:medium;
text-align:right;
padding:0px 10px 0px 0px;
}
.newevent {
color:<? echo $color['newevent'];?>;
font-size: <? echo $panel['font_size'];?>;
vertical-align:bottom;
}
/*
.time {
background-color: #ccc;
color: #000;
font-size: small;
text-align: right;
padding: 0px 10px 0px 0px;
}
*/
.time {
background: #F5F5F5;
border-bottom: 1px solid #A9B6C9;
color: #000000;
font-size: small;
padding: 6px;
text-align: right;
border-left:1px solid #B3B3B3;
border-right:1px solid #B3B3B3;
}
</style>
<div class='navi'>
<a href='/'>Vneti</a>/<a href='/info.php'><?echo "".$user['nick']."";?></a>/<a href='/my_games/'>Игры</a>
<?
echo '</div>';
}
else
{
//echo "<marquee>Для того, чтобы пользоваться всеми возможностями сайта необходимо пройти <a href='/aut.php'>Авторизацию</a>. Если Вы еще не зарегистрированы, то Вам необходимо пройти процесс <a href='/reg.php'>Регистрации</a>.</marquee>n";
echo "<div class='location_bar line_175' style='text-align: right;border-bottom: 1px solid #CCCACA;'>n";
if ($_SERVER['PHP_SELF']!='/aut.php')echo "<a href='/aut.php'>Вход</a>n";
if ($_SERVER['PHP_SELF']!='/reg.php')echo "<a href='/reg.php'>Регистрация</a>n";
echo "</div>n";
}
echo "</div>n";
}
}
?>