<?xml version="1.0" encoding="windows-1251" ?><rss version="2.0"
xmlns="http://backend.userland.com/rss2"
xmlns:yandex="http://news.yandex.ru"
>
<channel>
<title>Снежное информ</title>
<link>http://www.snezhnoe.in.ua/</link>
<description>Газета города Снежное Донецкой области Снежное информ</description>
<image>
<url>/image/logo.png</url>
<title>Снежное информ</title>
<link>https://snezhnoe.in.ua/</link>
</image>


<title>Снежное информ - газета города Снежное Донецкой области</title>
<link>https://snezhnoe.in.ua/index.php</link>
<description>Снежное информ - газета города Снежное Донецкой области</description>
<language>ru</language>
<generator>Sergey Peshekhonow script</generator>
<?


$databaze = mysql_query("SELECT * FROM $textable WHERE status=1 $filtre ORDER by data DESC LIMIT 0,14");
while($row = mysql_fetch_array($databaze)) 
		{	$id=$row['id'];
      $nameurl=$row['zag'];  
      $dataurl=chpu($nameurl);
      $dataurl.="-id-$id";
      $msg=$row['msg'];
      $vremya=$row['data'];
      $pubdate=date("r", $vremya); 
       
      $base_foto=$row['foto'];

$array_foto=explode("|",$base_foto);
$count_foto=count($array_foto);
$count_foto=$count_foto-1;



$msg = preg_replace("/(\r\n){2,}/", "\r\n", $msg); //если 2 и более подряд

      $datatext=$row['msg'];
      $datatext=str_replace("\r\n"," ",$datatext);
      $datatext=substr($datatext,0,250);

$array_msg=explode("\r\n",$msg);
$count_msg=count($array_msg);

if ($count_foto>$count_msg) {
$msg="";
for ($m=0; $m < $count_msg; $m++) {
$array_foto[$m]=trim($array_foto[$m]);
//echo"$fotodir/$array_foto[$m]<br>";
if (is_file("$fotodir/$array_foto[$m]")) {$fotoname[$m]="<div align='center'><img src='$httpfotodir/$array_foto[$m]' alt='' border='1' Align='center' height='400'></div><br>";} else {$fotoname[$m]="";}
$msg.="$fotoname[$m] $array_msg[$m]<br><br>";
}

$sm_foto.="<div id='gallery'>";

for ($f=0; $f < $count_foto; $f++) {

if (is_file("$fotodir/sm-$array_foto[$f]")) {$sm_foto.="<a href='$httpfotodir/$array_foto[$f]' title='$zag'><img hspace='5' vspace='5' border='1' height='50' src='$httpfotodir/sm-$array_foto[$f]' ></a>";}

}
$sm_foto.="</div>";
$msg.="<br><b>Все фото:</b></br>$sm_foto";
} else {$msg="";
for ($m=0; $m < $count_msg; $m++) {
$array_foto[$m]=trim($array_foto[$m]);
//echo"$fotodir/$array_foto[$m]<br>";
if (is_file("$fotodir/$array_foto[$m]")) {$fotoname[$m]="<div align='center'><img src='$httpfotodir/$array_foto[$m]' alt='' border='1' Align='center' height='400'></div><br>";} else {$fotoname[$m]="";}
$msg.="$fotoname[$m] $array_msg[$m]<br><br>";
}}  


$msg = rsslent($msg);
$datatext = rsslent($datatext);
$dataurl="http://$host/$dataurl";

if ($count_foto>0) {
for ($w=0; $w < $count_foto; $w++) {
if (is_file("$fotodir/$array_foto[$w]")) {
$type=explode(".",$array_foto[$w]);
$enclosure.="<enclosure url=\"$httpfotodir/$array_foto[$w]\" type=\"image/$type[1]\" />";
}}}

include "../mdu/rss.mdu";

$enclosure="";

}
?>
<!-- Powered by Sergey Peshekhonow script -->
</channel>
</rss>
