Update registration_reload.php

This commit is contained in:
FusionPBX 2019-06-20 04:19:47 -06:00 committed by GitHub
parent ec0daf5358
commit 84f114feb4
1 changed files with 2 additions and 2 deletions

View File

@ -86,11 +86,11 @@
}
var requestTime = function() {
var url = 'registrations.php?template=false&profile=&show=<?php echo $show; ?>';
var url = 'registrations.php?template=false&profile=&show=<?php echo escape($show); ?>';
new loadXmlHttp(url, 'ajax_response');
<?php
if (strlen($_SESSION["ajax_refresh_rate"]) == 0) { $_SESSION["ajax_refresh_rate"] = "1800"; }
echo "setInterval(function(){new loadXmlHttp(url, 'ajax_reponse');}, ".$_SESSION["ajax_refresh_rate"].");";
echo "setInterval(function(){new loadXmlHttp(url, 'ajax_reponse');}, ".escape($_SESSION["ajax_refresh_rate"]).");";
?>
}