Update call_center_active_inc.php
This commit is contained in:
parent
bf60efb15c
commit
3f835ae957
|
|
@ -24,16 +24,20 @@
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
James Rose <james.o.rose@gmail.com>
|
James Rose <james.o.rose@gmail.com>
|
||||||
*/
|
*/
|
||||||
include "root.php";
|
|
||||||
require_once "resources/require.php";
|
//includes
|
||||||
require_once "resources/check_auth.php";
|
include "root.php";
|
||||||
if (permission_exists('call_center_active_view')) {
|
require_once "resources/require.php";
|
||||||
//access granted
|
require_once "resources/check_auth.php";
|
||||||
}
|
|
||||||
else {
|
//check permissions
|
||||||
echo "access denied";
|
if (permission_exists('call_center_active_view')) {
|
||||||
exit;
|
//access granted
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
echo "access denied";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
|
|
@ -106,13 +110,15 @@ else {
|
||||||
|
|
||||||
//prepare the result for array_multisort
|
//prepare the result for array_multisort
|
||||||
$x = 0;
|
$x = 0;
|
||||||
if (isset($result)) foreach ($result as $row) {
|
if (is_array($result)) {
|
||||||
$tier_result[$x]['level'] = $row['level'];
|
foreach ($result as $row) {
|
||||||
$tier_result[$x]['position'] = $row['position'];
|
$tier_result[$x]['level'] = $row['level'];
|
||||||
$tier_result[$x]['agent'] = $row['agent'];
|
$tier_result[$x]['position'] = $row['position'];
|
||||||
$tier_result[$x]['state'] = trim($row['state']);
|
$tier_result[$x]['agent'] = $row['agent'];
|
||||||
$tier_result[$x]['queue'] = $row['queue'];
|
$tier_result[$x]['state'] = trim($row['state']);
|
||||||
$x++;
|
$tier_result[$x]['queue'] = $row['queue'];
|
||||||
|
$x++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//sort the array //SORT_ASC, SORT_DESC, SORT_REGULAR, SORT_NUMERIC, SORT_STRING
|
//sort the array //SORT_ASC, SORT_DESC, SORT_REGULAR, SORT_NUMERIC, SORT_STRING
|
||||||
|
|
@ -356,4 +362,4 @@ else {
|
||||||
echo "<br />\n";
|
echo "<br />\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue