diff options
Diffstat (limited to 'httemplate/misc/disable-payment_gateway.cgi')
-rw-r--r-- | httemplate/misc/disable-payment_gateway.cgi | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/httemplate/misc/disable-payment_gateway.cgi b/httemplate/misc/disable-payment_gateway.cgi deleted file mode 100644 index 13e1f92bc..000000000 --- a/httemplate/misc/disable-payment_gateway.cgi +++ /dev/null @@ -1,25 +0,0 @@ -%if ( $error ) { -% errorpage($error); -%} else { -%#<% $cgi->redirect(popurl(2). "browse/payment_gateway.html?showdiabled=$showdisabled") %> -<% $cgi->redirect(popurl(2). "browse/payment_gateway.html") %> -%} -<%init> - -die "access deined" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); - -#my $showdisabled = 0; -#$cgi->param('showdisabled') =~ /^(\d+)$/ and $showdisabled = $1; - -#$cgi->param('gatewaynum') =~ /^(\d+)$/ or die 'illegal gatewaynum'; -my($query) = $cgi->keywords; -$query =~ /^(\d+)$/ or die 'illegal gatewaynum'; -my $gatewaynum = $1; - -my $payment_gateway = - qsearchs('payment_gateway', { 'gatewaynum' => $gatewaynum } ); - -my $error = $payment_gateway->disable; - -</%init> |