Update call_center_active.php

This commit is contained in:
FusionPBX 2018-03-31 12:47:43 -06:00 committed by GitHub
parent 03e2f2030b
commit 403ae8dc90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
<?php
<?php
/*
FusionPBX
Version: MPL 1.1
@ -43,8 +43,8 @@
$text = $language->get();
//get the queue_name and set it as a variable
$queue_name = $_GET[queue_name];
$queue_name = str_replace(" ", "-", $queue_name);
$queue_name = $_GET['queue_name'];
$name = $_GET['name'];
//get the header
require_once "resources/header.php";
@ -72,7 +72,7 @@
catch (e){try{f.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){f.xmlHttp=null;}}
@end @*/
}
if(f.xmlHttp != null){
if(f.xmlHttp != null) {
f.el = document.getElementById(id);
f.xmlHttp.open("GET",url,true);
f.xmlHttp.onreadystatechange = function(){f.stateChanged();};
@ -87,7 +87,7 @@
}
var requestTime = function() {
var url = 'call_center_active_inc.php?queue_name=<?php echo $queue_name; ?>';
var url = 'call_center_active_inc.php?queue_name=<?php echo $queue_name; ?>&name=<?php echo urlencode($name); ?>';
new loadXmlHttp(url, 'ajax_response');
<?php
if (strlen($_SESSION["ajax_refresh_rate"]) == 0) { $_SESSION["ajax_refresh_rate"] = "1777"; }