Files
Aurora.3/html/iestats/conninfo.min.js
skull132 7039840323 Implements IPIntel, Panic Bunker, and custom access control (#2436)
What it says on the tin.

IPIntel and BYOND account age relating panic bunker settings from TG. Also implements methods for potentially tagging VM users. Ontop of all of this, creates a spiffy UI for admins with R_SERVER to adjust the settings of the entire suite at runtime.
2017-05-26 13:26:58 +03:00

1 line
933 B
JavaScript

function setCookie(e,t,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var o="expires="+r.toUTCString();document.cookie=e+"="+t+";"+o+";path=/"}function getCookie(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""}function gcd(e,t){return e<1e-8?t:e<t?gcd(t-Math.floor(t/e)*e,e):e==t?e:gcd(t,e)}function doCheck(){for(var e=performance.now()/1e3,t=performance.now()/1e3-e,n=0;n<10;n++)t=gcd(t,performance.now()/1e3-e);var r=Math.round(1/t);return Math.abs(r-1e7)<100||Math.abs(r-3579545)<100||Math.abs(r-14318180)<100||Math.abs(r-1193182)<100}function doCheck2(){try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");return!(t&&t instanceof WebGLRenderingContext)}catch(e){return!1}}var idents=0;doCheck()&&(idents|=1),doCheck2()&&(idents|=2);