Skip to content

Commit 3419470

Browse files
track.kml will pass query_string
1 parent 4c27380 commit 3419470

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

track.kml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
<kml xmlns="http://earth.google.com/kml/2.0">
2-
<Document>
3-
<NetworkLink>
4-
<name>Habitat Mobile Tracker</name>
5-
<Url>
6-
<href>http://spacenear.us/tracker/datanew.php?format=kml</href>
7-
<refreshMode>onInterval</refreshMode>
8-
<refreshInterval>20</refreshInterval>
9-
</Url>
10-
</NetworkLink>
11-
</Document>
12-
</kml>
1+
<?php
2+
header('Content-Type: application/vnd.google-earth.kml+xml');
3+
4+
parse_str($_SERVER['QUERY_STRING'], $tmp);
5+
$qstr = htmlspecialchars(http_build_query($tmp));
6+
7+
?>
8+
<kml xmlns="http://earth.google.com/kml/2.0" >
9+
<Document>
10+
<NetworkLink>
11+
<name>Habitat Mobile Tracker</name>
12+
<Url>
13+
<href>http://spacenear.us/tracker/datanew.php?format=kml&amp;<?=$qstr?></href>
14+
<refreshMode>onInterval</refreshMode>
15+
<refreshInterval>20</refreshInterval>
16+
</Url>
17+
</NetworkLink>
18+
</Document>
19+
</kml>
20+

0 commit comments

Comments
 (0)