Please excuse the cross post to dev and discuss but I thought it appropriate with this one.


A patch to the reg_system to catch when a customer tries to register bulk, includes .uk domains and has chosen a number of years other than 2.

both of these patches are to be inserted into sub_verify





my ($lookup_data, $fqdn_encoding_type);

__________snip _____________________

my ($timeperiod);

_________ snip ________________________




and


foreach $domain (keys %good_domains) {
$domain_string .= "<input type=hidden name=domain value=\"$domain\">\n";

_______ snip _________________




$timeperiod = $REG_PERIODS{$in{period}};
$timeperiod =~s/\W.*//;


if (((index $domain, ".uk") != "-1")and ($timeperiod ne '2'))
{

$error_msg = "You must register for <b>two</b> years when registering <b>UK</b> domains.<BR><BR>Press your
browser's back button to return to the form and change the number of years requested to 2.\n";
error_out($error_msg);
exit;
}

________ snip _______________________


michael brody
tldsystems

www.opensrs-sites.com

Reply via email to