Update registration_reload.php

This commit is contained in:
FusionPBX
2019-06-20 04:19:47 -06:00
committed by GitHub
parent 8651bf8ad4
commit 814a3715fb

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"]).");";
?>
}