diff options
Diffstat (limited to 'httemplate/view/cust_bill-logo.cgi')
-rwxr-xr-x | httemplate/view/cust_bill-logo.cgi | 15 |
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..235485f6b --- /dev/null +++ b/httemplate/view/cust_bill-logo.cgi @@ -0,0 +1,15 @@ +<% + +my $conf = new FS::Conf; + +my($query) = $cgi->keywords; +$query =~ /^([^\.\/]*)$/; +my $templatename = $1; +if ( $templatename && $conf->exists("logo_$templatename.png") ) { + $templatename = "_$templatename"; +} else { + $templatename = ''; +} + +http_header('Content-Type' => 'image/png' ); +%><%= $conf->config_binary("logo$templatename.png") %> |