Page 3 of 3 FirstFirst 123
Results 51 to 57 of 57
  1. #51
    Join Date
    Aug 2003
    Location
    North West, England
    Posts
    112
    Hello, i am trying to do this, but i just get a blank page every time i submit.

    I am using the code above now, i have tried them all. But none of them work.

  2. #52
    Check your version of php, that might cause it. Im knew to php so i dont know much about how it works, just a little on how to code it . Im trying to develop a safer version of this script because its easy for people to see your password.
    (look in the status bar when its logging in. It shows username:password@website.com)

    ill post my new version when its one, maybe it will help you.
    Also, you might try the javascript only version, it works


    java script example using SSL port


    code:--------------------------------------------------------------------------------
    <html>
    <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 cpanel="https://" + username + ":" + password + "@" + server + ":2083";
    window.location = cpanel;
    }
    else {
    alert("Please enter your username and password.");
    }
    }
    // End -->
    </script>
    <body>
    <form name=login>
    <table border=1 cellpadding=3>
    <tr>
    <td colspan=2 align=center>
    <h2><b>Logon to CPanel! </b></h2>
    </td>
    </tr>
    <tr>
    <td>Username:</td>
    <td>
    <input type=text name=username size=20 maxlength="26">
    </td>
    </tr>
    <tr>
    <td>Password:</td>
    <td>
    <input type=password name=password size=20>
    </td>
    </tr>
    <tr>
    <td>Your Domain:</td>
    <td>
    <input type=server name=server 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>
    --------------------------------------------------------------------------------



    java script example w/o SSL port


    code:--------------------------------------------------------------------------------
    <html>
    <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 cpanel="http://" + username + ":" + password + "@" + server + ":2082";
    window.location = cpanel;
    }
    else {
    alert("Please enter your username and password.");
    }
    }
    // End -->
    </script>
    <body>
    <form name=login>
    <table border=1 cellpadding=3>
    <tr>
    <td colspan=2 align=center>
    <h2><b>Logon to CPanel! </b></h2>
    </td>
    </tr>
    <tr>
    <td>Username:</td>
    <td>
    <input type=text name=username size=20 maxlength="26">
    </td>
    </tr>
    <tr>
    <td>Password:</td>
    <td>
    <input type=password name=password size=20>
    </td>
    </tr>
    <tr>
    <td>Your Domain:</td>
    <td>
    <input type=server name=server 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>
    --------------------------------------------------------------------------------
    webmail example:

    code:--------------------------------------------------------------------------------
    <html>
    <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 webmail="http://" + username + "+" + server + ":" + password + "@" + server + ":2095" + "/" + username + "+" + server;
    window.location = webmail;
    }
    else {
    alert("Please enter your username and password.");
    }
    }
    // End -->
    </script>
    <body>
    <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=20 maxlength="26">
    </td>
    </tr>
    <tr>
    <td>Password:</td>
    <td>
    <input type=password name=password size=20>
    </td>
    </tr>
    <tr>
    <td>Your Domain:</td>
    <td>
    <input type=server name=server 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>
    Last edited by free_2_cheat; 02-03-2004 at 11:13 PM.

  3. #53
    Join Date
    Dec 2002
    Location
    The Shadows
    Posts
    2,925
    Nice Modification, free2cheat
    Dan Sheppard ~ Freelance whatever

  4. #54
    We used a similar (home-grown) script to allow logins to cPanel via our main billing interface.

    Unfortunately due to Microsoft's latest security updates to Internet Explorer (see http://support.microsoft.com/default...5bLN%5d;834489, this sort of script will no longer work for IE users.

    One of our developers is working on trying to find a work-around. Anyone here aware of an available work-around? The listed work-around (provided by Microsoft) are not really appropriate for cPanel.

    Thanks,
    Russell
    Sitelutions: www.sitelutions.com -- Reliable Hosting, Low-Cost Domains, Dynamic DNS
    IFlex Data Center.: FlexData.Center
    Northern Virginia & Washington DC Area Data Center Colocation

  5. #55

    Angry Cpanal

    have you figured out that problem? i need one for my hosting company.... and i keep getting that stupid error.... please let me know if anyone figures it out!

    send here > brent@go-techy.com

  6. #56
    Hi guys,
    great script, very similar to what I was looking for.
    Is there anyway of using the loggin part but without going into cpanel or webmail, but just get confirmation that the login is correct and present what ever I want?

    Thanks in advnace,
    Avi "This is my first post" Barliya

  7. #57
    I have tried all of these scripts and none seem to work.

    Is this an IE issue? I want to allow clients to login via my website without having to direct them to a different url.

    If this is possible can someone please help me.

    Btw, I get an error that states "invalid syntax error" Then if i hit refresh it gives me a blank page. Is there a security setting in cpanel that you have to adjust to get this to work?

    Thanks.

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •