<rss version="0.91" encoding="utf-8"  xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cf="http://www.microsoft.com/schemas/rss/core/2005">
<channel xmlns:cfi="http://www.microsoft.com/schemas/rss/core/2005/internal" cfi:lastdownloaderror="None">

<title cf:type="text">طريق الحقيقة</title>
<description>...</description>
<link>http://www.factway.net</link>
<language> ar </language>
<copyright cf:type="text"> Copyright 2007 FactWay.net </copyright>


<?
include('action/for_arabic-rss.php');
include('functions.php');
include("action/dbconfig.php");

$link= mysql_connect($host,$db_username,$db_pass)or die(" ");
mysql_select_db($db_factway,$link);

$sql="	SELECT 	*,'الأخبار','news' 
		FROM 	news 
		UNION 
		SELECT 	*,'اطلالة على العالم','world' 
		FROM 	world 
		UNION 
		SELECT 	*,'حوارات','discuss' 
		FROM 	discuss 
		UNION 
		SELECT 	*,'رجال دعوة','characters' 
		FROM 	characters 
		ORDER BY date desc 
		LIMIT 0 , 10";
		
$result=mysql_query($sql);

while($row=mysql_fetch_array($result))
{
	
?>
	<item>
        <title><?print decodingStringToArabic($row['title']);?></title>
        <description><?print decodingStringToArabic(substr(coding2(coding2(coding2(coding2($row['content'])))),0,300));?></description>
        <link>http://www.factway.net/<?print $row[10].'.php?id='.$row['id'];?></link>
        <author><?print decodingStringToArabic($row['owner']);?></author>
        <category><?print $row[9];?></category>
        <pubDate><?print decodingStringToArabic($row['date']);?></pubDate>
    </item>
<?

}
?>
    <image>
  	  <title>شبكة طريق الحقيقة</title>
  	  <url>http://www.factway.net/images/logo.gif</url>
  	  <link>http://www.factway.net/</link>
  	  <description>شبكة طريق الحقيقة</description>
 	</image>
</channel>
</rss>

