Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Jun 2002
    Posts
    49

    Default cpanel variables

    Hi there,

    First of all sorry for my english, it's not my first language, but i'm sure you will understand my request.

    I'm trying to find the cpanel variables, like to show the server uptime on my client side.

    For exemple :
    &cpanel Serverinfo=&phpversion()&& : print the phpversion
    &cpanel print=&DOMAIN&& : print the domain name

    I'm sure a lot of these kind of variables exists, but i found nothing in the cpanel documentations.

    Somebody on this group have a list of these variables ?

    If yes, can you share the information with me ?
    If not, any solutions to get this information ?

    Thanks a lot for your help.

    Nost

  2. #2
    Member
    Join Date
    May 2002
    Posts
    249

    Default

    Look at an existing CPanel theme.. I think that's how most people do it.

  3. #3
    Member
    Join Date
    Jun 2002
    Posts
    49

    Default cpanel variables

    Hi (SH)Saeed,

    it's already done, it's was easy to find the common variable in an existing theme.

    But i'm sure mores variables exist.

    For example, in the account informations, i would like to show something like that :

    Email Accounts : 5 / 10
    FTP Accounts : 2 / 3
    Disk Usage : 10 / 100 Megabytes

    etc ....

    I'ts easy to show the number of existing accounts, but bot to print the total of account supported.

    Hope you understand my poor english writing :O)

    Nost

  4. #4
    cPanel Test Bitch
    Join Date
    Feb 2002
    Location
    Boston MA
    Posts
    596

    Default

    Here are some examples

    &cpanel print=&$CPDATA{'MAXSUB'}&& subdomains
    &cpanel print=&$CPDATA{'MAXPARK'}&& park domains
    &cpanel print=&$CPDATA{'MAXADDON'}&& addon domains
    &cpanel print=&$CPDATA{'MAXSQL'}&& mysql databases
    &cpanel print=&$CPDATA{'MAXPOP'}&& email accounts
    &cpanel print=&$CPDATA{'MAXLST'}&& mailing lists
    &cpanel print=&$CPDATA{'MAXFTP'}&& ftp accounts

  5. #5
    Member
    Join Date
    Jun 2002
    Posts
    49

    Default

    Hi AWsol

    Thanks a lot for your help ...

    It's really helping me !

    Thanks again

    Nost

  6. #6
    Member
    Join Date
    Nov 2002
    Posts
    1,781
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    [quote:29a8cf3c27][i:29a8cf3c27]Originally posted by awsol[/i:29a8cf3c27]

    Here are some examples

    &cpanel print=&$CPDATA{'MAXSUB'}&& subdomains
    &cpanel print=&$CPDATA{'MAXPARK'}&& park domains
    &cpanel print=&$CPDATA{'MAXADDON'}&& addon domains
    &cpanel print=&$CPDATA{'MAXSQL'}&& mysql databases
    &cpanel print=&$CPDATA{'MAXPOP'}&& email accounts
    &cpanel print=&$CPDATA{'MAXLST'}&& mailing lists
    &cpanel print=&$CPDATA{'MAXFTP'}&& ftp accounts
    [/quote:29a8cf3c27]

    Dear awsol,

    Is there a place where i can get a complete list ? It would be of great help.

    thx for the help.

    regards,

    Anand
    :: Anand ::

    ssh root@
    who the hell is root ???

    Cpanelappz Support Forums are up now. Register Today
    http://forums.cpanelappz.com

    WHM/cPanel API : http://whmapi.cpanelappz.com
    Cpanel Login Script : www.cpanelappz.com/cpanel-login-script.htm
    Exiscan+Clam+Exim Auto Installer : www.cpanelappz.com

  7. #7
    Member
    Join Date
    May 2002
    Posts
    249

    Default

    I've asked AWSOL to make a list earlier, but I never got a reply. Maybe he didn't see my request.. I think many users would like that though and I'm willing to help.

  8. #8
    Member
    Join Date
    Oct 2003
    Posts
    46

    Default $CPDATA{} Variables????

    Hello,

    Can we get a list of all of the $CPDATA{} variables that are available for skins?

    Thanks,
    Brad

Similar Threads & Tags
Similar threads

  1. How send variables to cPanel
    By iwab19 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-20-2005, 03:45 AM
  2. CPanel Links - Help with variables
    By ryno267 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-05-2004, 08:09 PM
  3. CPanel Links - Help with variables
    By ryno267 in forum Themes and Branding
    Replies: 1
    Last Post: 04-05-2004, 08:08 PM
  4. CPanel variables
    By ryno267 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-23-2004, 05:59 PM
  5. CPanel Theme Variables
    By bmcpanel in forum Themes and Branding
    Replies: 3
    Last Post: 11-28-2002, 06:07 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube