summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-04-21 12:07:29 -0700
committerMark Wells <mark@freeside.biz>2016-04-27 13:07:36 -0700
commit1d2db1a7412b886a6120ebd527d6632bff27551d (patch)
tree71d0b1dfca8d2bfefac19b2b9f33505fb9a1f1fc /httemplate/view
parent391be944b451419e2683dcd0471e3532d728d8d5 (diff)
generate sector coverage maps with Splat, checkpoint, #37802
Conflicts: FS/FS/Schema.pm FS/FS/tower_sector.pm
Diffstat (limited to 'httemplate/view')
-rw-r--r--httemplate/view/sector_map-png.cgi8
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>