',$bn,$grab); } else { $grab = grab1(''.$url.'/result/'.$d.''); //echo$grab; $grab = str_replace('

',$bn,$grab); } } elseif($_GET['dp']) { $dp= $_GET['dp']; $grab = grab1(''.$url.'/'.$dp.'-us'); $grab = str_replace('

',$bn,$grab); } else $grab = grab1(''.$url.'/'); //echo $grab; $tengah = cut($grab,'
','
'); $tengah1 = cut($grab,'','

','

'); //$atas = cut($grab,'

',''); $atas = cut($grab,'
',''); $grab = str_replace($samping,$bn_samping,$grab); $grab = str_replace($atas,$bn_home,$grab); $grab = str_replace($tengah, "",$grab); $grab = str_replace($tengah1,$bn_home,$grab); $grab = str_replace('',''); $grab = str_replace($bawah,'
',$grab); echo $grab; function cut($content,$start,$end){ if($content && $start && $end) { $r = explode($start, $content); if (isset($r[1])){ $r = explode($end, $r[1]); return $r[0]; } return ''; } } ?>