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.

how to create cpanel or webmail login script with multiple domain

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

  1. arif_ceo

    arif_ceo Registered

    Joined:
    Apr 21, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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:
    1
    <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>
     
Loading...

Share This Page