View file modile/moduls/page/vig.php

File size: 565B
<?php
    if (filesize($cms.'moduls/page/base/pages.txt') != 0)
    {
     $prasd_file = @file($cms.'moduls/page/base/pages.txt');
     $prasd_count = count($prasd_file);
     $pg_1 = $prasd_count-1;
     while ($prasd_file[$pg_1] != '')
     {
      $prasd_pr = explode('|',$prasd_file[$pg_1]);
      if (trim($prasd_pr[0]) != 'none')
      echo '<div><a href="/?page=moduls&id_m=pages&page_line='.$pg_1.'">'.$prasd_pr[0].'</a></div>';
      $pg_1--;
     }
    }
    else
    {
     echo 'Страницы пока не созданы.';
    }
?>