For those of you that got v2.31 of the client code prior to today at 2pm
(that's January 29th, 2001, at 14:00 pm EST) here are the diff's for the
files that were changed. Only XML_Client.pm, OpenSRS.conf, reg_system.cgi,
and order.html (for reg_system) were affected:
These are relatively simple changes - this will just prevent the client from
allowing .tv registrations outside of 1, 2, 3, 5, or 10 year periods. If
you're not going to offer .tv, this wont matter to you :)
XML_Client.pm
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: XML_Client.pm,v 1.38 2001/01/22 21:16:04 zdimic Exp $
+# $Id: XML_Client.pm,v 1.39 2001/01/29 14:55:05 vlad Exp $
# .Copyright (C) 2000 TUCOWS.com Inc.
# .Created: 11/19/1999
@@ -41,11 +41,12 @@
# exported data
my @export = qw(encode unencode check_email_syntax check_domain_syntax
PERMISSIONS REG_PERIODS TRANSFER_PERIODS UK_REG_PERIODS
- RELATED_TLDS OPENSRS_TLDS_REGEX CA_LEGAL_TYPES
+ RELATED_TLDS OPENSRS_TLDS_REGEX CA_LEGAL_TYPES TV_REG_PERIODS
check_password_syntax build_list_from_file);
use vars qw($VERSION $AUTOLOAD %PERMISSIONS %REG_PERIODS %TRANSFER_PERIODS
- $RELATED_TLDS $OPENSRS_TLDS_REGEX %UK_REG_PERIODS
%CA_LEGAL_TYPES);
+ $RELATED_TLDS $OPENSRS_TLDS_REGEX %UK_REG_PERIODS %CA_LEGAL_TYPES
+%TV_REG_PERIODS);
$VERSION = "XML:2.2.2";
@@ -74,6 +75,14 @@
%UK_REG_PERIODS = (
2 => "2 Years",
);
+
+%TV_REG_PERIODS = (
+ 1 => "1 Year",
+ 2 => "2 Years",
+ 3 => "3 Years",
+ 5 => "5 Years",
+ 10 => "10 Years",
+ );
%TRANSFER_PERIODS = (
1 => "1 Year",
OpenSRS.conf:
***************
*** 95,101 ****
sub => 'info_tv',
# Use horizon for the test environment
url =>
"https://horizon.opensrs.net/redirect?type=tv_highprice&reseller=$USERNAME",
- #url =>
"https://rr-n1-tor.opensrs.net/redirect?type=tv_highprice&reseller=$USERNAME
",
template => "$PATH_TEMPLATES/reg_system/info_tv.html",
},
}
--- 95,100 ----
reg_system.cgi
@@ -1593,6 +1593,9 @@
$in{domain} =~ /uk$/i )
{
$HTML{PERIOD_LIST} = build_select_menu(\%UK_REG_PERIODS,2);
+
+ } elsif ( $in{domain} && $in{domain} =~ /\.tv$/i ) {
+ $HTML{PERIOD_LIST} = build_select_menu(\%TV_REG_PERIODS,1);
} else {
$HTML{PERIOD_LIST} = build_select_menu(\%REG_PERIODS,1);
}
order.html (templates/reg_system)
@@ -34,7 +34,8 @@
<TD><select name=period>
{{PERIOD_LIST}}
</select>
- <i>(2 years for .uk)</i>
+ <i>(2 years for .uk)</i><br>
+ <i>(1, 2, 3, 5, 10 years for .tv)</i>
</TD>
</TR>
<TR>
Charles Daminato
Product Manager (ccTLDs)
Tucows Inc. - [EMAIL PROTECTED]