Update cmd.php

This commit is contained in:
FusionPBX 2017-07-04 11:31:21 -06:00 committed by GitHub
parent 6ee8a05d62
commit f8765077a9
1 changed files with 15 additions and 11 deletions

View File

@ -23,16 +23,20 @@
Contributor(s): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
*/ */
include "root.php";
require_once "resources/require.php"; //includes
require_once "resources/check_auth.php"; include "root.php";
if (if_group("superadmin")) { require_once "resources/require.php";
//access granted require_once "resources/check_auth.php";
}
else { //check permissions
echo "access denied"; if (if_group("superadmin")) {
exit; //access granted
} }
else {
echo "access denied";
exit;
}
//set the variables //set the variables
$cmd = check_str($_GET['cmd']); $cmd = check_str($_GET['cmd']);
@ -88,4 +92,4 @@ else {
header("Location: sip_status.php"); header("Location: sip_status.php");
} }
?> ?>