Thanks for the quick reply.
Your message left me wondering what sort of "messages that a domain is
coming up for renewal" the allow_auto_renewal_message flag allows or
prevents, so I tried it both ways. What it does is show a line at the top
of the manage page that says "Notice: this domain is set to be automatically
renewed on xxxxx", if Auto_Renew is enabled for the domain being managed.
I can disable the actual auto-renew process in the "renewals_autorenew"
subroutine, as you suggest, and add a meaningful error message, like this:
----------------------------------------------------------------------------
-
sub renewals_autorenew{
my $auto_flag = $_[0];
my $xcp_request = {
action => "modify",
object => "domain",
cookie => $cookie,
attributes => {
data => "auto_renew",
auto_renew => $auto_flag,
affect_domains => 0,
}
};
# my $response = $XML_Client->send_cmd( $xcp_request );
# if ($response->{is_success}) {
# return "Set Auto-Renew Request: <B>Success</B>";
# }
# else {
# return "Set Auto-Renew Request <b>Failure!</B> Reason:" .
$response->{response_text};
# }
return "Set Auto-Renew Request <b>Failure!</B> Reason: Auto-Renew not
allowed";
}
----------------------------------------------------------------------------
-
Unfortunately, removing the related html is not going to be quite as simple
as editing a template. I'm going to have to hunt through the code and find
all the offending bits and remove them. I don't mind doing it once, but
it's one more thing that will make me want to avoid the next client upgrade!
----- Original Message -----
From: "Charles Daminato" <[EMAIL PROTECTED]>
To: "Chuck Hatcher" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 11:34 AM
Subject: RE: Manage.cgi - turning off auto-renew, and documentation
> The purpose of the flags is to a) allow renewals, and b) allow messages
that
> a domain is coming up for renewal.
>
> I'll see if we can add a "allow_auto_renewal" in manage
>
> The best thing to do is just find auto_renew in the manage code as an XML
> command and comment it out, then remove the flags from the HTML templates
> (fastest).
>
> Charles Daminato
> OpenSRS Product Manager
> Tucows Inc. - [EMAIL PROTECTED]
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf Of Chuck Hatcher
> > Sent: March 7, 2002 11:28 AM
> > To: [EMAIL PROTECTED]
> > Subject: Manage.cgi - turning off auto-renew, and documentation
> >
> >
> > I am in the process of upgrading my production manage.cgi to
> > allow renewals
> > (previously I have required customers to use renew.cgi). I do not want
to
> > implement auto-renew.
> >
> > The latest OpenSRS Perl Client Manual (for 2.51) does not explain the
> > OpenSRS.conf options "allow_renewals" or "allow_auto_renewal_message"
for
> > manage.cgi . I have noticed that setting
> > "allow_auto_renewal_message" to 0
> > does not disable auto-renew from manage.cgi. The auto-renew code seems
to
> > be dispersed throughout manage.cgi and will take a little work to
> > eradicate.
> > Before I do that, I want to make sure I haven't missed something.
> >
> > What is the intention behind the auto-renew implementation, and
> > the purpose
> > of the manage.cgi flags included in OpenSRS.conf? Is there a way to
turn
> > this feature off without a lot of code modification? There must
> > be a lot of
> > RSP's like myself who do not want to allow auto-renewals due to the
> > potential billing nightmare.
> >
> > I'd appreciate any helpful tips or suggestions.
> >
> >
> >