Restored ability to pass a custom profile to status_registrations.php; defaults to 'internal'.
This commit is contained in:
parent
cffb83b87b
commit
d897e6dbae
|
|
@ -47,6 +47,9 @@ require_once "resources/check_auth.php";
|
|||
require_once "resources/header.php";
|
||||
$page["title"] = $text['header-registrations'];
|
||||
|
||||
//retrieve profile, if set
|
||||
$profile = (isset($_REQUEST['profile']) && $_REQUEST['profile'] != '') ? $_REQUEST['profile'] : "internal";
|
||||
|
||||
//ajax for refresh
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
|
@ -85,7 +88,7 @@ require_once "resources/check_auth.php";
|
|||
}
|
||||
|
||||
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');
|
||||
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"]);
|
||||
|
||||
//define variables
|
||||
|
|
|
|||
Loading…
Reference in New Issue