RE: FAQ "login to cPanel from a website form"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jonathan
    Senior Member
    • Mar 2004
    • 1229

    RE: FAQ "login to cPanel from a website form"

    FAQ: http://forums.dathorn.com/showthread.php?t=62

    Hey, KyleC, I tried to use that; but instead, I put
    2082 with 2095, which would log into Webmail instead of cPanel.

    Now, this worked, yes; but it seemed every image
    that wanted to load, I had to re-enter my password in that lil popup box.

    Same with doing anything; is there a way to make it simply
    so it pops up one time? Or is this because I put it as 2095 for webmail?

    Just wondering, as I am setting up a online gaming "clan" (group)
    website template, and would like to use this in it

    PS: Could this also be because my site
    does not have an SSL Certificate?
    Would having this form for cPanel or Webmail be
    more than just a "trival" insecurity without an SSL Certificate?


    <EDIT>Here's a script I found on the web, but
    not sure how secure it is, etc.

    ** Place Inside the <BODY> </BODY> Tags **
    PHP Code:
    <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 
    neomail "http://" username +"+"+server":" password "@" server ":2095/" "neomail/neomail.pl"
    window.status='WebMail Login'
    window.location neomail


    else { 
    alert("Please fill the username and the password")
    }
    }
    </
    script

    <
    form name="login">
    <
    table border="0" cellpadding="1" align="center" width="430">

    <
    tr><td align=center>
    <
    font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">
           <
    h1><b><font color="#CCCCCC">Webmail Login</font></b></h1>

    <!-- 
    Replace the yourdomain.com in the next line withwellyou know. -->

    <
    input type="hidden" value="domain.com" name="server" maxlength="30" size="15">
    </
    font></td></tr>

    <
    tr><td align="center">
    <
    h2>User:&nbsp;&nbsp;
    <
    input type="text" name="username" size="15" maxlength="30">
    </
    h2></td></tr>

    <
    tr><td align="center">
    <
    h2>Password:&nbsp;&nbsp;
    <
    input type="password" name="password" size="20">
    </
    h2></td></tr>

    <
    tr><td align="center">
    <
    input type="submit" value="Login" onClick="Login(this.form)" name="button">
    </
    td></tr>

    </
    table
    </
    form
    </EIDT>
    Last edited by Jonathan; 03-28-2004, 06:39 PM.
    "How can someone be so distracted yet so focused?"
    - C
  • KyleC
    Senior Member
    • Mar 2004
    • 291

    #2
    i didnt write that, and i dont remember who did, someone on these forums i think, or they found it somewhere.

    If you are using https that may be the problem, did you try to just use http?
    its not a big deal in my opinion to use http insead of https for webmail.

    -kyle
    -Kyle

    Comment

    • Jonathan
      Senior Member
      • Mar 2004
      • 1229

      #3
      Originally posted by KyleC
      i didnt write that, and i dont remember who did, someone on these forums i think, or they found it somewhere.

      If you are using https that may be the problem, did you try to just use http?
      its not a big deal in my opinion to use http insead of https for webmail.

      -kyle
      I am not using https, as my site is not running any
      sort of SSL Certificate, as I perfer to simply use PayPal;
      and yes, it was using normal http.
      "How can someone be so distracted yet so focused?"
      - C

      Comment

      Working...