Bestätigung
<center><div id="confirm_result"></div></center>
<script>
const urlParams = new URLSearchParams(window.location.search);
const email = urlParams.get('email');
const confirm = urlParams.get('confirm');
const currentUrl = window.location.href;
const url=window.location.href;
const lang=url.search('_de')!=-1?'de':'en';
function confirmation()
{
jQuery.ajax({url: "https://emdr.chat/emdr/confirm.php?email="+email+"&confirm="+confirm+"&lang="+lang})
.done(function( data )
{
if (data.substring(0,3)=='OK:')
{
txt=lang=='en'?'Thank you for your confirmation.<br>Your account is activated.</font><br>':'Vielen Dank für Ihre Registrierung.<br>Ihr Konto ist aktiviert.</font><br>';
let link=data.substring(3,data.length);
txt+=lang=='en'?'<br>You can manange your sessions on your <a href="'+link+'">account page</a>.':'<br>Sie können Ihre Sitzungen in <a href="'+link+'">Ihrem Konto</a> verwalten.';
}
else txt='<font color="red">'+data.replace('Error: ','')+'</font>';
jQuery('#confirm_result').html(txt);
})
}
jQuery( document ).ready(function()
{
confirmation();
});
</script>