Update cmd.php

This commit is contained in:
FusionPBX
2017-08-28 01:52:40 -06:00
committed by GitHub
parent 474995e296
commit fa7dd871c9

View File

@@ -17,22 +17,26 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
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 <markjcrane@fusionpbx.com>
*/
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);
}
?>
?>