Creating a new theme
You can create a CPanel or WebHost Manager theme from scratch, as long as you have the time. The best way to create a theme is to download a themeball of one of the working themes to use as an example - refer to Downloading a themeball for more information. You can find the API info in /usr/local/cpanel/*api.txt
You can use PHP code in CPanel themes. Example:
$varible = '<cpanel print="$CPDATA{'DNS'}">';
Perl scripts can also be included in theme pages. In the following example, ex.pl would contain perlapi.txt commands as well as Perl code.
<perl /usr/local/cpanel/base/frontend/default/ex.pl>