blob: 9c1c1d71d2289e83cfbccbd9129612b182b7d31b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<% $conf->config_binary("logo$templatename.png") %>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('View invoices')
or $FS::CurrentUser::CurrentUser->access_right('Configuration');
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' );
</%init>
|