From 71c00b04096b71b5cebf5f472cb9098eecb9f6e0 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 24 Aug 2019 09:35:42 -0600 Subject: [PATCH] Update fax_copy.php --- app/fax/fax_copy.php | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/app/fax/fax_copy.php b/app/fax/fax_copy.php index 8587217796..b7a5dd8d0d 100644 --- a/app/fax/fax_copy.php +++ b/app/fax/fax_copy.php @@ -17,23 +17,27 @@ 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-2019 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"; -require_once "resources/paging.php"; -if (permission_exists('fax_extension_add')) { - //access granted -} -else { - echo "access denied"; - exit; -} + +//includes + include "root.php"; + require_once "resources/require.php"; + require_once "resources/check_auth.php"; + require_once "resources/paging.php"; + +//check permissions + if (permission_exists('fax_extension_copy')) { + //access granted + } + else { + echo "access denied"; + exit; + } //add multi-lingual support $language = new text; @@ -123,4 +127,4 @@ else { header("Location: fax.php"); exit; -?> \ No newline at end of file +?>