Welcome Guest, Not a member yet? Register   Sign In
cPanel / WHM API Library
#1

[eluser]Jay Logan[/eluser]
If you use WHM with your host to manage multiple hosting accounts, check this CodeIgniter library out to help you create accounts without having to log in to cPanel every time. Works great with this multiple site CMS I use to manage web sites.

EXAMPLE USAGE

Code:
$this->load->library('whm');

$cpanel_parameters = array(

'ip' => 'n',
'cgi' => 'n',
'frontpage' => 'n',
'cpmod' => 'x3',
'useregns' => '0',
'reseller' => '0',
'domain' => $url,
'customip' => $this->input->post('ip_address'),
'username' => $this->input->post('cpanel_user_name'),
'password' => $this->input->post('cpanel_password'),
'plan' => 'default_package',
'contactemail' => '[email protected]'

);

$new_account = $this->whm->createAccount($cpanel_parameters);
#2

[eluser]Unknown[/eluser]
I know this is an incredibly old thread, but, I'm trying to download the file but it doesn't seem to work. Is anyone having any luck in downloading the library?




Theme © iAndrew 2016 - Forum software by © MyBB