PDA

View Full Version : Login Script



raversworld
October 25th, 2007, 18:35
On my new site I want to have it where users can log in to cpanel via the main page. they can input thier username and password and click login and it logs in cpanel. How do i do this take a look at my code if you would like. http://raversworld.com

Thanks in advance,
John

Cam.
October 26th, 2007, 03:49
Here Ya Go:


<form action="http://www.raversworld.com:2082/login/" method="post">
<input name="login_theme" value="cpanel" type="hidden">
<table class="login" cellpadding="0" cellspacing="0" width="200">
<tbody><tr>
<td align="left"><b>Login to cPanel</b></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>Username</td>
<td><input name="user" size="16" type="text"></td>
</tr>
<tr class="row2">
<td>Password</td>

<td><input name="pass" size="16" type="password"></td>
</tr>
<tr>
<td colspan="2" align="center"><input value="Login" class="input-button" type="submit"></td>
</tr>
</tbody></table>
</form>


Just copy and paste it where you want it.

Btw, Your site is down :)

raversworld
October 26th, 2007, 23:04
Works perfectly thanks a lot netx

this is secure right?

JonnyH
October 27th, 2007, 03:29
Yeap. Secure as can be.

Decker
October 27th, 2007, 06:35
Here Ya Go:

That's very nice of you and very usefull (took a copy of that myself :-))

+rep :angel:

Cam.
October 27th, 2007, 18:23
Thanks :)

raversworld
October 27th, 2007, 19:53
Hey sorry to bother again but when i embed it, it doesn't fit right anyway you can make the login spaces smaller?

Decker
October 27th, 2007, 20:24
Cough!
<td><input name="pass" size="16" type="password"></td>

Edit the size parts (2 of them) to say 10 if it's too big :)

Cam.
October 27th, 2007, 20:33
Oops, I should have fixed that, It looked fine on my site though...

Decker
October 27th, 2007, 20:36
Not your fault - bet ravers banging thier head on a wall right now :D

raversworld
October 27th, 2007, 21:21
How do I get it to go like this:


Username
**********
*input user *
**********
Password
***********
* input pass *
***********

so that way they are not right next to each other I tried putting <br> everywhere and still can seem to find out where to make it one below the other.

Decker
October 27th, 2007, 21:46
What, you just need it spaced out better?
Not sure I'm picking up what you need.

raversworld
October 27th, 2007, 21:49
like this:
http://img508.imageshack.us/img508/4655/herepp9.png (http://imageshack.us)
http://img508.imageshack.us/img508/4655/herepp9.208beffb99.jpg (http://g.imageshack.us/g.php?h=508&i=herepp9.png)



instead of this:
http://img451.imageshack.us/img451/8841/hereqj6.png (http://imageshack.us)
btw my site was down due to a ram upgrade. only about 15 mins

Decker
October 27th, 2007, 21:59
Can you email the page and I'll look at the code - probably just an nbsp not there :)

raversworld
October 27th, 2007, 22:27
I got but thanks for all of your help :)
Please Close this thread now :)