Update cmd.php
This commit is contained in:
parent
6ee8a05d62
commit
f8765077a9
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue