Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function validatekey()
- {
- e = false;
- var _strKey = "";
- try {
- _strKey = document.getElementById("key").value;
- var a = _strKey.split("-");
- if(a.length !== 5)
- e = true;
- var o=a.map(genFunc).reduceRight(callback, new (genFunc(a[4]))(Function));
- if(!equal(o,ref))
- e = true;
- }catch(e){
- e = true;
- }
- if(!e) {
- if(document.location.href.indexOf("?p=") == -1) {
- document.location = document.location.href + "?p=" + _strKey;
- }
- } else {
- $("#cresponse").html("<div class='alert alert-danger'>Wrong password sorry.</div>");
- }
- }
- function genFunc(_part) {
- if(!_part || !(_part.length) || _part.length !== 4)
- return function() {};
- return new Function(_part.substring(1,3), "this." + _part[3] + "=" + _part.slice(1,3) + "+" + (fn(function(y){return y<=57})(_part.charCodeAt(0)) ? _part[0] : "'"+ _part[0] + "'"));
- }
- function callback(x,y,i,a) {
- return !y.call(x, a[a["length"]-1-i].toString().slice(19,21)) ? x : {};
- }
- var ref = ({T:"BG8", J:"jep", j:"M2L", K:"L23", H:"r1A"});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement