'.$year.''; echo '
'; foreach ( $dirs as $dirn ) { if ($dirn!=$year){echo ''.$dirn.'   ';} } echo '
'; $path = $articlesdir.$year.'/'; $files = array(); if ($dir1 = @opendir($path)) { while (($file = readdir($dir1)) !== false) {if ($file != "." && $file != "..") {array_push ($files, $file);} } closedir($dir1); } if (count($files)){ rsort ($files); foreach ( $files as $namefile ) {//Перебор статей echo ''; $file=fopen($path.$namefile,"r"); while (!feof($file)){ $strfile = fgets($file, 4096); if (strstr($strfile, '')){ echo '<td><a class="blue12" href="'.$path.$namefile.'" title="Статьи" target="_self">'.substr(trim(strip_tags($strfile)), 36).'</a></td>'; echo '</tr><tr><td valign="top"> </td><td> </td></tr>'; break; } } fclose($file); } } else {echo '<p>Нет данных';} include ("articlesbot.htm"); ?>
19-07-2010
'.substr($namefile,10,2).'-'.substr($namefile,8,2).'-'.substr($namefile,4,4).'