* @copyright Australian Consortium for Social and Political Research Incorporated (ACSPRI) 2013 * @package queXS * @subpackage user * @link http://www.acspri.org.au/software/ queXS was writen for ACSPRI * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) Version 2 * */ /** * Configuration file */ include ("config.inc.php"); /** * Database file */ include ("db.inc.php"); /** * XHTML functions */ include ("functions/functions.xhtml.php"); /** * Operator functions */ include("functions/functions.operator.php"); $js = array("include/jquery-ui/js/jquery-1.4.2.min.js","include/strophe/strophe.js","js/supervisorchat.js"); if (AUTO_LOGOUT_MINUTES !== false) $js[] = "js/childnap.js"; xhtml_head(T_("Supervisor chat"),true,array("css/table.css"),$js); $operator_id = get_operator_id(); $chatenabled = get_setting("chat_enabled"); if (empty($chatenabled)) $chatenabled = false; else $chatenabled = true; if ($chatenabled && operator_chat_enabled($operator_id)) { $case_id = get_case_id($operator_id); //get BOSH service URL $bosh_service = get_setting("bosh_service"); if (empty($bosh_service)) $bosh_service = "/xmpp-httpbind"; //could set this on a shift by shift basis if required $supervisor_xmpp = get_setting("supervisor_xmpp"); //javascript to activate connection for this user print ""; print "
"; print ""; print "| " . T_("From") . " | " . T_("Message") . " |
|---|
" . T_("Supervisor chat is not enabled") . "
"; xhtml_foot(); ?>