$query="select * from `email` where `email`='".$bits["1"]."' and `deleted`=0 and hash=''";
$account=mysql_query($query);
if(mysql_num_rows($account))
$addy[]=$bits["1"];
}
}
}
if(count($addy)<=0&&$continue==1)
{
$continue=0;
echo_("I wasn't able to match any email accounts on your certificate to any accounts in our database, as such I can't continue with this process.");
}
if($continue==1)
{
$row=mysql_fetch_assoc($account);
$memid=$row['memid'];
$name=trim($_SERVER["SSL_CLIENT_S_DN_CN"]);
while(strstr($name,""))
$name=str_replace("","",$name);
$bits=explode("",$name);
$firstname=$bits["0"];
$lastname=$bits[count($bits)-1];
$query="select * from `users` where `fname`='$firstname' and `lname`='$lastname' and `id`='$memid'";
if(mysql_num_rows(mysql_query($query))<=0)
{
$continue=0;
echo_("The name and email address on your certificate could not be exactly matched to any stored in our database, as such I'm not able to contiue with this process.");
<?=_("By just submitting your Thawte certificate you can be issued 50 points automatically to any matching account in the system that you operate.")?><br>
<?=_("To receive an additional 40 points you must also include a valid link to your notary listing on the Thawte website.")?><br>
<?=_("If you meet the above criteria you are also elligible to receive an additional 60 points by submitting a legible government issued copy of your photo ID. If details on your photo ID aren't legible you may be excluded from receiving these points.")?></p>