<?
ob_start();
session_start();
include("include/db.inc.php");
include("include/bit_functions.inc.php");
if($_SESSION['lang']=='')
{
	$_SESSION['lang'] = "en";
}

include 'languages/lang_common_'.$_SESSION['lang'].'.php';
$db1=new db;
$db1->open();
mysql_query("SET NAMES 'utf8'");
		 $currency_symbol_new=symbol_currency();
$uid=$_SESSION['uid'];

$order_id=($_GET['order_id']);
$soldid=explode('_',$order_id);
$txn_id = $_POST['txn_id'];
$item_name = $_POST['item_name'];
$item_number = $_POST['item_number'];
$payment_status = $_POST['payment_status'];
$amount = $_POST['payment_gross'];
$currency_code = $_POST['mc_currency'];
$txn_id = $_POST['txn_id'];
$receiver_email = $_POST['receiver_email'];
$payer_email = $_POST['payer_email'];
$payment_date = $_POST['payment_date'];
$date=date("Y-m-d");
for ($ii=0;$ii<count($soldid);$ii++)
  {
    mysql_query("update t123go_product_sold set payment='1' where id='".$soldid[$ii]."'");
  }
$sql="insert into t123go_transactions values ('','$item_name','$item_number','$payment_status','$amount','$currency_code','$txn_id','$receiver_email','$payer_email','$payment_date')";
	 $q=@mysql_query($sql);


?>

<!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>
<base href="<?=_BASEURL_?>/" />
<meta content="<?=_TITLE1_?> offers bargain auctions of new brand products. Save up to 70% for every product almost. Bid and Win high quality products.<?=_TITLE1_?> offers amazing bargains." />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="author" content="Info-Tech Ltd. | We simplify web 2.0"/>
<title><?=_PAGE_TITLE_;?></title>

<link href="css/english/index.css" rel="stylesheet" type="text/css" />
<link href="css/english/special.css" rel="stylesheet" type="text/css" />
<link href="css/english/myaccount.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(<?=_BASEURLCSSNEW_?>/ie6.css?0:102290); /* ]]> */</style><![endif]-->
<!--[if gte IE 7]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(<?=_BASEURLCSSNEW_?>/ie7.css?0:99961); /* ]]> */</style><![endif]-->
</head>
<body>
<center>
<div id="green_wrapper">
  <? include("header.php");?>




  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="220" align="left" valign="top"><? include("view.php");?></td>
      <td valign="top" align="left">



	   <p><br />
									 <p><strong>
									 <?=_THNK_U_PAYMNT11_?><br />
									 </strong></p>

                                        <br />
                                          <br />
                                          <br />
                                          <br />
	 </td></tr>
		</table>


</div>
</center>
</body>
</html>
