custom banner text on web console

pull/1556/head
Andy Bauer 2016-07-09 13:11:30 -05:00
parent 477c02382b
commit 19265b631a
2 changed files with 15 additions and 0 deletions

View File

@ -1548,6 +1548,20 @@ our @options =
type => $types{string},
category => "web",
},
{
name => "ZM_WEB_CONSOLE_BANNER",
default => "",
description => "Arbitrary text message near the top of the console",
help => qqq("
Allows the administrator to place an arbitrary text message
near the top of the web console. This is useful for the developers
to display a message which indicates the running instance of
ZoneMinder is a development snapshot, but it can also be used for
any other purpose as well.
"),
type => $types{string},
category => "web",
},
{
name => "ZM_WEB_RESIZE_CONSOLE",
default => "yes",

View File

@ -195,6 +195,7 @@ xhtmlHeaders( __FILE__, translate('Console') );
<h3 id="systemStats"><?php echo translate('Load') ?>: <?php echo getLoad() ?> / <?php echo translate('Disk') ?>: <?php echo getDiskPercent() ?>%</h3>
<h2 id="title"><a href="http://www.zoneminder.com" target="ZoneMinder">ZoneMinder</a> <?php echo translate('Console') ?> - <?php echo makePopupLink( '?view=state', 'zmState', 'state', $status, canEdit( 'System' ) ) ?> - <?php echo $run_state ?> <?php echo makePopupLink( '?view=version', 'zmVersion', 'version', '<span class="'.$versionClass.'">v'.ZM_VERSION.'</span>', canEdit( 'System' ) ) ?></h2>
<div class="clear"></div>
<h3 id="development"><center><?php echo ZM_WEB_CONSOLE_BANNER ?></center></h3>
<div id="monitorSummary"><?php echo makePopupLink( '?view=groups', 'zmGroups', 'groups', sprintf( $CLANG['MonitorCount'], count($displayMonitors), zmVlang( $VLANG['Monitor'], count($displayMonitors) ) ).($group?' ('.$group['Name'].')':''), canView( 'Groups' ) ); ?></div>
<?php
if ( ZM_OPT_X10 && canView( 'Devices' ) )