-
Notifications
You must be signed in to change notification settings - Fork 9
/
edit_dereg.cgi
executable file
·32 lines (27 loc) · 1.04 KB
/
edit_dereg.cgi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/local/bin/perl
# Show a form for dis-associating a domain registration with this server
use strict;
no strict 'refs';
use warnings;
our (%access, %text, %in);
our $module_name;
require './virtualmin-registrar-lib.pl';
&ReadParse();
&error_setup($text{'dereg_err'});
$access{'registrar'} || &error($text{'import_ecannot'});
# Get the Virtualmin domain
my $d = &virtual_server::get_domain_by("dom", $in{'dom'});
$d || &error(&text('contact_edom', $in{'dom'}));
$d->{$module_name} || &error($text{'dereg_ealready'});
my ($account) = grep { $_->{'id'} eq $d->{'registrar_account'} }
&list_registrar_accounts();
$account || &error(&text('contact_eaccount', $in{'dom'}));
&ui_print_header(&virtual_server::domain_in($d), $text{'dereg_title'}, "",
"dereg");
print "<center>\n";
print &ui_form_start("dereg.cgi", "post");
print &ui_hidden("dom", $in{'dom'});
print &text('dereg_rusure', "<i>$account->{'desc'}</i>"),"<p>\n";
print &ui_form_end([ [ undef, $text{'dereg_ok'} ] ]);
print "</center>\n";
&ui_print_footer(&virtual_server::domain_footer_link($d));