Here is a sample php script that will allow you to add a branded login box to your site:
http://www.cpanel.net/cpanel-login.phps
Here is a sample php script that will allow you to add a branded login box to your site:
http://www.cpanel.net/cpanel-login.phps
Nice improvement.
Thank you.
Where is the right location for this file?
If I put it in my main website such as http://domain.com/cpanellogin.php and user enter wrong password, it will send to the unbranded X skin page asking username and password again.
RVSkin, a great experience for you, resellers and clients!
http://www.RVSkin.com - The Most Intelligent Cpanel Skin, 23 Languages included.
http://www.RVSiteBuilder.com - Website Builder for Hosting Provider.
http://www.cPanelLicense.com - External cPanel License.
Thanks. I'm just doing a bit of work on my site now so it's perfect timing.![]()
Done.
I added a cpanel and webmail login to my site. If anyone wants to see how I made both options available, just look about 2/3 of the way down the source code of http://www.premierwebsitesolutions.ca/members.pws.
I made a tiny change so if someone enters wrong info, they don't see "Your login attempt failed!" for both options.
Thanks Nick.
Here's the piece of php code for that part of my page.
Code:<table align="center" border="0" cellpadding="25" cellspacing="0"> <tr><td align="left"> <p align="left"> <font size="+1" color="#0000a0">cPanel Login</font></p> <?php if ($_GET['cfailed'] == "1") { ?> <p align="left"> <font color=#ff0000><b>Your login attempt failed!</b></font></p> <?php } print "<form action=\"https://" . $_SERVER['HTTP_HOST'] . ":2083/login/\" method=\"post\">"; ?> <p align="left"> <b>Username: </b><input type="text" name="user" size="10"><br> <b>Password: </b><input type="password" name="pass" size="12"><br> <?php print "<input type=\"hidden\" name=\"failurl\" value=\"http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?cfailed=1\">"; ?> <input type="submit" value=" Login "> </form></p> </td><td align="left"> <p align="left"> <font size="+1" color="#0000a0">Webmail Login</font></p> <?php if ($_GET['mfailed'] == "1") { ?> <p align="left"> <font color=#ff0000><b>Your login attempt failed!</b></font></p> <?php } print "<form action=\"https://" . $_SERVER['HTTP_HOST'] . ":2096/login/\" method=\"post\">"; ?> <p align="left"> <b>Username: </b><input type="text" name="user" size="10"><br> <b>Password: </b><input type="password" name="pass" size="12"><br> <?php print "<input type=\"hidden\" name=\"failurl\" value=\"http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?mfailed=1\">"; ?> <input type="submit" value=" Login "> </form></p> </td></tr> </table>
Last edited by squirrel; 06-18-2004 at 12:58 AM.
Sorry, using your login page, I still get the login failed from unbranded X skin.
RVSkin, a great experience for you, resellers and clients!
http://www.RVSkin.com - The Most Intelligent Cpanel Skin, 23 Languages included.
http://www.RVSiteBuilder.com - Website Builder for Hosting Provider.
http://www.cPanelLicense.com - External cPanel License.
Are you on cPanel 9.4.1 or later?
Ahh..sorry I thought that my server is on latest. But it still on cPanel 9.4.0-E36.
Noted that on your login page, if the first time failed and I try to login again the URL will be wrong. I got this:
https://www.premierwebsitesolutions.ca:2083:2083/login/
RVSkin, a great experience for you, resellers and clients!
http://www.RVSkin.com - The Most Intelligent Cpanel Skin, 23 Languages included.
http://www.RVSiteBuilder.com - Website Builder for Hosting Provider.
http://www.cPanelLicense.com - External cPanel License.
Weird, I don't have that happen.
You should upgrade. It's a nice feature.![]()
I agree. This is definitly what I want. Many times I have to answer who is CpanelX. Users thought I was a reseller for them.
Nick, could you tweak it a bit allowing a hidden field
<input type="hidden" page="3rdparty/squirrelmail/index.php">
I want users login to SquirrelMail immediatly. No more webmail application selector.
RVSkin, a great experience for you, resellers and clients!
http://www.RVSkin.com - The Most Intelligent Cpanel Skin, 23 Languages included.
http://www.RVSiteBuilder.com - Website Builder for Hosting Provider.
http://www.cPanelLicense.com - External cPanel License.
For viewing the code above see this for example.
http://www.webhostingmelbourne.com/log.php
Thanks for that!
Webhosting AU
Australian Reseller and Shared Hosting Services - when hosting really matters.
Thanks for the link but the webmail login doesn't work. I tried to login your webmail using test@test.com and password test. It will show the pop-up window asking me the username and password again.Originally posted by webhostau
For viewing the code above see this for example.
http://www.webhostingmelbourne.com/log.php
Thanks for that!
RVSkin, a great experience for you, resellers and clients!
http://www.RVSkin.com - The Most Intelligent Cpanel Skin, 23 Languages included.
http://www.RVSiteBuilder.com - Website Builder for Hosting Provider.
http://www.cPanelLicense.com - External cPanel License.
Well that sounds about right. Its back to the drawing board.
Thanks for that!
Webhosting AU
Australian Reseller and Shared Hosting Services - when hosting really matters.