','',$news);
newsecho($news);
exit();
}
if(($news==bbc) && ($show))
{
$url = "http://news.bbc.co.uk/low/arabic/$show";
$string = implode("\n", file($url));
$string2 = explode('',$string);
$string3 = explode('',$string2[1]);
$news = str_replace('href="/hi/arabic/','href="index.php?news=bbc&show=',$string3[0]);
$news = str_replace('http://news.bbc.co.uk/hi/arabic/','href="index.php?news=bbc&show=',$news);
$news = str_replace('src="http://newsimg.bbc.co.uk','src="http://newsimg.bbc.co.uk',$news);
$news = str_replace('SRC="http://newsimg.bbc.co.uk','SRC="http://newsimg.bbc.co.uk',$news);
$news = str_replace('src="/','src="http://newsimg.bbc.co.uk/',$news);
$news = str_replace('SRC="/','SRC="http://newsimg.bbc.co.uk/',$news);
newsecho($news);
exit();
}
if(($news==cnn) && (!$de))
{
$url = "http://arabic.cnn.com/index.html";
$string = @implode("\n", file($url));
$site= "http://arabic.cnn.com/";
$string2 = explode('', $string);
$string3 = explode('$new3
";
newsecho($new3);
exit();
}
if(($news==cnn) && ($de))
{
$url = "$de";
$site= "http://arabic.cnn.com/";
$url1 = explode('index.html', $url);
$string = implode("\n", file($url));
$string2 = explode('', $string);
$string3 = explode('
', $string2[1]);
$news = str_replace('src="','src="'.$url1[0],$string3[0]);
$news = str_replace('href="','href="index.php?news=cnn&de='.$site,$news);
$news = str_replace('style="font-size:24;','style="font-family:Arabic Transparent;font-size:24;',$news);
$news = str_replace('arabic.cnn.com/http://arabic.cnn.com','arabic.cnn.com',$news);
$news = str_replace('width="300"','width="220"',$news);
$news = str_replace('width="282"','width="200"',$news);
$news = str_replace('width="280"','width="210"',$news);
$news = str_replace('width="210"','width="130"',$news);
newsecho($news);
exit();
}
if(($news==alwatan) && ($de) && ($bgcolor))
{
if(($de=="culture.htm") || ($de=="culture/culture09.htm") || ($de=="culture/culture08.htm") || ($de=="culture/culture07.htm") || ($de=="culture/culture02.htm") || ($de=="culture/culture04.htm") || ($de=="culture/culture06.htm") || ($de=="culture/culture05.htm") || ($de=="culture/culture01.htm") || ($de=="culture/culture03.htm"))
{
$hatb='';
}
else {
$hatb=' | ';
}
$url1 = "http://www.alwatan.com.sa/daily/index.htm";
$strings = @implode("\n", file($url1));
$strings2 = explode('", $strings2[1]);
$day = str_replace('">',"",$strings3[0]);
$day = str_replace(' ',"",$day);
//-----------------------------//
$url = "http://www.alwatan.com.sa/daily/".$day."/".$de."";
$string = @implode("\n", file($url));
$string2 = explode(" | ", $string);
$string3 = explode("$hatb", $string2[1]);
$news = str_replace('href="',"href=\"index.php?news=alwatan&bgcolor=".$bgcolor."&de=",$string3[0]);
$news = str_replace('src="',"src=\"http://www.alwatan.com.sa/daily/".$day."/",$news);
$news =str_replace('../Pictures',"/Pictures",$news);
$news =str_replace('0000CC',"FFFFFF",$news);
$news =str_replace('CC0033',"FFFFFF",$news);
$news =str_replace('size="3"','size="2"',$news);
//$news =str_replace(' | ',"",$news);
$Anews =$news;
//$Anews .=" |
";
newsecho($Anews);
exit();
}
if($news)
{
$url = "http://www.aljazeera.net/".$news."";
$string = implode("\n", file($url));
$site= "http://www.aljazeera.net/";
$string2 = explode('', $string);
$string3 = explode(' | ', $string2[1]);
$news = str_replace('src="','src="'.$site,$string3[0]);
$news = str_replace('href="../../','href="index.php?relatedArticles=',$news);
$news = str_replace('href="../','href="index.php?relatedArticles=',$news);
$news = str_replace('src="../../',"src=\"".$site."/",$news);
$news = str_replace('http://www.aljazeera.net/images/j-details.gif',"images/j-details.gif",$news);
$news = str_replace('http://www.aljazeera.net/../images/j-details.gif',"images/j-details.gif",$news);
$news = str_replace('http://www.aljazeera.net/../../images/j-details.gif',"images/j-details.gif",$news);
$news = str_replace('href="/mritems/streams/','href="http://www.aljazeera.net/mritems/streams/',$news);
newsecho($news);
exit();
}
if($relatedArticles)
{
$url = "http://www.aljazeera.net/".$relatedArticles."";
$string = implode("\n", file($url));
$site= "http://www.aljazeera.net/";
$string2 = explode('', $string);
$string3 = explode(' | ', $string2[1]);
$news = str_replace('src="','src="'.$site,$string3[0]);
$news = str_replace('href="../../','href="index.php?relatedArticles=',$news);
$news = str_replace('href="../','href="index.php?relatedArticles=',$news);
$news = str_replace('src="../../',"src=\"".$site."/",$news);
$news = str_replace('href="/mritems/streams/','href="http://www.aljazeera.net/mritems/streams/',$news);
$news = str_replace('Arabic Transparent',"MS Sans Serif",$news);
$news = str_replace('href="index.php?relatedArticles=mritems/streams/video','href="http://www.aljazeera.net/mritems/streams/video',$news);
$news = str_replace('href="index.php?relatedArticles=../../mritems/streams/video','href="http://www.aljazeera.net/mritems/streams/video',$news);
newsecho("".$news."");
exit();
}
else {
$url = "http://www.aljazeera.net/";
$string = @implode("\n", file($url));
$string2 = explode(' | ', $string2[1]);
//$lurl = "http://www.aljazeera.net".$string3[0]."";
//$lstring = @implode("\n", file($lurl));
//$lstring2 = explode('', $lstring);
//$lstring3 = explode('', $lstring2[1]);
//$news=str_replace(' ','',$news);
//$news=str_replace(' ','',$news);
//$links = str_replace('href="','href="alja.php?getcat=',$lstring3[0]);
$links=safeHTML($links);
$lurl = "http://www.aljazeera.net".$string3[0]."";
$lstring = @implode("\n", file($lurl));
$lstring2 = explode('', $lstring);
$lstring3 = explode('', $lstring2[1]);
$news = str_replace('src="','src="http://www.aljazeera.net/',$lstring3[0]);
$news = str_replace('xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:UDF="http://mycompany.com/mynamespace"','',$news);
$news=eregi_replace(" |
|