$string= $news_content['long_description'];
//echo $string;
if(!$string)
{
foreach($all_up_list as $item):
?>
echo $item['title']."
echo $item['long_description'];
endforeach;
}
else
{
?>
echo $news_content['title']."
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] = '/robi\/robi\//';
$patterns[1] = '/iba_db\/iba_db\//';
$replacements = array();
$replacements[0] = 'robi/';
$replacements[1] = 'iba_db/';
echo preg_replace($patterns, $replacements, $string);
}
}
?>