summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2005-05-14 17:04:55 +0000
committerivan <ivan>2005-05-14 17:04:55 +0000
commitdf185d34f354c5788e8c4693182b7689a3333839 (patch)
treedebe1c2c86b5e8661140915b5740470133412c31 /httemplate
parent691a587e56557208e9b3834c77f36ca47f3a1a25 (diff)
html invoices: when displaying, use the actual logo from the conf dir - same as the emailed copy
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/view/cust_bill-logo.cgi15
1 files changed, 15 insertions, 0 deletions
diff --git a/httemplate/view/cust_bill-logo.cgi b/httemplate/view/cust_bill-logo.cgi
new file mode 100755
index 000000000..3e9c67fcc
--- /dev/null
+++ b/httemplate/view/cust_bill-logo.cgi
@@ -0,0 +1,15 @@
+<%
+
+##untaint invnum
+#my($query) = $cgi->keywords;
+#$query =~ /^((.+)-)?(\d+)$/;
+#my $templatename = $2;
+#my $invnum = $3;
+
+my $templatename = '';
+
+my $conf = new FS::Conf;
+http_header('Content-Type' => 'image/png' );
+
+http_header('Content-Type' => 'image/png' );
+%><%= $conf->config_binary("logo$templatename.png") %>