Email Login Automate

jackal

Well-Known Member
PartnerNOC
Feb 23, 2002
707
0
316
Looking for a script wandering if anyone has it?

Doing new design on site, wanting to put login on page for clients to login into their email on their site.
Any ideas?

Thx
I have one for Control panel login here just need one for webmail.
for cpanel. Tried to change 2082 to 2095 in script but would not work.

thx


&!doctype html public &-//w3c//dtd html 4.0 transitional//en&&
&html&
&head&
&title& CP Login &/title&

&style type=&text/css&&

.left_table { width: 150; }
.right_table { width: 150; }
.input_field { width: 150; border: 1px solid black; }
.login_but { width: 300; border: 1px solid black; }
.main_table { width: 300; border: 0; }

&/style&

&script type=&text/javascript&&

/*
+----------------------------------------------------------------------------+
| Cpanel Login |
| By Steve Miles aka Steve-PWH / SmileyMan |
| Copyright Proxima Web-Hosting 2002 All Rights Resevred |
| Free for use as long as header stays in place |
+----------------------------------------------------------------------------+
*/

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[the_form.server.selectedIndex].value+':2082/';

}

&/script&

&/head&

&body&

&form name=&cplogin&&

&table class=&main_table& cellspacing=&0& cellpadding=&0&&
&tr&
&td class=&left_table&&
Select your server:
&/td&
&td class=&right_table&&
&select name=&server& class=&input_field&&
&option value=&server.domain.net&& Server 1&/option&
&option value=&server.domain.net&& Server 2 &/option&
&/select&
&/td&
&/tr&
&tr&
&td class=&left_table&&
Username:
&/td&
&td&
&input type=&text& class=&input_field& name=&username&&
&/td&
&/tr&
&tr&
&td class=&left_table&&
Password:
&/td&
&td&
&input type=&password& class=&input_field& name=&password&&
&/td&
&/tr&
&tr&
&td colspan=&2&&
&input type=&button& class=&login_but& Value=&Login& onclick=&cp_go(this.form)&&
&/td&
&/tr&
&/table&
&/form&

&/body&
&/html&
 

jackal

Well-Known Member
PartnerNOC
Feb 23, 2002
707
0
316
Ok been sometime before I could get back to this. As stated in the first post ,script works great for cpanel login using 2082.

I changed out 2082 to 2095 and it works but?


In the cpanel login script you input your username and also your password and it goes right into the cpanel.

When using the script and replacing 2082 with 2095 for webmail, you input your username and password and enter, and then the window comes up again and request username and pass again once you have placed information in the second time it goes to webmail.

Need it where you input information in one time like the cpanel login.

Any ideas?