5 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
7 my $conf = new FS::Conf;
9 http_header( 'Content-Type' => 'image/png' ); #just png for now
11 $cgi->param('key') =~ /^([-\w.]+)$/ or die "illegal config option";
15 if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
19 my $logo = $conf->config_binary($name, $agentnum);
20 $logo = eps2png($logo) if $name =~ /\.eps$/i;