Re: Anyone have a bit of code to check that an info reg is 2 years?

From: John Keegan (john@rackshare.com)
Date: Sun Oct 07 2001 - 11:53:24 EDT


You might also put something like this in your verify_order subroutine in
addition to the mods Charles pointed out. It will make sure that if you are
in a bulk order the period will be reset properly. You can then add
{{period_warning}} in your verify template to let them know you changed
their info.

    my ($period_warning);

    foreach $domain (keys %good_domains) {
    
    # check reg period and make sure it's cool
    
        if (( $domain =~ /\.info/ ) && ($HTML{period} eq "1")) {
            $HTML{period} = "2";
            $in{period} = "2";
            $period_warning = "<br><br><B><FONT COLOR=\"#FF0000\">INFO
Domains Must Be Registered for a Minimum of 2 Years.</FONT></B>\n";
            }

        if (( $domain =~ /\.uk/ ) && ($HTML{period} ne "2")) {
            $HTML{period} = "2";
            $in{period} = "2";
            $period_warning .= "<br><br><B><FONT COLOR=\"#FF0000\">UK
Domains Must Be Registered for Exactly 2 Years.</FONT></B>\n";
            }
    }

    $HTML{period_warning} = $period_warning;

-- 
John Keegan
john@RackShare.com
http://RackShare.com

> From: Charles Daminato <chuck@tucows.com> > Date: Sat, 6 Oct 2001 10:43:16 -0400 (EDT) > To: Robert <robert@chalmers.com.au> > Cc: Opensrs-Dev <dev-list@opensrs.org> > Subject: Re: Anyone have a bit of code to check that an info reg is 2 years? > > Here's something posted to discuss: > > http://www.opensrs.org/archives/discuss-list/0109/0892.html > > Charles Daminato > TUCOWS Product Manager > chuck@tucows.com > > On Sat, 6 Oct 2001, Robert wrote: > >> I'll look at it tomorrow mycself - but in the meantime, if someone has it >> why reinvent the wheel. >> Just a little something to check that if the reg is .info, the min-years is >> 2. >> >> ta muchh >> Bob >> --- >> Quantum Radio: World Music with a difference. >> http://quantum-radio.net.au/Music/ >> Now Playing: Tim Tatum - Ascension >> >> >> >> >



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:36:43 EDT