6 use FS::SelfService qw( invoice_logo );
11 if ( $cgi->param('invnum') ) {
12 $hash{$_} = scalar($cgi->param($_)) foreach qw( invnum template );
14 my($query) = $cgi->keywords;
15 $query =~ /^([^\.\/]*)$/ or '' =~ /^()$/;
16 $hash{'template'} = $1;
19 my $hashref = invoice_logo(%hash);
21 print $cgi->header( '-type' => $hashref->{'content_type'},