$pos_kontinent_1) { $tmp2 = substr($tmp1, 0, $pos_kontinent_2); $tmp1 = $tmp2; } else { $tmp2 = ""; } //echo "$tmp1
$tmp2

"; $parameter_array = explode("&",$tmp1); $found_kontinent = ""; $found_land = ""; $found_region = ""; $found_ort = ""; $found_hotel = ""; $del_kontinent = ""; $del_land = ""; $del_region = ""; $del_ort = ""; $del_hotel = ""; foreach ($parameter_array as $parameter) { list($key, $value) = split ("=",$parameter); if($key == "kontinent") { $found_kontinent = "Y"; } if($key == "land") { $found_land = "Y"; } if($key == "region") { $found_region = "Y"; } if($key == "ort") { $found_ort = "Y"; } if($key == "hotel") { $found_hotel = "Y"; } if($key == "anz") { $found_anz = "Y"; } } if($found_hotel=="Y") { $del_kontinent = "Y"; $del_land = "Y"; $del_region = "Y"; $del_ort = "Y"; } elseif ($found_ort=="Y") { $del_kontinent = "Y"; $del_land = "Y"; $del_region = "Y"; } elseif ($found_region=="Y") { $del_kontinent = "Y"; $del_land = "Y"; } elseif ($found_land=="Y") { $del_kontinent = "Y"; } foreach ($parameter_array as $parameter) { if($parameter=="pid=1764_1050") { $parameter=""; } elseif ($parameter=="typ=anf") { $parameter=""; } else { list($key, $value) = split ("=",$parameter); $value = urldecode($value); $value = str_replace("Ä","Ae",$value); $value = str_replace("Ö","Oe",$value); $value = str_replace("Ü","Ue",$value); $value = str_replace("ä","ae",$value); $value = str_replace("ö","oe",$value); $value = str_replace("ü","ue",$value); $value = str_replace(" / ","-",$value); $value = str_replace("/","-",$value); $value = str_replace(" & ","-",$value); $value = str_replace("&","-",$value); $value = str_replace(" _ ","-",$value); $value = str_replace("-","-",$value); $value = str_replace(" ","-",$value); if($key == "kontinent" && $del_kontinent=="Y") { $new_url = $new_url; } elseif ($key == "land" && $del_land=="Y") { $new_url = $new_url; } elseif ($key == "region" && $del_region=="Y") { $new_url = $new_url; } elseif ($key == "ort" && $del_ort=="Y") { $new_url = $new_url; } else { $new_url .= $key."_".urlencode($value)."__"; } } } $new_url = substr($new_url, 0, strlen($new_url) - 2); if(trim($new_url) == "anz_mb") { $content = $txt[1]."href=\"/\"".$txt[3]; } else { $content = $txt[1]."href=\"/hotelbewertungen/".$new_url.".html\"".$txt[3]; } } ?> Hotelbewertungen und Hotelkritiken zu Hotels auf der ganzen Welt