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!

how to create cpanel or webmail login script with multiple domain

Discussion in 'E-mail Discussion' started by arif_ceo, Apr 21, 2004.

  1. arif_ceo

    arif_ceo Registered

    Joined:
    Apr 21, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    does anyone here knows how to create cpanel or webmail login script with multiple domain, so we just need one file to logon into multiple domain..no need to create login script one by one every domain itself. HELP ME PLS!!!!
     
  2. Hughra Hosting

    Joined:
    Jan 12, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    <html>
    <?php

    #your domain or ip
    $domain = "pandetica-hosting.com";

    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>
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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