This article documents the usage of the Cpanel::AddonDomain::addaddondomain function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Cpanel::AddonDomain::addaddondomain
This tag will create an addon domain based on the input variables below.
<?cp AddonDomain::addaddondomain('% %',result,reason) newdomain=$FORM{'domain'},dir=$FORM{'dir'},subdomain=$FORM{'user'},pass=$FORM{'pass'} ?>
This example will create an addon domain based on the domain name, directory name, username and password provided through a form. The result of the operation will be outputted and any reason for failure, if present.
Copyright 2007 cPanel Inc.