<? 
ob_start();session_start();

	if($_SESSION['lang']=='')
	{
		$_SESSION['lang'] = "en";
	}	
	include 'languages/lang_confirm_'.$_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'");
  
  $id=$_REQUEST['id'];
 $confirm=mysql_query("select id,first_name,ccode,email from user where id=".$id);
 $row=mysql_fetch_object($confirm);
 
 if($_GET['resend']==1)
 {
 $fname=$row->first_name;
 $email=$row->email;
 $ccode=$row->ccode;

 register_mail($fname,$email,$ccode,$id); 	
 }
 
 
?>
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=_CONFIRM_?></title>

<link href="<?=_BASEURLCSSNEW_?>/index.css" rel="stylesheet" type="text/css" />
<link href="<?=_BASEURLCSSNEW_?>/index_sec.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(css/ie6.css?0:102290); /* ]]> */</style><![endif]-->
<!--[if gte IE 7]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(css/ie7.css?0:99961); /* ]]> */</style><![endif]-->

</head>
<body>  
<center>
<div id="container">
<? include("header.php");?>

<div id="centerwrap" >
<div  align="left" class="cl">
 <div ><h3 style="padding-left:28px; padding-top:3px"><?=_REGI_?></h3></div>
<br />
<div style="height:300px; width:560px; padding:10px">
<div style="margin:15px"><strong><?=_PLZ_CONUR_REGI_?></strong></div>
  <div style="padding-left:15px; padding-top:8px"><strong>We've sent an email <? if($_GET['resend']==1)echo" again ";?> to <?=$row->email?>.</strong></div>
<div style="margin:15px"><?=_VALID_FOR_HOURS_?></div>
 <div style="margin:15px"><strong><?=_IMPOT_?><br /></strong>
<?=_INCORRE_CLICK_HERE_?>  <a href="<?=_BASEURL_?>/loginconfirm.php?id=<?=$id?>&resend=1" style="font-size:12px">Click here.</a></div>
 </div>
</div>
 </div>


<div>
<? include("footer.php");?></div></div>
</center>
</body>
</html>