diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/view/cust_bill-logo.cgi | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/view/cust_bill-logo.cgi')
-rwxr-xr-x | httemplate/view/cust_bill-logo.cgi | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/httemplate/view/cust_bill-logo.cgi b/httemplate/view/cust_bill-logo.cgi deleted file mode 100755 index ad2ff5430..000000000 --- a/httemplate/view/cust_bill-logo.cgi +++ /dev/null @@ -1,31 +0,0 @@ -<% $conf->config_binary("logo$templatename.png", $agentnum) %> -<%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 $templatename; -my $agentnum = ''; -if ( $cgi->param('invnum') ) { - $templatename = $cgi->param('template') || $cgi->param('templatename'); - my $cust_bill = qsearchs('cust_bill', { 'invnum' => $cgi->param('invnum') } ) - or die 'unknown invnum'; - $agentnum = $cust_bill->cust_main->agentnum; -} else { - my($query) = $cgi->keywords; - $query =~ /^([^\.\/]*)$/ or die 'illegal query'; - $templatename = $1; -} - -if ( $templatename && $conf->exists("logo_$templatename.png") ) { - $templatename = "_$templatename"; -} else { - $templatename = ''; -} - -http_header('Content-Type' => 'image/png' ); - -</%init> |