<?php
    $postlocation = "login.php";
    print "<form action=\"" . $postlocation . "\" method=\"POST\">";

    if (($_GET['failed'] == "1") or ($error == 1))
    {
?>
        <font color=#FF0000 face=verdana size=1>Your login attempt failed!</font><br>
<?php
    }
?>
    <font face="Verdana" size="1">Domain:</font>
        <input name="domain" class="input2" type="text" value="" style="width:110;height:18;font-family:Verdana; font-size:8pt" size="20" /><br>
        <font face="Verdana" size="1">Username:</font>
        <input name="username" class="input2" type="text" value="" style="width:110;height:18;font-family:Verdana; font-size:8pt" size="20" /><br>
        <font face="Verdana" size="1">Password:</font>
        <input name="pass" class="input2" type="password" value="" style="width:110;height:18;font-family:Verdana; font-size:8pt" size="20" />
<?php
    print "<input type=hidden name=failurl value=\"http://" .  $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?failed=1\">";
?>
    <br>
    <font face="Verdana" size="1">Options:</font>
    <select name="login_option" style="font-family: Verdana; font-size: 8pt;width:110;height:18">
 <!--       <option value="2082">cPanel </option> -->
        <option value="2083">cPanel </option>
 <!--   <option value="2086">WHM</option> -->
    <option value="2087">WHM</option>
 <!--       <option value="2095">Webmail</option> -->
        <option value="2096">Secure Webmail</option>
    </select>
    <br>
        <input class="input2" type="submit" value=" Click to Login " style="width:100;height:20;font-family:Verdana; font-size:8pt" onmouseout="blur(this);" />
    </form>
