* @copyright Australian Consortium for Social and Political Research Incorporated (ACSPRI) 2011 * @package queXS * @subpackage admin * @link http://www.acspri.org.au/ 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"); /** * Authentication file */ include ("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__) . "/systemsortprocess.php"),2); } $p = is_process_running(2); if ($p) { if (isset($_GET['kill'])) { if ($_GET['kill'] == "force") end_process($p); else kill_process($p); set_setting('systemsort',false); } xhtml_head(T_("Monitor system wide case sorting"),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) - click here to confirm") . "
"; } else { print "" . T_("Kill the running process") . "
"; } $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 system wide case sorting"),true,array("../include/bootstrap/css/bootstrap.min.css","../css/custom.css")); //print "" . T_("Click here to enable and begin system wide case sorting") . "
"; print "" . T_("System wide case sorting is periodically (via SYSTEM_SORT_MINUTES configuration directive) sorting cases on a system wide basis instead of finding the most appropriate case each time an operator requests a new case. This may increase performance where there are a large number of cases or complex quotas in place. If you are not experiencing any performance problems, it is not recommended to use this feature.") . "