Created
May 18, 2010 10:31
-
-
Save LinuxDoku/404859 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Zustz vom Ort trennen - Unter Zusatz läuft nur nicht Kartenmaterial | |
// Dieser Filter erlaubt nur folgende Patterns: | |
// Erlaubter Zusatz, Ortsname Ortszusatz (Strassen, Postleitzahl, Bekanntes Gebäude) | |
// Alles vor dem Zeichen wird mittels RegEx entfernt | |
$location = $_GET['location']; | |
$location = preg_replace('/([a-zA-Z0-9 ])*, /', '', $location); | |
?> | |
<br /> | |
<iframe id="map" width="924" height="480" style="border: 2px solid;" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&hl=de&geocode=&q=<?php echo $location; ?>&z=13&output=embed"></iframe><br /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment