diff options
Diffstat (limited to 'httemplate/misc/upload-batch.cgi')
-rw-r--r-- | httemplate/misc/upload-batch.cgi | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/httemplate/misc/upload-batch.cgi b/httemplate/misc/upload-batch.cgi index 5a15008b0..d1a84fd02 100644 --- a/httemplate/misc/upload-batch.cgi +++ b/httemplate/misc/upload-batch.cgi @@ -1,17 +1,14 @@ -% if ( $error ) { - - <!-- mason kludge --> - -% errorpage($error); -%# $cgi->param('error', $error); -%# print $cgi->redirect( "${p}cust_main-import.cgi -% } else { - - <% include("/elements/header.html",'Batch results upload successful') %> - -% } +% if ( $error ) { +% errorpage($error); +% } else { + <% include('/elements/header.html','Batch results upload successful') %> + <% include('/elements/footer.html') %> +% } <%init> +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Process batches'); + my $error; my $fh = $cgi->upload('batch_results'); |