diff options
Diffstat (limited to 'httemplate/view/sector_map-png.cgi')
-rw-r--r-- | httemplate/view/sector_map-png.cgi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/httemplate/view/sector_map-png.cgi b/httemplate/view/sector_map-png.cgi new file mode 100644 index 000000000..7e7e799a8 --- /dev/null +++ b/httemplate/view/sector_map-png.cgi @@ -0,0 +1,8 @@ +<%init> +my ($sectornum) = $cgi->keywords; +my $sector = FS::tower_sector->by_key($sectornum); +if ( $sector and length($sector->image) > 0 ) { + http_header('Content-Type', 'image/png'); + $m->print($sector->image); +} +</%init> |