We are working on "integrating" our hosting and registration services, here
is how I am going to do it....
When the domain says it's available, their is a possibility, however remote,
that someone else will get the domain. For instance, the person
gets a important call, and they stop for a while, OR they walk away, for a
few hours for an emergency or some "unforeseen occurrence",
then it is POSSIBLE that someone else will register the domain FIRST,
therefore they would have to get to the VERY END to make sure they
actually do get it. Then their is NO 100% GUARANTEE that they will get it,
but I have never seen them NOT get it. But someone else at another
registrar might happen to be registering it at the same time, and submit it
FIRST.
Anyways. We are going to make a form, a simple one, that asks if they are
wanting to host it with us. Now, We have a LOT of packages to choose from.
In fact 7 different options, most have 7 different packages in each.
Anyways, They will have some way to pick what package they want if they
choose to
host it with us. Then we will carry that choice to the end, AFTER the domain
is SUCCESSFULLY registered, THEN we are going to on the thank you page,
have them order the hosting. We will have charged them at the same time
already for the hosting account they choose.
Since our Accounts are setup instantly, it will just have them click a
button to have the automated process begin, without the CC processing since
it was already
processed. However, since it is AUTOMATED, if yours is, make sure, it can
ONLY be ran from the script. That way people can't just go setup a bunch of
accounts. Have it use a verification process, to verify purchase, then have
it go through the ordering process. Since you already have their contact
information,
billing information, and domain information, it should be as simple as
having them select a username and password(if you allow them to choose up
front). Then
just create the account.
One of the BIGGEST things I can tell you to do for upgrading later, is when
you make ANY Additions, or changes, do something LIKE this...
(first few lines of reg_system.cgi)
# pull in conf file with defined values
# XXX NOTE XXX Update this configuration file
BEGIN {
do "/home/first/opensrs-client-2.49/etc/OpenSRS.conf";
}
use strict;
use lib $PATH_LIB;
use CGI ':cgi-lib';
use RACE;
RACE::Initialise(%RACESETTINGS);
RACE::UseRace($USE_RACE);
use OpenSRS::XML_Client qw(:default); # Begin Addition
use Net::SSLeay qw(post_https make_form); # End Addition
use OpenSRS::ClientCommon qw(send_email);
Ok, note the line second from the bottom. above it, AFTER the line of code
ENDS, add a comment like that: # Begin Addition or whatever.
lineofcode; # End Addition or whatever.
Do that for EVERYTHING you add, or modify, then when you upgrade, it will be
so easy to know what you added, and what was already there,
then it's just a matter of copying and pasting instead of "Re-Writing" all
your modified code. TIP: make the comment ALWAYS The same, then you
can use a "FIND" and have it FIND all your modifications.
It is time consuming, and can be frustrating. Just don't give up. Success is
failure turned inside out. Keep going. I am at it about 20 hours a day.
Almost there,
then it's retirement. Just keep coding. you'll get it "JUST RIGHT". Big tip:
First Develop a plan of action. See the end results, how you want them, how
you
want it to look. How you want it to function. How secure you want it.
basically make a "Blue print" then, start from the ground(provided scripts)
and build
on that. It DOES work.
Thanks
Richard.
http://www.firstratehosting.com/indexx.cgi "Your Host With the Most!"
http://register.firstratehosting.com/cgi-bin/index.cgi Register your Domain
with prices starting at ONLY $8.50 Per Year!
https://www.firstratehosting.com/register/cgi-bin/name.cgi Pre-Register your
.name domain TODAY!
----- Original Message -----
From: "karthikeyan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 12:45 PM
Subject: Integration Issues
> Hi Everybody,
>
> I am new to this opensrs list. I recently installed opensrs reseller
> client in our system (Redhat Linux).
>
> We are doing Hosting Business and would like to add some feature to this
> progam for example :
> In reg_system.cgi when user types the domain name they want to purchase,
in
> the next page it shows that domain as available, just below it we would
> like to add our hosting plans as a combo box or radio button for them to
> select and in the next page that is Order form we would like to show name
of
> the hosting plan as well as its price. These are the things i would like
to
> do in this script.
>
> My question is :
>
> 1. how do i go about doing the modification job, i mean what are the
> precautions i need to take and how i should go about doing this job.
>
> 2. if you people come up some new version of this client, how should i
go
> about in updating the program without reworking the addition that i did
> early.
>
> Looking forward for your response.
>
> Regards,
>
> karthikeyan.
>
>
>
>