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!

Default Index Page under cpanel3-skel

Discussion in 'General Discussion' started by checksoft, Sep 20, 2004.

  1. checksoft

    checksoft Well-Known Member

    Mar 16, 2002
    Likes Received:
    Trophy Points:
    On the cpanel faq page, the below file is provided for uploading to the /cpanel3-skel / public_html/ directory. It resolves as the default index page for any domain lacking an index page in their /username/public_html. I tried it and it works up to a point.

    Here's the fly in the ointment:

    File Type: PHP script text
    [Web Hosting Company Name Here]
    cPanel Login
    Your login attempt failed! "; ?> User:
    "; ?>

    What am I doing wrong?? It's pretty obvious I need to change some text, but the code is showing complete with the text boxes, but it doesn't give you a chance to enter the login.

    Here's the script:

    #Login Configuration

    $protocol = 'http';
    $port = 2082;

    #Secure cPanel
    #$protocol = 'https';
    #$port = 2083;

    #$protocol = 'http';
    #$port = 2086;

    #Secure WHM
    #$protocol = 'https';
    #$port = 2087;

    #$protocol = 'http';
    #$port = 2095;

    #Secure Webmail
    #$protocol = 'https';
    #$port = 2096;

    <h1>[Web Hosting Company Name Here]</h1>

    <b>cPanel Login</b><br>

    if ($_GET['failed'] == "1") {
    <font color=#FF0000>Your login attempt failed!</font>
    print "<form action=\"" . $protocol . "://" . $_SERVER['HTTP_HOST'] . ":" . $port . "/login/\"
    User: <input type=text name=user><br>
    Pass: <input type=password name=pass><br>
    print "<input type=hidden name=failurl value=\"http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?failed=1\">";
    <input type=submit value=Login>
    <a href="cpanel-login.phps">Source</a><br>
    Note: This examples requires cPanel 9.4.1 or later!
    </html> :cool:
    #1 checksoft, Sep 20, 2004
    Last edited: Sep 21, 2004

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