* @copyright Deakin University 2007,2008 * @package queXS * @subpackage user * @link http://www.deakin.edu.au/dcarf/ queXS was writen for DCARF - Deakin Computer Assisted Research Facility * @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"); /** * Authentication */ require ("auth-interviewer.php"); /** * XHTML functions */ include ("functions/functions.xhtml.php"); /** * Operator functions */ include("functions/functions.operator.php"); $operator_id = get_operator_id(); if ($operator_id == false) { xhtml_head(T_("Status")); print "
" . T_("No operator") . "
"; xhtml_foot(); die(); } $state = is_on_call($operator_id); $btext = false; if ($state == 4 && AUTO_POPUP) $btext = "onload=\"parent.poptastic('call.php')\""; if ($state == 6 && AUTO_CLOSE_NO_ANSWER) $btext = "onload=\"parent.location.href = 'index.php?outcome=2&endcase=endcase¬e=AutoCloseNoAnswer'\""; if ($state == 7 && AUTO_CLOSE_NO_ANSWER) $btext = "onload=\"parent.location.href = 'index.php?outcome=14&endcase=endcase¬e=AutoCloseDisconnect'\""; $js = array("js/popupkeep.js"); if (AUTO_LOGOUT_MINUTES !== false) { $js[] = "include/jquery/jquery-1.4.2.min.js"; $js[] = "js/childnap.js"; } xhtml_head(T_("Status"),true,array("css/status.css"),$js,$btext,5,false,false,false,false); print "