Allah razi Olsun.
haberal.php nin icindeki kodlar böyle.......
burda bir degisiklik yapmak gerekiyor ama anlamadim bir türlü.
<?
header("Content-Type: text/xml");
define('ANADIZIN','./../../');
require_once(ANADIZIN."config.php");
$baglanti= mysql_connect("$dbhost","$dbuname","$dbpass");
if ($baglanti)
mysql_select_db("$dbname");
else die("veritabanı hatası");
echo "<?xml version=\"1.0\" encoding=\"utf8\"?>\n\n";
mysql_query("SET NAMES 'utf8'");
$sorgu = mysql_query("SELECT sid, title, hometext FROM ".$prefix."_stories ORDER BY sid DESC LIMIT 5");
echo'<PICS>
<OPTIONS><CHANGETIME>8000</CHANGETIME></OPTIONS>';
echo "\n\n";
while (list($rsid, $rtitle, $rtext) = mysql_fetch_array($sorgu)) {
preg_match_all('/\<img(.*?)src="(.*?)"/s', $rtext, $buldum);
$resim=$buldum[2][0];
if ($resim!=""){
if (!eregi("http://",$resim)){
if (substr($resim,0,1)=="\\")
$resim=substr($resim,1,strlen($resim)-1);
if (substr($resim,strlen($resim)-1,1)=="\\")
$resim=substr($resim,0,strlen($resim)-1);
$resim="
http://www.ulkudas.gen.tr/$resim";
}
}
else
$resim="
http://www.ulkudas.gen.tr/images/logo.gif";
$rtext = preg_replace("/(<\/?)(\w+)([^>]*>)/e",
"",
$rtext);
$rsid = intval($rsid);
$rtitle=htmlspecialchars($rtitle);
$rtitle=stripslashes($rtitle);
$rtitle=str_replace("\"","",$rtitle);
$rtitle=str_replace("'","",$rtitle);
$rtext=htmlspecialchars($rtext);
$rtext=stripslashes($rtext);
$rtext=str_replace("\"","",$rtext);
$rtext=str_replace("'","",$rtext);
echo "<PIC>\n";
echo "<SMALL_PATH>".htmlspecialchars($resim)."</SMALL_PATH>\n";
echo "<BIG_PATH>".htmlspecialchars($resim)."</BIG_PATH>\n";
echo "<TEXT>$rtitle</TEXT>\n";
echo "<LINK>modules.php?name=News&file=article&sid=$rsid</LINK>\n";
echo "<MAINTEXT>$rtext</MAINTEXT>\n";
echo "</PIC>\n\n";
}
echo '</PICS>';
?>