<?php include 'inc/sqlinf.php'; 

$SQL = "SELECT * from SETTINGS";
$result = mysql_query( $SQL );
while( $row = mysql_fetch_array( $result ) ) {
include 'admin/query.php';}

$package = $_POST['hp'];
$domain = $_POST['domain'];
$subdomain = $_POST['subdomain'];
$un = $_POST['un'];
$pw = $_POST['pw'];
$confirmpassword = $_POST['confirmpassword'];
$email = $_POST['email'];
$confirmemail = $_POST['confirmemail'];

?>
<html>
<head>
<title>Hosting Order Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include 'inc/apple.inc'; ?>

<?php
#############################################
include 'inc/checking.php';
#############################################
?>



</head>

<body bgcolor="#FFFFFF" text="#000000">
<div align="center"><br>
  <table border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td width="17" bgcolor="#333333" background="img/tl.jpg"></td>
          <td height="17" background="img/shgt.jpg"></td>
          <td width="7" bgcolor="#333333" background="img/tr.jpg"></td>
        </tr>
        <tr> 
          <td width="7" background="img/svgl.jpg"></td>
          <td bgcolor="#FFFFFF"> 
                <table border="5" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" width="100%">
                  <tr> 
                        <td valign="top" bgcolor="#FFFFFF"> 
                          <div align="center"><b>Your Hosting Company</b><br>
                                Confirm Account Details &amp; Select Billing Cycle</div>
                        </td>
                        <td valign="top">&nbsp; </td>
                  </tr>
                </table>
          </td>
          <td width="17" background="img/svgr.jpg"></td>
        </tr>
        <tr> 
          <td width="7" bgcolor="#333333" background="img/bl.jpg"></td>
          <td height="17" background="img/shg.jpg"></td>
          <td width="7" bgcolor="#333333" background="img/br.jpg"></td>
        </tr>
  </table>
</div>
<?php
$SQL = "SELECT * from FREEHOSTING";
$result = mysql_query( $SQL );
while( $row = mysql_fetch_array( $result ) ) {
include 'admin/query.php'; }
if ($free == NO) {$x = 'order3.php';}else{$x = 'ipn/free.php';}
?>
<form name="form1" method="post" action="<?php echo $x; ?>">
  <table border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td width="17" bgcolor="#333333" background="img/tl.jpg"></td>
          <td height="17" background="img/shgt.jpg"></td>
          <td width="7" bgcolor="#333333" background="img/tr.jpg"></td>
        </tr>
        <tr> 
          <td width="7" background="img/svgl.jpg"></td>
          <td bgcolor="#FFFFFF"> 
                <table border="5" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
                  <tr> 
                        <td valign="top" bgcolor="#FFFFFF"> 
                          <table border="5" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC" bordercolor="#FFFFFF" align="center" background="img/g.jpg">
                                <tr bgcolor="#F9F9F9" valign="middle"> 
                                  <td bgcolor="#F9F9F9"><font color="#000000"> Username</font></td>
                                  <td bgcolor="#F9F9F9"><b> 
                                        <?php echo $un; ?>
                                        <input type="hidden" name="un" value="<?php echo $un; ?>">
                                        </b></td>
                                </tr>
                                <tr bgcolor="#F9F9F9" valign="middle"> 
                                  <td bgcolor="#F9F9F9"><font color="#000000"> Password</font></td>
                                  <td bgcolor="#F9F9F9"><b> 
                                        <?php echo $pw; ?>
                                        <input type="hidden" name="pw" value="<?php echo $pw; ?>">
                                        </b></td>
                                </tr>
                                <tr bgcolor="#F9F9F9" valign="middle"> 
                                  <td bgcolor="#F9F9F9"><font color="#000000"> Email Address<font color="#F9F9F9">-</font></font></td>
                                  <td bgcolor="#F9F9F9"><b> 
                                        <?php echo $email; ?>
                                        <input type="hidden" name="email" value="<?php echo $email; ?>">
                                        </b></td>
                                </tr>
                                <tr bgcolor="#F9F9F9" valign="middle"> 
                                  <td bgcolor="#F9F9F9"><font color="#000000"> Domain</font></td>
                                  <td bgcolor="#F9F9F9"><b> 
                                        <?php

