1 <% $conf->config_binary("logo$templatename.png") %>
5 unless $FS::CurrentUser::CurrentUser->access_right('View invoices')
6 or $FS::CurrentUser::CurrentUser->access_right('Configuration');
8 my $conf = new FS::Conf;
10 my($query) = $cgi->keywords;
11 $query =~ /^([^\.\/]*)$/;
12 my $templatename = $1;
13 if ( $templatename && $conf->exists("logo_$templatename.png") ) {
14 $templatename = "_$templatename";
19 http_header('Content-Type' => 'image/png' );