Update conferences_active.php
This commit is contained in:
@@ -17,30 +17,38 @@
|
|||||||
|
|
||||||
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_active_view')) {
|
require_once "resources/require.php";
|
||||||
//access granted
|
require_once "resources/check_auth.php";
|
||||||
}
|
|
||||||
else {
|
//check permissions
|
||||||
echo "access denied";
|
if (permission_exists('conference_active_view')) {
|
||||||
exit;
|
//access granted
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
echo "access denied";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
require_once "resources/header.php";
|
//include the header
|
||||||
?><script type="text/javascript">
|
require_once "resources/header.php";
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<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,19 +99,24 @@ else if (window.attachEvent) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
|
||||||
echo " <tr>\n";
|
|
||||||
echo " <td align='left'>";
|
|
||||||
echo " <b>".$text['label-active']."</b>";
|
|
||||||
echo " <br><br>\n";
|
|
||||||
echo " ".$text['description-active']."\n";
|
|
||||||
echo " </td>\n";
|
|
||||||
echo " </tr>\n";
|
|
||||||
echo "</table>\n";
|
|
||||||
echo "<br>\n";
|
|
||||||
|
|
||||||
echo "<div id=\"ajax_reponse\"></div>";
|
//page header
|
||||||
echo "<br><br>";
|
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||||
|
echo " <tr>\n";
|
||||||
|
echo " <td align='left'>";
|
||||||
|
echo " <b>".$text['label-active']."</b>";
|
||||||
|
echo " <br><br>\n";
|
||||||
|
echo " ".$text['description-active']."\n";
|
||||||
|
echo " </td>\n";
|
||||||
|
echo " </tr>\n";
|
||||||
|
echo "</table>\n";
|
||||||
|
echo "<br>\n";
|
||||||
|
|
||||||
|
//show the content
|
||||||
|
echo "<div id=\"ajax_response\"></div>";
|
||||||
|
echo "<br><br>";
|
||||||
|
|
||||||
|
//include the footer
|
||||||
|
require_once "resources/footer.php";
|
||||||
|
|
||||||
require_once "resources/footer.php";
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user