projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Option to ignore old CDRs, RT#81480
[freeside.git]
/
httemplate
/
config
/
config-image.cgi
diff --git
a/httemplate/config/config-image.cgi
b/httemplate/config/config-image.cgi
index
892f7c6
..
0e04ab5
100644
(file)
--- a/
httemplate/config/config-image.cgi
+++ b/
httemplate/config/config-image.cgi
@@
-1,11
+1,9
@@
-<% $
conf->config_binary($name, $agentnum)
%>
+<% $
logo
%>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
-my $conf = new FS::Conf;
-
http_header( 'Content-Type' => 'image/png' ); #just png for now
$cgi->param('key') =~ /^([-\w.]+)$/ or die "illegal config option";
http_header( 'Content-Type' => 'image/png' ); #just png for now
$cgi->param('key') =~ /^([-\w.]+)$/ or die "illegal config option";
@@
-16,4
+14,14
@@
if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) {
$agentnum = $1;
}
$agentnum = $1;
}
+my $locale = '';
+if ( $cgi->param('locale') =~ /^(\w+)$/ ) {
+ $locale = $1;
+}
+
+my $conf = new FS::Conf { 'locale' => $locale };
+
+my $logo = $conf->config_binary($name, $agentnum);
+$logo = eps2png($logo) if $name =~ /\.eps$/i;
+
</%init>
</%init>