/*
* brisk - commons.js
*
- * Copyright (C) 2006-2011 Matteo Nastasi
+ * Copyright (C) 2006-2012 Matteo Nastasi
* mailto: nastasi@alternativeoutput.it
* matteo.nastasi@milug.org
* web: http://www.alternativeoutput.it
// alert("xhr_wr: "+xhr_wr+" is_conn: "+is_conn);
xhr_wr.open('GET', 'index_wr.php?'+(is_conn ? 'sess='+sess+'&' : '')+'mesg='+mesg, (is_conn ? true : false));
+ xhr_wr.setRequestHeader("If-Modified-Since", new Date().toUTCString());
xhr_wr.onreadystatechange = function() { return; };
- if (typeof(console) == 'object') {
- if (typeof(console.log) == 'function') {
+ if (typeof(g_debug) == 'number' && g_debug > 0
+ && typeof(console) == 'object' && typeof(console.log) == 'function') {
var ldate = new Date();
console.log(ldate.getTime()+':MESG:'+mesg);
- }
}
xhr_wr.send(null);
}
/* Stat: ROOM */
+function act_ping()
+{
+ send_mesg("ping");
+}
+
function act_sitdown(table)
{
send_mesg("sitdown|"+table);