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.

Integrating php with cpanel

Discussion in 'cPanel Developers' started by remik, Jan 27, 2005.

  1. remik

    remik Guest

    Hello,
    I am beggining to write a payments module to cpanel in php. It would allow users to check their payments, generate invoices and order new servers.
    I would like to integrate it with users cpanel. After logging into cpanel the user would see an extra icon.
    I managed to find a way to add a new 'feature' and know how to create a webpage which uses cpanel's theme.
    The problem is with user authentication. How can I check using PHP if the user is correctly logged in and which user is it? Does cpanel set any cookies or is it handled with a session?
    I know it would be easier to write the module in perl, but I have a better knowledge of php and consider this language more flexible.
     
    #1 remik, Jan 27, 2005
    Last edited by a moderator: Jan 29, 2010
  2. kosmo

    kosmo Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    403
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    All over Europe
    Use
    $your_user = "$REMOTE_USER"

    kosmo
     
Loading...

Share This Page