blob: bb6d4ba3eeb12ff1e6a53ad9fa42a972a90a23c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<%
my $error = '';
my $blocknum = $cgi->param('blocknum');
my $addr_block = qsearchs('addr_block', { blocknum => $blocknum });
if ( $addr_block) {
$error = $addr_block->split_block;
} else {
$error = "Unknown blocknum: $blocknum";
}
if ( $error ) {
$cgi->param('error', $error);
print $cgi->redirect(popurl(4). "browse/addr_block.cgi?". $cgi->query_string );
} else {
print $cgi->redirect(popurl(4). "browse/addr_block.cgi");
}
%>
|