Web Hosting Talk







View Full Version : account creation scripts


whoiscartpro
08-29-2005, 01:03 PM
Hello

We need two php scripts.

One of these are Cpanel account creation script. After our customers made their payment by Paypal It must create accounts automatically and must send account information to customer via email only. But it must be very simple and small size a file.
We don't need any billing, admin and customer control panel functions.

Second script is simple Directi php API. It must register a domain after our customers made their payment by Paypal only. But it must be very simple too. We don't need other functions.

Where can we find and buy these scripts? Or who can prepare them for us?

a2hosting
09-01-2005, 05:12 AM
I know this doesn't address your question directly, but instant activation scripts are very dangerous ... fraudulent orders are very common in the hosting business, so creating an account automatically after a paypal payment has come in is just asking for trouble.

Many scammers often do searches for "instant activation" in their quest for a target hosting company .. beware.

viphost
09-01-2005, 03:24 PM
dont know about that if that is true have you had it done to you?

a2hosting
09-01-2005, 04:26 PM
dont know about that if that is true have you had it done to you?

We've had tons of fraudulent orders that originated from searches on popular search engines for terms like "instant activation" ... however, we require a fraud check and manual approval of all accounts so it's not been a problem for us.

nConTroL
09-01-2005, 05:26 PM
2 things

1) if you have modernbill or somthing, you can get Fraud Guardian and Fruad Alert... will cut down on your cost spending on paypal/creditcard fraud orders

2) here is some PHP classes ive done, if you have made the billing system and such already, you can use these in PHP object oriented coding, to make the account. If you want the whole program done, visit http://eXtractDev.com and eMail us, but it will of course cost some money.


Create this file for your processing form to create the cPanel accounts.



<?php
# Filename: class.cpanel.php
# The Engine
class cpanel {
var $set_username;
var $set_password;
var $set_theme;
var $set_domain;
var $set_port;

function cpanel($user,$pass,$domain,$theme="x",$port="2082") {
$this->set_username = $user;
$this->set_password = $pass;
$this->set_domain = $domain;
$this->set_theme = $theme;
$this->set_port = $port;
}

function CreateSubDomain($subdomain,$domain) {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/subdomain/doadddomain.html?domain=".$subdomain."&rootdomain=".$domain);
}

function DeleteSubDomain($subdomain,$domain) {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/subdomain/dodeldomain.html?domain=".$subdomain."_".$domain);
}

function CreateEmail($user,$password,$domain,$quota="8") {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/mail/doaddpop.html?email=".$user."&domain=".$domain."&password=".$password."&quota=".$quota);
}

function DeleteEmail($user,$domain) {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/mail/realdelpop.html?email=".$user."&domain=".$domain);
}

function CreateFTP($user,$password,$directory) {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/ftp/doaddftp.html?login=".$user."&password=".$password."&homedir=".$directory);
}

function DeleteFTP($user) {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/ftp/dodelftp.html?login=".$user);
}

function CreateDB($db) {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/sql/adddb.html?db=".$db);
}

function DeleteDB($db) {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/ftp/deldb.html?db=".$this->set_username."_".$db);
}

function FullBackup($mode="passiveftp",$email,$remote_ftp=NULL,$remote_user=NULL,$remote _pass=NULL) {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/backup/dofullbackup.html?dest=".$mode."&email=".$email."&server=".$remote_ftp."&user=".$remote_user."&pass=".$remote_pass);
}

function CreateParked($domain) {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/park/doaddparked.html?domain=".$domain);
}

function RemoveParked($domain) {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/park/dodelparked.html?domain=".$domain);
}

function CreateDomain($domain,$user,$password) {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/addon/doadddomain.html?domain=".$domain."&user=".$user."&pass=".$password);
}

function DeleteDomain($domain) {
@file("http://".$this->set_username.":".$this->set_password."@".$this->set_domain.":".$this->set_port."/frontend/".$this->set_theme.
"/addon/dodeldomain.html?domain=".$domain);
}
}
?>


Make a new page, make an HTML form to forward to this page with the correct veriables defined, but also dont forget to configure the classes below to what you want created


<?php
# Filename: signup.php // you can change the name of course
# The Client
include("class.cpanel.php");
$cpanel = new cpanel('username','password','domain.com');
$cpanel->CreateSubDomain('sub','domain.com');
?>