This is the script, please, read it before use it and let your opinions here.

#!/usr/local/bin/perl

# WARNING! The correct running of this script is not on my responsibility.
# YOU HAVE TO ADVICE YOUR WEBMASTER THAT YOU ARE GOING TO USE THIS SCRIPT
# THIS SCRIPT DOESN´T WORKS. Yes, it´s true, you have to modify it and set it up to your personal configuration for the correct working

# ---------------------------------------------------------
# adduser.pl Copyrigth 2.001 Jose Luis Peran Fernandez
# All rights reserved.
# This program is free software. You may modify and/or
# distribute it under the same terms as Perl itself.
# This copyright notice must remain attached to the file.
# ---------------------------------------------------------
# This script only works on systems using WebHost Manager from Cpanel. I tested it on Cpanel 3.6.0 and it works.
# The way it works is simple, just insert into your database a table (I named it adduser)
# This table has 3 fields: domain, plan and email.
# When a customer orders an account, insert the data into adduser with a perl script.
# You have to add cron jobs who calls this script each certain time (I set 15 minutes).
# Be sure to set the correct permisions to the script.
# To set correctly the file, you must see the source code of wwwacctform.
# You can see it on explorer calling it on WebHost Manager and click on See-&gt;Source Code.

# This is the call of the script who creates the account, The path may change on your config.
# You have to set your username and password.
# I think it´s safest to use HTTPS instead of HTTP, but I have not tried it.

# This sends an email to the customer to say him that his account has been created
$req3 = HTTP::Request-&gt;new(POST =&gt; \"mailto:$email\");
$req3-&gt;header(Subject =&gt; \"Tyoe Here the subject of the e-mail\", From =&gt; \"type here your email address\");
$req3-&gt;content(\"Type Here the content of the message. \");
my $res3 = $ua-&gt;request($req3);

#Delete the customer from the database
$sth2 = $dbh-&gt;prepare(\"DELETE FROM adduser WHERE domain = \'$domain\'\");
$sth2-&gt;execute;

# $dbh-&gt;disconnect;
}
}

I have test it and it works, but at this moment I don´t use it until i check is enough safe.

[i:b80faebb02][I added code tags to make it look better but it made it look worse so I removed them again --nbrown][/i:b80faebb02]

[quote:dc0d91733d]There is a fully functioning script at http://page.nixt.org:88 that I have used myself in the past which is very good. If your scared to try your own, maybe use that one [/quote:dc0d91733d]

When I create a package in this script everything works but I can\'t delete the package anymore.
Do you have the same problem?

I am testing the script from http://page.nixt.org:88/, and I see a vulnerability related to server security. The author
recommends removing install.php to prevent hacking, but then seems to be saying that in order for the PayPal
auto-create to work, the password for admin.php must be stored locally, which opens up all kinds of opportunities for
unauthorized access (i.e. config.php contains un-encrypted password data). Does anyone know how he recommends
securing this info since password protecting the directory is impractical?

Thanks,
Margie Cash

Regards,
Myce

Stop hovering to collapse...Click to collapse...Hover to expand...Click to expand...