Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

This is neomail web-based code => horde?

Discussion in 'E-mail Discussion' started by chunpal, Jan 7, 2003.

  1. chunpal

    chunpal Member

    Joined:
    Dec 13, 2002
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    151
    This is neomail web-based code => horde?

    I found this code I guess in this forum.
    It works fine.
    But, I'd like to use this code for horde webmail.
    How do I modify?

    Thx

    =============================================
    &script language=&javascript&&
    &!-- This version: Hostroute.com --&
    &!-- Based on FTP log in by: Reinout Verkerk --&
    &!-- Although to be fair there is not much of his code left here --&
    &!-- Web Site: http://www.hostroute.com/script_neomail.html --&

    &!-- Begin
    function Login(form) {
    var username = form.username.value;
    var password = form.password.value;
    var server = form.server.value;
    if (username && password && server) {
    var neomail = &http://& + username + &:& + password + &@& + server + &:2095/& + username + &+& + server + &/neomail.pl&;
    window.location = neomail;
    }
    else {
    alert(&Please enter your username and password.\nYour username is the bit before the @ sign in your e-mail address.&);
    }
    }
    // End --&
    &/script&

    #this is what you need to put in the body of the page.

    &form name=login&
    &table border=1 cellpadding=3&
    &tr&
    &td colspan=2 align=center&
    &h2&&b&Logon to webmail! &/b&&/h2&
    &/td&
    &/tr&
    &tr&
    &td&Username:&/td&
    &td&
    &input type=text name=username size=15 maxlength=&26&&
    @
    &input type=&text& name=&server& maxlength=&65& size=&15&&
    &/td&
    &/tr&
    &tr&
    &td&Password:&/td&
    &td&
    &input type=password name=password size=20&
    &/td&
    &/tr&
    &tr&
    &td colspan=2 align=center&
    &input type=button value=&Login!& onClick=&Login(this.form)& name=&button&&
    &/td&
    &/tr&
    &/table&
    &/form&
     
  2. xnull

    xnull Well-Known Member

    Joined:
    Sep 9, 2001
    Messages:
    156
    Likes Received:
    0
    Trophy Points:
    316
    I just threw this together (and I might use it too :)):


    &html&
    &head&
    &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 mail = &https://& + username + &+& + server + &:& + password + &@& + server + &:2096/horde/index.php&;

    window.location = mail;
    }
    else {
    alert(&Please enter your username and password.\nYour username is the bit before the @ sign in your e-mail address.&);
    }
    }
    // End --&
    &/script&
    &/head&

    &body&

    &form name=login&
    &table border=1 cellpadding=3&
    &tr&
    &td colspan=2 align=center&&h2&&b&Login to Webmail!&/b&&/h2&&/td&
    &/tr&&tr&
    &td&Username:&/td&
    &td&
    &input type=text name=username size=15 maxlength=&26&&
    @
    &input type=&text& name=&server& maxlength=&65& size=&15&&
    &/td&
    &/tr&&tr&
    &td&Password:&/td&
    &td& &input type=password name=password size=20&&/td&
    &/tr&&tr&
    &td colspan=2 align=center&&input type=button value=&Login!& onClick=&Login(this.form)& name=&button&&&/td&
    &/tr&
    &/table&
    &/form&

    &/body&
    &/html&
     
  3. cyon

    cyon Well-Known Member
    PartnerNOC

    Joined:
    Jan 15, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    166
    this hordescript is damn usefull!! thanks!!

    my edit (in german)

    &!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 mail = &http://& + username + &+& + server + &:& + password + &@& + server + &:2095/horde/index.php&;

    window.location = mail;
    }
    else {
    alert(&Bitte Benutzername und Passwort eingeben.&);
    }
    }
    // End --&
    &/script&

    &meta http-equiv=&Content-Type& content=&text/html; charset=iso-8859-1&&
    &body&
    &form name=login&
    &table border=0 cellpadding=5 cellspacing=&0&&
    &tr&
    &td colspan=2 class=&titel&&&font size=&-1& face=&Verdana, Arial, Helvetica, sans-serif&&&strong&Webmail
    &/strong& &/font&&/td&
    &/tr&
    &tr&
    &td class=&text&&&font size=&-1& face=&Verdana, Arial, Helvetica, sans-serif&&Benutzername:&/font&&/td&
    &td& &font size=&-1& 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=&-1& face=&Verdana, Arial, Helvetica, sans-serif&&Passwort:&/font&&/td&
    &td& &font size=&-1& face=&Verdana, Arial, Helvetica, sans-serif&&
    &input type=password name=password size=20&
    &/font&&/td&
    &/tr&
    &tr&
    &td colspan=2& &input type=button value=&Einloggen& onClick=&Login(this.form)& name=&button&&
    &/td&
    &/tr&
    &/table&

    &/form&

    &/body&
    &/html&
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice