blob: 200365d2fdde8a23f1cd55650ce09c28432185b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
% if ( $error ) {
% errorpage($error);
% } else {
<% $cgi->redirect($p. "view/svc_domain.cgi?". $domain_record->svcnum. '#dns') %>
% }
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice');
#untaint recnum
my($query) = $cgi->keywords;
$query =~ /^(\d+)$/ || die "Illegal recnum";
my $recnum = $1;
my $domain_record = qsearchs('domain_record',{'recnum'=>$recnum});
my $error = $domain_record->delete;
</%init>
|