File size: 938B
<?
include_once 'sys/inc/start.php';
include_once 'sys/inc/compress.php';
include_once 'sys/inc/sess.php';
include_once 'sys/inc/home.php';
include_once 'sys/inc/settings.php';
include_once 'sys/inc/db_connect.php';
include_once 'sys/inc/ipua.php';
include_once 'sys/inc/fnc.php';
$banpage = true;
include_once H.'sys/inc/user.php';
$set['title']='Правила';
include_once H.'sys/inc/thead.php';
title();
aut();
echo "<div class='p_m'>";
if (is_file(H.'sys/add/rules.txt'))
{
$f=file(H.'sys/add/rules.txt');
$k_page=k_page(count($f),$set['p_str']);
$page=page($k_page);
$start = $set['p_str']*($page-1);
$end = $set['p_str']*$page;
for ($i= $start; $i < $end and $i<count($f);$i++)
echo '(<span style="color:#0693d5">'.($i + 1).'</span>) '.output_text($f[$i])."<br />\n";
}
echo "</div>";
if ($k_page>1)str("?",$k_page,$page); // Вывод страниц
include_once H.'sys/inc/tfoot.php';
?>