html invoices: when displaying, use the actual logo from the conf dir - same as the...
[freeside.git] / httemplate / view / cust_bill-logo.cgi
diff --git a/httemplate/view/cust_bill-logo.cgi b/httemplate/view/cust_bill-logo.cgi
new file mode 100755 (executable)
index 0000000..3e9c67f
--- /dev/null
@@ -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") %>