e2f810c3f408651261bc5297c936779f30b985b9
[freeside.git] / httemplate / view / cust_bill-logo.cgi
1 <% $conf->config_binary("logo$templatename.png") %>
2 <%init>
3
4 die "access denied"
5   unless $FS::CurrentUser::CurrentUser->access_right('View invoices');
6
7 my $conf = new FS::Conf;
8
9 my($query) = $cgi->keywords;
10 $query =~ /^([^\.\/]*)$/;
11 my $templatename = $1;
12 if ( $templatename && $conf->exists("logo_$templatename.png") ) {
13   $templatename = "_$templatename";
14 } else {
15   $templatename = '';
16 }
17
18 http_header('Content-Type' => 'image/png' );
19
20 </%init>