Файл: pages/rules.php
Строк: 47
<?php
include '../engine/includes/start.php';
$banpage=true;
$set['title'] = __('Правила');
include H . 'engine/includes/head.php';
if (is_file(H.'engine/files/languages/'.Core::$language.'/rules.txt'))
echo nl2br(htmlspecialchars(file_get_contents(H.'engine/files/languages/'.Core::$language.'/rules.txt')));
elseif (is_file(H.'engine/files/data/rules.txt'))
echo nl2br(htmlspecialchars(file_get_contents(H.'engine/files/data/rules.txt')));
elseif ($creator)
error_catch(null, null, null, null, 'file "engine/files/languages/'.Core::$language.'/rules.txt" not found', 'server');
echo ($user_id ?
'<a href="/pages/menu.php"><div class="link">'.__('Кабинет').'</div></a>' :
'<a href="/pages/registration.php"><div class="link">'.__('Регистрация').'</div></a>') .
'<a href="/"><div class="link">'.__('Главная').'</div></a>';
include '../engine/includes/foot.php';