diff options
author | ivan <ivan> | 2009-02-09 14:05:31 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-02-09 14:05:31 +0000 |
commit | a4b8ce8cd1d309de00c64f38049a8dda38798046 (patch) | |
tree | 8c36c37a563900083468912ebeb373da39c59cca /httemplate/view/REAL_logo.cgi | |
parent | 9925a640ebd475bf260b4d9e065b3f01e929e20a (diff) |
rest of per-agent config for company_name, company_address, logo, etc.. RT#3989
Diffstat (limited to 'httemplate/view/REAL_logo.cgi')
-rwxr-xr-x | httemplate/view/REAL_logo.cgi | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/httemplate/view/REAL_logo.cgi b/httemplate/view/REAL_logo.cgi new file mode 100755 index 000000000..c269c7d04 --- /dev/null +++ b/httemplate/view/REAL_logo.cgi @@ -0,0 +1,14 @@ +<% $conf->config_binary("logo.png", $agentnum) %> +<%init> + +my $conf = new FS::Conf; + +my $agentnum = ''; +my @agentnums = $FS::CurrentUser::CurrentUser->agentnums; +if ( scalar(@agentnums) == 1 ) { + $agentnum = $agentnums[0]; +} + +http_header('Content-Type' => 'image/png' ); + +</%init> |