اذا ما لقيت الملف .. انسخ التالي وضعه في المفكرة واحفظه باسم backend.php وارفعه للمجلد الرئيسي للمنتدى ,,,
كود:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2001 by Francisco Burzi (fbc@mandrakesoft.com) */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/* */
/*Adapted for vBulletin by Ueli von Ah */
/*http://www.arachid.org */
/************************************************************************/
require("global.php");
header("Content-Type: text/xml");
$result = $getlastpost=$DB_site->query("SELECT threadid, title, postusername FROM thread WHERE visible=1 AND (sticky=1 OR sticky=0) AND open<>10 ORDER BY lastpost DESC LIMIT 10");
if (!result) {
echo "An error occured";
} else {
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n\n";
echo "<!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"\n";
echo " \"http://my.netscape.com/publish/formats/rss-0.91.dtd\">\n\n";
echo "<rss version=\"0.91\">\n\n";
echo "<channel>\n";
echo "<title>$bbtitle</title>\n";
echo "<link>$bburl</link>\n";
echo "<description>Latest threads on $bbtitle</description>\n";
echo "<language>en-UK</language>\n\n";
for ($m=0; $m < mysql_num_rows($result); $m++) {
list($sid, $title, $postusername) = mysql_fetch_row($result);
echo "<item>\n";
echo "<title>$title <br> <font face=tahoma size=1 color=660000>(كتبه:$postusername)</font></title>\n";
echo "<link>$bburl/showthread.php?s=$session[sessionhash]&threadid=$sid</link>\n";
echo "</item>\n\n";
}
echo "</channel>\n";
echo "</rss>";
}
?>