Vessio Weblog

cPanel & Webmail Direct Login Script

February 22nd, 2010

The majority of hosting providers, resellers, and developers use cPanel to manage their hosting. Logging into cPanel or webmail is not the most “graceful” of transitions in my opinion and usually with direct input (ie: www.domain.com/cpanel or www.domain.com/webmail) defaulting to standard browser authentication is just archaic. We created a simple PHP script to shield the standard login for cPanel and webmail access for users; there may be a few variations of this script floating around on the net, though I felt our version useful enough to share for download.

The functionality is simple, the goal is to provide access to 2 pre-configured ports and your domain or IP via PHP.

Below is a quick sample of how this looks in your PHP file:

$domain = “domain.com”;

$port == “2083″ || $port == “2096″ ;
Now to go the extra mile we can give an SSL option with the ports which would be:

$port == “2083″ || $port == “2096″ ? $pre = “https://” : $pre = “http://”;

Configuration is extremely simple, once you download the file package, open “cplogin.php” located inside the “process” directory and enter your domain name where commented. The form inside the package is functional, though of course you may want to adjust the CSS to fit the style of your website.

If you should require assistance with this script or assistance in customization, post a comment below and we will be glad to help you out.

Applications & Downloads, Design & Development, News & Events, Tools & Resources, Web Hosting

2 Responses to “cPanel & Webmail Direct Login Script”

Mike Danna

No Problem anytime Alex, I am glad we could help you out!

Alex

Brilliant works great. Thanks for the VERY quick response.

Leave a Reply