Размер файла: 892B
<?php
$forum_r0 = @file($cms.'forum/base/catalog.txt');
$forum_c0 = count($fprum_r);
$forum_cc0 = 0;
echo '<center>';
while ($forum_r0[$forum_cc0] != '')
{
$forum_id = explode('|',$forum_r0[$forum_cc0]);
echo '
<div class="mess1">'.$forum_id[0].'</div>
<br>';
$forum_r = @file($cms.'forum/base/'.trim($forum_id[1]).'.txt');
$forum_c = count($fprum_r);
$forum_cc = 0;
while ($forum_r[$forum_cc] != '')
{
echo '<a href="?page=forum&&stat=read_kat&kat='.trim($forum_r[$forum_cc]).'"><div class="mess1" style="margin: 0px 4px;">'.file_get_contents($cms.'forum/'.trim($forum_r[$forum_cc]).'/namekat.txt').'</a></div>';
echo '<div style="margin: 0px 4px;" class="mess2">'.file_get_contents($cms.'forum/'.trim($forum_r[$forum_cc]).'/opiskat.txt').'</div>';
echo '<br>';
$forum_cc++;
}
echo '
<br>
';
$forum_cc0++;
}
echo '</center>';
?>