// - general js functions -
unix_timestamp = function()
{
return parseInt(new Date().getTime().toString().substring(0, 10))
}
function noproxy()
{
warning_message('noproxy');
}
function load_actives(data,initiate)
{
if (initiate==1)
{
jifGet( '/index.php',{'async': '1','uid' : '','pwd' : 'd24479f7966bddb4e57451b8e35bb16d','now': unix_timestamp(), 'table_actives': '1' }, function (rq){load_actives(rq.responseText,0);});
return;
}
id=document.getElementById('activated_ips');
id.innerHTML=data; //
}
function load_inactives(data,initiate)
{
if (initiate==1)
{
jifGet( '/index.php',{'async': '1','uid' : '','pwd' : 'd24479f7966bddb4e57451b8e35bb16d','now': unix_timestamp(), 'table_inactives': '1' }, function (rq){load_inactives(rq.responseText,0);});
return;
}
id=document.getElementById('inactive_ips');
id.innerHTML=data;
}
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
}