3 %#remove this to actually test the domains!
4 %$FS::svc_domain::whois_hack = 1;
6 %$cgi->param('svcnum') =~ /^(\d*)$/ or die "Illegal svcnum!";
9 %my $new = new FS::svc_domain ( {
11 % $_, scalar($cgi->param($_));
12 % #} qw(svcnum pkgnum svcpart domain action purpose)
13 % } ( fields('svc_domain'), qw( pkgnum svcpart action purpose ) )
17 %if ($cgi->param('svcnum')) {
18 % $error="Can't modify a domain!";
20 % $error=$new->insert;
21 % $svcnum=$new->svcnum;
25 % $cgi->param('error', $error);
26 % print $cgi->redirect(popurl(2). "svc_domain.cgi?". $cgi->query_string );
28 % print $cgi->redirect(popurl(3). "view/svc_domain.cgi?$svcnum");