$string= $news_content['long_description'];
//echo $string;
if(!$string)
{
foreach($all_news as $item):
?>
echo $item['title']."
echo $item['long_description'];
endforeach;
}
else
{
?>
echo $news_content['title']."
echo $item['title']."
";?>
echo $item['long_description'];
endforeach;
}
else
{
?>
echo $news_content['title']."
";?>
" width="250" height="167"/>
if($_SERVER['HTTP_HOST']=='202.126.120.118') {
$patterns = array();
$patterns[0] = '/href=\"\//';
$patterns[1] = '/src=\"\//';
$patterns[2] = '/iba_db\/iba_db\//';
$replacements = array();
$replacements[0] = 'href="%27.html"'.$base_url;
$replacements[2] = 'iba_db/';
echo preg_replace($patterns, $replacements, $string);
}
else {
$patterns = array();
$patterns[0] = '/iba\/iba\//';
$patterns[1] = '/iba_db\/iba_db\//';
$replacements = array();
$replacements[0] = 'iba/';
$replacements[1] = 'iba_db/';
echo preg_replace($patterns, $replacements, $string);
}
}
?>