<? session_start();ob_start();	

	if($_SESSION['lang']=='')
	{
		$_SESSION['lang'] = "en";
	}	
	include 'languages/lang.'.$_SESSION['lang'].'.php';
	include 'languages/lang_common_'.$_SESSION['lang'].'.php';

	include("include/db.inc.php");
	include("include/mail.php");
	$db1=new db;
	$db1->open();mysql_query("SET NAMES 'utf8'");
	$confirm_code=$_REQUEST['confirm'];
	mysql_query("update user set confirm='1' where ccode='$confirm_code'");
	$user=confirm_reg($confirm_code);
	$refer_email=mysql_fetch_array(mysql_query("select email from user where ccode='$confirm_code'"));
	 $referq=mysql_query("select uid from invite_friend where email='".$refer_email['email']."' and status!='1'");
	 $refer_user=mysql_fetch_array($referq);
		  if(mysql_num_rows($referq)>0)
		  {
		  		$bid_refer=mysql_fetch_array(mysql_query("select no_bids from admin_referfriend_bid "));
				$bid_user=mysql_fetch_array(mysql_query("select no_bids from user where id='".$refer_user['uid']."' "));
				$total_bid=$bid_user['no_bids'] + $bid_refer['no_bids'];
				  mysql_query("update invite_friend set status='1' where email='".$refer_email['email']."'");
				  mysql_query("update user set no_bids='$total_bid' where id='".$refer_user['uid']."'");
			 
			  
		  }
	
		
	
	header("location:index.php");
	
?>
<!DOCTYPE HTML PUBLIC "-//W3C,DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<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="Description" content="<?=_TITLE1_?> is  first Real time Auction site where one can bid for products at very cheap price. Products like Wii, Nintendo, Scooter, Mini, iPod, iTouch, Mac BookAir, Mac Book, aston martin trip and ferrari and much more." />
<meta name="Keywords" content="Penny Auction, Auction, Bid, Mega Cheap prices, Sale,  for Penny Auction, Cheap Deals, Great Bargains, Win Consoles, Cameras, TV, LCD, Plasma TV, Scooters, and even Cars for mega cheap prices, <?=_TITLE1_?>, Brand new , disocunt of" />
<meta name="rating" content="General"/>
<meta name="copyright" content="Copyright (c) 2008 by money-auctions.com" />
<meta name="classification" content="auction, bidding, unique bid, ecommerce platform, real time shopping"/>
<meta name="coverage" content="Worldwide"/>
<meta name="title" content="<?=_TITLE1_?> | An online real time Ecommerce Auction Platform"/>
<meta name="page-topic" content="products, services, technology, business, Internet, Web, friends, photos, networks, connections, events, groups, relations"/>
<meta name="audience" content="all, experts, advanced, professionals, business, youth, children, ladies, females, males"/>
<meta name="reply-to" content="helpdesk@money-auctions.com"/>
<meta name="author" content="Info-Tech Ltd. | We simplify web 2.0"/>
<title><?=_CONFIRM_?></title>
</head>
<body>


</body>
</html>
