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.

Getting the username

Discussion in 'User Experience' started by greg, Jul 3, 2002.

  1. greg

    greg Active Member

    Joined:
    Sep 4, 2001
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Hi, I've just started creating a theme and I was hoping to take information from our database and place it in the theme. However in order to do this I need to know the users username.

    I am using PHP. Does anyone know a way I can find the username?

    Any help would be greatly appreciated!

    Thanks in advance.
     
  2. Elena

    Elena Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    California
    &cpanel print=&$user&&

    that cpanel tag will display the username for the account. :)
     
  3. greg

    greg Active Member

    Joined:
    Sep 4, 2001
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Worked a treat thanks!

    Much appreciated.

    Regards

    Greg Gannicott
    greg@easyhosts.com
    www.easyhosts.com
     
  4. hostbet

    hostbet Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    [quote:1a06dbff9f][i:1a06dbff9f]Originally posted by Elena[/i:1a06dbff9f]

    &cpanel print=&$user&&

    that cpanel tag will display the username for the account. :) [/quote:1a06dbff9f]

    Anyway to know how to pull the password?

    that will really help!
     

Share This Page