Update switch_status.php a few PHP 8.1 changes
This commit is contained in:
parent
b0bfaf8400
commit
9520fd9481
|
|
@ -53,6 +53,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//channel count
|
//channel count
|
||||||
|
$tr_link_channels = '';
|
||||||
if (permission_exists('switch_channels') && $fp) {
|
if (permission_exists('switch_channels') && $fp) {
|
||||||
$tmp = event_socket_request($fp, 'api status');
|
$tmp = event_socket_request($fp, 'api status');
|
||||||
$matches = Array();
|
$matches = Array();
|
||||||
|
|
@ -64,6 +65,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//registration count
|
//registration count
|
||||||
|
$registrations = '';
|
||||||
if (permission_exists('switch_registrations') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/")) {
|
if (permission_exists('switch_registrations') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/")) {
|
||||||
$registration = new registrations;
|
$registration = new registrations;
|
||||||
if (permission_exists("registration_all")) {
|
if (permission_exists("registration_all")) {
|
||||||
|
|
@ -125,7 +127,7 @@
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
//switch version
|
//switch version
|
||||||
if (permission_exists('switch_version') && $switch_version != '') {
|
if (permission_exists('switch_version') && !empty($switch_version)) {
|
||||||
echo "<tr class='tr_link' ".$tr_link_sip_status.">\n";
|
echo "<tr class='tr_link' ".$tr_link_sip_status.">\n";
|
||||||
echo "<td valign='top' class='".$row_style[$c]." hud_text'>".$text['label-switch']."</td>\n";
|
echo "<td valign='top' class='".$row_style[$c]." hud_text'>".$text['label-switch']."</td>\n";
|
||||||
echo "<td valign='top' class='".$row_style[$c]." hud_text' style='text-align: right;'><a ".$tr_link_sip_status.">".$switch_version." (".$switch_bits.")</a></td>\n";
|
echo "<td valign='top' class='".$row_style[$c]." hud_text' style='text-align: right;'><a ".$tr_link_sip_status.">".$switch_version." (".$switch_bits.")</a></td>\n";
|
||||||
|
|
@ -134,7 +136,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//switch uptime
|
//switch uptime
|
||||||
if (permission_exists('switch_uptime') && $uptime != '') {
|
if (permission_exists('switch_uptime') && !empty($uptime)) {
|
||||||
echo "<tr class='tr_link' ".$tr_link_sip_status.">\n";
|
echo "<tr class='tr_link' ".$tr_link_sip_status.">\n";
|
||||||
echo "<td valign='top' class='".$row_style[$c]." hud_text'>".$text['label-switch_uptime']."</td>\n";
|
echo "<td valign='top' class='".$row_style[$c]." hud_text'>".$text['label-switch_uptime']."</td>\n";
|
||||||
echo "<td valign='top' class='".$row_style[$c]." hud_text' style='text-align: right;'><a ".$tr_link_sip_status.">".$uptime."</a></td>\n";
|
echo "<td valign='top' class='".$row_style[$c]." hud_text' style='text-align: right;'><a ".$tr_link_sip_status.">".$uptime."</a></td>\n";
|
||||||
|
|
@ -167,4 +169,4 @@
|
||||||
echo "<span class='hud_expander' onclick=\"$('#hud_switch_status_details').slideToggle('fast');\"><span class='fas fa-ellipsis-h'></span></span>";
|
echo "<span class='hud_expander' onclick=\"$('#hud_switch_status_details').slideToggle('fast');\"><span class='fas fa-ellipsis-h'></span></span>";
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue