Restored ability to pass a custom profile to status_registrations.php; defaults to 'internal'.
This commit is contained in:
@@ -47,6 +47,9 @@ require_once "resources/check_auth.php";
|
|||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
$page["title"] = $text['header-registrations'];
|
$page["title"] = $text['header-registrations'];
|
||||||
|
|
||||||
|
//retrieve profile, if set
|
||||||
|
$profile = (isset($_REQUEST['profile']) && $_REQUEST['profile'] != '') ? $_REQUEST['profile'] : "internal";
|
||||||
|
|
||||||
//ajax for refresh
|
//ajax for refresh
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@@ -85,7 +88,7 @@ require_once "resources/check_auth.php";
|
|||||||
}
|
}
|
||||||
|
|
||||||
var requestTime = function() {
|
var requestTime = function() {
|
||||||
var url = 'status_registrations_inc.php?profile=internal';
|
var url = 'status_registrations_inc.php?profile=<?php echo $profile; ?>';
|
||||||
new loadXmlHttp(url, 'ajax_reponse');
|
new loadXmlHttp(url, 'ajax_reponse');
|
||||||
setInterval(function(){new loadXmlHttp(url, 'ajax_reponse');}, 1500);
|
setInterval(function(){new loadXmlHttp(url, 'ajax_reponse');}, 1500);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ require_once "resources/check_auth.php";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//request form values and set them as variables
|
//request profile
|
||||||
$sip_profile_name = trim($_REQUEST["profile"]);
|
$sip_profile_name = trim($_REQUEST["profile"]);
|
||||||
|
|
||||||
//define variables
|
//define variables
|
||||||
|
|||||||
Reference in New Issue
Block a user