Hosting Plugins
The file responsible for the domain plugin is hostvise/plugins/cpanel.php – if you wish to install a new plugin, the new plugin should replace the existing one.

Download cPanel/WHM Plugin (default)
To install overwrite plugin and modify “Settings->cPanel User” with the WHM admin username and “Settings->cPanel Hash/Pass” with the WHM hash (not password) – which can be found in the WHM admin panel.
For Developers
The hosting plugin is located at plugins/cpanel.php. Regardless of the filename, this file is the plugin for all hosting control panels – not just cpanel(tm).
Structure of plugins/cpanel.php
require_once("globals.php");
// language name of control panel
define(LANG_CPANEL, "cpanel");
// this class deals with the automated web host account creation (cPanel)
class cPanel
{
// not needed
var $whm_user = null;
var $whm_hash = null;
public function __construct()
{
// constructor
global $SETTING;
$this->whm_user = $SETTING[S_CPANELUSER];
$this->whm_hash = $SETTING[S_CPANELHASH];
}
private function run($query)
{
// not needed, but makes it easier to execute a query
}
public function create($domain,$user,$pass,$quota,$maxftp,$maxsql,$maxpop,
$maxlst,$maxsub,$bwlimit,$reseller)
{
// create new account
}
public function delete($user)
{
// delete account by user
}
public function suspend($user)
{
// suspend account by user
}
public function unsuspend($user)
{
// unsuspend account by username
}
}