How to show server name in skin?

Lesli

Member
Jun 17, 2003
15
0
151
I'm finishing a custom skin, and want to include some additional information about the client's account: start date, plan, et cetera. I've found much of this by dissecting x and x2 and seeing what cpanel tags they use to display this and that bit of information, but I can't locate one particular function. I want to show my clients' server names in the control panel skins, but haven't been able to find out a master list of all available CPanel tags and variables, and what they do.

Does anyone know:

* is there a publicly-available list of CPanel tags / variables / what they do
* if so, where is it
* barring that...what tag do I use to display the server name?

Thanks!
 
Last edited:

h2oski

Well-Known Member
Dec 12, 2001
68
0
306
1. In the past the following link provided a great list of cpanel api tags.
http://www.gwsa.net/skinny
it is currently not working for me, hopefully the problem is only temporary

2. the following tag will print the hostname:
Code:
<cpanel hostname="">
yes, the quotes are supposed to be empty :)
 

Lesli

Member
Jun 17, 2003
15
0
151
Thanks, h20ski. The gwsa.net link doesn't work for me, either - but thanks for providing it. Maybe it will clear up in a few days. The domain's still active, at least - just not responding.
 

[email protected]

Well-Known Member
Mar 5, 2002
487
0
316
Los Angeles California
I have a bad news and a good news.

Bad news is that site is down for good.
Good news is I saved the whole site to my HD!

If you wanted the backup please send an email to [email protected] with the subject "Cpanel API"
 

kosmo

Well-Known Member
Verifed Vendor
Aug 12, 2001
400
0
316
All over Europe
Roy,

if there is no copyright problem (I mean with the compilation, not with the content :D ), I can host the pages at netenberg.com

kosmo
 

SarcNBit

Well-Known Member
Oct 14, 2003
1,001
3
168
h2oski said:
1. In the past the following link provided a great list of cpanel api tags.
http://www.gwsa.net/skinny
it is currently not working for me, hopefully the problem is only temporary
I do not know about the *whole* site, but here is what the wayback machine gave me:

// Account Info
$lastlogin = '<cpanel LastLogin="lastlogin()">';
$username = '<cpanel print="$user">';
$domain = '<cpanel print="DOMAIN">';
$email_contact = '<cpanel CustInfo="getemail()">';
$plan = '<cpanel print="$CPDATA{'PLAN'}">';
$filters = '<cpanel Email="countfilters()">'; // I'm assuming this is spam filters?

// Quotas
$quota_bandwidth = '<cpanel print="$CPDATA{'BWLIMIT'}">';
$usage_bandwidth = '<cpanel Stats="countbandwidth()">';
$quota_diskspace = '<cpanel Quota="showquotaremain()">';
$usage_diskspace = '<cpanel Quota="showquotaused()" >';
$quota_mysql_dbs = '<cpanel print="$CPDATA{'MAXSQL'}">';
$usage_mysql_dbs = '<cpanel Mysql="countdbs()">';
$quota_mysql_disk = '10'; // Is this quota even in Cpanel????
$usage_mysql_disk = '<cpanel Mysql="diskusage()">';
$quota_email_pop = '<cpanel print="$CPDATA{'MAXPOP'}">';
$usage_email_pop = '<cpanel Email="countpops()">';
$quota_email_forward = '?????';
$usage_email_forward = '<cpanel Email="countforwards()">';
$quota_email_auto = '?????';
$usage_email_auto = '<cpanel Email="countresponders()">';
$quota_email_list = '<cpanel print="$CPDATA{'MAXLST'}">';
$usage_email_list = '<cpanel Email="countlists()">';
$quota_ftp = '<cpanel print="$CPDATA{'MAXFTP'}">';
$usage_ftp = '<cpanel Ftp="countftp()">';
$quota_dom = '<cpanel print="$CPDATA{'MAXADDON'}">';
$usage_dom = '<cpanel Park="countaddons()">';
$quota_dom_sub = '<cpanel print="$CPDATA{'MAXSUB'}">';
$usage_dom_sub = '<cpanel SubDomain="countsubdomains()">';
$quota_dom_park = '<cpanel print="$CPDATA{'MAXPARK'}">';
$usage_dom_park = '<cpanel Park="countparked()">';
$quota_dom_alias = '?????';
$usage_dom_alias = '?????';

