diff --git a/Dockerfile b/Dockerfile index 964570928..08bfd406e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,6 +58,7 @@ RUN apt-get update \ php-mysql \ vlc-data \ yasm \ + zip \ && rm -rf /var/lib/apt/lists/* # Copy local code into our container diff --git a/distros/redhat/zoneminder.spec b/distros/redhat/zoneminder.spec index d56c0cc21..fc6a0c7ab 100644 --- a/distros/redhat/zoneminder.spec +++ b/distros/redhat/zoneminder.spec @@ -166,7 +166,7 @@ too much degradation of performance. find %{buildroot} \( -name .htaccess -or -name .editorconfig -or -name .packlist -or -name .git -or -name .gitignore -or -name .gitattributes -or -name .travis.yml \) -type f -delete > /dev/null 2>&1 || : # Recursively change shebang in all relevant scripts and set execute permission -find %{buildroot}%{_datadir}/zoneminder/www/api \( -name cake -or -name cake.php \) -type f -exec sed -i 's\^#!/usr/bin/env bash$\#!/usr/bin/bash\' {} \; -exec %{__chmod} 755 {} \; +find %{buildroot}%{_datadir}/zoneminder/www/api \( -name cake -or -name cake.php \) -type f -exec sed -i 's\^#!/usr/bin/env bash$\#!%{_buildshell}\' {} \; -exec %{__chmod} 755 {} \; # Use the system cacert file rather then the one bundled with CakePHP %{__rm} -f %{buildroot}%{_datadir}/zoneminder/www/api/lib/Cake/Config/cacert.pem diff --git a/web/skins/classic/views/event.php b/web/skins/classic/views/event.php index 11458380e..c83c95adb 100644 --- a/web/skins/classic/views/event.php +++ b/web/skins/classic/views/event.php @@ -220,7 +220,7 @@ if ( ZM_WEB_STREAM_METHOD == 'mpeg' && ZM_MPEG_LIVE_FORMAT ) {
- +
diff --git a/web/skins/classic/views/js/event.js b/web/skins/classic/views/js/event.js index 5396eef2f..20beaa885 100644 --- a/web/skins/classic/views/js/event.js +++ b/web/skins/classic/views/js/event.js @@ -455,7 +455,7 @@ function checkFrames( eventId, frameId, loadImage ) { for ( var fid = loFid; fid <= hiFid; fid++ ) { if ( !$('eventThumb'+fid) ) { - var img = new Element( 'img', { 'id': 'eventThumb'+fid, 'src': 'graphics/transparent.gif', 'alt': fid, 'class': 'placeholder' } ); + var img = new Element( 'img', { 'id': 'eventThumb'+fid, 'src': 'graphics/transparent.png', 'alt': fid, 'class': 'placeholder' } ); img.addEvent( 'click', function() { eventData['frames'][fid] = null; checkFrames( eventId, fid ); } ); frameQuery( eventId, fid, loadImage && (fid == frameId) ); var imgs = $('eventThumbs').getElements( 'img' ); diff --git a/web/skins/classic/views/js/timeline.js b/web/skins/classic/views/js/timeline.js index 8210aa9e3..0c37f0284 100644 --- a/web/skins/classic/views/js/timeline.js +++ b/web/skins/classic/views/js/timeline.js @@ -94,7 +94,7 @@ function previewEvent( eventId, frameId ) { if ( event['frames'] ) { if ( event['frames'][frameId] ) { showEventDetail( event['frames'][frameId]['html'] ); - var imagePath = '/index.php?view=image&eid='+eventId+'&fid='+frameId; + var imagePath = 'index.php?view=image&eid='+eventId+'&fid='+frameId; var videoName = event.DefaultVideo; loadEventImage( imagePath, eventId, frameId, event.Width, event.Height, event.Frames/event.Length, videoName, event.Length, event.StartTime, monitors[event.MonitorId]); return; diff --git a/web/skins/classic/views/monitor.php b/web/skins/classic/views/monitor.php index 1699d7186..d54a1b028 100644 --- a/web/skins/classic/views/monitor.php +++ b/web/skins/classic/views/monitor.php @@ -498,7 +498,7 @@ if ( canEdit( 'Monitors' ) ) { -

- Name()) ?>Id()) ) { ?> (Id()?>)

+

- Name()) ?>Id() ) { ?> (Id()?>)

    @@ -702,19 +702,19 @@ switch ( $tab ) { } ?> - Enabled()) ) { ?> checked="checked"/> + Enabled() ) { ?> checked="checked"/> RTSPDescribe()) ) { ?> checked="checked"/> + Protocol()!= 'rtsp' ) { echo ' style="display:none;"'; } ?>> () RTSPDescribe() ) { ?> checked="checked"/> - RecordAudio()) ) { ?> checked="checked"/> + RecordAudio() ) { ?> checked="checked"/> - Controllable()) ) { ?> checked="checked"/> + Controllable() ) { ?> checked="checked"/>   - TrackMotion()) ) { ?> checked="checked"/> + TrackMotion() ) { ?> checked="checked"/> translate('None'), @@ -987,7 +987,7 @@ switch ( $tab ) {  () - Exif()) ) { ?> checked="checked"/> + Exif() ) { ?> checked="checked"/> " disabled="disabled"/>
-
diff --git a/web/skins/classic/views/timeline.php b/web/skins/classic/views/timeline.php index ade6f03e8..9a7f3ff0d 100644 --- a/web/skins/classic/views/timeline.php +++ b/web/skins/classic/views/timeline.php @@ -710,7 +710,7 @@ xhtmlHeaders(__FILE__, translate('Timeline') );
- <?php echo translate('ViewEvent') ?> + <?php echo translate('ViewEvent') ?> - <?php echo $monitors[$monitorId]['Name'] ?> + <?php echo $monitors[$monitorId]['Name'] ?>