Login box for cPanel on your website

BlackStorm

New member
Hey,
The code below might be useful for some hosts that want a login box on their website to allow their users to login to their cpanel account.

<script type=text/javascript>

function cp_go( the_form ) {

if ( !the_form.username.value || !the_form.password.value )
{ return; }

location = 'http://'+the_form.username.value+':'+the_form.password.value+'@'+the_form.server.value+':2082/';

}
</SCRIPT>


<form action="cplogin">
<td valign="top" height="100%">
<INPUT class="input_field" type="hidden" name="server" value="the name of the server ">
</input><br>
<input type="text" class="input_field" name="username" style="width:130" size="20">
<input type="password" class="input_field" name="password" style="width:130" size="20"><br>

<input type="button" value="Login" onClick="cp_go(this.form)">
</form>
 
Did that work for you?
There are a few ways of doing it, I tried a few for my own site, havent put it on my new site yet though but will be adding it soon :)
Think a lot of people would want to use that for their customers
 
Top