View file www/obv/index.php

File size: 513B
<?php
Defined('INDEX_S_S') or die ('Доступ запрещен!!!');
if (filesize($cms.'obv/base.txt') < 1)
{
echo 'Объявлений нет.';
}
else
{
 $o_buf = @file($cms.'obv/base.txt');
 $o_cnt = count($o_buf);
 srand();
 $o_tmp = rand(0,($o_cnt-1));
 $o_obv = explode('|',$o_buf[$o_tmp]);
 echo '
   <div  class="ramka">'.($o_obv[0]).'</div>
   '.substr($o_obv[1],0,200).'...<br />
   <br />
   <div ><a class="knopka" href="/?page=obv_info&obv_id='.$o_tmp.'">&nbsp;Подробнее&nbsp;</a></div>

      ';

}
?>