Просмотр файла modile/forum/menu.php

Размер файла: 918B
<?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" align="center">'.$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 '<div style="margin: 0px 4px;"><a class="mess1" href="?page=forum&&stat=read_kat&kat='.trim($forum_r[$forum_cc]).'">'.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>';
?>