* @copyright Deakin University 2007,2008 * @package queXS * @subpackage admin * @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 file */ require ("auth-admin.php"); /** * Process */ include ("../functions/functions.process.php"); /** * XHTML functions */ include("../functions/functions.xhtml.php"); if (isset($_GET['watch'])) { //start watching process start_process(realpath(dirname(__FILE__) . "/process.php")); } $p = is_process_running(); if ($p) { if (isset($_GET['kill'])) { if ($_GET['kill'] == "force") end_process($p); else kill_process($p); } xhtml_head(T_("Monitor VoIP Process"),true,array("../include/bootstrap/css/bootstrap.min.css","../css/custom.css"),false,false,false,true); print "
" . T_("Process is already closed (eg. server was rebooted)") . "" . T_("click here to confirm") . "
"; } else { print "" . T_("Kill the running process") . " ". T_("(requires activity on the VoIP Server to take effect)") . "
"; } $d = process_get_data($p); if ($d !== false) { xhtml_table($d,array('process_log_id','datetime','data'),array(T_("Log id"), T_("Date"), T_("Log entry"))); } } else { xhtml_head(T_("Monitor VoIP Process"),true,array("../include/bootstrap/css/bootstrap.min.css","../css/custom.css")); //print "" . T_("Click here to begin monitoring the VoIP Process") . "
"; print "