Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fourtyone = {
- smrTime: new Date(2005, 0, 15).getTimezoneOffset(),
- wntrTime: new Date(2005, 6, 15).getTimezoneOffset(),
- comps: [],
- comp: null,
- setDoc: function (element) {
- var rslt = null;
- try {
- rslt = document.getElementById(element);
- } catch (e) {}
- if (rslt == null || typeof(rslt) == 'undefined') {
- try {
- rslt = document.getElementsByName(element)[0];
- } catch (e) {}
- }
- if (rslt == null || typeof(rslt) == 'undefined') {
- for (x = 0; x < document.forms.length; x++) {
- var currForm = document.forms[x];
- for (y = 0; y < currForm.elements.length; y++) {
- var currElement = currForm[y];
- if (currElement.name == element || currElement.id == element) {
- return currElement;
- }
- }
- }
- }
- return rslt;
- },
- evl: function (id) {
- var rslt = "";
- try {
- if (this.comp == null) {
- this.comp = this.setDoc("clientCapsRef");
- }
- if (typeof(this.comp.getComponentVersion) != 'undefined') rslt = this.comp.getComponentVersion(id, "ComponentID");
- } catch (e) {
- var len = e.message.length;
- len = (len > 40 ? 40 : len);
- rslt = escape(e.message.substr(0, len));
- }
- return rslt;
- },
- exec: function (possibles) {
- for (var i = 0; i < possibles.length; i++) {
- try {
- var val = eval(possibles[i]);
- if (val) return val;
- } catch (e) {}
- }
- return "";
- },
- loadComps: function () {
- var comps = ["Acrobat", "Flash", "QuickTime", "Java Plug-in", "Director", "Office"];
- var activeX = {
- "Flash": ["ShockwaveFlash.ShockwaveFlash", function (ax) {
- return ax.getVariable("$version");
- }],
- "Director": ["SWCtl.SWCtl", function (ax) {
- return ax.ShockwaveVersion("");
- }]
- }
- for (var i = 0; i < comps.length; i++) {
- var name = comps[i];
- var version = "";
- try {
- if (navigator.plugins && navigator.plugins.length) {
- var regex = new RegExp(name + ".* ([0-9._]+)");
- for (var j = 0; j < navigator.plugins.length; j++) {
- var match;
- if (match = regex.exec(navigator.plugins[j].name)) {
- version = match[1];
- } else if (match = regex.exec(navigator.plugins[j].description)) {
- version = match[1];
- }
- }
- } else if (window.ActiveXObject && activeX[name]) {
- try {
- var ax = new ActiveXObject(activeX[name][0]);
- version = activeX[name][1](ax);
- } catch (e) {
- version = "";
- }
- }
- } catch (e) {
- version = e.message;
- }
- fourtyone.comps[name] = version;
- }
- },
- getTimeZn: function () {
- return Math.abs(this.smrTime - this.wntrTime);
- },
- isSummer: function () {
- return (this.getTimeZn() != 0);
- },
- isWinter: function (date) {
- var minOffset = Math.min(this.smrTime, this.wntrTime);
- return (this.isSummer() && date.getTimezoneOffset() == minOffset);
- },
- getDayOfYr: function (str) {
- var result = 0;
- var latencyFactor = 0;
- if (this.isWinter(str)) {
- latencyFactor = this.getTimeZn();
- }
- result = -(str.getTimezoneOffset() + latencyFactor) / 60.0;
- return result;
- },
- currDate: function () {
- return new Date(2005, 5, 7, 21, 33, 44, 888).toLocaleString();
- },
- userPrefs: function (debug) {
- this.debug = debug;
- var str = new Date();
- var arr = new Array("\"TF1\"", "\"014\"", "ScriptEngineMajorVersion()", "ScriptEngineMinorVersion()", "ScriptEngineBuildVersion()", "fourtyone.evl('{7790769C-0471-11D2-AF11-00C04FA35D02}')", "fourtyone.evl('{89820200-ECBD-11CF-8B85-00AA005B4340}')", "fourtyone.evl('{283807B5-2C60-11D0-A31D-00AA00B92C03}')", "fourtyone.evl('{4F216970-C90C-11D1-B5C7-0000F8051515}')", "fourtyone.evl('{44BBA848-CC51-11CF-AAFA-00AA00B6015C}')", "fourtyone.evl('{9381D8F2-0288-11D0-9501-00AA00B911A5}')", "fourtyone.evl('{4F216970-C90C-11D1-B5C7-0000F8051515}')", "fourtyone.evl('{5A8D6EE0-3E18-11D0-821E-444553540000}')", "fourtyone.evl('{89820200-ECBD-11CF-8B85-00AA005B4383}')", "fourtyone.evl('{08B0E5C0-4FCB-11CF-AAA5-00401C608555}')", "fourtyone.evl('{45EA75A0-A269-11D1-B5BF-0000F8051515}')", "fourtyone.evl('{DE5AED00-A4BF-11D1-9948-00C04F98BBC9}')", "fourtyone.evl('{22D6F312-B0F6-11D0-94AB-0080C74C7E95}')", "fourtyone.evl('{44BBA842-CC51-11CF-AAFA-00AA00B6015B}')", "fourtyone.evl('{3AF36230-A269-11D1-B5BF-0000F8051515}')", "fourtyone.evl('{44BBA840-CC51-11CF-AAFA-00AA00B6015C}')", "fourtyone.evl('{CC2A9BA0-3BDD-11D0-821E-444553540000}')", "fourtyone.evl('{08B0E5C0-4FCB-11CF-AAA5-00401C608500}')", "navigator.appCodeName", "navigator.appName", "navigator.appVersion", "fourtyone.exec(['navigator.productSub','navigator.appMinorVersion'])", "navigator.browserLanguage", "navigator.cookieEnabled", "fourtyone.exec(['navigator.oscpu','navigator.cpuClass'])", "navigator.onLine", "navigator.platform", "navigator.systemLanguage", "navigator.userAgent", "fourtyone.exec(['navigator.language','navigator.userLanguage'])", "document.defaultCharset", "document.domain", "screen.deviceXDPI", "screen.deviceYDPI", "screen.fontSmoothingEnabled", "screen.updateInterval", "fourtyone.isSummer()", "fourtyone.isWinter(str)", "'@UTC@'", "fourtyone.getDayOfYr(str)", "fourtyone.currDate()", "screen.width", "screen.height", "fourtyone.comps['Acrobat']", "fourtyone.comps['Flash']", "fourtyone.comps['QuickTime']", "fourtyone.comps['Java Plug-in']", "fourtyone.comps['Director']", "fourtyone.comps['Office']", "(new Date().getTime()) - str.getTime()", "fourtyone.smrTime", "fourtyone.wntrTime", "str.toLocaleString()", "screen.colorDepth");
- fourtyone.loadComps();
- this.rslt = ""
- for (i = 0; i < arr.length; i++) {
- if (this.debug) {
- this.rslt += arr[i].replace(/[\'\"]/g, "'");
- this.rslt += "="
- }
- try {
- tmp = eval(arr[i]);
- } catch (e) {
- tmp = "";
- }
- this.rslt += (this.debug ? tmp : escape(tmp));
- this.rslt += ";";
- if (this.debug) {
- this.rslt += "\\n";
- }
- }
- this.rslt = this.rslt.replace(escape('@UTC@'), new Date().getTime());
- this.encodeData = new Function("return '" + this.rslt + "'");
- },
- collect: function (name) {
- try {
- var element = null;
- element = this.setDoc(name);
- if (element == null) return;
- try {
- var prefs = new this.userPrefs();
- element.value = prefs.encodeData();
- } catch (e) {
- element.value = escape(e.message);
- }
- } catch (e) {}
- }
- }
- var fortyone = fourtyone;
- function fortyone_collect(name) {
- return fortyone.collect(name);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement