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
http://www.cpanel.net/cpanel-login.phps
<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>
Thanks for the link but the webmail login doesn't work. I tried to login your webmail using [email protected] 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!
Use a drop down ... you would have to name your servers for clients or something.fluidhosts said:We Wrote our own just trying to figure a way to make it does multi servers.
Http://www.FluidHosts.com
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
V | SOLVED Adding Google's DKIM to cPanel account? | 5 | ||
L | Problem adding DMARC in cPanel | 1 | ||
![]() |
SOLVED [CPANEL-20535] Adding MX records to subdomains | 2 | ||
M | SPF - cPanel adding + sign automatically | 1 | ||
N | adding TXT record in Cpanel | 7 |