zoneminder/web/skins/classic/views/js/console.js.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1.1 KiB
PHP
Raw Normal View History

var consoleRefreshTimeout = <?php echo 1000*ZM_WEB_REFRESH_MAIN ?>;
<?php
if ( canEdit('System') && ZM_DYN_SHOW_DONATE_REMINDER ) {
if ( ZM_DYN_DONATE_REMINDER_TIME > 0 ) {
if ( ZM_DYN_DONATE_REMINDER_TIME < time() ) $showDonatePopup = true;
} else {
$nextReminder = time() + 30*24*60*60;
dbQuery("UPDATE Config SET Value = '".$nextReminder."' WHERE Name = 'ZM_DYN_DONATE_REMINDER_TIME'");
2017-05-19 01:50:56 +08:00
}
}
?>
var showDonatePopup = <?php echo isset($showDonatePopup )?'true':'false' ?>;
2020-09-04 06:25:00 +08:00
var monitors = new Array();
<?php
global $monitors;
foreach ( $monitors as $monitor ) {
?>
monitors[<?php echo $monitor->Id() ?>] = {
'Id': <?php echo $monitor->Id() ?>,
'Name': '<?php echo $monitor->Name() ?>',
'ViewWidth': <?php echo $monitor->ViewWidth() ?>,
'ViewHeight':<?php echo $monitor->ViewHeight() ?>,
'Url': '<?php echo $monitor->UrlToIndex( ZM_MIN_STREAMING_PORT ? ($monitor->Id() + ZM_MIN_STREAMING_PORT) : '') ?>',
'Type': '<?php echo $monitor->Type() ?>',
'Function': '<?php echo $monitor->Function() ?>',
2020-12-11 03:08:01 +08:00
'Enabled': '<?php echo $monitor->Enabled() ?>',
2020-12-11 03:06:40 +08:00
'DecodingEnabled': '<?php echo $monitor->DecodingEnabled() ?>'
2020-09-04 06:25:00 +08:00
};
<?php
}
?>