Will things ever be the same again?
[freeside.git] / httemplate / view / cust_bill-logo.cgi
1 %
2 %
3 %my $conf = new FS::Conf;
4 %
5 %my($query) = $cgi->keywords;
6 %$query =~ /^([^\.\/]*)$/;
7 %my $templatename = $1;
8 %if ( $templatename && $conf->exists("logo_$templatename.png") ) {
9 %  $templatename = "_$templatename";
10 %} else {
11 %  $templatename = '';
12 %}
13 %
14 %http_header('Content-Type' => 'image/png' );
15 %
16 <% $conf->config_binary("logo$templatename.png") %>