// Server Info
$hostname = '<cpanel hostname="">';
$os = '<cpanel Serverinfo="os()">';
$kernel = '<cpanel Serverinfo="kernelver()">';
$uptime = '<cpanel shortuptime="">';
$cpanel_version = '<cpanel version="">';
$cpanel_build = '<cpanel build="getbuild()">';
$apache_version = '<cpanel Serverinfo="apacheversion()">';
$perl_version = '<cpanel Serverinfo="perlversion()">';
$perl_path = '<cpanel Serverinfo="perlpath()">';
$sendmail_path = '<cpanel Serverinfo="sendmailpath()">';
$php_version = '<cpanel Serverinfo="phpversion()">';
$mysql_version = '<cpanel Serverinfo="mysqlversion()">';
$path_rawlog = '<cpanel Cgi="accessloglink()">';
$addons = '<cpanel Addons="listaddons()">'; // Lists the Addon Scripts


==========================================================

Addon Domains

Adding additional domains uses three steps.
1) Add an addtional FTP account to access it <cpanel Ftp="addftp($FORM{'user'},$FORM{'pass'})">
2) Create a sub domain <cpanel SubDomain="addsubdomain($FORM{'user'})">
3) Park the domain and re-direct it to the sub-domain <cpanel Park="park($FORM{'domain'},$FORM{'user'})">

Domain Parking Functions
No of Addon Domains <cpanel Park="countaddons()">
Max Addon Domains <cpanel print="$CPDATA{'MAXADDON'}">
List Addons <cpanel Park="listaddonsop()">
List Addons CP ?does this generate the HTML output? <cpanel Park="cplistaddons()">
No of Parked Domains <cpanel Park="countparked()">
Max Parked Domains <cpanel print="$CPDATA{'MAXPARK'}">
List Parked Domains <cpanel Park="listparkedop()">
List Parked CP ?does this generate the HTML output? <cpanel Park="cplistparked()">
Park New Domain <cpanel Park="park($FORM{'domain'})">
Park and Re-direct Domain <cpanel Park="park($FORM{'domain'},$FORM{'user'})">
Delete Parked Domain <cpanel Park="unpark($FORM{'domain'})">

Sub Domain Functions
No of Sub Domains <cpanel SubDomain="countsubdomains()">
Max Sub Domains <cpanel print="$CPDATA{'MAXSUB'}">
List Sub Domains <cpanel SubDomain="listsubdomainsop()">
List Sub Domains - CP <cpanel SubDomain="cplistsubdomains()">

DNS tools
dnslookup <cpanel Net="dnslookup($FORM{'dns'})">
dnszone <cpanel Net="dnszone($FORM{'dns'})">
tracert <cpanel Net="traceroute()">

=========================================================

(continued in next post)
 

SarcNBit

Well-Known Member
Oct 14, 2003
1,001
3
168
(continued from previous post)

====================================================

File Manager

