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 Integration

Discussion in 'General Discussion' started by Svv4T, Jun 23, 2004.

  1. Svv4T

    Svv4T Registered

    Joined:
    May 31, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hey,

    I tried using the Search function, but couldn't find any threads matching my problem.
    I'd like to add login box to my site to allow users to enter to their cpanel.
    Visit http://www.nukehost.biz/phpnuke and look at the cpanel login box I did. Customers would enter their cpanel login and pass, and would be taken to their cpanel account.

    How can I do that? (HTML)

    Thanks :)
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  3. Svv4T

    Svv4T Registered

    Joined:
    May 31, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
  4. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  5. Svv4T

    Svv4T Registered

    Joined:
    May 31, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hum it works too, but I can't find a way to integrate this code:

    <html>
    <?php

    #your domain or ip
    $domain = "nukehost.biz";

    if(!$_POST['login']) {
    exit;
    }

    $user = $_POST['user'];
    $pass = $_POST['pass'];
    $port = $_POST['port'];

    $port == "2083" || $port == "2096" ? $pre = "https://" : $pre = "http://";
    $port == "2095" || $port == "2096" && !eregi("@", $user) ? $user = "".$user."@".$domain."" : $user = $user;

    ?>
    <body onLoad="setTimeout('document.forms[0].submit();',10)">
    <form action="<?php echo "".$pre."".$domain.":".$port."/login/"; ?>" method="post">
    <input type="hidden" name="user" value="<?php echo $user; ?>">
    <input type="hidden" name="pass" value="<?php echo $pass; ?>">
    </form>
    </body>
    </html>

    into this html code:
    <TABLE WIDTH=780 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center"
    style="border-right:1px solid #000000; border-left:1px solid #000000 ">
    <TR>
    <TD WIDTH=570 HEIGHT=185 ROWSPAN=3>
    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    WIDTH="570" HEIGHT="185" id="0259_intro" ALIGN="">
    <PARAM NAME=movie VALUE="themes/2440/flash/0259.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>
    <EMBED src="themes/2440/flash/0259.swf" quality=high bgcolor=#FFFFFF WIDTH="570" HEIGHT="185" NAME="0259" ALIGN=""
    TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
    </OBJECT>
    </TD>
    <TD COLSPAN=3 background="themes/2440/images/cphdr.gif" WIDTH=210 HEIGHT=39>
    <span style="font:bold 11px Tahoma; color:#FFFFFF; padding-left:30px ">Cpanel Login</span></TD>
    </TR>
    <TR>
    <TD COLSPAN=3 background="themes/2440/images/login.gif" WIDTH=210 HEIGHT=110>
    <div style="padding:5">
    <div align="right" style="padding-right:20"><b style="color:000000;font-family: Tahoma;font-size: 11px;">Login:</b>&nbsp;&nbsp;<input type="text" size="14"> </div>
    <div align="right" style="padding-right:20"><b style="color:000000; font-family: Tahoma;font-size: 11px;">Password:</b>&nbsp;&nbsp;<input type="text" size="14"> </div>
    <div align="right" style="padding-right:20;padding-top:5"><a href="#"><img src="themes/2440/images/lost.gif" hspace="5" border="0"></a>&nbsp;<a href="http://www.nukehost.biz/cpanel"><img src="themes/2440/images/ok.gif" hspace="10" border="0"></a></div>
    </div>
    </TD>
    </TR>
    <TR>
    <TD>
    <IMG SRC="themes/2440/images/nb1.gif" WIDTH=28 HEIGHT=36 ALT=""></TD>
    <TD background="themes/2440/images/cp1.gif" WIDTH=84 HEIGHT=36 align="center">
    <a href="modules.php?name=Forums" style="font:bold 11px Tahoma; color:#128AB6; text-decoration:none ">FORUMS</a></TD>
    <TD background="themes/2440/images/cp2.gif" WIDTH=98 HEIGHT=36 align="center">
    <a href="modules.php?name=Content&pa=showpage&pid=6" style="font:bold 11px Tahoma; color:#128AB6; text-decoration:none ">SUPPORT</a></TD>
    </TR>
    </TABLE>
    <!-- FIN DEL TITULO -->

    <table width="780" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" align="center"
    style="border-right:1px solid #000000; border-left:1px solid #000000 "><tr valign="top">
    <td bgcolor="#ffffff"></td>
    <td bgcolor="#ffffff" width="150" valign="top">

    Can anyone help me?
    Thanks :)
     
Loading...

Share This Page