[freeside-commits] freeside/httemplate/misc disable-payment_gateway.cgi, NONE, 1.1.2.2
Ivan,,,
ivan at wavetail.420.am
Sat Mar 1 17:31:59 PST 2008
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv16395/httemplate/misc
Added Files:
Tag: FREESIDE_1_7_BRANCH
disable-payment_gateway.cgi
Log Message:
add payment gateway disabling (and move payment gateway browse over to new template)
--- NEW FILE: disable-payment_gateway.cgi ---
%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>
More information about the freeside-commits
mailing list