From 6219989884a9fde0cd1a3f7a19ca7c2cafa08cc0 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 11 Jan 2022 10:45:11 -0500 Subject: [PATCH] replace function with appropriate Analysing/Capturing settings. Remove function popup. --- web/skins/classic/views/console.php | 37 ++++++++++++++++------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/web/skins/classic/views/console.php b/web/skins/classic/views/console.php index e49b2c467..d8d3c2982 100644 --- a/web/skins/classic/views/console.php +++ b/web/skins/classic/views/console.php @@ -128,7 +128,7 @@ for ( $i = 0; $i < count($displayMonitors); $i++ ) { $status_counts[$monitor['Status']] = 0; $status_counts[$monitor['Status']] += 1; - if ( $monitor['Function'] != 'None' ) { + if ( $monitor['Capturing'] != 'None' ) { $scaleWidth = reScale($monitor['Width'], $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE); $scaleHeight = reScale($monitor['Height'], $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE); if ( $maxWidth < $scaleWidth ) $maxWidth = $scaleWidth; @@ -248,7 +248,7 @@ $table_head = ob_get_contents(); ob_end_clean(); echo $table_head; $monitors = array(); -for( $monitor_i = 0; $monitor_i < count($displayMonitors); $monitor_i += 1 ) { +for ($monitor_i = 0; $monitor_i < count($displayMonitors); $monitor_i += 1) { $monitor = $displayMonitors[$monitor_i]; $Monitor = new ZM\Monitor($monitor); $monitors[] = $Monitor; @@ -269,36 +269,33 @@ for( $monitor_i = 0; $monitor_i < count($displayMonitors); $monitor_i += 1 ) { if ( $monitor['CaptureFPS'] == '0.00' ) { $source_class = 'errorText'; $source_class_reason = translate('No capture FPS'); - } else if ( (!$monitor['AnalysisFPS']) && ($monitor['Function']!='Monitor') && ($monitor['Function'] != 'Nodect') ) { + } else if ( (!$monitor['AnalysisFPS']) && ($monitor['Analysing'] != 'None') ) { $source_class = 'warnText'; $source_class_reason = translate('No analysis FPS'); } } $function_class = 'infoText'; - if ($monitor['Function'] == 'None') { - $function_class = 'errorText'; - } $dot_class = $source_class; $dot_class_reason = $source_class_reason; if ( $function_class != 'infoText' ) { $dot_class = $function_class; - } else if (($monitor['Function'] == 'Modect' || $monitor['Function'] == 'Mocord') and !$monitor['Enabled']) { + } else if (($monitor['Analysing'] == 'Always') and !$monitor['Enabled']) { $dot_class .= ' warnText'; $dot_class_reason .= ' '.translate('Analysis is disabled'); } $scale = max(reScale(SCALE_BASE, $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE), SCALE_BASE); - $stream_available = canView('Stream') and $monitor['Type']=='WebSite' or ($monitor['CaptureFPS'] && $monitor['Function'] != 'None'); + $stream_available = canView('Stream') and $monitor['Type']=='WebSite' or ($monitor['CaptureFPS'] && $monitor['Capturing'] != 'None'); - if ( ZM_WEB_ID_ON_CONSOLE ) { + if (ZM_WEB_ID_ON_CONSOLE) { ?> ' : '>') . $monitor['Id'] ?> ViewHeight() / $Monitor->ViewWidth(); @@ -349,16 +346,21 @@ for( $monitor_i = 0; $monitor_i < count($displayMonitors); $monitor_i += 1 ) { ?> -
-
+ +
+ if (count($servers)) { +?> Name()); ?> '. makeLink( '?view=monitor&mid='.$monitor['Id'], ''.validHtmlStr($Monitor->Source()).'', canEdit('Monitors') ).''; - if ( $show_storage_areas ) { + if ($show_storage_areas) { ?> Name()) : ($monitor['StorageId']?'Deleted '.$monitor['StorageId'].'' : '') ?> ' : '') . $monitor[$i.'Events'] . '
' . human_filesize($monitor[$i.'EventDiskSpace']) ?>