From 45caf3fbc66ae0735cbc58394fd03723e89f021c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 5 Jun 2018 13:43:42 -0600 Subject: [PATCH] Update call_broadcast.php --- app/call_broadcast/call_broadcast.php | 33 +++++++++++++++------------ 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/app/call_broadcast/call_broadcast.php b/app/call_broadcast/call_broadcast.php index 0e47707e5a..5aab237206 100644 --- a/app/call_broadcast/call_broadcast.php +++ b/app/call_broadcast/call_broadcast.php @@ -17,22 +17,26 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2012 + Portions created by the Initial Developer are Copyright (C) 2008-2018 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ -include "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('call_broadcast_view')) { - //access granted -} -else { - echo "access denied"; - exit; -} + +//includes + include "root.php"; + require_once "resources/require.php"; + require_once "resources/check_auth.php"; + +//check permissions + if (permission_exists('call_broadcast_view')) { + //access granted + } + else { + echo "access denied"; + exit; + } //add multi-lingual support $language = new text; @@ -129,13 +133,12 @@ else { unset($sql, $result, $row_count); } //end if results - echo "\n"; echo "\n"; echo " \n"; echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "
"; echo "

"; -//afooter +//include the footer require_once "resources/footer.php"; ?>