Hey everyone. Want to know what this code is on every single page of your Joomla Web Pages? This is automatically loaded because of the System - Admin Forever plugin.
<script type="text/j-avascript"> var req = false; function refreshSession() { req = false; if(window.XMLHttpRequest && !(window.ActiveXObject)) { try { req = new XMLHttpRequest(); } catch(e) { req = false; } // branch for IE/Windows ActiveX version } else if(window.ActiveXObject) { try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { req = false; } } } if(req) { req.on-readystatechange = processReqChange; req.open("HEAD", "http://localhost/theturngroup/", true); req.send(); } } function processReqChange() { // only if req shows "loaded" if(req.readyState == 4) { // only if "OK" if(req.status == 200) { // TODO: think what can be done here } else { // TODO: think what can be done here //alert("There was a problem retrieving the XML data: " + req.statusText); } } } setInterval("refreshSession()", 300000); </script>