<?php 
include("user_func.php");
//$msg="Invalid request.";
$loginLink = SableSystem::getSableLinkPath('login/index.php');
$forgotLink = SableSystem::getSableLinkPath('/login/forgotten.php');		
$msg = "Your registration could not be completed. ".
		"The email address you used during the email registration may have already been used. You can try resetting your password using <strong><a href='".$forgotLink."'>this link</a></strong> or contact support for assistance.";
$hdr = '<h3 class="title"><i class="fa fa-frown" aria-hidden="true"></i>&nbsp;Oops...</h3>';
$userCode = base64_decode($_SESSION['caller']['args'][1]);
if ($userCode)
{
	$hdr = '<h3 class="title"><i class="fa fa-check" aria-hidden="true"></i>&nbsp;Successfully Registered</h3>';
	$msg = 'Thank you for registering <strong>'.SableDBFunctions::getUserDisplayNameFromUserCode($userCode)."</strong>.<p>".
	'You will receive an email with your user name, password, and a link to confirm your registration. If you do not receive an email within the next few hours, please check your spam/junk folder. Alternatively use this link to try resend your activation email: <a href="'.SableSystem::getSableLinkPath('login/resend.php').'">Resend</a>.</p>';
}
?>
<!--// header -->
<p></p>
<div class="container">
	<div class="forms-grids">
        <div class="col-md-12 forms-grid">
        <?php echo($hdr); ?>
        </div> 
    </div>
</div>
<p></p>
<div class="container">  
    <div class="forms-grids">
        <div class="col-md-12 forms-grid">
            <?php echo($msg); ?>
            <p></p>
        </div>
    </div>
</div>
<div class="container">
    <div class="forms-grids">
        <div class="col-md-6  forms-grid">         
         <p><i class="fa fa-arrow-circle-left" aria-hidden="true"></i>&nbsp;<a href="/" class="link_contrast">Click here to return to the login page.</a></p>       
         </div>
    </div>
</div>