<cpanel Fileman="dofileop($FORM{'opdir'},$FORM{'opfile'},$FORM{'dir'},$FORM{'fileop'})">
<cpanel Fileman="extractfile($FORM{'dir'},$FORM{'file'})">
<cpanel Fileman="fileimg($FORM{'dir'},$FORM{'file'})">
<cpanel Fileman="fileimg($FORM{'opdir'},$FORM{'opfile'})">
<cpanel Fileman="fileops($FORM{'opdir'},$FORM{'opfile'},$FORM{'dir'},$FORM{'fileop'})">
<cpanel Fileman="fmmkdir("$homedir",".entropybanner"">
<cpanel Fileman="fmmkdir("$homedir",".htmltemplates"">
<cpanel Fileman="fmmkdir("$homedir",".htmltemplates"">
<cpanel Fileman="fmmkdir("$homedir/public_html/","entropybanner"">
<cpanel Fileman="fmmkdir("$homedir/public_html/","scgi-bin"">
<cpanel Fileman="fmmkdir($FORM{'scriptpath'},$FORM{'adminfolder'})">
<cpanel Fileman="fmmkdir($FORM{'scriptpath'},$FORM{'adminfolder'})">
<cpanel Fileman="fmmkdir($FORM{'userrootpath'},$FORM{'linksfolder'})">
<cpanel Fileman="fmmkdir($FORM{'userrootpath'},$FORM{'shopfolder'})">
<cpanel Fileman="fmmkdir($homedir,.htpasswds)">
<cpanel Fileman="fmmkdir($homedir,.htpasswds)">
<cpanel Fileman="fmmkdir($homedir/.htpasswds,$FORM{'linksfolder'})">
<cpanel Fileman="fmmkdir($homedir/.htpasswds,$FORM{'shopfolder'})">
<cpanel Fileman="fmmkdir($homedir/.htpasswds/links,$FORM{'adminfolder'})">
<cpanel Fileman="fmmkdir($homedir/.htpasswds/shop,$FORM{'adminfolder'})">
<cpanel Fileman="fmrename($FORM{'dir'},$FORM{'file'},$FORM{'newname'})"> in<cpanel cprint="$FORM{'dir'}"></i>
<cpanel Fileman="fmsavefile($FORM{'dir'},$FORM{'file'},$FORM{'page'})">
<cpanel Fileman="fmsavefile($FORM{'dir'},$FORM{'file'},$FORM{'page'})">
<cpanel Fileman="fmsavefile($FORM{'dir'},$FORM{'file'},$FORM{'page'})">
<cpanel Fileman="fmsavefile($FORM{'dir'},$FORM{'file'},$FORM{'page'})">
<cpanel Fileman="getfile($FORM{'dir'},$FORM{'file'})">
<cpanel Fileman="installfile("/usr/local/cpanel/cgi-sys/cgiecho","$homedir/public_html/cgi-bin/cgiecho"">
<cpanel Fileman="installfile("/usr/local/cpanel/cgi-sys/cgiemail","$homedir/public_html/cgi-bin/cgiemail"">
<cpanel Fileman="installfile("/usr/local/cpanel/cgi-sys/entropybanner.cgi-wrap","$homedir/public_html/cgi-bin/entropybanner.cgi"">
<cpanel Fileman="installfile("/usr/local/cpanel/cgi-sys/entropybanner.cgi-wrap","$homedir/public_html/cgi-bin/entropybanner.cgi"">
<cpanel Fileman="installfile("/usr/local/cpanel/cgi-sys/randhtml.cgi-wrap","$homedir/public_html/cgi-bin/randhtml.cgi"">
<cpanel Fileman="installfile("/usr/local/cpanel/cgi-sys/randhtml.cgi-wrap","$homedir/public_html/cgi-bin/randhtml.cgi"">
<cpanel Fileman="installfile("/usr/local/cpanel/share/htmltemplates/default","$homedir/.htmltemplates/default"">
<cpanel Fileman="installfile("/usr/local/cpanel/share/htmltemplates/default","$homedir/.htmltemplates/default"">
<cpanel Fileman="listfiles($FORM{'dir'})">
<cpanel Fileman="listtemplates()">
<cpanel Fileman="newcgifile("$homedir/.guestbook"">
<cpanel Fileman="printdir()">
<cpanel Fileman="printdir()">
<cpanel Fileman="printdir()">
<cpanel Fileman="printdir()">
<cpanel Fileman="printdir()">
<cpanel Fileman="printfile()">
<cpanel Fileman="printfile()">
<cpanel Fileman="printhiddenfile()">
<cpanel Fileman="realdelfile($FORM{'dir'},$FORM{'file'})">
<cpanel Fileman="restoreaf()">
<cpanel Fileman="restoredb()">
<cpanel Fileman="restorefile($FORM{'file'})">.....
<cpanel Fileman="restorefiles()">
<cpanel Fileman="showperm($FORM{'dir'},$FORM{'file'})">
<cpanel Fileman="suexecperm("$homedir/.guestbook"">
<cpanel Fileman="uploadfiles()">
<cpanel Fileman="delfile($FORM{'dir'},$FORM{'file'})">
<cpanel Fileman="printdir()">
<cpanel Fileman="showactions($FORM{'dir'},$FORM{'file'})">
<cpanel Fileman="showdiractions($FORM{'dir'},$FORM{'file'})">
<cpanel Fileman="showtrash()">
<cpanel Fileman="viewfile($FORM{'dir'},$FORM{'file'})">
<cpanel Fileman="fmpushfile($FORM{'dir'},$FORM{'file'})">
<cpanel Fileman="fmpushfile($homedir,.randhtml)">
<cpanel Fileman="fmpushfile($homedir/.htmltemplates,default)">
<cpanel Fileman="fmpushfile($FORM{'dir'},$FORM{'file'})">
<cpanel Fileman="fmpushfile($FORM{'dir'},$FORM{'file'})">
<cpanel cprint="$FORM{'dir'}">
<cpanel cprint="$FORM{'file'}">
<cpanel Fileman="emptytrash()">

