X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fkml.cgi;h=a156edc1574992e71145fae651789249006747a3;hp=47435c74a49a609a7496ff34b8736d18ce7f4112;hb=3f2a7b01b59902faed5767d81e2959e131bdbdfd;hpb=8cbe016ac2c28cd209c48f053f361573368e7988 diff --git a/httemplate/view/kml.cgi b/httemplate/view/kml.cgi index 47435c74a..a156edc15 100644 --- a/httemplate/view/kml.cgi +++ b/httemplate/view/kml.cgi @@ -1,13 +1,11 @@ <% $kml->archive %>\ <%init> -my ($latitude, $longitude, $name) = @_; -#would be nice to pass in customer or prospect name too... - my $kml = Geo::GoogleEarth::Pluggable->new; $kml->Point( map { $_=>scalar($cgi->param($_)) } qw( name lat lon ) ); #http_header('Content-Type' => 'application/vnd.google-earth.kml+xml' ); #kml http_header('Content-Type' => 'application/vnd.google-earth.kmz' ); #kmz - +( my $name = $cgi->param('name') ) =~ s/[^a-z0-9]/_/gi; #perhaps too restrictive +http_header('Content-Disposition' => "filename=$name.kmz" );