Skip to content
Permalink
Browse files Browse the repository at this point in the history
Update fifo_interactive.php
  • Loading branch information
markjcrane committed Aug 21, 2019
1 parent 1f162cd commit d3679bb
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions app/fifo_list/fifo_interactive.php
Expand Up @@ -23,23 +23,27 @@
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('active_queue_view')) {
//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('active_queue_view')) {
//access granted
}
else {
echo "access denied";
exit;
}

//add multi-lingual support
$language = new text;
$text = $language->get();

//get the fifo_name from http and set it to a php variable
$fifo_name = trim($_REQUEST["c"]);
$fifo_name = preg_replace('#[^a-zA-Z0-9\_\@\-./]#', '', $_REQUEST["c"]);

//if not the user is not a member of the superadmin then restrict to viewing their own domain
if (!if_group("superadmin")) {
Expand Down Expand Up @@ -139,4 +143,5 @@ function send_cmd(url) {
echo "<br><br>";

require_once "resources/footer.php";

?>

0 comments on commit d3679bb

Please sign in to comment.