The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cpanel variables

Discussion in 'General Discussion' started by nost, Aug 16, 2002.

  1. nost

    nost Well-Known Member

    Joined:
    Jun 19, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    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. SHSaeed

    SHSaeed Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Look at an existing CPanel theme.. I think that's how most people do it.
     
  3. nost

    nost Well-Known Member

    Joined:
    Jun 19, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    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. awsol

    awsol cPanel Test Bitch

    Joined:
    Feb 8, 2002
    Messages:
    591
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Boston MA
    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. nost

    nost Well-Known Member

    Joined:
    Jun 19, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Hi AWsol

    Thanks a lot for your help ...

    It's really helping me !

    Thanks again

    Nost
     
  6. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    [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
     
  7. SHSaeed

    SHSaeed Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    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. bradandersen

    bradandersen Active Member

    Joined:
    Oct 6, 2003
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    $CPDATA{} Variables????

    Hello,

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

    Thanks,
    Brad
     
Loading...

Share This Page