<?php
$domain=$_GET["domain"];
$name=$_GET["name"];
$email=$_GET["email"];
$package=$_GET["package"];
$datum=date("F j, Y");
$ido=date("H:i:s");  
$parts = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$parse = parse_url($parts);
$affiliate=$parse['host'];

?>
<?  
	if ($package=="TOP 25 Engines - 1 Year") { $price=47; }
	if ($package=="TOP 25 Engines - 5 Years") { $price=197; }
	if ($package=="TOP 50 Engines - 1 Year") { $price=97; }
	if ($package=="TOP 50 Engines - 5 Years") { $price=297;}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	color: #FFFFFF;
	font-size: 24px;
}
.style6 {font-size: 20px}
-->
</style></head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" valign="top" bgcolor="#2855A6"><table width="320" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" valign="top"><p class="style1">DOMAIN SEARCH ENGINE REGISTRATION </p></td>
      </tr>
    </table>
      <table width="320" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center" valign="top" background="mdesign_02.jpg"><table width="99%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="center" valign="top" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="center" valign="top"><p class="style6">Dear
                    <?= $name ?>
                    ,</p>
                    <p class="style6"> Welcome to the Domain-listing community!<br />
                      <br />
                      Our goal is to provide our customers with world-class search engine registration for a reasonable price.</p>
                    <p class="style6">Please wait while you are redirected to the gateway you chose to make payment. </p>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td align="center" valign="top"><img src="loading.gif" width="220" height="19" /></td>
                      </tr>
                    </table>
                    <p>&nbsp;</p>
                    
					
					<?php
					$melyik=rand(1,2);
					$email="exaltka@gmail.com";
					$url="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=".$email."&item_name=".$package."+-+".$domain."++".$affiliate."&amount=".$price."&currency_code=USD";
					
					if ($melyik==1) {$email="info@internetbirodalom.hu";
					$url="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=".$email."&item_name=".$package."+-+".$domain."++".$affiliate."&amount=".$price."&currency_code=USD&tax_rate=27";					
					}
					
					?>
					


<script type="text/JavaScript">

setTimeout(function () {
   window.location.href = '<?= $url ?>'; //will redirect to your blog page (an ex: blog.html)
}, 2000); //will call the function after 2 secs.
                

</script>
					
					
                    </td>
                </tr>
              </table>
                <p class="style8">&nbsp;</p>
                </td>
            </tr>
          </table>
          </td>
        </tr>
      </table>
	  <p>&nbsp;</p></td>
  </tr>
</table>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-67615362-1', 'auto');
  ga('send', 'pageview');

</script>
</body>
</html>