if($syn == YES) {echo "$domain.$sub";}else{
echo "$domain";}

?>

                                        <input type="hidden" name="domain" value="<?php
if($syn == YES) {echo "$domain.$sub";}else{echo "$domain";}?>
">
                                        </b></td>
                                </tr>
                                <tr bgcolor="#F9F9F9" valign="middle"> 
                                  <td bgcolor="#F9F9F9">Package</td>
                                  <td bgcolor="#F9F9F9"><b> 
                                        <?php echo $package; ?>
                                        
                                                                                        <?php
if($free == NO)
{
$SQL = "SELECT * from HOSTINGPACKAGES WHERE NAME='$package'";
$result = mysql_query( $SQL );
while( $row = mysql_fetch_array( $result ) ) {
$free = 'NO';
include 'admin/query.php';}}

if ($free == YES){
$SQL = "SELECT * from FREEHOSTING";
$result = mysql_query( $SQL );
while( $row = mysql_fetch_array( $result ) ) {
$free = 'YES';
$whmname = $row["WHMNAME"];}}
?>
                                        
                                        <input type="hidden" name="hp" value="<?php echo $whmname; ?>">
                                        </b></td>
                                </tr>
                          </table>
                        </td>
                        <td valign="top"> 
                          <table border="5" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC" bordercolor="#FFFFFF" align="center" background="img/g.jpg">
                                <tr bgcolor="#F9F9F9" valign="middle"> 
                                  <td bgcolor="#F9F9F9"> 
                                        <div align="left"><font color="#000000"><b>BILLING CYCLE</b></font></div>
                                  </td>
                                </tr>
                                <tr bgcolor="#F9F9F9" valign="middle"> 
                                  <td bgcolor="#FFFFFF"> 
                                        
                                        <div align="left"> <font color="#000000"><b> 
                                          <select name="billing">

                                                <?php if (empty($monthly)) {} else { ?>
                                                <option value="Monthly"> 
                                                <?php echo $monthly; ?>
                                                | Monthly</option>
                                                <?php } ?>
                                                <?php if (empty($quarterly)) {} else { ?>
                                                <option value="Quarterly"> 
                                                <?php echo $quarterly; ?>
                                                | Quarterly</option>
                                                <?php } ?>
                                                <?php if (empty($semiannually)) {} else { ?>
                                                <option value="Semi-Annually"> 
                                                <?php echo $semiannually; ?>
                                                | Semi-Annually</option>
                                                <?php } ?>
                                                <?php if (empty($annually)) {} else { ?>
                                                <option value="Annually"> 
                                                <?php echo $annually; ?>
                                                | Annually</option>
                                                <?php } ?>
                                                <?php if (empty($twoyears)) {} else { ?>
                                                <option value="2Years"> 
                                                <?php echo $twoyears; ?>
                                                | 2 Years</option>
                                                <?php } ?>

                                          </select>
                                          </b></font></div>
                                  </td>
                                </tr>
                          </table>
                          
                          <div align="center"><b><font color="#FFFFFF"> <br>
                                <input type="submit" style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; font-size: 10px; background-color: #FCFCFC;" name="&raquo; Next" value="&raquo; Next">
                                </font> </b></div>
                        </td>
                  </tr>
                </table>
          </td>
          <td width="17" background="img/svgr.jpg"></td>
        </tr>
        <tr> 
          <td width="7" bgcolor="#333333" background="img/bl.jpg"></td>
          <td height="17" background="img/shg.jpg"></td>
          <td width="7" bgcolor="#333333" background="img/br.jpg"></td>
        </tr>
  </table>
  <div align="center"> 
        <p align="right"><font color="#CCCCCC"><br>
          </font><font color="#CCCCCC"><font color="#cccccc">Powered by <font color="#cccccc">Auto-Host 
          2</font></font></font></p>
  </div>
</form>
</body>
</html>
