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

Discussion in 'General Discussion' started by tris, Apr 11, 2003.

  1. tris

    tris Active Member

    Joined:
    Apr 11, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Hi

    I am trying to create a login of off my main web site to cpanel. To do this i need to know the username and password variables and the name of the submit or maybe an alternative way of logging in
    thanks
    Tris Pulford
     
  2. SoftmegUK

    SoftmegUK Well-Known Member

    Joined:
    Feb 13, 2002
    Messages:
    372
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    There was a script on hotscripts.com that ment you could login into cPanel via a form pretty securly, but alas its a dead link now and I don't have a copy of it.
    The only way that comes to mind right now, without any long scripts is to make a form go to http://username:password@domain.com/cpanel.... but then theres the problem of it being in the history....
     
  3. jackal

    jackal Well-Known Member
    PartnerNOC

    Joined:
    Feb 23, 2002
    Messages:
    708
    Likes Received:
    0
    Trophy Points:
    16
    You can try this



     
  4. solan

    solan Active Member

    Joined:
    Apr 11, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    I've used the code and it works great .. but I wan't to use an image for the button.. I've changed the syntex from

    <INPUT class=login_but type=button onclick=cp_go(this.form) value=Login>

    to

    <INPUT class=login_but type=image src=images/login.jpg onclick=cp_go(this.form) value=Login>

    I've read alot about changing the type=button to type=image src=images/login.jpg and all the examples that I've seen it works, but I am assuming that onclick=cp_go(this.form) is whats stoping this from completing the login.

    Any help would be helpful!!
    webmaster@hostexc.com
    Shawn Roy
     
  5. tris

    tris Active Member

    Joined:
    Apr 11, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    i have

    i have an impage as well but it doesnt work
     
  6. solan

    solan Active Member

    Joined:
    Apr 11, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    I've used different images and nothing works can someone help change the script or just tell me where to get something that can help..

    thanks
    webmaster@hostexc.com
    Shawn Roy
     
  7. tris

    tris Active Member

    Joined:
    Apr 11, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    i can get it to go to the page but not login so they always get asked to login again
     
  8. fluxservices

    fluxservices Member

    Joined:
    Jun 17, 2003
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Anyone figure this out?

    cPanel.net Support Ticket Number:
     
  9. solan

    solan Active Member

    Joined:
    Apr 11, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    I was never able to change the button to a image but I was able to use CSS and change the button style.

    cPanel.net Support Ticket Number:
     
  10. jnunes

    jnunes Registered

    Joined:
    Jun 14, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    LOGIN WITH SUBMIT IMAGE BUTTON

    :D
    :p

    Put this code:



    <HTML><HEAD>
    <TITLE>WebHosting</TITLE>
    <META content="" name=description>
    <META content="" name=keywords>
    <META content="" name=author>
    <META content="index,follow all" name=robots>
    <META content="1 weeks" name=REVISIT-AFTER>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252">
    <STYLE type=text/css>INPUT {
    FONT-SIZE: 9px
    }
    SELECT {
    FONT-SIZE: 9px
    }
    TD {
    FONT-SIZE: 10px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
    }
    A {
    COLOR: #0000ff
    }
    </STYLE>

    <SCRIPT language=javascript>
    <!--
    function Login(form) {
    var username = form.username.value;
    var password = form.password.value;
    if (username && password && "66.xxx.xxx.xxx") {
    var cpanel = "http://" + username + ":" + password + "@" + "66.xxx.xxx.xxx" + ":2082/";
    window.open(cpanel);
    } else {
    alert("Please enter your username and password.");
    }
    }
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
    }
    //-->
    </SCRIPT>
    </HEAD>
    <BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
    <p>&nbsp;</p>
    <p align="center"><b><span lang="pt">CPANEL with SUBMIT image button</span></b></p>
    <TABLE cellSpacing=0 cellPadding=0 width=780 border=0>
    <TBODY>
    <TR>
    <TD bgColor=#5fa2b8 width="355">
    &nbsp;<TABLE cellSpacing=0 cellPadding=0 width=269 border=0 height="101">
    <TBODY>
    <TR>
    <TD colSpan=5 height="12"></TD></TR>
    <TR>
    <TD height="30">
    <p align="right"><font color="#FFFFFF"><b><span lang="pt">UserName:</span></b></font></TD>
    <TD colSpan=4 height="30">
    <FORM name=login>
    <INPUT class=body type=username size=25 name=username> </TD></TR><TR>
    <TD height="30">
    <p align="right"><b><font color="#FFFFFF"><span lang="pt">PassWord:</span></font></b></TD>
    <TD colSpan=4 height="30">
    <INPUT class=body type=password size=25 name=password> </TD></TR><TR>
    <TD colspan="5" height="28"><span lang="pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </span>
    <INPUT class=body onclick=Login(this.form) type=image src="novo_ficheiros/e_15.gif" name=submit width="66" height="26">


    </TD>
    </FORM>
    </TR>
    <TR>
    <TD height="1"><IMG height=1 alt="" src="novo_ficheiros/spacer.gif"
    width=90></TD>
    <TD height="1"><IMG height=1 alt="" src="novo_ficheiros/spacer.gif"
    width=10></TD>
    <TD height="1"><IMG height=1 alt="" src="novo_ficheiros/spacer.gif"
    width=56></TD>
    <TD height="1"><IMG height=1 alt="" src="novo_ficheiros/spacer.gif"
    width=69></TD>
    <TD height="1"><IMG height=1 alt="" src="novo_ficheiros/spacer.gif"
    width=44></TD></TR></TBODY></TABLE></TD>
    </TR></TBODY></TABLE>

    </BODY></HTML>

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page