چطوري edit كنم اين رو؟ php كارها كمك

ahvazcity

Member
سلام من ميخوام به جاي اينكه اين بلوك اخبار bbc رو نشون بده اخبار ITNA رو نشون بده چه كار بايد كنم؟
اين از بلوك bbc
<?php

/*******************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2001 by Francisco Burzi ([email protected]) */
/* 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. */
/* */
/* Updated 02-06-2002 by: Mat Verdonschot ([email protected]) */
/* block-News v1.0 */
/* http:/mat.allfreetemplates.com */
/* For Nuke 5.5 */
/* */
/* In case a user selects the Dutch Interface Language the Dutch Nu-NL news is */
/* displayed in the block. In case a user selects the English Interface */
/* Language the English BBC news is displayed in the block. */
/* */
/* Updated 07-08-2002 by René Hart ([email protected]) */
/* Changes made necessary as BBC changed there newspage layout */
/* For Nuke 5.5/5.6 */
/* block-News v1.1 */
/* Modified for BBC News by theoffiz.com - 26st August 2002 */
/* Modified then by Martin Couture herc.zapto.org - 24th Feb 2003 */
/*******************************************************************************/

if( eregi( "block-News-BBC.php", $PHP_SELF ) )
{
Header( "Location: index.php" );
die( );
}

global $currentlang;

$rf = file_get_contents("http://itna.ir/news.js");
$grab = eregi( "<a name=\"startcontent\"></a>(.*)OTHER TOP STORIES", $rf, $printing );

$printing[ 1 ] = str_replace( "<a name=\"startcontent\"></a>", "<TABLE WIDTH=\"100%\" CELLPADDING=\"0\" CELLSPACING=\"0\"><TR><TD VALIGN=\"TOP\" WIDTH=\"1\" ALIGN=\"LEFT\">» </TD><TD ALIGN=\"LEFT\" WIDTH=\"100%\">", $printing[ 1 ] );
$printing[ 1 ] = str_replace( "</div>", "</TD></TR></TABLE>", $printing[ 1 ] );
$printing[ 1 ] = str_replace( "<span class=\"h2\">", "", $printing[ 1 ] );
$printing[ 1 ] = str_replace( "<a href=\"", "<br><A target=_blank HREF=\"http://news.bbc.co.uk", $printing[ 1 ] );
$printing[ 1 ] = str_replace( "/low/", "/hi/", $printing[ 1 ] );
$printing[ 1 ] = str_replace( "</span>", "", $printing[ 1 ] );
$printing[ 1 ] = str_replace( "<br><br>", "", $printing[ 1 ] );
$printing[ 1 ] = str_replace( "<hr>", "", $printing[ 1 ] );
$printing[ 1 ] = str_replace( "<p>", "", $printing[ 1 ] );

$content = $printing[ 1 ]."&lt;p align=\"center\">&lt;a href=\"http://news.bbc.co.uk/2/hi/africa/default.stm\" target=\"_blank\"><img border=\"0\" src=\"images/blocks/bbcnews.gif\">&lt;/a>&lt;/p>";


?>


اينهم از اخبار ايتنا
&lt;script language="JavaScript" src="http://itna.ir/news.js">&lt;/script>
البته اينو برا اين ميپرسم كه وقتي انرو خواستم يه بلوك كنم php ميگفت اجازه نميده.
كمك كنيد لطفا...
 

جدیدترین ارسال ها

بالا