Help - Search - Members - Calendar
Full Version: cPanel & Site Inegration
The Planet Forums > Control Panels > cPanel/WHM
agillett
Hello All,

I am building up my website. It's going to have a place where my clients can log into their cPanel session. I have the user name, and password boxes.

My question is, how do i get these boxes integrated so that when they type in their user name, and password it takes them to their cPanel session, on their site so they can manage it?

Any help would be greatly appreciated. I'm not that good at coding, so this is why i ask.

Thank you,

AG:rolleyes:
nuclear
I did this once; basically all I did was write a php script to redirect the user based on the input. My setup was more complicated so I'll just give you the basic idea.

[PHP]

print("");
print("You will be redirected to cPanel shortly.");
print($access);
?>
[/PHP]

I put that in a file called cplogin.php; I then directed the form to submit to this file; making sure the username and password fields in the form were named username and password respectively.


This only works if the client supports meta refresh, if not you can simply add something like this:

[php]
print("You will be redirected to cPanel shortly.");
[/php]

Like I said, I was using a more complex system to handle multiple servers, whm+cpanel access so I tried to pull out the routine you would want...hopefully it works for you.
john_uk
Hi I have followed the above and all works perfectly, just wondering how you get it to either goto reseller whm or client cpanel??

Regards

John
agillett
Hi thanks for the reply.

Ok i see how this is done, but can i also put this into the first page, seeing how i got the boxes already implemented in every single page. I did this for convinience for my clients.

This way they can log into thier website control panel, and manage their website.


Thank you,

AG
john_uk
Are all the pages you have put it on running under ssl, if not I would say it is quite a security risk.

Regards

John
agillett
Yes, the whole site has got ssl. I am in the testing phases, i have not moved any of my clients over yet. And i will not until i get it all working.

Maybe you can send me your login.php file so i can take a look at it.

Thank you,

AG:confused:
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.