diff options
| author | cvs2git <cvs2git> | 2010-11-05 19:05:57 +0000 |
|---|---|---|
| committer | cvs2git <cvs2git> | 2010-11-05 19:05:57 +0000 |
| commit | aaf8baf3662e16e9414de236a39f8801a8c41b01 (patch) | |
| tree | 2cda603e4311b3e80f79b93d9bcce3a7c7c2d053 /httemplate/edit/process/svc_domain-defaultrecords.cgi | |
| parent | 995a145c931164347683071c95c6754379d36604 (diff) | |
| parent | 9b2de4257b6a2877434008188e52b8ef71ff339d (diff) | |
This commit was manufactured by cvs2svn to create branch
'FREESIDE_2_1_BRANCH'.
Diffstat (limited to 'httemplate/edit/process/svc_domain-defaultrecords.cgi')
| -rw-r--r-- | httemplate/edit/process/svc_domain-defaultrecords.cgi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/httemplate/edit/process/svc_domain-defaultrecords.cgi b/httemplate/edit/process/svc_domain-defaultrecords.cgi new file mode 100644 index 000000000..ec3d221f3 --- /dev/null +++ b/httemplate/edit/process/svc_domain-defaultrecords.cgi @@ -0,0 +1,18 @@ +% if ( $error ) { +% errorpage($error); +% } else { +<% $cgi->redirect(popurl(3). "view/svc_domain.cgi?$svcnum#dns") %> +% } +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Edit domain nameservice'); + +my $svcnum = scalar($cgi->param('svcnum')); + +my $svc_domain = qsearchs('svc_domain', { 'svcnum' => $svcnum }) + or die 'unknown svc_domain.svcnum'; + +my $error = $svc_domain->insert_defaultrecords; + +</%init> |
