Update conferences_active.php

This commit is contained in:
FusionPBX
2019-08-10 12:02:06 -06:00
committed by GitHub
parent 96b46848e4
commit 6bd3dc59fc
+19 -6
View File
@@ -17,16 +17,20 @@
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>
*/ */
//includes
include "root.php"; include "root.php";
require_once "resources/require.php"; require_once "resources/require.php";
require_once "resources/check_auth.php"; require_once "resources/check_auth.php";
//check permissions
if (permission_exists('conference_active_view')) { if (permission_exists('conference_active_view')) {
//access granted //access granted
} }
@@ -39,8 +43,12 @@ else {
$language = new text; $language = new text;
$text = $language->get(); $text = $language->get();
//include the header
require_once "resources/header.php"; require_once "resources/header.php";
?><script type="text/javascript">
?>
<script type="text/javascript">
function loadXmlHttp(url, id) { function loadXmlHttp(url, id) {
var f = this; var f = this;
f.xmlHttp = null; f.xmlHttp = null;
@@ -72,13 +80,13 @@ function loadXmlHttp(url, id) {
loadXmlHttp.prototype.stateChanged=function () { loadXmlHttp.prototype.stateChanged=function () {
if (this.xmlHttp.readyState == 4 && (this.xmlHttp.status == 200 || !/^http/.test(window.location.href))) if (this.xmlHttp.readyState == 4 && (this.xmlHttp.status == 200 || !/^http/.test(window.location.href)))
//this.el.innerHTML = this.xmlHttp.responseText; //this.el.innerHTML = this.xmlHttp.responseText;
document.getElementById('ajax_reponse').innerHTML = this.xmlHttp.responseText; document.getElementById('ajax_response').innerHTML = this.xmlHttp.responseText;
} }
var requestTime = function() { var requestTime = function() {
var url = 'conferences_active_inc.php'; var url = 'conferences_active_inc.php';
new loadXmlHttp(url, 'ajax_reponse'); new loadXmlHttp(url, 'ajax_response');
setInterval(function(){new loadXmlHttp(url, 'ajax_reponse');}, 1777); setInterval(function(){new loadXmlHttp(url, 'ajax_response');}, 1777);
} }
if (window.addEventListener) { if (window.addEventListener) {
@@ -91,6 +99,8 @@ else if (window.attachEvent) {
</script> </script>
<?php <?php
//page header
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n"; echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n"; echo " <tr>\n";
echo " <td align='left'>"; echo " <td align='left'>";
@@ -102,8 +112,11 @@ echo " </tr>\n";
echo "</table>\n"; echo "</table>\n";
echo "<br>\n"; echo "<br>\n";
echo "<div id=\"ajax_reponse\"></div>"; //show the content
echo "<div id=\"ajax_response\"></div>";
echo "<br><br>"; echo "<br><br>";
//include the footer
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>