=====================================================

last login <cpanel LastLogin="lastlogin()">
user name <cpanel print="$user">
domain name <cpanel print="DOMAIN">
contact email addy <cpanel CustInfo="getemail()">
hosting plan <cpanel print="$CPDATA{'PLAN'}">
no of filters <cpanel Email="countfilters()">
bandwidth quota <cpanel print="$CPDATA{'BWLIMIT'}">
bandwidth used <cpanel Stats="countbandwidth()">
diskspace remaining <cpanel Quota="showquotaremain()">
diskspace used <cpanel Quota="showquotaused()" >
mysql quota <cpanel print="$CPDATA{'MAXSQL'}">
mysql databases used <cpanel Mysql="countdbs()">
mysql space used <cpanel Mysql="diskusage()">
pop accounts quota <cpanel print="$CPDATA{'MAXPOP'}">
pop accounts used <cpanel Email="countpops()">
forwareds used <cpanel Email="countforwards()">
autoresponders used <cpanel Email="countresponders()">
mail lists quota <cpanel print="$CPDATA{'MAXLST'}">
mail lists used <cpanel Email="countlists()">
ftp quota <cpanel print="$CPDATA{'MAXFTP'}">
ftp used <cpanel Ftp="countftp()">
extra domains quota ? <cpanel print="$CPDATA{'MAXADDON'}">
extra domains used ? <cpanel Park="countaddons()">
sub domain quota <cpanel print="$CPDATA{'MAXSUB'}">
sub domain used <cpanel SubDomain="countsubdomains()">
parked domain quota <cpanel print="$CPDATA{'MAXPARK'}">
parked domian used <cpanel Park="countparked()">
server hostname <cpanel hostname="">
server operating system <cpanel Serverinfo="os()">
server kernal <cpanel Serverinfo="kernelver()">
server uptime <cpanel shortuptime="">
cpanel version <cpanel version="">
cpanel build <cpanel build="getbuild()">
apache version <cpanel Serverinfo="apacheversion()">
perl version <cpanel Serverinfo="perlversion()">
path to perl <cpanel Serverinfo="perlpath()">
path to sendmail <cpanel Serverinfo="sendmailpath()">
php version <cpanel Serverinfo="phpversion()">
mysql version <cpanel Serverinfo="mysqlversion()">
path to logs <cpanel Cgi="accessloglink()">
list extra script installs <cpanel Addons="listaddons()">

======================================================
 

[email protected]

Well-Known Member
Mar 5, 2002
487
0
316
Los Angeles California
I thought of the same thing.
I wanted to upload the contents to my site.
Tried to contact the author of the pages but the WHOIS doesn't show anything.
And when I go to the page I realized he is using HSphere (www..gwsa.net)!
He abandoned Cpanel!! :(

kosmo said:
Roy,

if there is no copyright problem (I mean with the compilation, not with the content :D ), I can host the pages at netenberg.com

kosmo