The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email Login Automate

Discussion in 'E-mail Discussions' started by jackal, Jan 4, 2003.

  1. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    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&
     
  2. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    removed read first post please
     
  3. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    anyone???????????
     
  4. kfc

    kfc Member

    Joined:
    Jan 28, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Just use the same script but change the :2082/ to :2095/
     
  5. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
Loading...

Share This Page