From d7779738884760389049400b2eef04f2b79dbfef Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 2 Aug 2018 01:12:31 -0600 Subject: [PATCH] Update contact_edit.php --- app/contacts/contact_edit.php | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/app/contacts/contact_edit.php b/app/contacts/contact_edit.php index 79f76c4221..d1f2b1b9cd 100644 --- a/app/contacts/contact_edit.php +++ b/app/contacts/contact_edit.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('contact_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('contact_view')) { + //access granted + } + else { + echo "access denied"; + exit; + } //add multi-lingual support $language = new text; @@ -407,7 +411,7 @@ else { echo " \n"; } if ($action == "update" && is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/invoices')) { - echo " \n"; + echo " \n"; } if ($action == "update" && is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/certificates')) { echo " \n";