From fa7dd871c951ad2cfac4dc5c1d363f51920ac809 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 28 Aug 2017 01:52:40 -0600 Subject: [PATCH] Update cmd.php --- app/registrations/cmd.php | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/app/registrations/cmd.php b/app/registrations/cmd.php index e47551874d..5db8ecc9af 100644 --- a/app/registrations/cmd.php +++ b/app/registrations/cmd.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-2014 + Portions created by the Initial Developer are Copyright (C) 2008-2017 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("registration_domain") || permission_exists("registration_all") || if_group("superadmin")) { - //access granted -} -else { - echo "access denied"; - exit; -} + +//includes + include "root.php"; + require_once "resources/require.php"; + require_once "resources/check_auth.php"; + +//permissions + if (permission_exists("registration_domain") || permission_exists("registration_all") || if_group("superadmin")) { + //access granted + } + else { + echo "access denied"; + exit; + } //add multi-lingual support $language = new text; @@ -77,7 +81,7 @@ else { echo $response; } else { - header("Location: status_registrations.php?profile=".$profile."&show=".$show); + header("Location: registrations.php?profile=".$profile."&show=".$show); } -?> \ No newline at end of file +?>