Файл: monst/core/pag/index.php
Строк: 46
<?
if ( isset($_SESSION['referer']) ) {
$_SESSION['referer'] = null_html($_SERVER['HTTP_REFERER']);
}
if ( isset($_GET['from']) ) {
$_SESSION['from'] = null_html($_GET['from']);
}
$user = User_get();
if ( $user ) {
g('/main');
}
?>
<img src='/core/i/logo.jpg' alt='' width='100%'/><br/>
<div style='background: #111; padding: 30px;'>
<span style='color: steelblue; font-size: 30px; ;'>МОНСТРЫ</span>
<div style='float: right; color: #999;'>
https://monst.in<br/>
©2017-2018
</div>
</div>
<br/>
<?
if ( isset($_GET['error']) ) {
$error = $_GET['error'];
$arr = ['javascript', 'cookies', 'login', 'limit'];
if ( in_array($error, $arr) ) {
print '<div class="error_box">' . $lang['index.php']['error'][$error].'</div><br/>';
}
}
?>
<div class='padding'>
<div style='text-align: right;'>
<?=$lang['index.php']['lang']?>: <?=$lang_list[$L]?>
<?
foreach ( $lang_list as $lang_code => $lang_name ) {
if ( $lang_code != $L ) {
print ' <a href="?lang=' . $lang_code . '">' . $lang_name . '</a>';
}
}
?>
</div>
<br/>
<div style='text-align: center;'>
<span style=''><?=$lang['index.php']['about']?></span><br/>
</div>
</div>
<br/>
<a href='/start'><div class='bt_color'><?=$lang['index.php']['button']['start']?></div></a>
<a href='/login'><div class='bt_black' style='border: 0;'><?=$lang['index.php']['button']['login']?></div></a>