From 53a3d183b671b4fe804bd1af654a02677bc8299a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 16 May 2017 18:39:44 -0600 Subject: [PATCH] Update call_center_agent_status.php --- app/call_centers/call_center_agent_status.php | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/app/call_centers/call_center_agent_status.php b/app/call_centers/call_center_agent_status.php index a1621fe69b..abadb38ceb 100644 --- a/app/call_centers/call_center_agent_status.php +++ b/app/call_centers/call_center_agent_status.php @@ -23,16 +23,20 @@ Contributor(s): Mark J Crane */ -require_once "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('call_center_agent_view')) { - //access granted -} -else { - echo "access denied"; - exit; -} + +//includes + require_once "root.php"; + require_once "resources/require.php"; + require_once "resources/check_auth.php"; + +//check permissions + if (permission_exists('call_center_agent_view')) { + //access granted + } + else { + echo "access denied"; + exit; + } //add multi-lingual support $language = new text; @@ -192,7 +196,7 @@ else { $str .= "\n"; $str .= " ".$row['agent_name']." \n"; $str .= " ".$row['agent_status']." \n"; - $str .= " "; + $str .= " "; $str .= " \n"; $str .= " \n"; $str .= "   \n";