content->url; if(isset($hq)) { if($id == '4' || $id == '5' || $id == '6' || $id == '7') { header('location:'.preg_replace('/&p=(.*?)$/','',$url->hd)); } else { header('location:'.preg_replace('/&p=(.*?)$/','&p=3000',$url->hd)); }; } else if($id == '0' || $id == '2' || $id == '4' || $id == '6') { header('location:'.$url->hd); } else { header('location:'.$url->sd); };