2100) return false; if ($n2 < 0 || $n2 > 12) return false; if ($n3 < 0 || $n3 > 31) return false; if ($n4 < 0 || $n4 > 9) return false; $n=substr($name, 8, 5); if ($n != 'n.htm') return false; return true; } function menu_line_view($n, $a) { echo('
  • '.$n.''); } $news_files = ""; $handle=opendir("$path"); for ($i=0; $news_file=readdir($handle); $i++) if (testnews($news_file)) $news_files[$i] = $news_file; closedir($handle); rsort($news_files); $count_news = sizeof($news_files); sscanf($_REQUEST['news'], "%04d", $news_year); if (!isset($_REQUEST['news'])) $name_year = "Бардык жаңылыктар"; else $name_year = $news_year."-жыл үчүн"; ?>
          
    ", $y, $m, $d); printf("

    %02d.%02d.%04d

    ", $d, $m, $y); require("$path".$news_files[$i]); echo("


    "); } } ?>