Update conference_interactive.php

This commit is contained in:
FusionPBX 2019-08-10 11:14:01 -06:00 committed by GitHub
parent 9f70993ba8
commit 96b46848e4
1 changed files with 17 additions and 13 deletions

View File

@ -17,23 +17,27 @@
The Initial Developer of the Original Code is The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2012 Portions created by the Initial Developer are Copyright (C) 2008-2019
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
James Rose <james.o.rose@gmail.com> James Rose <james.o.rose@gmail.com>
*/ */
include "root.php";
require_once "resources/require.php"; //includes
require_once "resources/check_auth.php"; include "root.php";
if (permission_exists('conference_interactive_view')) { require_once "resources/require.php";
//access granted require_once "resources/check_auth.php";
}
else { //check permissions
echo "access denied"; if (permission_exists('conference_interactive_view')) {
exit; //access granted
} }
else {
echo "access denied";
exit;
}
//add multi-lingual support //add multi-lingual support
$language = new text; $language = new text;
@ -83,7 +87,7 @@ if (this.xmlHttp.readyState == 4 && (this.xmlHttp.status == 200 || !/^http/.test
} }
var requestTime = function() { var requestTime = function() {
var url = 'conference_interactive_inc.php?c=<?php echo trim($_REQUEST["c"]); ?>'; var url = 'conference_interactive_inc.php?c=<?php echo trim(escape($_REQUEST["c"])); ?>';
new loadXmlHttp(url, 'ajax_reponse'); new loadXmlHttp(url, 'ajax_reponse');
setInterval(function(){new loadXmlHttp(url, 'ajax_reponse');}, 1222); setInterval(function(){new loadXmlHttp(url, 'ajax_reponse');}, 1222);
} }
@ -129,4 +133,4 @@ echo "</table>";
//show the header //show the header
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>