From 05f68bc7a372db34694be99351f9273e76be4098 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 21 Aug 2019 01:43:55 -0600 Subject: [PATCH] Update clipadd.php --- app/edit/clipadd.php | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/app/edit/clipadd.php b/app/edit/clipadd.php index 13f44a0681..13726bd63f 100644 --- a/app/edit/clipadd.php +++ b/app/edit/clipadd.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 James Rose */ -include "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('script_editor_save')) { - //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('script_editor_save')) { + //access granted + } + else { + echo "access denied"; + exit; + } //add multi-lingual support $language = new text; @@ -73,7 +77,7 @@ if (count($_POST)>0) { $p->add('clip_add', 'temp'); require_once "header.php"; - echo "\n"; + echo "\n"; echo $text['message-add']; require_once "footer.php"; exit; @@ -128,5 +132,7 @@ if (count($_POST)>0) { echo ""; +//include the footer require_once "footer.php"; -?> \ No newline at end of file + +?>