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.

Cpanel13-skel some technical information

Discussion in 'General Discussion' started by ozzi4648, Oct 3, 2002.

  1. ozzi4648

    ozzi4648 Guest

    I have looked everwhere for some kind of technical manual on variables i need to use. For example we would like to place a rollout html for our users to see after their accounts have been created. We need to find actual variable names that we can embed in the skeleton index.html page so that those variables are converted to links that users will see. You can see what I'm talking about here http://www.jyota.net

    You will see three links on this page, one called http://jyota.net/
    and the variable that passes this link is called http://ENSIM_DOMAINNAME/ The same goes for the other 2 links on the page. When the users site is created the link is replaced with the name of the domain. I know these variables must exist because howelse would we see actually links to the users sites in the themes, the problem is i cant find any documentation on this.

    Thanks for your help.

    -AuZ
     
  2. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    This is easy to do with javascript, you don't need any cpanel variables.
     
  3. ozzi4648

    ozzi4648 Guest

    [quote:12c63fe1f5][i:12c63fe1f5]Originally posted by moronhead[/i:12c63fe1f5]

    This is easy to do with javascript, you don't need any cpanel variables.[/quote:12c63fe1f5]

    Why Javascript? CPanel must have variables one can use, surely? I guess nobody ever rolled out a custom index.html to their users before?
     
  4. BJMG

    BJMG Active Member

    Joined:
    Jul 24, 2002
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    cPanel has variables for everything, however, the problem with what you need is that cPanel themes are parsed. The files in the skel directory are just &cp&ed to the new users &public_html& directory.

    To do what is done on http://jyota.net/, you could use SSI to do this.

    Upload/create an index.shtml file in the skel directory and then place the following html within the file:

    & a hr ef = & http:// & ! -- # echo var= ' SERVER_NAME ' --& & &
    & ! -- # echo var= & SERVER_NAME & --&
    & / a &

    & a hr ef = & http:// & ! -- # echo var = ' SERVER_NAME ' --&:2082 & &
    Control Panel
    & / a &

    ( Added spaces for obvious reasons. ) You could probably get the same results using an index.php file as well
     
Loading...

Share This Page