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-26 12:20:10 -0700
commit2c5024a05daea660bdd4bbb52212a41aed1664dc (patch)
tree0b17e6511f97c31ac5f5b2d65adabb72abdf0157 /httemplate/view
parent9b6a030dbbf8be7f23f1795f3164da0a5a42b08b (diff)
generate sector coverage maps with Splat, checkpoint, #37802
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>