Файл: CMS/core/modules/rules.inc.php
Строк: 15
<?php
if (!defined('CMS')) { die('Access Denied!'); }
$row = $db->selectRow( "SELECT * FROM ?_pages WHERE `name` = 'rules' LIMIT 1" );
if (!empty($row)) {
$row['text'] = html_entity_decode($row['text'], ENT_QUOTES, 'UTF-8');
if ($row['allow_br'] == 1) echo '<div class="b">' . nl2br(bb_code($row['text'])) . '</div>';
else echo '<div class="b">' . bb_code($row['text']) . '</div>';
if ($config['share_links'] == 1) echo '<div class="b"><script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
<div class="yashare-auto-init" data-yashareL10n="ru" data-yashareType="button" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,lj,moikrug"></div></div>';
}
else {
show_error('Правила ещё не написаны или временно не доступны!');
}
?>