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.

Login with forms?

Discussion in 'General Discussion' started by feitosa, Nov 28, 2002.

  1. feitosa

    feitosa Registered

    Joined:
    Nov 28, 2002
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    How to make a login with form html to access the webmail ?

    The user enter with your login and pass in one form html, an when his press Submit form, automatically his will be send to your webmail...

    how to make this?
     
  2. promak

    promak Well-Known Member

    Joined:
    Oct 6, 2001
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    i found one web-site have this !
    http://www.dothostpro.com/login.php

    i also want this script!
    any one can teach me how to make it with php
     
  3. iain-pczap.net

    iain-pczap.net Active Member

    Joined:
    Dec 27, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    nice

    I've been trying to do the same but was told its impossible....
    anyone know of a solution?
     
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    We have done this by copying /usr/local/cpanel/base/uebimiau mail program to /usr/local/apache/htdocs/mail

    Then you can access mail using email address and password.
    To see what it looks like check our site at http://www.mymailwebsite.com/mymail/
     
  5. iain-pczap.net

    iain-pczap.net Active Member

    Joined:
    Dec 27, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    &uebimiau& was removed for instability was it not?
     
  6. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Link removed, yes.
    Program removed, no.
     
  7. cyberbrain

    cyberbrain Registered

    Joined:
    Feb 9, 2003
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    here it gos

    _____________________

    &html&
    &head&
    &script language=&javascript&&
    function Login(form) {
    var username = form.username.value;
    var password = form.password.value;
    var server = form.server.value;
    if (username && password && server) {
    var horde = &http://& + username +&+&+server+ &:& + password + &@& + server + &:2095/& + &horde/index.php&;
    window.status='WebMail';
    window.location = horde;

    }
    else {
    alert(&Please fill the username and the password&;
    }
    }
    &/script&
    &/head&
    &body&




    &form name=login&
    &p& &/p&&table width=&350& border=&0& align=&center&&
    &tr&
    &td height=&50& colspan=&2&&&div align=&center&&&font color=&#000000&&&b&&font face=&Verdana, Arial, Helvetica, sans-serif& size=&4&&WebMail&/font&&font color=&#000000& face=&Verdana, Arial, Helvetica, sans-serif&&
    &input type=&hidden& value=&yourdomain.com& name=&server& maxlength=&30& size=&15&&
    &/font&&/b&&/font&&/div&&/td&
    &/tr&
    &tr&
    &td width=&30%& height=&30&&&font face=&Arial, Helvetica, sans-serif&&Username:&/font&&/td&
    &td width=&70%& height=&30&&&font color=&#000000& face=&Verdana, Arial, Helvetica, sans-serif&&
    &input type=text name=username size=15 maxlength=&30&&
    &font size=&2& face=&Arial, Helvetica, sans-serif&&@yourdomain.com&/font&&/font&&/td&
    &/tr&
    &tr&
    &td width=&30%& height=&30&&&font face=&Arial, Helvetica, sans-serif&&Password:&/font&&/td&
    &td width=&70%& height=&30&&&font color=&#000000& face=&Verdana, Arial, Helvetica, sans-serif&&
    &input type=password name=password size=20&
    &/font&&/td&
    &/tr&
    &tr&
    &td width=&30%& height=&30&& &/td&
    &td width=&70%& height=&30&&
    &div align=&center&&&font color=&#000000& face=&Verdana, Arial, Helvetica, sans-serif&&
    &input type=button value=&Login& onClick=&Login(this.form)& name=&button&&
    &/font&&/div&&/td&
    &/tr&
    &/table&
    &p& &/p&
    &/form&
    &/body&
    &/html&

    ___________________



    Note change: yourdomain.com
     
  8. promak

    promak Well-Known Member

    Joined:
    Oct 6, 2001
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Is this code is php or cgi?

    cPanel.net Support Ticket Number:
     
  9. cyon

    cyon Well-Known Member
    PartnerNOC

    Joined:
    Jan 15, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    16
    here is a html code of a horde webmail login form. I found it some months ago in this forum and modified it a litte. it's very easy to customize.

    have phun

     
  10. promak

    promak Well-Known Member

    Joined:
    Oct 6, 2001
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Can it change to login cpanel :2082 ?

    cPanel.net Support Ticket Number:
     
  11. promak

    promak Well-Known Member

    Joined:
    Oct 6, 2001
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Can it change to login cpanel :2082 ?

    cPanel.net Support Ticket Number:
     
  12. cyon

    cyon Well-Known Member
    PartnerNOC

    Joined:
    Jan 15, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    16
    whats your question?

    cPanel.net Support Ticket Number:
     
  13. promak

    promak Well-Known Member

    Joined:
    Oct 6, 2001
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    i means can it modify then login to control panel
    like http://myhost:2082

    i want to make a login form to login to 2082

    cPanel.net Support Ticket Number:
     
  14. eStudios

    eStudios Active Member

    Joined:
    Feb 20, 2003
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    va
    Yes, using the above coding but altered...

    PHP:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <
    html>
    <
    head>
    <
    title>Webmail</title>
    <
    script language="javascript"
    <!-- 
    Begin
    function Login(form) {
    var 
    username form.username.value;
    var 
    password form.password.value;
    var 
    server form.server.value;
    if (
    username && password && server) {
    var 
    panel "http://" username ":" password "@" server ":2082";

    window.location panel;
    }
    else {
    alert("Please enter your username and password.");
    }
    }
    // End -->
    </script>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <body>
    <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Welcome 
    to our Webmail</strong></font></p>
    <form name=login>
    <table border=0 cellpadding=5 cellspacing="0">
    <tr> 
    <td class="text"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Username:</font></td>
    <td> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
    <input type=text name=username size=15 maxlength="26">
    <span class="text">@</span> 
    <input type="text" name="server" maxlength="65" size="15">
    </font></td>
    </tr>
    <tr> 
    <td class="text"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Password:</font></td>
    <td> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
    <input type=password name=password size=20>
    </font></td>
    </tr>
    <tr> 
    <td colspan=2> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
    <input type=button value="Login" onClick="Login(this.form)" name="button">
    </font></td>
    </tr>
    </table>
    </form>

    </body>
    </html>

    Good Day

    cPanel.net Support Ticket Number:
     
  15. promak

    promak Well-Known Member

    Joined:
    Oct 6, 2001
    Messages:
    248
    Likes Received:
    0
    Trophy Points:
    16
    Thank You!
    :D :D

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page