Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/forum/Themes/default/scripts/ |
Upload File : |
var localTime = new Date(); function autoDetectTimeOffset(currentTime) { if (typeof(currentTime) != 'string') var serverTime = currentTime; else var serverTime = new Date(currentTime); // Something wrong? if (!localTime.getTime() || !serverTime.getTime()) return 0; // Get the difference between the two, set it up so that the sign will tell us who is ahead of who. var diff = Math.round((localTime.getTime() - serverTime.getTime())/3600000); // Make sure we are limiting this to one day's difference. diff %= 24; return diff; } // Prevent Chrome from auto completing fields when viewing/editing other members profiles function disableAutoComplete() { if (is_chrome && document.addEventListener) document.addEventListener("DOMContentLoaded", disableAutoCompleteNow, false); } // Once DOMContentLoaded is triggered, call the function function disableAutoCompleteNow() { for (var i = 0, n = document.forms.length; i < n; i++) { var die = document.forms[i].elements; for (var j = 0, m = die.length; j < m; j++) // Only bother with text/password fields? if (die[j].type == "text" || die[j].type == "password") die[j].setAttribute("autocomplete", "off"); } }