From 8fde33ee1b55776c8d8385f53857bcee049fc0f3 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 26 May 2017 12:30:20 -0400 Subject: [PATCH 01/12] remove StorageAreas stuff --- scripts/ZoneMinder/lib/ZoneMinder/Filter.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm b/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm index 4bec2a062..636e505aa 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm @@ -99,7 +99,7 @@ sub Execute { my $sql = $self->Sql(); if ( $self->{HasDiskPercent} ) { - my $disk_percent = getDiskPercent( $$self{Storage} ? $$self{Storage}->Path() : () ); + my $disk_percent = getDiskPercent(); $sql =~ s/zmDiskPercent/$disk_percent/g; } if ( $self->{HasDiskBlocks} ) { @@ -195,9 +195,6 @@ sub Sql { # This gets used later, I forget for what $$self{Server} = new ZoneMinder::Server( $temp_value ); } - } elsif ( $term->{attr} eq 'StorageId' ) { - $value = "'$temp_value'"; - $$self{Storage} = new ZoneMinder::Storage( $temp_value ); } elsif ( $term->{attr} eq 'Name' || $term->{attr} eq 'Cause' || $term->{attr} eq 'Notes' From cc83582a90b4c7fbf94bb6fad2d5d39ed8bb2d2b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 26 May 2017 13:04:08 -0400 Subject: [PATCH 02/12] put back AutoMessage and AutoVideo logic --- scripts/ZoneMinder/lib/ZoneMinder/Filter.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm b/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm index 636e505aa..ecf65dd25 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm @@ -250,14 +250,14 @@ sub Sql { } # end if terms if ( $self->{Sql} ) { - #if ( $self->{AutoMessage} ) { + if ( $self->{AutoMessage} ) { # Include all events, including events that are still ongoing # and have no EndTime yet $sql .= " and ( ".$self->{Sql}." )"; - #} else { + } else { # Only include closed events (events with valid EndTime) - #$sql .= " where not isnull(E.EndTime) and ( ".$self->{Sql}." )"; - #} + $sql .= " where not isnull(E.EndTime) and ( ".$self->{Sql}." )"; + } } my @auto_terms; if ( $self->{AutoArchive} ) { @@ -265,9 +265,9 @@ sub Sql { } # Don't do this, it prevents re-generation and concatenation. # If the file already exists, then the video won't be re-recreated - #if ( $self->{AutoVideo} ) { - #push @auto_terms, "E.Videoed = 0"; - #} + if ( $self->{AutoVideo} ) { + push @auto_terms, "E.Videoed = 0"; + } if ( $self->{AutoUpload} ) { push @auto_terms, "E.Uploaded = 0"; } From ed12dab648f75a4221845e01e4e8f2d7e2b7bc03 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 26 May 2017 13:13:34 -0400 Subject: [PATCH 03/12] fixup docs, cleanup --- scripts/ZoneMinder/lib/ZoneMinder/Filter.pm | 3 +- scripts/ZoneMinder/lib/ZoneMinder/Object.pm | 150 ++++++++++++++++++++ 2 files changed, 151 insertions(+), 2 deletions(-) create mode 100644 scripts/ZoneMinder/lib/ZoneMinder/Object.pm diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm b/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm index ecf65dd25..75d0e6ad4 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Filter.pm @@ -32,10 +32,9 @@ require ZoneMinder::Base; require Date::Manip; use parent qw(ZoneMinder::Object); -#our @ISA = qw(ZoneMinder::Object); use vars qw/ $table $primary_key /; -$table = 'Events'; +$table = 'Filters'; $primary_key = 'Id'; # ========================================================================== # diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Object.pm b/scripts/ZoneMinder/lib/ZoneMinder/Object.pm new file mode 100644 index 000000000..b87e111a6 --- /dev/null +++ b/scripts/ZoneMinder/lib/ZoneMinder/Object.pm @@ -0,0 +1,150 @@ +# ========================================================================== +# +# ZoneMinder Object Module, $Date$, $Revision$ +# Copyright (C) 2001-2017 ZoneMinder LLC +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# ========================================================================== +# +# This module contains the common definitions and functions used by the rest +# of the ZoneMinder scripts +# +package ZoneMinder::Object; + +use 5.006; +use strict; +use warnings; + +require ZoneMinder::Base; + +our @ISA = qw(ZoneMinder::Base); + +# ========================================================================== +# +# General Utility Functions +# +# ========================================================================== + +use ZoneMinder::Config qw(:all); +use ZoneMinder::Logger qw(:all); +use ZoneMinder::Database qw(:all); + +use vars qw/ $AUTOLOAD /; + +sub new { + my ( $parent, $id, $data ) = @_; + + my $self = {}; + bless $self, $parent; + no strict 'refs'; + my $primary_key = ${$parent.'::primary_key'}; + if ( ! $primary_key ) { + Error( 'NO primary_key for type ' . $parent ); + return; + } # end if + if ( ( $$self{$primary_key} = $id ) or $data ) { +#$log->debug("loading $parent $id") if $debug or DEBUG_ALL; + $self->load( $data ); + } + return $self; +} # end sub new + +sub load { + my ( $self, $data ) = @_; + my $type = ref $self; + if ( ! $data ) { + no strict 'refs'; + my $table = ${$type.'::table'}; + if ( ! $table ) { + Error( 'NO table for type ' . $type ); + return; + } # end if + my $primary_key = ${$type.'::primary_key'}; + if ( ! $primary_key ) { + Error( 'NO primary_key for type ' . $type ); + return; + } # end if + + if ( ! $$self{$primary_key} ) { + my ( $caller, undef, $line ) = caller; + Error( (ref $self) . "::load called without $primary_key from $caller:$line"); + } else { +#$log->debug("Object::load Loading from db $type"); + Debug("Loading $type from $table WHERE $primary_key = $$self{$primary_key}"); + $data = $ZoneMinder::Database::dbh->selectrow_hashref( "SELECT * FROM $table WHERE $primary_key=?", {}, $$self{$primary_key} ); + if ( ! $data ) { + if ( $ZoneMinder::Database::dbh->errstr ) { + Error( "Failure to load Object record for $$self{$primary_key}: Reason: " . $ZoneMinder::Database::dbh->errstr ); + } else { + Debug("No Results Loading $type from $table WHERE $primary_key = $$self{$primary_key}"); + } # end if + } # end if + } # end if + } # end if ! $data + if ( $data and %$data ) { + @$self{keys %$data} = values %$data; + } # end if +} # end sub load + +sub AUTOLOAD { + my ( $self, $newvalue ) = @_; + my $type = ref($_[0]); + my $name = $AUTOLOAD; + $name =~ s/.*://; + if ( @_ > 1 ) { + return $_[0]{$name} = $_[1]; + } + return $_[0]{$name}; +} + + +1; +__END__ + +# Below is stub documentation for your module. You'd better edit it! + +=head1 NAME + +ZoneMinder::Object + +=head1 SYNOPSIS + + use parent ZoneMinder::Object; + + This package should likely not be used directly, as it is meant mainly to be a parent for all other ZoneMinder classes. + +=head1 DESCRIPTION + + A base Object to act as parent for other ZoneMinder Objects. + +=head2 EXPORT + +None by default. + +=head1 AUTHOR + +Isaac Connor, Eisaac@zoneminder.comE + +=head1 COPYRIGHT AND LICENSE + +Copyright (C) 2001-2017 ZoneMinder LLC + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself, either Perl version 5.8.3 or, +at your option, any later version of Perl 5 you may have available. + + +=cut From a2bf5df2d47dd627e0cbc68dac848976b6bdceea Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 26 May 2017 13:27:55 -0400 Subject: [PATCH 04/12] remove some quotes --- scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in index 0082707c6..c7727f76e 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in +++ b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in @@ -49,7 +49,7 @@ our %EXPORT_TAGS = ( ); push( @{$EXPORT_TAGS{all}}, @{$EXPORT_TAGS{$_}} ) foreach keys %EXPORT_TAGS; -our @EXPORT_OK = ( @{ $EXPORT_TAGS{'data'} } ); +our @EXPORT_OK = ( @{ $EXPORT_TAGS{data} } ); our @EXPORT = qw(); From 368567335b95d3c3462fea608a09a6c974dd1ef1 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 26 May 2017 13:33:34 -0400 Subject: [PATCH 05/12] remove some quotes --- .../lib/ZoneMinder/ConfigData.pm.in | 1690 ++++++++--------- 1 file changed, 845 insertions(+), 845 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in index c7727f76e..480c22085 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in +++ b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in @@ -72,93 +72,93 @@ sub INIT { # Types our %types = ( string => { - db_type => "string", - hint => "string", + db_type => 'string', + hint => 'string', pattern => qr|^(.+)$|, format => q( $1 ) }, alphanum => { - db_type => "string", - hint => "alphanumeric", + db_type => 'string', + hint => 'alphanumeric', pattern => qr|^([a-zA-Z0-9-_]+)$|, format => q( $1 ) }, text => { - db_type => "text", - hint => "free text", + db_type => 'text', + hint => 'free text', pattern => qr|^(.+)$|, format => q( $1 ) }, boolean => { - db_type => "boolean", - hint => "yes|no", + db_type => 'boolean', + hint => 'yes|no', pattern => qr|^([yn])|i, check => q( $1 ), format => q( ($1 =~ /^y/) ? "yes" : "no" ) }, integer => { - db_type => "integer", - hint => "integer", + db_type => 'integer', + hint => 'integer', pattern => qr|^(\d+)$|, format => q( $1 ) }, decimal => { - db_type => "decimal", - hint => "decimal", + db_type => 'decimal', + hint => 'decimal', pattern => qr|^(\d+(?:\.\d+)?)$|, format => q( $1 ) }, hexadecimal => { - db_type => "hexadecimal", - hint => "hexadecimal", + db_type => 'hexadecimal', + hint => 'hexadecimal', pattern => qr|^(?:0x)?([0-9a-f]{1,8})$|, format => q( "0x".$1 ) }, tristate => { - db_type => "string", - hint => "auto|yes|no", + db_type => 'string', + hint => 'auto|yes|no', pattern => qr|^([ayn])|i, check=>q( $1 ), format => q( ($1 =~ /^y/) ? "yes" : ($1 =~ /^n/ ? "no" : "auto" ) ) }, abs_path => { - db_type => "string", - hint => "/absolute/path/to/somewhere", + db_type => 'string', + hint => '/absolute/path/to/somewhere', pattern => qr|^((?:/[^/]*)+?)/?$|, format => q( $1 ) }, rel_path => { - db_type => "string", - hint => "relative/path/to/somewhere", + db_type => 'string', + hint => 'relative/path/to/somewhere', pattern => qr|^((?:[^/].*)?)/?$|, format => q( $1 ) }, directory => { - db_type => "string", - hint => "directory", + db_type => 'string', + hint => 'directory', pattern => qr|^([a-zA-Z0-9-_.]+)$|, format => q( $1 ) }, file => { - db_type => "string", - hint => "filename", + db_type => 'string', + hint => 'filename', pattern => qr|^([a-zA-Z0-9-_.]+)$|, format => q( $1 ) }, hostname => { - db_type => "string", - hint => "host.your.domain", + db_type => 'string', + hint => 'host.your.domain', pattern => qr|^([a-zA-Z0-9_.-]+)$|, format => q( $1 ) }, url => { - db_type => "string", - hint => "http://host.your.domain/", + db_type => 'string', + hint => 'http://host.your.domain/', pattern => qr|^(?:http://)?(.+)$|, format => q( "http://".$1 ) }, email => { - db_type => "string", - hint => "your.name\@your.domain", + db_type => 'string', + hint => 'your.name@your.domain', pattern => qr|^([a-zA-Z0-9_.-]+)\@([a-zA-Z0-9_.-]+)$|, format => q( $1\@$2 ) }, @@ -172,9 +172,9 @@ sub qqq { ## Un-pad paragraph of text. our @options = ( { - name => "ZM_SKIN_DEFAULT", - default => "classic", - description => "Default skin used by web interface", + name => 'ZM_SKIN_DEFAULT', + default => 'classic', + description => 'Default skin used by web interface', help => qqq(" ZoneMinder allows the use of many different web interfaces. @@ -183,12 +183,12 @@ our @options = ( the default. "), type => $types{string}, - category => "system", + category => 'system', }, { - name => "ZM_CSS_DEFAULT", - default => "classic", - description => "Default set of css files used by web interface", + name => 'ZM_CSS_DEFAULT', + default => 'classic', + description => 'Default set of css files used by web interface', help => qqq(" ZoneMinder allows the use of many different web interfaces, and some skins allow the use of different set of CSS files to @@ -197,12 +197,12 @@ our @options = ( their css later, this merely sets the default. "), type => $types{string}, - category => "system", + category => 'system', }, { - name => "ZM_LANG_DEFAULT", - default => "en_gb", - description => "Default language used by web interface", + name => 'ZM_LANG_DEFAULT', + default => 'en_gb', + description => 'Default language used by web interface', help => qqq(" ZoneMinder allows the web interface to use languages other than English if the appropriate language file has been created and @@ -211,12 +211,12 @@ our @options = ( English, to another language "), type => $types{string}, - category => "system", + category => 'system', }, { - name => "ZM_OPT_USE_AUTH", - default => "no", - description => "Authenticate user logins to ZoneMinder", + name => 'ZM_OPT_USE_AUTH', + default => 'no', + description => 'Authenticate user logins to ZoneMinder', help => qqq(" ZoneMinder can run in two modes. The simplest is an entirely unauthenticated mode where anyone can access ZoneMinder and @@ -227,12 +227,12 @@ our @options = ( limited by their defined permissions. "), type => $types{boolean}, - category => "system", + category => 'system', }, { - name => "ZM_AUTH_TYPE", - default => "builtin", - description => "What is used to authenticate ZoneMinder users", + name => 'ZM_AUTH_TYPE', + default => 'builtin', + description => 'What is used to authenticate ZoneMinder users', help => qqq(" ZoneMinder can use two methods to authenticate users when running in authenticated mode. The first is a builtin method @@ -246,17 +246,17 @@ our @options = ( "), requires => [ { name=>"ZM_OPT_USE_AUTH", value=>"yes" } ], type => { - db_type => "string", + db_type => 'string', hint => "builtin|remote", pattern => qr|^([br])|i, format => q( $1 =~ /^b/ ? "builtin" : "remote" ) }, - category => "system", + category => 'system', }, { - name => "ZM_AUTH_RELAY", - default => "hashed", - description => "Method used to relay authentication information", + name => 'ZM_AUTH_RELAY', + default => 'hashed', + description => 'Method used to relay authentication information', help => qqq(" When ZoneMinder is running in authenticated mode it can pass user details between the web pages and the back end processes. @@ -271,17 +271,17 @@ our @options = ( "), requires => [ { name=>"ZM_OPT_USE_AUTH", value=>"yes" } ], type => { - db_type => "string", + db_type => 'string', hint => "hashed|plain|none", pattern => qr|^([hpn])|i, format => q( ($1 =~ /^h/) ? "hashed" : ($1 =~ /^p/ ? "plain" : "none" ) ) }, - category => "system", + category => 'system', }, { - name => "ZM_AUTH_HASH_SECRET", + name => 'ZM_AUTH_HASH_SECRET', default => "...Change me to something unique...", - description => "Secret for encoding hashed authentication information", + description => 'Secret for encoding hashed authentication information', help => qqq(" When ZoneMinder is running in hashed authenticated mode it is necessary to generate hashed strings containing encrypted @@ -294,12 +294,12 @@ our @options = ( { name=>"ZM_AUTH_RELAY", value=>"hashed" } ], type => $types{string}, - category => "system", + category => 'system', }, { - name => "ZM_AUTH_HASH_IPS", - default => "yes", - description => "Include IP addresses in the authentication hash", + name => 'ZM_AUTH_HASH_IPS', + default => 'yes', + description => 'Include IP addresses in the authentication hash', help => qqq(" When ZoneMinder is running in hashed authenticated mode it can optionally include the requesting IP address in the resultant @@ -317,12 +317,12 @@ our @options = ( { name=>"ZM_AUTH_RELAY", value=>"hashed" } ], type => $types{boolean}, - category => "system", + category => 'system', }, { - name => "ZM_AUTH_HASH_LOGINS", - default => "no", - description => "Allow login by authentication hash", + name => 'ZM_AUTH_HASH_LOGINS', + default => 'no', + description => 'Allow login by authentication hash', help => qqq(" The normal process for logging into ZoneMinder is via the login screen with username and password. In some circumstances it may @@ -343,11 +343,11 @@ our @options = ( { name=>"ZM_AUTH_RELAY", value=>"hashed" } ], type => $types{boolean}, - category => "system", + category => 'system', }, { - name => "ZM_ENABLE_CSRF_MAGIC", - default => "no", + name => 'ZM_ENABLE_CSRF_MAGIC', + default => 'no', description => "Enable csrf-magic library", help => qqq(" CSRF stands for Cross-Site Request Forgery which, under specific @@ -363,12 +363,12 @@ our @options = ( its experimental nature. "), type => $types{boolean}, - category => "system", + category => 'system', }, { - name => "ZM_OPT_USE_API", - default => "yes", - description => "Enable ZoneMinder APIs", + name => 'ZM_OPT_USE_API', + default => 'yes', + description => 'Enable ZoneMinder APIs', help => qqq(" ZoneMinder now features a new API using which 3rd party applications can interact with ZoneMinder data. It is @@ -379,13 +379,13 @@ our @options = ( if you are exposing your ZM instance on the Internet. "), type => $types{boolean}, - category => "system", + category => 'system', }, # PP - Google reCaptcha settings { - name => "ZM_OPT_USE_GOOG_RECAPTCHA", - default => "no", - description => "Add Google reCaptcha to login page", + name => 'ZM_OPT_USE_GOOG_RECAPTCHA', + default => 'no', + description => 'Add Google reCaptcha to login page', help => qqq(" This option allows you to include a google reCaptcha validation at login. This means in addition to providing @@ -401,11 +401,11 @@ our @options = ( {name=>"ZM_OPT_USE_AUTH", value=>"yes"} ], type => $types{boolean}, - category => "system", + category => 'system', }, { - name => "ZM_OPT_GOOG_RECAPTCHA_SITEKEY", + name => 'ZM_OPT_GOOG_RECAPTCHA_SITEKEY', default => "...Insert your recaptcha site-key here...", description => "Your recaptcha site-key", help => qqq("You need to generate your keys from @@ -417,10 +417,10 @@ our @options = ( {name=>"ZM_OPT_USE_GOOG_RECAPTCHA", value=>"yes"} ], type => $types{string}, - category => "system", + category => 'system', }, { - name => "ZM_OPT_GOOG_RECAPTCHA_SECRETKEY", + name => 'ZM_OPT_GOOG_RECAPTCHA_SECRETKEY', default => "...Insert your recaptcha secret-key here...", description => "Your recaptcha secret-key", help => qqq("You need to generate your keys from @@ -432,14 +432,14 @@ our @options = ( {name=>"ZM_OPT_USE_GOOG_RECAPTCHA", value=>"yes"} ], type => $types{string}, - category => "system", + category => 'system', }, { - name => "ZM_DIR_EVENTS", - default => "events", - description => "Directory where events are stored", + name => 'ZM_DIR_EVENTS', + default => 'events', + description => 'Directory where events are stored', help => qqq(" This is the path to the events directory where all the event images and other miscellaneous files are stored. CAUTION: The @@ -451,12 +451,12 @@ our @options = ( ZoneMinder Wiki titled Using a dedicated Hard Drive. "), type => $types{directory}, - category => "paths", + category => 'paths', }, { - name => "ZM_USE_DEEP_STORAGE", - default => "yes", - description => "Use a deep filesystem hierarchy for events", + name => 'ZM_USE_DEEP_STORAGE', + default => 'yes', + description => 'Use a deep filesystem hierarchy for events', help => qqq(" This option is now the default for new ZoneMinder systems and should not be changed. Previous versions of ZoneMinder stored @@ -472,12 +472,12 @@ our @options = ( WiKi for further details. "), type => $types{boolean}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_DIR_IMAGES", - default => "images", - description => "Directory where the images that the ZoneMinder client generates are stored", + name => 'ZM_DIR_IMAGES', + default => 'images', + description => 'Directory where the images that the ZoneMinder client generates are stored', help => qqq(" ZoneMinder generates a myriad of images, mostly of which are associated with events. For those that aren't this is where @@ -490,12 +490,12 @@ our @options = ( Hard Drive. "), type => $types{directory}, - category => "paths", + category => 'paths', }, { - name => "ZM_DIR_SOUNDS", - default => "sounds", - description => "Directory to the sounds that the ZoneMinder client can use", + name => 'ZM_DIR_SOUNDS', + default => 'sounds', + description => 'Directory to the sounds that the ZoneMinder client can use', help => qqq(" ZoneMinder can optionally play a sound file when an alarm is detected. This indicates where to look for this file. CAUTION: @@ -503,12 +503,12 @@ our @options = ( Most users should never change this value. "), type => $types{directory}, - category => "paths", + category => 'paths', }, { - name => "ZM_DIR_EXPORTS", + name => 'ZM_DIR_EXPORTS', default => "@ZM_TMPDIR@", - description => "Directory where exported archives are stored", + description => 'Directory where exported archives are stored', help => qqq(" This is the path to the exports directory where exported tar.gz and zip archives are stored. By default this points to @@ -517,12 +517,12 @@ our @options = ( this folder to some other location on machines with low memory. "), type => $types{directory}, - category => "paths", + category => 'paths', }, { - name => "ZM_PATH_ZMS", + name => 'ZM_PATH_ZMS', default => "/cgi-bin/nph-zms", - description => "Web path to zms streaming server", + description => 'Web path to zms streaming server', help => qqq(" The ZoneMinder streaming server is required to send streamed images to your browser. It will be installed into the cgi-bin @@ -534,12 +534,12 @@ our @options = ( by changing 'zms' to 'nph-zms'. "), type => $types{rel_path}, - category => "paths", + category => 'paths', }, { - name => "ZM_COLOUR_JPEG_FILES", - default => "no", - description => "Colourise greyscale JPEG files", + name => 'ZM_COLOUR_JPEG_FILES', + default => 'no', + description => 'Colourise greyscale JPEG files', help => qqq(" Cameras that capture in greyscale can write their captured images to jpeg files with a corresponding greyscale colour @@ -550,12 +550,12 @@ our @options = ( makes creation of MPEG files much faster. "), type => $types{boolean}, - category => "images", + category => 'images', }, { - name => "ZM_ADD_JPEG_COMMENTS", - default => "no", - description => "Add jpeg timestamp annotations as file header comments", + name => 'ZM_ADD_JPEG_COMMENTS', + default => 'no', + description => 'Add jpeg timestamp annotations as file header comments', help => qqq(" JPEG files may have a number of extra fields added to the file header. The comment field may have any kind of text added. This @@ -566,11 +566,11 @@ our @options = ( you use software that can read comment headers. "), type => $types{boolean}, - category => "images", + category => 'images', }, { - name => "ZM_JPEG_FILE_QUALITY", - default => "70", + name => 'ZM_JPEG_FILE_QUALITY', + default => '70', description => "Set the JPEG quality setting for the saved event files (1-100)", help => qqq(" When ZoneMinder detects an event it will save the images @@ -587,11 +587,11 @@ our @options = ( instead. "), type => $types{integer}, - category => "images", + category => 'images', }, { - name => "ZM_JPEG_ALARM_FILE_QUALITY", - default => "0", + name => 'ZM_JPEG_ALARM_FILE_QUALITY', + default => '0', description => "Set the JPEG quality setting for the saved event files during an alarm (1-100)", help => qqq(" This value is equivalent to the regular jpeg file quality @@ -604,12 +604,12 @@ our @options = ( saving important images at a worse quality setting. "), type => $types{integer}, - category => "images", + category => 'images', }, # Deprecated, now stream quality { - name => "ZM_JPEG_IMAGE_QUALITY", - default => "70", + name => 'ZM_JPEG_IMAGE_QUALITY', + default => '70', description => "Set the JPEG quality setting for the streamed 'live' images (1-100)", help => qqq(" When viewing a 'live' stream for a monitor ZoneMinder will grab @@ -624,11 +624,11 @@ our @options = ( quality specified by the previous options. "), type => $types{integer}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_JPEG_STREAM_QUALITY", - default => "70", + name => 'ZM_JPEG_STREAM_QUALITY', + default => '70', description => "Set the JPEG quality setting for the streamed 'live' images (1-100)", help => qqq(" When viewing a 'live' stream for a monitor ZoneMinder will grab @@ -643,12 +643,12 @@ our @options = ( quality specified by the previous options. "), type => $types{integer}, - category => "images", + category => 'images', }, { - name => "ZM_MPEG_TIMED_FRAMES", - default => "yes", - description => "Tag video frames with a timestamp for more realistic streaming", + name => 'ZM_MPEG_TIMED_FRAMES', + default => 'yes', + description => 'Tag video frames with a timestamp for more realistic streaming', help => qqq(" When using streamed MPEG based video, either for live monitor streams or events, ZoneMinder can send the streams in two ways. @@ -662,11 +662,11 @@ our @options = ( your preferred streaming method. "), type => $types{boolean}, - category => "images", + category => 'images', }, { - name => "ZM_MPEG_LIVE_FORMAT", - default => "swf", + name => 'ZM_MPEG_LIVE_FORMAT', + default => 'swf', description => "What format 'live' video streams are played in", help => qqq(" When using MPEG mode ZoneMinder can output live video. However @@ -681,11 +681,11 @@ our @options = ( streams will revert to being in motion jpeg format "), type => $types{string}, - category => "images", + category => 'images', }, { - name => "ZM_MPEG_REPLAY_FORMAT", - default => "swf", + name => 'ZM_MPEG_REPLAY_FORMAT', + default => 'swf', description => "What format 'replay' video streams are played in", help => qqq(" When using MPEG mode ZoneMinder can replay events in encoded @@ -700,23 +700,23 @@ our @options = ( streams will revert to being in motion jpeg format "), type => $types{string}, - category => "images", + category => 'images', }, { - name => "ZM_RAND_STREAM", - default => "yes", - description => "Add a random string to prevent caching of streams", + name => 'ZM_RAND_STREAM', + default => 'yes', + description => 'Add a random string to prevent caching of streams', help => qqq(" Some browsers can cache the streams used by ZoneMinder. In order to prevent his a harmless random string can be appended to the url to make each invocation of the stream appear unique. "), type => $types{boolean}, - category => "images", + category => 'images', }, { - name => "ZM_OPT_CAMBOZOLA", - default => "no", + name => 'ZM_OPT_CAMBOZOLA', + default => 'no', description => "Is the (optional) cambozola java streaming client installed", help => qqq(" Cambozola is a handy low fat cheese flavoured Java applet that @@ -728,10 +728,10 @@ our @options = ( be viewed. "), type => $types{boolean}, - category => "images", + category => 'images', }, { - name => "ZM_PATH_CAMBOZOLA", + name => 'ZM_PATH_CAMBOZOLA', default => "cambozola.jar", description => "Web path to (optional) cambozola java streaming client", help => qqq(" @@ -747,12 +747,12 @@ our @options = ( "), requires => [ { name=>"ZM_OPT_CAMBOZOLA", value=>"yes" } ], type => $types{rel_path}, - category => "images", + category => 'images', }, { - name => "ZM_RELOAD_CAMBOZOLA", - default => "0", - description => "After how many seconds should Cambozola be reloaded in live view", + name => 'ZM_RELOAD_CAMBOZOLA', + default => '0', + description => 'After how many seconds should Cambozola be reloaded in live view', help => qqq(" Cambozola allows for the viewing of streaming MJPEG however it caches the entire stream into cache space on the computer, @@ -761,12 +761,12 @@ our @options = ( drive. "), type => $types{integer}, - category => "images", + category => 'images', }, { - name => "ZM_TIMESTAMP_ON_CAPTURE", - default => "yes", - description => "Timestamp images as soon as they are captured", + name => 'ZM_TIMESTAMP_ON_CAPTURE', + default => 'yes', + description => 'Timestamp images as soon as they are captured', help => qqq(" ZoneMinder can add a timestamp to images in two ways. The default method, when this option is set, is that each image is @@ -786,12 +786,12 @@ our @options = ( still have a legible and correctly scaled timestamp. "), type => $types{boolean}, - category => "config", + category => 'config', }, { - name => "ZM_CPU_EXTENSIONS", - default => "yes", - description => "Use advanced CPU extensions to increase performance", + name => 'ZM_CPU_EXTENSIONS', + default => 'yes', + description => 'Use advanced CPU extensions to increase performance', help => qqq(" When advanced processor extensions such as SSE2 or SSSE3 are available, ZoneMinder can use them, which should increase @@ -801,12 +801,12 @@ our @options = ( effect. "), type => $types{boolean}, - category => "config", + category => 'config', }, { - name => "ZM_FAST_IMAGE_BLENDS", - default => "yes", - description => "Use a fast algorithm to blend the reference image", + name => 'ZM_FAST_IMAGE_BLENDS', + default => 'yes', + description => 'Use a fast algorithm to blend the reference image', help => qqq(" To detect alarms ZoneMinder needs to blend the captured image with the stored reference image to update it for comparison @@ -822,12 +822,12 @@ our @options = ( and use standard blending instead, which is slower. "), type => $types{boolean}, - category => "config", + category => 'config', }, { - name => "ZM_OPT_ADAPTIVE_SKIP", - default => "yes", - description => "Should frame analysis try and be efficient in skipping frames", + name => 'ZM_OPT_ADAPTIVE_SKIP', + default => 'yes', + description => 'Should frame analysis try and be efficient in skipping frames', help => qqq(" In previous versions of ZoneMinder the analysis daemon would attempt to keep up with the capture daemon by processing the @@ -853,12 +853,12 @@ our @options = ( overrun condition to occur. "), type => $types{boolean}, - category => "config", + category => 'config', }, { - name => "ZM_MAX_SUSPEND_TIME", - default => "30", - description => "Maximum time that a monitor may have motion detection suspended", + name => 'ZM_MAX_SUSPEND_TIME', + default => '30', + description => 'Maximum time that a monitor may have motion detection suspended', help => qqq(" ZoneMinder allows monitors to have motion detection to be suspended, for instance while panning a camera. Ordinarily this @@ -871,12 +871,12 @@ our @options = ( movement will also occur while the monitor is suspended. "), type => $types{integer}, - category => "config", + category => 'config', }, # Deprecated, really no longer necessary { - name => "ZM_OPT_REMOTE_CAMERAS", - default => "no", + name => 'ZM_OPT_REMOTE_CAMERAS', + default => 'no', description => "Are you going to use remote/networked cameras", help => qqq(" ZoneMinder can work with both local cameras, ie. those attached @@ -884,13 +884,13 @@ our @options = ( you will be using networked cameras select this option. "), type => $types{boolean}, - category => "hidden", + category => 'hidden', }, # Deprecated, now set on a per monitor basis using the Method field { - name => "ZM_NETCAM_REGEXPS", - default => "yes", - description => "Use regular expression matching with network cameras", + name => 'ZM_NETCAM_REGEXPS', + default => 'yes', + description => 'Use regular expression matching with network cameras', help => qqq(" Traditionally ZoneMinder has used complex regular regular expressions to handle the multitude of formats that network @@ -901,14 +901,14 @@ our @options = ( expression based method by selecting this option. Note, to use this method you must have libpcre installed on your system. "), - requires => [ { name => "ZM_OPT_REMOTE_CAMERAS", value => "yes" } ], + requires => [ { name => 'ZM_OPT_REMOTE_CAMERAS', value => 'yes' } ], type => $types{boolean}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_HTTP_VERSION", + name => 'ZM_HTTP_VERSION', default => "1.0", - description => "The version of HTTP that ZoneMinder will use to connect", + description => 'The version of HTTP that ZoneMinder will use to connect', help => qqq(" ZoneMinder can communicate with network cameras using either of the HTTP/1.1 or HTTP/1.0 standard. A server will normally fall @@ -917,17 +917,17 @@ our @options = ( HTTP/1.0 if necessary to resolve particular issues. "), type => { - db_type => "string", + db_type => 'string', hint => "1.1|1.0", pattern => qr|^(1\.[01])$|, format => q( $1?$1:"" ) }, - category => "network", + category => 'network', }, { - name => "ZM_HTTP_UA", - default => "ZoneMinder", - description => "The user agent that ZoneMinder uses to identify itself", + name => 'ZM_HTTP_UA', + default => 'ZoneMinder', + description => 'The user agent that ZoneMinder uses to identify itself', help => qqq(" When ZoneMinder communicates with remote cameras it will identify itself using this string and it's version number. This @@ -937,11 +937,11 @@ our @options = ( Internet Explorer or Netscape etc. "), type => $types{string}, - category => "network", + category => 'network', }, { - name => "ZM_HTTP_TIMEOUT", - default => "2500", + name => 'ZM_HTTP_TIMEOUT', + default => '2500', description => "How long ZoneMinder waits before giving up on images (milliseconds)", help => qqq(" When retrieving remote images ZoneMinder will wait for this @@ -951,12 +951,12 @@ our @options = ( an image if it is not sent in one whole chunk. "), type => $types{integer}, - category => "network", + category => 'network', }, { - name => "ZM_MIN_RTP_PORT", - default => "40200", - description => "Minimum port that ZoneMinder will listen for RTP traffic on", + name => 'ZM_MIN_RTP_PORT', + default => '40200', + description => 'Minimum port that ZoneMinder will listen for RTP traffic on', help => qqq(" When ZoneMinder communicates with MPEG4 capable cameras using RTP with the unicast method it must open ports for the camera @@ -969,12 +969,12 @@ our @options = ( wish to use unicasting. "), type => $types{integer}, - category => "network", + category => 'network', }, { - name => "ZM_MAX_RTP_PORT", - default => "40499", - description => "Maximum port that ZoneMinder will listen for RTP traffic on", + name => 'ZM_MAX_RTP_PORT', + default => '40499', + description => 'Maximum port that ZoneMinder will listen for RTP traffic on', help => qqq(" When ZoneMinder communicates with MPEG4 capable cameras using RTP with the unicast method it must open ports for the camera @@ -989,10 +989,10 @@ our @options = ( connecting to unicasting network cameras. "), type => $types{integer}, - category => "network", + category => 'network', }, { - name => "ZM_OPT_FFMPEG", + name => 'ZM_OPT_FFMPEG', default => "@OPT_FFMPEG@", description => "Is the ffmpeg video encoder/decoder installed", help => qqq(" @@ -1004,21 +1004,21 @@ our @options = ( can still be reviewed as video streams without it. "), type => $types{boolean}, - category => "images", + category => 'images', }, { - name => "ZM_PATH_FFMPEG", + name => 'ZM_PATH_FFMPEG', default => "@PATH_FFMPEG@", description => "Path to (optional) ffmpeg mpeg encoder", help => "This path should point to where ffmpeg has been installed.", requires => [ { name=>"ZM_OPT_FFMPEG", value=>"yes" } ], type => $types{abs_path}, - category => "images", + category => 'images', }, { - name => "ZM_FFMPEG_INPUT_OPTIONS", - default => "", - description => "Additional input options to ffmpeg", + name => 'ZM_FFMPEG_INPUT_OPTIONS', + default => '', + description => 'Additional input options to ffmpeg', help => qqq(" Ffmpeg can take many options on the command line to control the quality of video produced. This option allows you to specify @@ -1028,12 +1028,12 @@ our @options = ( "), requires => [ { name=>"ZM_OPT_FFMPEG", value=>"yes" } ], type => $types{string}, - category => "images", + category => 'images', }, { - name => "ZM_FFMPEG_OUTPUT_OPTIONS", + name => 'ZM_FFMPEG_OUTPUT_OPTIONS', default => "-r 25", - description => "Additional output options to ffmpeg", + description => 'Additional output options to ffmpeg', help => qqq(" Ffmpeg can take many options on the command line to control the quality of video produced. This option allows you to specify @@ -1045,12 +1045,12 @@ our @options = ( "), requires => [ { name=>"ZM_OPT_FFMPEG", value=>"yes" } ], type => $types{string}, - category => "images", + category => 'images', }, { - name => "ZM_FFMPEG_FORMATS", + name => 'ZM_FFMPEG_FORMATS', default => "mpg mpeg wmv asf avi* mov swf 3gp**", - description => "Formats to allow for ffmpeg video generation", + description => 'Formats to allow for ffmpeg video generation', help => qqq(" Ffmpeg can generate video in many different formats. This option allows you to list the ones you want to be able to @@ -1062,11 +1062,11 @@ our @options = ( "), requires => [ { name=>"ZM_OPT_FFMPEG", value=>"yes" } ], type => $types{string}, - category => "images", + category => 'images', }, { - name => "ZM_FFMPEG_OPEN_TIMEOUT", - default => "10", + name => 'ZM_FFMPEG_OPEN_TIMEOUT', + default => '10', description => "Timeout in seconds when opening a stream.", help => qqq(" When Ffmpeg is opening a stream, it can take a long time before @@ -1077,12 +1077,12 @@ our @options = ( "), requires => [ { name=>"ZM_OPT_FFMPEG", value=>"yes" } ], type => $types{integer}, - category => "images", + category => 'images', }, { - name => "ZM_LOG_LEVEL_SYSLOG", - default => "0", - description => "Save logging output to the system log", + name => 'ZM_LOG_LEVEL_SYSLOG', + default => '0', + description => 'Save logging output to the system log', help => qqq(" ZoneMinder logging is now more more integrated between components and allows you to specify the destination for @@ -1099,17 +1099,17 @@ our @options = ( you will also need to set a level and component below "), type => { - db_type => "integer", + db_type => 'integer', hint => "None=-5|Panic=-4|Fatal=-3|Error=-2|Warning=-1|Info=0|Debug=1", pattern => qr|^(\d+)$|, format => q( $1 ) }, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_LEVEL_FILE", + name => 'ZM_LOG_LEVEL_FILE', default => "-5", - description => "Save logging output to component files", + description => 'Save logging output to component files', help => qqq(" ZoneMinder logging is now more more integrated between components and allows you to specify the destination for @@ -1129,17 +1129,17 @@ our @options = ( and component below "), type => { - db_type => "integer", + db_type => 'integer', hint => "None=-5|Panic=-4|Fatal=-3|Error=-2|Warning=-1|Info=0|Debug=1", pattern => qr|^(\d+)$|, format => q( $1 ) }, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_LEVEL_WEBLOG", + name => 'ZM_LOG_LEVEL_WEBLOG', default => "-5", - description => "Save logging output to the weblog", + description => 'Save logging output to the weblog', help => qqq(" ZoneMinder logging is now more more integrated between components and allows you to specify the destination for @@ -1156,17 +1156,17 @@ our @options = ( you will also need to set a level and component below "), type => { - db_type => "integer", + db_type => 'integer', hint => "None=-5|Panic=-4|Fatal=-3|Error=-2|Warning=-1|Info=0|Debug=1", pattern => qr|^(\d+)$|, format => q( $1 ) }, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_LEVEL_DATABASE", - default => "0", - description => "Save logging output to the database", + name => 'ZM_LOG_LEVEL_DATABASE', + default => '0', + description => 'Save logging output to the database', help => qqq(" ZoneMinder logging is now more more integrated between components and allows you to specify the destination for @@ -1187,17 +1187,17 @@ our @options = ( also need to set a level and component below "), type => { - db_type => "integer", + db_type => 'integer', hint => "None=-5|Panic=-4|Fatal=-3|Error=-2|Warning=-1|Info=0|Debug=1", pattern => qr|^(\d+)$|, format => q( $1 ) }, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_DATABASE_LIMIT", + name => 'ZM_LOG_DATABASE_LIMIT', default => "7 day", - description => "Maximum number of log entries to retain", + description => 'Maximum number of log entries to retain', help => qqq(" If you are using database logging then it is possible to quickly build up a large number of entries in the Logs table. @@ -1214,12 +1214,12 @@ our @options = ( in the meantime. "), type => $types{string}, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_DEBUG", - default => "no", - description => "Switch debugging on", + name => 'ZM_LOG_DEBUG', + default => 'no', + description => 'Switch debugging on', help => qqq(" ZoneMinder components usually support debug logging available to help with diagnosing problems. Binary components have @@ -1231,12 +1231,12 @@ our @options = ( up this instruction when they are restarted. "), type => $types{boolean}, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_DEBUG_TARGET", - default => "", - description => "What components should have extra debug enabled", + name => 'ZM_LOG_DEBUG_TARGET', + default => '', + description => 'What components should have extra debug enabled', help => qqq(" There are three scopes of debug available. Leaving this option blank means that all components will use extra debug (not @@ -1249,14 +1249,14 @@ our @options = ( debug issues with the web interface use '_web'. You can specify multiple targets by separating them with '|' characters. "), - requires => [ { name => "ZM_LOG_DEBUG", value => "yes" } ], + requires => [ { name => 'ZM_LOG_DEBUG', value => 'yes' } ], type => $types{string}, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_DEBUG_LEVEL", + name => 'ZM_LOG_DEBUG_LEVEL', default => 1, - description => "What level of extra debug should be enabled", + description => 'What level of extra debug should be enabled', help => qqq(" There are 9 levels of debug available, with higher numbers being more debug and level 0 being no debug. However not all @@ -1268,19 +1268,19 @@ our @options = ( interface only have one level so this is an on/off type option for them. "), - requires => [ { name => "ZM_LOG_DEBUG", value => "yes" } ], + requires => [ { name => 'ZM_LOG_DEBUG', value => 'yes' } ], type => { - db_type => "integer", + db_type => 'integer', hint => "1|2|3|4|5|6|7|8|9", pattern => qr|^(\d+)$|, format => q( $1 ) }, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_DEBUG_FILE", + name => 'ZM_LOG_DEBUG_FILE', default => "@ZM_LOGDIR@/zm_debug.log+", - description => "Where extra debug is output to", + description => 'Where extra debug is output to', help => qqq(" This option allows you to specify a different target for debug output. All components have a default log file which will @@ -1298,14 +1298,14 @@ our @options = ( are set up to allow writing to the file and directory specified here. "), - requires => [ { name => "ZM_LOG_DEBUG", value => "yes" } ], + requires => [ { name => 'ZM_LOG_DEBUG', value => 'yes' } ], type => $types{string}, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_CHECK_PERIOD", - default => "900", - description => "Time period used when calculating overall system health", + name => 'ZM_LOG_CHECK_PERIOD', + default => '900', + description => 'Time period used when calculating overall system health', help => qqq(" When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that @@ -1315,12 +1315,12 @@ our @options = ( seconds and is ignored if LOG_LEVEL_DATABASE is set to None. "), type => $types{integer}, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_ALERT_WAR_COUNT", - default => "1", - description => "Number of warnings indicating system alert state", + name => 'ZM_LOG_ALERT_WAR_COUNT', + default => '1', + description => 'Number of warnings indicating system alert state', help => qqq(" When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that @@ -1332,12 +1332,12 @@ our @options = ( to None. "), type => $types{integer}, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_ALERT_ERR_COUNT", - default => "1", - description => "Number of errors indicating system alert state", + name => 'ZM_LOG_ALERT_ERR_COUNT', + default => '1', + description => 'Number of errors indicating system alert state', help => qqq(" When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that @@ -1349,12 +1349,12 @@ our @options = ( to None. "), type => $types{integer}, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_ALERT_FAT_COUNT", - default => "0", - description => "Number of fatal error indicating system alert state", + name => 'ZM_LOG_ALERT_FAT_COUNT', + default => '0', + description => 'Number of fatal error indicating system alert state', help => qqq(" When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that @@ -1366,12 +1366,12 @@ our @options = ( ignored if LOG_LEVEL_DATABASE is set to None. "), type => $types{integer}, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_ALARM_WAR_COUNT", - default => "100", - description => "Number of warnings indicating system alarm state", + name => 'ZM_LOG_ALARM_WAR_COUNT', + default => '100', + description => 'Number of warnings indicating system alarm state', help => qqq(" When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that @@ -1383,12 +1383,12 @@ our @options = ( to None. "), type => $types{integer}, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_ALARM_ERR_COUNT", - default => "10", - description => "Number of errors indicating system alarm state", + name => 'ZM_LOG_ALARM_ERR_COUNT', + default => '10', + description => 'Number of errors indicating system alarm state', help => qqq(" When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that @@ -1400,12 +1400,12 @@ our @options = ( to None. "), type => $types{integer}, - category => "logging", + category => 'logging', }, { - name => "ZM_LOG_ALARM_FAT_COUNT", - default => "1", - description => "Number of fatal error indicating system alarm state", + name => 'ZM_LOG_ALARM_FAT_COUNT', + default => '1', + description => 'Number of fatal error indicating system alarm state', help => qqq(" When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that @@ -1417,11 +1417,11 @@ our @options = ( ignored if LOG_LEVEL_DATABASE is set to None. "), type => $types{integer}, - category => "logging", + category => 'logging', }, { - name => "ZM_RECORD_EVENT_STATS", - default => "yes", + name => 'ZM_RECORD_EVENT_STATS', + default => 'yes', description => "Record event statistical information, switch off if too slow", help => qqq(" This version of ZoneMinder records detailed information about @@ -1435,11 +1435,11 @@ our @options = ( Stats information will be saved. "), type => $types{boolean}, - category => "logging", + category => 'logging', }, { - name => "ZM_RECORD_DIAG_IMAGES", - default => "no", + name => 'ZM_RECORD_DIAG_IMAGES', + default => 'no', description => "Record intermediate alarm diagnostic images, can be very slow", help => qqq(" In addition to recording event statistics you can also record @@ -1453,11 +1453,11 @@ our @options = ( required. "), type => $types{boolean}, - category => "logging", + category => 'logging', }, { - name => "ZM_DUMP_CORES", - default => "no", + name => 'ZM_DUMP_CORES', + default => 'no', description => "Create core files on unexpected process failure.", help => qqq(" When an unrecoverable error occurs in a ZoneMinder binary @@ -1478,12 +1478,12 @@ our @options = ( this option. "), type => $types{boolean}, - category => "logging", + category => 'logging', }, { - name => "ZM_PATH_MAP", + name => 'ZM_PATH_MAP', default => "/dev/shm", - description => "Path to the mapped memory files that that ZoneMinder can use", + description => 'Path to the mapped memory files that that ZoneMinder can use', help => qqq(" ZoneMinder has historically used IPC shared memory for shared data between processes. This has it's advantages and @@ -1499,12 +1499,12 @@ our @options = ( slower than the regular shared memory one. "), type => $types{abs_path}, - category => "paths", + category => 'paths', }, { - name => "ZM_PATH_SOCKS", + name => 'ZM_PATH_SOCKS', default => "@ZM_SOCKDIR@", - description => "Path to the various Unix domain socket files that ZoneMinder uses", + description => 'Path to the various Unix domain socket files that ZoneMinder uses', help => qqq(" ZoneMinder generally uses Unix domain sockets where possible. This reduces the need for port assignments and prevents @@ -1513,12 +1513,12 @@ our @options = ( This option indicates where those socket files go. "), type => $types{abs_path}, - category => "paths", + category => 'paths', }, { - name => "ZM_PATH_LOGS", + name => 'ZM_PATH_LOGS', default => "@ZM_LOGDIR@", - description => "Path to the various logs that the ZoneMinder daemons generate", + description => 'Path to the various logs that the ZoneMinder daemons generate', help => qqq(" There are various daemons that are used by ZoneMinder to perform various tasks. Most generate helpful log files and this @@ -1526,12 +1526,12 @@ our @options = ( debugging. "), type => $types{abs_path}, - category => "paths", + category => 'paths', }, { - name => "ZM_PATH_SWAP", + name => 'ZM_PATH_SWAP', default => "@ZM_TMPDIR@", - description => "Path to location for temporary swap images used in streaming", + description => 'Path to location for temporary swap images used in streaming', help => qqq(" Buffered playback requires temporary swap images to be stored for each instance of the streaming daemons. This option @@ -1540,12 +1540,12 @@ our @options = ( will be automatically cleaned up after a period of time. "), type => $types{abs_path}, - category => "paths", + category => 'paths', }, { - name => "ZM_PATH_ARP", - default => "", - description => "Path to a supported ARP tool", + name => 'ZM_PATH_ARP', + default => '', + description => 'Path to a supported ARP tool', help => qqq(" The camera probe function uses Address Resolution Protocol in order to find known devices on the network. Optionally supply @@ -1555,12 +1555,12 @@ our @options = ( attempt to use that. "), type => $types{abs_path}, - category => "paths", + category => 'paths', }, { - name => "ZM_WEB_TITLE_PREFIX", - default => "ZM", - description => "The title prefix displayed on each window", + name => 'ZM_WEB_TITLE_PREFIX', + default => 'ZM', + description => 'The title prefix displayed on each window', help => qqq(" If you have more than one installation of ZoneMinder it can be helpful to display different titles for each one. Changing this @@ -1568,12 +1568,12 @@ our @options = ( further information to aid identification. "), type => $types{string}, - category => "web", + category => 'web', }, { - name => "ZM_WEB_CONSOLE_BANNER", - default => "", - description => "Arbitrary text message near the top of the console", + 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 @@ -1582,7 +1582,7 @@ our @options = ( any other purpose as well. "), type => $types{string}, - category => "web", + category => 'web', }, { name => 'ZM_WEB_EVENT_DISK_SPACE', @@ -1595,12 +1595,12 @@ our @options = ( systems. "), type => $types{string}, - category => "web", + category => 'web', }, { - name => "ZM_WEB_RESIZE_CONSOLE", - default => "yes", - description => "Should the console window resize itself to fit", + name => 'ZM_WEB_RESIZE_CONSOLE', + default => 'yes', + description => 'Should the console window resize itself to fit', help => qqq(" Traditionally the main ZoneMinder web console window has resized itself to shrink to a size small enough to list only @@ -1611,22 +1611,22 @@ our @options = ( window size left to the users preference "), type => $types{boolean}, - category => "web", + category => 'web', }, { - name => "ZM_WEB_ID_ON_CONSOLE", - default => "no", - description => "Should the console list the monitor id", + name => 'ZM_WEB_ID_ON_CONSOLE', + default => 'no', + description => 'Should the console list the monitor id', help => qqq("Some find it useful to have the id always visible on the console. This option will add a column listing it. "), type => $types{boolean}, - category => "web", + category => 'web', }, { - name => "ZM_WEB_POPUP_ON_ALARM", - default => "yes", - description => "Should the monitor window jump to the top if an alarm occurs", + name => 'ZM_WEB_POPUP_ON_ALARM', + default => 'yes', + description => 'Should the monitor window jump to the top if an alarm occurs', help => qqq(" When viewing a live monitor stream you can specify whether you want the window to pop to the front if an alarm occurs when the @@ -1635,11 +1635,11 @@ our @options = ( can pop up if someone comes to the doorway. "), type => $types{boolean}, - category => "web", + category => 'web', }, { - name => "ZM_OPT_X10", - default => "no", + name => 'ZM_OPT_X10', + default => 'no', description => "Support interfacing with X10 devices", help => qqq(" If you have an X10 Home Automation setup in your home you can @@ -1649,39 +1649,39 @@ our @options = ( client. "), type => $types{boolean}, - category => "x10", + category => 'x10', }, { - name => "ZM_X10_DEVICE", + name => 'ZM_X10_DEVICE', default => "/dev/ttyS0", description => "What device is your X10 controller connected on", - requires => [ { name => "ZM_OPT_X10", value => "yes" } ], + requires => [ { name => 'ZM_OPT_X10', value => 'yes' } ], help => qqq(" If you have an X10 controller device (e.g. XM10U) connected to your computer this option details which port it is connected on, the default of /dev/ttyS0 maps to serial or com port 1. "), type => $types{abs_path}, - category => "x10", + category => 'x10', }, { - name => "ZM_X10_HOUSE_CODE", - default => "A", + name => 'ZM_X10_HOUSE_CODE', + default => 'A', description => "What X10 house code should be used", - requires => [ { name => "ZM_OPT_X10", value => "yes" } ], + requires => [ { name => 'ZM_OPT_X10', value => 'yes' } ], help => qqq(" X10 devices are grouped together by identifying them as all belonging to one House Code. This option details what that is. It should be a single letter between A and P. "), type => { db_type=>"string", hint=>"A-P", pattern=>qr|^([A-P])|i, format=>q( uc($1) ) }, - category => "x10", + category => 'x10', }, { - name => "ZM_X10_DB_RELOAD_INTERVAL", - default => "60", + name => 'ZM_X10_DB_RELOAD_INTERVAL', + default => '60', description => "How often (in seconds) the X10 daemon reloads the monitors from the database", - requires => [ { name => "ZM_OPT_X10", value => "yes" } ], + requires => [ { name => 'ZM_OPT_X10', value => 'yes' } ], help => qqq(" The zmx10 daemon periodically checks the database to find out what X10 events trigger, or result from, alarms. This option @@ -1689,23 +1689,23 @@ our @options = ( this area frequently this can be a fairly large value. "), type => $types{integer}, - category => "x10", + category => 'x10', }, { - name => "ZM_WEB_SOUND_ON_ALARM", - default => "no", - description => "Should the monitor window play a sound if an alarm occurs", + name => 'ZM_WEB_SOUND_ON_ALARM', + default => 'no', + description => 'Should the monitor window play a sound if an alarm occurs', help => qqq(" When viewing a live monitor stream you can specify whether you want the window to play a sound to alert you if an alarm occurs. "), type => $types{boolean}, - category => "web", + category => 'web', }, { - name => "ZM_WEB_ALARM_SOUND", - default => "", + name => 'ZM_WEB_ALARM_SOUND', + default => '', description => "The sound to play on alarm, put this in the sounds directory", help => qqq(" You can specify a sound file to play if an alarm occurs whilst @@ -1715,13 +1715,13 @@ our @options = ( defined earlier. "), type => $types{file}, - requires => [ { name => "ZM_WEB_SOUND_ON_ALARM", value => "yes" } ], - category => "web", + requires => [ { name => 'ZM_WEB_SOUND_ON_ALARM', value => 'yes' } ], + category => 'web', }, { - name => "ZM_WEB_COMPACT_MONTAGE", - default => "no", - description => "Compact the montage view by removing extra detail", + name => 'ZM_WEB_COMPACT_MONTAGE', + default => 'no', + description => 'Compact the montage view by removing extra detail', help => qqq(" The montage view shows the output of all of your active monitors in one window. This include a small menu and status @@ -1731,12 +1731,12 @@ our @options = ( the images. "), type => $types{boolean}, - category => "web", + category => 'web', }, { - name => "ZM_OPT_FAST_DELETE", - default => "no", - description => "Delete only event database records for speed", + name => 'ZM_OPT_FAST_DELETE', + default => 'no', + description => 'Delete only event database records for speed', help => qqq(" Normally an event created as the result of an alarm consists of entries in one or more database tables plus the various files @@ -1750,12 +1750,12 @@ our @options = ( with modern hardware. Recommend this feature be left off. "), type => $types{boolean}, - category => "system", + category => 'system', }, { - name => "ZM_STRICT_VIDEO_CONFIG", - default => "yes", - description => "Allow errors in setting video config to be fatal", + name => 'ZM_STRICT_VIDEO_CONFIG', + default => 'yes', + description => 'Allow errors in setting video config to be fatal', help => qqq(" With some video devices errors can be reported in setting the various video attributes when in fact the operation was @@ -1767,7 +1767,7 @@ our @options = ( Use this option with caution. "), type => $types{boolean}, - category => "config", + category => 'config', }, { name => 'ZM_LD_PRELOAD', @@ -1781,9 +1781,9 @@ our @options = ( category => 'config', }, { - name => "ZM_SIGNAL_CHECK_POINTS", - default => "10", - description => "How many points in a captured image to check for signal loss", + name => 'ZM_SIGNAL_CHECK_POINTS', + default => '10', + description => 'How many points in a captured image to check for signal loss', help => qqq(" For locally attached video cameras ZoneMinder can check for signal loss by looking at a number of random points on each @@ -1798,11 +1798,11 @@ our @options = ( Network and file based cameras are never checked. "), type => $types{integer}, - category => "config", + category => 'config', }, { - name => "ZM_V4L_MULTI_BUFFER", - default => "yes", + name => 'ZM_V4L_MULTI_BUFFER', + default => 'yes', description => "Use more than one buffer for Video 4 Linux devices", help => qqq(" Performance when using Video 4 Linux devices is usually best if @@ -1821,11 +1821,11 @@ our @options = ( ovveride them in each individual monitor on the source page. "), type => $types{boolean}, - category => "config", + category => 'config', }, { - name => "ZM_CAPTURES_PER_FRAME", - default => "1", + name => 'ZM_CAPTURES_PER_FRAME', + default => '1', description => "How many images are captured per returned frame, for shared local cameras", help => qqq(" If you are using cameras attached to a video capture card which @@ -1845,11 +1845,11 @@ our @options = ( ovveride them in each individual monitor on the source page. "), type => $types{integer}, - category => "config", + category => 'config', }, { - name => "ZM_FILTER_RELOAD_DELAY", - default => "300", + name => 'ZM_FILTER_RELOAD_DELAY', + default => '300', description => "How often (in seconds) filters are reloaded in zmfilter", help => qqq(" ZoneMinder allows you to save filters to the database which @@ -1861,11 +1861,11 @@ our @options = ( very often this value can be set to a large value. "), type => $types{integer}, - category => "system", + category => 'system', }, { - name => "ZM_FILTER_EXECUTE_INTERVAL", - default => "60", + name => 'ZM_FILTER_EXECUTE_INTERVAL', + default => '60', description => "How often (in seconds) to run automatic saved filters", help => qqq(" ZoneMinder allows you to save filters to the database which @@ -1879,12 +1879,12 @@ our @options = ( elements. "), type => $types{integer}, - category => "system", + category => 'system', }, { - name => "ZM_OPT_UPLOAD", - default => "no", - description => "Should ZoneMinder support uploading events from filters", + name => 'ZM_OPT_UPLOAD', + default => 'no', + description => 'Should ZoneMinder support uploading events from filters', help => qqq(" In ZoneMinder you can create event filters that specify whether events that match certain criteria should be uploaded to a @@ -1892,13 +1892,13 @@ our @options = ( functionality should be available "), type => $types{boolean}, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_ARCH_FORMAT", - default => "tar", + name => 'ZM_UPLOAD_ARCH_FORMAT', + default => 'tar', description => "What format the uploaded events should be created in.", - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], help => qqq(" Uploaded events may be stored in either .tar or .zip format, this option specifies which. Note that to use this you will @@ -1911,12 +1911,12 @@ our @options = ( pattern =>qr|^([tz])|i, format =>q( $1 =~ /^t/ ? "tar" : "zip" ) }, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_ARCH_COMPRESS", - default => "no", - description => "Should archive files be compressed", + name => 'ZM_UPLOAD_ARCH_COMPRESS', + default => 'no', + description => 'Should archive files be compressed', help => qqq(" When the archive files are created they can be compressed. However in general since the images are compressed already this @@ -1924,14 +1924,14 @@ our @options = ( in their creation. Only enable if you have CPU to waste and are limited in disk space on your remote server or bandwidth. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{boolean}, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_ARCH_ANALYSE", - default => "no", - description => "Include the analysis files in the archive", + name => 'ZM_UPLOAD_ARCH_ANALYSE', + default => 'no', + description => 'Include the analysis files in the archive', help => qqq(" When the archive files are created they can contain either just the captured frames or both the captured frames and, for frames @@ -1942,15 +1942,15 @@ our @options = ( caused an alarm in the first place as archives with these files in can be considerably larger. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{boolean}, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_PROTOCOL", - default => "ftp", - description => "What protocol to use to upload events", - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + name => 'ZM_UPLOAD_PROTOCOL', + default => 'ftp', + description => 'What protocol to use to upload events', + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], help => qqq(" ZoneMinder can upload events to a remote server using either FTP or SFTP. Regular FTP is widely supported but not @@ -1966,37 +1966,37 @@ our @options = ( pattern =>qr|^([tz])|i, format =>q( $1 =~ /^f/ ? "ftp" : "sftp" ) }, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_FTP_HOST", - default => "", - description => "The remote server to upload to", + name => 'ZM_UPLOAD_FTP_HOST', + default => '', + description => 'The remote server to upload to', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates the name, or ip address, of the server to use. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{hostname}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_UPLOAD_HOST", - default => "", - description => "The remote server to upload events to", + name => 'ZM_UPLOAD_HOST', + default => '', + description => 'The remote server to upload events to', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the name, or ip address, of the server to use. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{hostname}, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_PORT", - default => "", + name => 'ZM_UPLOAD_PORT', + default => '', description => "The port on the remote upload server, if not the default (SFTP only)", help => qqq(" You can use filters to instruct ZoneMinder to upload events to @@ -2005,53 +2005,53 @@ our @options = ( connection. If this option is left blank then the default, port 22, is used. This option is ignored for FTP uploads. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{integer}, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_FTP_USER", - default => "", - description => "Your ftp username", + name => 'ZM_UPLOAD_FTP_USER', + default => '', + description => 'Your ftp username', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates the username that ZoneMinder should use to log in for ftp transfer. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{alphanum}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_UPLOAD_USER", - default => "", - description => "Remote server username", + name => 'ZM_UPLOAD_USER', + default => '', + description => 'Remote server username', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the username that ZoneMinder should use to log in for transfer. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{alphanum}, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_FTP_PASS", - default => "", - description => "Your ftp password", + name => 'ZM_UPLOAD_FTP_PASS', + default => '', + description => 'Your ftp password', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates the password that ZoneMinder should use to log in for ftp transfer. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{string}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_UPLOAD_PASS", - default => "", - description => "Remote server password", + name => 'ZM_UPLOAD_PASS', + default => '', + description => 'Remote server password', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the password that @@ -2059,14 +2059,14 @@ our @options = ( certificate based logins for SFTP servers you can leave this option blank. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{string}, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_FTP_LOC_DIR", + name => 'ZM_UPLOAD_FTP_LOC_DIR', default => "@ZM_TMPDIR@", - description => "The local directory in which to create upload files", + description => 'The local directory in which to create upload files', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates the local directory @@ -2074,54 +2074,54 @@ our @options = ( are files that are created from events, uploaded and then deleted. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{abs_path}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_UPLOAD_LOC_DIR", + name => 'ZM_UPLOAD_LOC_DIR', default => "@ZM_TMPDIR@", - description => "The local directory in which to create upload files", + description => 'The local directory in which to create upload files', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the local directory that ZoneMinder should use for temporary upload files. These are files that are created from events, uploaded and then deleted. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{abs_path}, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_FTP_REM_DIR", - default => "", - description => "The remote directory to upload to", + name => 'ZM_UPLOAD_FTP_REM_DIR', + default => '', + description => 'The remote directory to upload to', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates the remote directory that ZoneMinder should use to upload event files to. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{rel_path}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_UPLOAD_REM_DIR", - default => "", - description => "The remote directory to upload to", + name => 'ZM_UPLOAD_REM_DIR', + default => '', + description => 'The remote directory to upload to', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the remote directory that ZoneMinder should use to upload event files to. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{rel_path}, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_FTP_TIMEOUT", - default => "120", - description => "How long to allow the transfer to take for each file", + name => 'ZM_UPLOAD_FTP_TIMEOUT', + default => '120', + description => 'How long to allow the transfer to take for each file', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates the maximum ftp @@ -2129,14 +2129,14 @@ our @options = ( ZoneMinder determines that the transfer has failed and closes down the connection. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{integer}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_UPLOAD_TIMEOUT", - default => "120", - description => "How long to allow the transfer to take for each file", + name => 'ZM_UPLOAD_TIMEOUT', + default => '120', + description => 'How long to allow the transfer to take for each file', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the maximum inactivity @@ -2144,14 +2144,14 @@ our @options = ( determines that the transfer has failed and closes down the connection. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{integer}, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_STRICT", - default => "no", - description => "Require strict host key checking for SFTP uploads", + name => 'ZM_UPLOAD_STRICT', + default => 'no', + description => 'Require strict host key checking for SFTP uploads', help => qqq(" You can require SFTP uploads to verify the host key of the remote server for protection against man-in-the-middle attacks. You will need to add the @@ -2159,14 +2159,14 @@ our @options = ( ~/.ssh/known_hosts, where ~ is the home directory of the web server running ZoneMinder. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{boolean}, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_FTP_PASSIVE", - default => "yes", - description => "Use passive ftp when uploading", + name => 'ZM_UPLOAD_FTP_PASSIVE', + default => 'yes', + description => 'Use passive ftp when uploading', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates that ftp transfers @@ -2175,7 +2175,7 @@ our @options = ( is more robust and likely to work from behind filewalls. This option is ignored for SFTP transfers. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], help => qqq(" If your computer is behind a firewall or proxy you may need to set FTP to passive mode. In fact for simple transfers it makes @@ -2183,26 +2183,26 @@ our @options = ( 'No' if you wish. "), type => $types{boolean}, - category => "upload", + category => 'upload', }, { - name => "ZM_UPLOAD_FTP_DEBUG", - default => "no", - description => "Switch ftp debugging on", + name => 'ZM_UPLOAD_FTP_DEBUG', + default => 'no', + description => 'Switch ftp debugging on', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote ftp server. If you are having (or expecting) troubles with uploading events then setting this to 'yes' permits additional information to be included in the zmfilter log file. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{boolean}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_UPLOAD_DEBUG", - default => "no", - description => "Switch upload debugging on", + name => 'ZM_UPLOAD_DEBUG', + default => 'no', + description => 'Switch upload debugging on', help => qqq(" You can use filters to instruct ZoneMinder to upload events to a remote server. If you are having (or expecting) troubles with @@ -2210,14 +2210,14 @@ our @options = ( information to be generated by the underlying transfer modules and included in the logs. "), - requires => [ { name => "ZM_OPT_UPLOAD", value => "yes" } ], + requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{boolean}, - category => "upload", + category => 'upload', }, { - name => "ZM_OPT_EMAIL", - default => "no", - description => "Should ZoneMinder email you details of events that match corresponding filters", + name => 'ZM_OPT_EMAIL', + default => 'no', + description => 'Should ZoneMinder email you details of events that match corresponding filters', help => qqq(" In ZoneMinder you can create event filters that specify whether events that match certain criteria should have their details @@ -2229,22 +2229,22 @@ our @options = ( regular email reader rather than a mobile device. "), type => $types{boolean}, - category => "mail", + category => 'mail', }, { - name => "ZM_EMAIL_ADDRESS", - default => "", - description => "The email address to send matching event details to", - requires => [ { name => "ZM_OPT_EMAIL", value => "yes" } ], + name => 'ZM_EMAIL_ADDRESS', + default => '', + description => 'The email address to send matching event details to', + requires => [ { name => 'ZM_OPT_EMAIL', value => 'yes' } ], help => qqq(" This option is used to define the email address that any events that match the appropriate filters will be sent to. "), type => $types{email}, - category => "mail", + category => 'mail', }, { - name => "ZM_EMAIL_TEXT", + name => 'ZM_EMAIL_TEXT', default => 'subject = "ZoneMinder: Alarm - %MN%-%EI% (%ESM% - %ESA% %EFA%)" body = " Hello, @@ -2262,29 +2262,29 @@ our @options = ( This alarm was matched by the %FN% filter and can be viewed at %EPS% ZoneMinder"', - description => "The text of the email used to send matching event details", - requires => [ { name => "ZM_OPT_EMAIL", value => "yes" } ], + description => 'The text of the email used to send matching event details', + requires => [ { name => 'ZM_OPT_EMAIL', value => 'yes' } ], help => qqq(" This option is used to define the content of the email that is sent for any events that match the appropriate filters. "), type => $types{text}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_EMAIL_SUBJECT", + name => 'ZM_EMAIL_SUBJECT', default => "ZoneMinder: Alarm - %MN%-%EI% (%ESM% - %ESA% %EFA%)", - description => "The subject of the email used to send matching event details", - requires => [ { name => "ZM_OPT_EMAIL", value => "yes" } ], + description => 'The subject of the email used to send matching event details', + requires => [ { name => 'ZM_OPT_EMAIL', value => 'yes' } ], help => qqq(" This option is used to define the subject of the email that is sent for any events that match the appropriate filters. "), type => $types{string}, - category => "mail", + category => 'mail', }, { - name => "ZM_EMAIL_BODY", + name => 'ZM_EMAIL_BODY', default => " Hello, @@ -2301,19 +2301,19 @@ our @options = ( This alarm was matched by the %FN% filter and can be viewed at %EPS% ZoneMinder", - description => "The body of the email used to send matching event details", - requires => [ { name => "ZM_OPT_EMAIL", value => "yes" } ], + description => 'The body of the email used to send matching event details', + requires => [ { name => 'ZM_OPT_EMAIL', value => 'yes' } ], help => qqq(" This option is used to define the content of the email that is sent for any events that match the appropriate filters. "), type => $types{text}, - category => "mail", + category => 'mail', }, { - name => "ZM_OPT_MESSAGE", - default => "no", - description => "Should ZoneMinder message you with details of events that match corresponding filters", + name => 'ZM_OPT_MESSAGE', + default => 'no', + description => 'Should ZoneMinder message you with details of events that match corresponding filters', help => qqq(" In ZoneMinder you can create event filters that specify whether events that match certain criteria should have their details @@ -2326,65 +2326,65 @@ our @options = ( email reader. "), type => $types{boolean}, - category => "mail", + category => 'mail', }, { - name => "ZM_MESSAGE_ADDRESS", - default => "", - description => "The email address to send matching event details to", - requires => [ { name => "ZM_OPT_MESSAGE", value => "yes" } ], + name => 'ZM_MESSAGE_ADDRESS', + default => '', + description => 'The email address to send matching event details to', + requires => [ { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], help => qqq(" This option is used to define the short message email address that any events that match the appropriate filters will be sent to. "), type => $types{email}, - category => "mail", + category => 'mail', }, { - name => "ZM_MESSAGE_TEXT", + name => 'ZM_MESSAGE_TEXT', default => 'subject = "ZoneMinder: Alarm - %MN%-%EI%" body = "ZM alarm detected - %EL% secs, %EF%/%EFA% frames, t%EST%/m%ESM%/a%ESA% score."', - description => "The text of the message used to send matching event details", - requires => [ { name => "ZM_OPT_MESSAGE", value => "yes" } ], + description => 'The text of the message used to send matching event details', + requires => [ { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], help => qqq(" This option is used to define the content of the message that is sent for any events that match the appropriate filters. "), type => $types{text}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_MESSAGE_SUBJECT", + name => 'ZM_MESSAGE_SUBJECT', default => "ZoneMinder: Alarm - %MN%-%EI%", - description => "The subject of the message used to send matching event details", - requires => [ { name => "ZM_OPT_MESSAGE", value => "yes" } ], + description => 'The subject of the message used to send matching event details', + requires => [ { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], help => qqq(" This option is used to define the subject of the message that is sent for any events that match the appropriate filters. "), type => $types{string}, - category => "mail", + category => 'mail', }, { - name => "ZM_MESSAGE_BODY", + name => 'ZM_MESSAGE_BODY', default => "ZM alarm detected - %EL% secs, %EF%/%EFA% frames, t%EST%/m%ESM%/a%ESA% score.", - description => "The body of the message used to send matching event details", - requires => [ { name => "ZM_OPT_MESSAGE", value => "yes" } ], + description => 'The body of the message used to send matching event details', + requires => [ { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], help => qqq(" This option is used to define the content of the message that is sent for any events that match the appropriate filters. "), type => $types{text}, - category => "mail", + category => 'mail', }, { - name => "ZM_NEW_MAIL_MODULES", - default => "no", - description => "Use a newer perl method to send emails", + name => 'ZM_NEW_MAIL_MODULES', + default => 'no', + description => 'Use a newer perl method to send emails', requires => [ - { name => "ZM_OPT_EMAIL", value => "yes" }, - { name => "ZM_OPT_MESSAGE", value => "yes" } + { name => 'ZM_OPT_EMAIL', value => 'yes' }, + { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], help => qqq(" Traditionally ZoneMinder has used the MIME::Entity perl module @@ -2398,15 +2398,15 @@ our @options = ( not selected by default. "), type => $types{boolean}, - category => "mail", + category => 'mail', }, { - name => "ZM_EMAIL_HOST", - default => "localhost", - description => "The host address of your SMTP mail server", + name => 'ZM_EMAIL_HOST', + default => 'localhost', + description => 'The host address of your SMTP mail server', requires => [ - { name => "ZM_OPT_EMAIL", value => "yes" }, - { name => "ZM_OPT_MESSAGE", value => "yes" } + { name => 'ZM_OPT_EMAIL', value => 'yes' }, + { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], help => qqq(" If you have chosen SMTP as the method by which to send @@ -2417,15 +2417,15 @@ our @options = ( mail server here. "), type => $types{hostname}, - category => "mail", + category => 'mail', }, { - name => "ZM_FROM_EMAIL", - default => "", - description => "The email address you wish your event notifications to originate from", + name => 'ZM_FROM_EMAIL', + default => '', + description => 'The email address you wish your event notifications to originate from', requires => [ - { name => "ZM_OPT_EMAIL", value => "yes" }, - { name => "ZM_OPT_MESSAGE", value => "yes" } + { name => 'ZM_OPT_EMAIL', value => 'yes' }, + { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], help => qqq(" The emails or messages that will be sent to you informing you @@ -2434,15 +2434,15 @@ our @options = ( ZoneMinder\@your.domain is recommended. "), type => $types{email}, - category => "mail", + category => 'mail', }, { - name => "ZM_URL", - default => "", - description => "The URL of your ZoneMinder installation", + name => 'ZM_URL', + default => '', + description => 'The URL of your ZoneMinder installation', requires => [ - { name => "ZM_OPT_EMAIL", value => "yes" }, - { name => "ZM_OPT_MESSAGE", value => "yes" } + { name => 'ZM_OPT_EMAIL', value => 'yes' }, + { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], help => qqq(" The emails or messages that will be sent to you informing you @@ -2452,11 +2452,11 @@ our @options = ( you read your email, e.g. http://host.your.domain/zm.php. "), type => $types{url}, - category => "mail", + category => 'mail', }, { - name => "ZM_MAX_RESTART_DELAY", - default => "600", + name => 'ZM_MAX_RESTART_DELAY', + default => '600', description => "Maximum delay (in seconds) for daemon restart attempts.", help => qqq(" The zmdc (zm daemon control) process controls when processeses @@ -2468,12 +2468,12 @@ our @options = ( this maximum delay is. "), type => $types{integer}, - category => "system", + category => 'system', }, { - name => "ZM_WATCH_CHECK_INTERVAL", - default => "10", - description => "How often to check the capture daemons have not locked up", + name => 'ZM_WATCH_CHECK_INTERVAL', + default => '10', + description => 'How often to check the capture daemons have not locked up', help => qqq(" The zmwatch daemon checks the image capture performance of the capture daemons to ensure that they have not locked up (rarely @@ -2481,12 +2481,12 @@ our @options = ( determines how often the daemons are checked. "), type => $types{integer}, - category => "system", + category => 'system', }, { - name => "ZM_WATCH_MAX_DELAY", - default => "5", - description => "The maximum delay allowed since the last captured image", + name => 'ZM_WATCH_MAX_DELAY', + default => '5', + description => 'The maximum delay allowed since the last captured image', help => qqq(" The zmwatch daemon checks the image capture performance of the capture daemons to ensure that they have not locked up (rarely @@ -2498,13 +2498,13 @@ our @options = ( above. "), type => $types{decimal}, - category => "system", + category => 'system', }, { - name => "ZM_RUN_AUDIT", - default => "yes", - description => "Run zmaudit to check data consistency", + name => 'ZM_RUN_AUDIT', + default => 'yes', + description => 'Run zmaudit to check data consistency', help => qqq(" The zmaudit daemon exists to check that the saved information in the database and on the filesystem match and are consistent @@ -2522,12 +2522,12 @@ our @options = ( times. "), type => $types{boolean}, - category => "system", + category => 'system', }, { - name => "ZM_AUDIT_CHECK_INTERVAL", - default => "900", - description => "How often to check database and filesystem consistency", + name => 'ZM_AUDIT_CHECK_INTERVAL', + default => '900', + description => 'How often to check database and filesystem consistency', help => qqq(" The zmaudit daemon exists to check that the saved information in the database and on the filesystem match and are consistent @@ -2544,11 +2544,11 @@ our @options = ( performed. "), type => $types{integer}, - category => "system", + category => 'system', }, { - name => "ZM_AUDIT_MIN_AGE", - default => "86400", + name => 'ZM_AUDIT_MIN_AGE', + default => '86400', description => "The minimum age in seconds event data must be in order to be deleted.", help => qqq(" The zmaudit daemon exists to check that the saved information @@ -2557,12 +2557,12 @@ our @options = ( this setting will not be deleted and a warning will be given. "), type => $types{integer}, - category => "system", + category => 'system', }, { - name => "ZM_FORCED_ALARM_SCORE", - default => "255", - description => "Score to give forced alarms", + name => 'ZM_FORCED_ALARM_SCORE', + default => '255', + description => 'Score to give forced alarms', help => qqq(" The 'zmu' utility can be used to force an alarm on a monitor rather than rely on the motion detection algorithms. This @@ -2570,12 +2570,12 @@ our @options = ( distinguish them from regular ones. It must be 255 or less. "), type => $types{integer}, - category => "config", + category => 'config', }, { - name => "ZM_BULK_FRAME_INTERVAL", - default => "100", - description => "How often a bulk frame should be written to the database", + name => 'ZM_BULK_FRAME_INTERVAL', + default => '100', + description => 'How often a bulk frame should be written to the database', help => qqq(" Traditionally ZoneMinder writes an entry into the Frames database table for each frame that is captured and saved. This @@ -2592,11 +2592,11 @@ our @options = ( are still written if an alarm occurs in Mocord mode also. "), type => $types{integer}, - category => "config", + category => 'config', }, { - name => "ZM_EVENT_CLOSE_MODE", - default => "idle", + name => 'ZM_EVENT_CLOSE_MODE', + default => 'idle', description => "When continuous events are closed.", help => qqq(" When a monitor is running in a continuous recording mode @@ -2627,12 +2627,12 @@ our @options = ( : ($1 =~ /^i/ ? "idle" : "time" ) ) }, - category => "config", + category => 'config', }, # Deprecated, superseded by event close mode { - name => "ZM_FORCE_CLOSE_EVENTS", - default => "no", + name => 'ZM_FORCE_CLOSE_EVENTS', + default => 'no', description => "Close events at section ends.", help => qqq(" When a monitor is running in a continuous recording mode @@ -2645,12 +2645,12 @@ our @options = ( motion activity. "), type => $types{boolean}, - category => "hidden", + category => 'hidden', }, { - name => "ZM_CREATE_ANALYSIS_IMAGES", - default => "yes", - description => "Create analysed alarm images with motion outlined", + name => 'ZM_CREATE_ANALYSIS_IMAGES', + default => 'yes', + description => 'Create analysed alarm images with motion outlined', help => qqq(" By default during an alarm ZoneMinder records both the raw captured image and one that has been analysed and had areas @@ -2661,12 +2661,12 @@ our @options = ( generation of these images off. "), type => $types{boolean}, - category => "config", + category => 'config', }, { - name => "ZM_WEIGHTED_ALARM_CENTRES", - default => "no", - description => "Use a weighted algorithm to calculate the centre of an alarm", + name => 'ZM_WEIGHTED_ALARM_CENTRES', + default => 'no', + description => 'Use a weighted algorithm to calculate the centre of an alarm', help => qqq(" ZoneMinder will always calculate the centre point of an alarm in a zone to give some indication of where on the screen it is. @@ -2679,12 +2679,12 @@ our @options = ( more precise is also slower and so is turned off by default. "), type => $types{boolean}, - category => "config", + category => 'config', }, { - name => "ZM_EVENT_IMAGE_DIGITS", - default => "5", - description => "How many significant digits are used in event image numbering", + name => 'ZM_EVENT_IMAGE_DIGITS', + default => '5', + description => 'How many significant digits are used in event image numbering', help => qqq(" As event images are captured they are stored to the filesystem with a numerical index. By default this index has three digits @@ -2699,10 +2699,10 @@ our @options = ( effects. "), type => $types{integer}, - category => "config", + category => 'config', }, { - name => "ZM_DEFAULT_ASPECT_RATIO", + name => 'ZM_DEFAULT_ASPECT_RATIO', default => "4:3", description => "The default width:height aspect ratio used in monitors", help => qqq(" @@ -2716,23 +2716,23 @@ our @options = ( monitor dimensions this setting has no effect. "), type => $types{string}, - category => "config", + category => 'config', }, { - name => "ZM_USER_SELF_EDIT", - default => "no", - description => "Allow unprivileged users to change their details", + name => 'ZM_USER_SELF_EDIT', + default => 'no', + description => 'Allow unprivileged users to change their details', help => qqq(" Ordinarily only users with system edit privilege are able to change users details. Switching this option on allows ordinary users to change their passwords and their language settings "), type => $types{boolean}, - category => "config", + category => 'config', }, { - name => "ZM_OPT_CONTROL", - default => "no", + name => 'ZM_OPT_CONTROL', + default => 'no', description => "Support controllable (e.g. PTZ) cameras", help => qqq(" ZoneMinder includes limited support for controllable cameras. A @@ -2743,12 +2743,12 @@ our @options = ( off. "), type => $types{boolean}, - category => "system", + category => 'system', }, { - name => "ZM_OPT_TRIGGERS", - default => "no", - description => "Interface external event triggers via socket or device files", + name => 'ZM_OPT_TRIGGERS', + default => 'no', + description => 'Interface external event triggers via socket or device files', help => qqq(" ZoneMinder can interact with external systems which prompt or cancel alarms. This is done via the zmtrigger.pl script. This @@ -2756,11 +2756,11 @@ our @options = ( triggers. Most people will say no here. "), type => $types{boolean}, - category => "system", + category => 'system', }, { - name => "ZM_CHECK_FOR_UPDATES", - default => "yes", + name => 'ZM_CHECK_FOR_UPDATES', + default => 'yes', description => "Check with zoneminder.com for updated versions", help => qqq(" From ZoneMinder version 1.17.0 onwards new versions are @@ -2774,12 +2774,12 @@ our @options = ( check off with this configuration variable "), type => $types{boolean}, - category => "system", + category => 'system', }, { - name => "ZM_TELEMETRY_DATA", - default => "yes", - description => "Send usage information to ZoneMinder", + name => 'ZM_TELEMETRY_DATA', + default => 'yes', + description => 'Send usage information to ZoneMinder', help => qqq(" Enable collection of usage information of the local system and send it to the ZoneMinder development team. This data will be used to @@ -2791,32 +2791,32 @@ our @options = ( the web console under Options. "), type => $types{boolean}, - category => "system", + category => 'system', }, { - name => "ZM_TELEMETRY_UUID", - default => "", - description => "Unique identifier for ZoneMinder telemetry", + name => 'ZM_TELEMETRY_UUID', + default => '', + description => 'Unique identifier for ZoneMinder telemetry', help => qqq(" This variable is auto-generated once by the system and is used to uniquely identify it among all other ZoneMinder systems in existence. "), type => $types{string}, - category => "dynamic", + category => 'dynamic', }, { - name => "ZM_TELEMETRY_LAST_UPLOAD", - default => "", - description => "When the last ZoneMinder telemetry upload ocurred", - help => "", + name => 'ZM_TELEMETRY_LAST_UPLOAD', + default => '', + description => 'When the last ZoneMinder telemetry upload ocurred', + help => '', type => $types{integer}, readonly => 1, - category => "dynamic", + category => 'dynamic', }, { - name => "ZM_UPDATE_CHECK_PROXY", - default => "", + name => 'ZM_UPDATE_CHECK_PROXY', + default => '', description => "Proxy url if required to access zoneminder.com", help => qqq(" If you use a proxy to access the internet then ZoneMinder needs @@ -2825,12 +2825,12 @@ our @options = ( of http://:/ "), type => $types{string}, - category => "system", + category => 'system', }, { - name => "ZM_SHM_KEY", - default => "0x7a6d0000", - description => "Shared memory root key to use", + name => 'ZM_SHM_KEY', + default => '0x7a6d0000', + description => 'Shared memory root key to use', help => qqq(" ZoneMinder uses shared memory to speed up communication between modules. To identify the right area to use shared memory keys @@ -2842,13 +2842,13 @@ our @options = ( four will be masked out and ignored. "), type => $types{hexadecimal}, - category => "system", + category => 'system', }, # Deprecated, really no longer necessary { - name => "ZM_WEB_REFRESH_METHOD", - default => "javascript", - description => "What method windows should use to refresh themselves", + name => 'ZM_WEB_REFRESH_METHOD', + default => 'javascript', + description => 'What method windows should use to refresh themselves', help => qqq(" Many windows in Javascript need to refresh themselves to keep their information current. This option determines what method @@ -2870,12 +2870,12 @@ our @options = ( : "http" ) }, - category => "hidden", + category => 'hidden', }, { - name => "ZM_WEB_EVENT_SORT_FIELD", - default => "DateTime", - description => "Default field the event lists are sorted by", + name => 'ZM_WEB_EVENT_SORT_FIELD', + default => 'DateTime', + description => 'Default field the event lists are sorted by', help => qqq(" Events in lists can be initially ordered in any way you want. This option controls what field is used to sort them. You can @@ -2890,12 +2890,12 @@ our @options = ( pattern =>qr|.|, format =>q( $1 ) }, - category => "web", + category => 'web', }, { - name => "ZM_WEB_EVENT_SORT_ORDER", - default => "asc", - description => "Default order the event lists are sorted by", + name => 'ZM_WEB_EVENT_SORT_ORDER', + default => 'asc', + description => 'Default order the event lists are sorted by', help => qqq(" Events in lists can be initially ordered in any way you want. This option controls what order (ascending or descending) is @@ -2911,12 +2911,12 @@ our @options = ( pattern =>qr|^([ad])|i, format =>q( $1 =~ /^a/i ? "asc" : "desc" ) }, - category => "web", + category => 'web', }, { - name => "ZM_WEB_EVENTS_PER_PAGE", - default => "25", - description => "How many events to list per page in paged mode", + name => 'ZM_WEB_EVENTS_PER_PAGE', + default => '25', + description => 'How many events to list per page in paged mode', help => qqq(" In the event list view you can either list all events or just a page at a time. This option controls how many events are listed @@ -2924,11 +2924,11 @@ our @options = ( headers in non-paged mode. "), type => $types{integer}, - category => "web", + category => 'web', }, { - name => "ZM_WEB_LIST_THUMBS", - default => "no", + name => 'ZM_WEB_LIST_THUMBS', + default => 'no', description => "Display mini-thumbnails of event images in event lists", help => qqq(" Ordinarily the event lists just display text details of the @@ -2938,12 +2938,12 @@ our @options = ( following two options. "), type => $types{boolean}, - category => "web", + category => 'web', }, { - name => "ZM_WEB_LIST_THUMB_WIDTH", - default => "48", - description => "The width of the thumbnails that appear in the event lists", + name => 'ZM_WEB_LIST_THUMB_WIDTH', + default => '48', + description => 'The width of the thumbnails that appear in the event lists', help => qqq(" This options controls the width of the thumbnail images that appear in the event lists. It should be fairly small to fit in @@ -2954,13 +2954,13 @@ our @options = ( used and height ignored. "), type => $types{integer}, - requires => [ { name => "ZM_WEB_LIST_THUMBS", value => "yes" } ], - category => "web", + requires => [ { name => 'ZM_WEB_LIST_THUMBS', value => 'yes' } ], + category => 'web', }, { - name => "ZM_WEB_LIST_THUMB_HEIGHT", - default => "0", - description => "The height of the thumbnails that appear in the event lists", + name => 'ZM_WEB_LIST_THUMB_HEIGHT', + default => '0', + description => 'The height of the thumbnails that appear in the event lists', help => qqq(" This options controls the height of the thumbnail images that appear in the event lists. It should be fairly small to fit in @@ -2971,13 +2971,13 @@ our @options = ( be used and height ignored. "), type => $types{integer}, - requires => [ { name => "ZM_WEB_LIST_THUMBS", value => "yes" } ], - category => "web", + requires => [ { name => 'ZM_WEB_LIST_THUMBS', value => 'yes' } ], + category => 'web', }, { - name => "ZM_WEB_USE_OBJECT_TAGS", - default => "yes", - description => "Wrap embed in object tags for media content", + name => 'ZM_WEB_USE_OBJECT_TAGS', + default => 'yes', + description => 'Wrap embed in object tags for media content', help => qqq(" There are two methods of including media content in web pages. The most common way is use the EMBED tag which is able to give @@ -2995,11 +2995,11 @@ our @options = ( you encounter problems playing some content. "), type => $types{boolean}, - category => "web", + category => 'web', }, { - name => "ZM_WEB_H_REFRESH_MAIN", - default => "60", + name => 'ZM_WEB_H_REFRESH_MAIN', + default => '60', introduction => qqq(" There are now a number of options that are grouped into bandwidth categories, this allows you to configure the @@ -3019,11 +3019,11 @@ our @options = ( of the rest of the system. "), type => $types{integer}, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_REFRESH_CYCLE", - default => "10", + name => 'ZM_WEB_H_REFRESH_CYCLE', + default => '10', description => "How often (in seconds) the cycle watch window swaps to the next monitor", help => qqq(" The cycle watch window is a method of continuously cycling @@ -3031,11 +3031,11 @@ our @options = ( determines how often to refresh with a new image. "), type => $types{integer}, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_REFRESH_IMAGE", - default => "3", + name => 'ZM_WEB_H_REFRESH_IMAGE', + default => '3', description => "How often (in seconds) the watched image is refreshed (if not streaming)", help => qqq(" The live images from a monitor can be viewed in either streamed @@ -3043,11 +3043,11 @@ our @options = ( is refreshed, it has no effect if streaming is selected. "), type => $types{integer}, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_REFRESH_STATUS", - default => "1", + name => 'ZM_WEB_H_REFRESH_STATUS', + default => '1', description => "How often (in seconds) the status refreshes itself in the watch window", help => qqq(" The monitor window is actually made from several frames. The @@ -3056,11 +3056,11 @@ our @options = ( option determines that frequency. "), type => $types{integer}, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_REFRESH_EVENTS", - default => "5", + name => 'ZM_WEB_H_REFRESH_EVENTS', + default => '5', description => "How often (in seconds) the event listing is refreshed in the watch window", help => qqq(" The monitor window is actually made from several frames. The @@ -3068,12 +3068,12 @@ our @options = ( access. This option determines how often this is refreshed. "), type => $types{integer}, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_CAN_STREAM", - default => "auto", - description => "Override the automatic detection of browser streaming capability", + name => 'ZM_WEB_H_CAN_STREAM', + default => 'auto', + description => 'Override the automatic detection of browser streaming capability', help => qqq(" If you know that your browser can handle image streams of the type 'multipart/x-mixed-replace' but ZoneMinder does not detect @@ -3084,11 +3084,11 @@ our @options = ( so the plugin will be used while 'auto' lets ZoneMinder decide. "), type => $types{tristate}, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_STREAM_METHOD", - default => "jpeg", + name => 'ZM_WEB_H_STREAM_METHOD', + default => 'jpeg', description => "Which method should be used to send video streams to your browser.", help => qqq(" ZoneMinder can be configured to use either mpeg encoded video @@ -3105,11 +3105,11 @@ our @options = ( pattern =>qr|^([mj])|i, format =>q( $1 =~ /^m/ ? "mpeg" : "jpeg" ) }, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_DEFAULT_SCALE", - default => "100", + name => 'ZM_WEB_H_DEFAULT_SCALE', + default => '100', description => "What the default scaling factor applied to 'live' or 'event' views is (%)", help => qqq(" Normally ZoneMinder will display 'live' or 'event' streams in @@ -3126,11 +3126,11 @@ our @options = ( pattern =>qr|^(\d+)$|, format =>q( $1 ) }, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_DEFAULT_RATE", - default => "100", + name => 'ZM_WEB_H_DEFAULT_RATE', + default => '100', description => "What the default replay rate factor applied to 'event' views is (%)", help => qqq(" Normally ZoneMinder will display 'event' streams at their @@ -3146,12 +3146,12 @@ our @options = ( pattern =>qr|^(\d+)$|, format =>q( $1 ) }, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_VIDEO_BITRATE", - default => "150000", - description => "What the bitrate of the video encoded stream should be set to", + name => 'ZM_WEB_H_VIDEO_BITRATE', + default => '150000', + description => 'What the bitrate of the video encoded stream should be set to', help => qqq(" When encoding real video via the ffmpeg library a bit rate can be specified which roughly corresponds to the available @@ -3166,12 +3166,12 @@ our @options = ( lower quality. "), type => $types{integer}, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_VIDEO_MAXFPS", - default => "30", - description => "What the maximum frame rate for streamed video should be", + name => 'ZM_WEB_H_VIDEO_MAXFPS', + default => '30', + description => 'What the maximum frame rate for streamed video should be', help => qqq(" When using streamed video the main control is the bitrate which determines how much data can be transmitted. However a lower @@ -3189,11 +3189,11 @@ our @options = ( be the original divided by a power of 2. "), type => $types{integer}, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_SCALE_THUMBS", - default => "no", + name => 'ZM_WEB_H_SCALE_THUMBS', + default => 'no', description => "Scale thumbnails in events, bandwidth versus cpu in rescaling", help => qqq(" If unset, this option sends the whole image to the browser @@ -3205,11 +3205,11 @@ our @options = ( available in the php-gd package. "), type => $types{boolean}, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_EVENTS_VIEW", - default => "events", + name => 'ZM_WEB_H_EVENTS_VIEW', + default => 'events', description => "What the default view of multiple events should be.", help => qqq(" Stored events can be viewed in either an events list format or @@ -3224,11 +3224,11 @@ our @options = ( pattern =>qr|^([lt])|i, format =>q( $1 =~ /^e/ ? "events" : "timeline" ) }, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_SHOW_PROGRESS", - default => "yes", + name => 'ZM_WEB_H_SHOW_PROGRESS', + default => 'yes', description => "Show the progress of replay in event view.", help => qqq(" When viewing events an event navigation panel and progress bar @@ -3243,11 +3243,11 @@ our @options = ( bandwidth prevents it functioning effectively. "), type => $types{boolean}, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_H_AJAX_TIMEOUT", - default => "3000", + name => 'ZM_WEB_H_AJAX_TIMEOUT', + default => '3000', description => "How long to wait for Ajax request responses (ms)", help => qqq(" The newer versions of the live feed and event views use Ajax to @@ -3262,11 +3262,11 @@ our @options = ( milliseconds but if set to zero then no timeout will be used. "), type => $types{integer}, - category => "highband", + category => 'highband', }, { - name => "ZM_WEB_M_REFRESH_MAIN", - default => "300", + name => 'ZM_WEB_M_REFRESH_MAIN', + default => '300', description => "How often (in seconds) the main console window should refresh itself", help => qqq(" The main console window lists a general status and the event @@ -3282,11 +3282,11 @@ our @options = ( cable or DSL link. In most cases the default values will be suitable as a starting point. "), - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_REFRESH_CYCLE", - default => "20", + name => 'ZM_WEB_M_REFRESH_CYCLE', + default => '20', description => "How often (in seconds) the cycle watch window swaps to the next monitor", help => qqq(" The cycle watch window is a method of continuously cycling @@ -3294,11 +3294,11 @@ our @options = ( determines how often to refresh with a new image. "), type => $types{integer}, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_REFRESH_IMAGE", - default => "10", + name => 'ZM_WEB_M_REFRESH_IMAGE', + default => '10', description => "How often (in seconds) the watched image is refreshed (if not streaming)", help => qqq(" The live images from a monitor can be viewed in either streamed @@ -3306,11 +3306,11 @@ our @options = ( is refreshed, it has no effect if streaming is selected. "), type => $types{integer}, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_REFRESH_STATUS", - default => "5", + name => 'ZM_WEB_M_REFRESH_STATUS', + default => '5', description => "How often (in seconds) the status refreshes itself in the watch window", help => qqq(" The monitor window is actually made from several frames. The @@ -3319,11 +3319,11 @@ our @options = ( option determines that frequency. "), type => $types{integer}, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_REFRESH_EVENTS", - default => "60", + name => 'ZM_WEB_M_REFRESH_EVENTS', + default => '60', description => "How often (in seconds) the event listing is refreshed in the watch window", help => qqq(" The monitor window is actually made from several frames. The @@ -3331,12 +3331,12 @@ our @options = ( access. This option determines how often this is refreshed. "), type => $types{integer}, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_CAN_STREAM", - default => "auto", - description => "Override the automatic detection of browser streaming capability", + name => 'ZM_WEB_M_CAN_STREAM', + default => 'auto', + description => 'Override the automatic detection of browser streaming capability', help => qqq(" If you know that your browser can handle image streams of the type 'multipart/x-mixed-replace' but ZoneMinder does not detect @@ -3347,11 +3347,11 @@ our @options = ( so the plugin will be used while 'auto' lets ZoneMinder decide. "), type => $types{tristate}, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_STREAM_METHOD", - default => "jpeg", + name => 'ZM_WEB_M_STREAM_METHOD', + default => 'jpeg', description => "Which method should be used to send video streams to your browser.", help => qqq(" ZoneMinder can be configured to use either mpeg encoded video @@ -3368,11 +3368,11 @@ our @options = ( pattern =>qr|^([mj])|i, format =>q( $1 =~ /^m/ ? "mpeg" : "jpeg" ) }, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_DEFAULT_SCALE", - default => "100", + name => 'ZM_WEB_M_DEFAULT_SCALE', + default => '100', description => "What the default scaling factor applied to 'live' or 'event' views is (%)", help => qqq(" Normally ZoneMinder will display 'live' or 'event' streams in @@ -3389,11 +3389,11 @@ our @options = ( pattern =>qr|^(\d+)$|, format =>q( $1 ) }, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_DEFAULT_RATE", - default => "100", + name => 'ZM_WEB_M_DEFAULT_RATE', + default => '100', description => "What the default replay rate factor applied to 'event' views is (%)", help => qqq(" Normally ZoneMinder will display 'event' streams at their @@ -3409,12 +3409,12 @@ our @options = ( pattern =>qr|^(\d+)$|, format =>q( $1 ) }, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_VIDEO_BITRATE", - default => "75000", - description => "What the bitrate of the video encoded stream should be set to", + name => 'ZM_WEB_M_VIDEO_BITRATE', + default => '75000', + description => 'What the bitrate of the video encoded stream should be set to', help => qqq(" When encoding real video via the ffmpeg library a bit rate can be specified which roughly corresponds to the available @@ -3429,12 +3429,12 @@ our @options = ( lower quality. "), type => $types{integer}, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_VIDEO_MAXFPS", - default => "10", - description => "What the maximum frame rate for streamed video should be", + name => 'ZM_WEB_M_VIDEO_MAXFPS', + default => '10', + description => 'What the maximum frame rate for streamed video should be', help => qqq(" When using streamed video the main control is the bitrate which determines how much data can be transmitted. However a lower @@ -3452,11 +3452,11 @@ our @options = ( be the original divided by a power of 2. "), type => $types{integer}, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_SCALE_THUMBS", - default => "yes", + name => 'ZM_WEB_M_SCALE_THUMBS', + default => 'yes', description => "Scale thumbnails in events, bandwidth versus cpu in rescaling", help => qqq(" If unset, this option sends the whole image to the browser @@ -3468,11 +3468,11 @@ our @options = ( available in the php-gd package. "), type => $types{boolean}, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_EVENTS_VIEW", - default => "events", + name => 'ZM_WEB_M_EVENTS_VIEW', + default => 'events', description => "What the default view of multiple events should be.", help => qqq(" Stored events can be viewed in either an events list format or @@ -3487,11 +3487,11 @@ our @options = ( pattern =>qr|^([lt])|i, format =>q( $1 =~ /^e/ ? "events" : "timeline" ) }, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_SHOW_PROGRESS", - default => "yes", + name => 'ZM_WEB_M_SHOW_PROGRESS', + default => 'yes', description => "Show the progress of replay in event view.", help => qqq(" When viewing events an event navigation panel and progress bar @@ -3506,11 +3506,11 @@ our @options = ( bandwidth prevents it functioning effectively. "), type => $types{boolean}, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_M_AJAX_TIMEOUT", - default => "5000", + name => 'ZM_WEB_M_AJAX_TIMEOUT', + default => '5000', description => "How long to wait for Ajax request responses (ms)", help => qqq(" The newer versions of the live feed and event views use Ajax to @@ -3525,11 +3525,11 @@ our @options = ( milliseconds but if set to zero then no timeout will be used. "), type => $types{integer}, - category => "medband", + category => 'medband', }, { - name => "ZM_WEB_L_REFRESH_MAIN", - default => "300", + name => 'ZM_WEB_L_REFRESH_MAIN', + default => '300', description => "How often (in seconds) the main console window should refresh itself", introduction => qqq(" The next few options control what happens when the client is @@ -3545,11 +3545,11 @@ our @options = ( of the rest of the system. "), type => $types{integer}, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_REFRESH_CYCLE", - default => "30", + name => 'ZM_WEB_L_REFRESH_CYCLE', + default => '30', description => "How often (in seconds) the cycle watch window swaps to the next monitor", help => qqq(" The cycle watch window is a method of continuously cycling @@ -3557,11 +3557,11 @@ our @options = ( determines how often to refresh with a new image. "), type => $types{integer}, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_REFRESH_IMAGE", - default => "15", + name => 'ZM_WEB_L_REFRESH_IMAGE', + default => '15', description => "How often (in seconds) the watched image is refreshed (if not streaming)", help => qqq(" The live images from a monitor can be viewed in either streamed @@ -3569,11 +3569,11 @@ our @options = ( is refreshed, it has no effect if streaming is selected. "), type => $types{integer}, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_REFRESH_STATUS", - default => "10", + name => 'ZM_WEB_L_REFRESH_STATUS', + default => '10', description => "How often (in seconds) the status refreshes itself in the watch window", help => qqq(" The monitor window is actually made from several frames. The @@ -3582,11 +3582,11 @@ our @options = ( option determines that frequency. "), type => $types{integer}, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_REFRESH_EVENTS", - default => "180", + name => 'ZM_WEB_L_REFRESH_EVENTS', + default => '180', description => "How often (in seconds) the event listing is refreshed in the watch window", help => qqq(" The monitor window is actually made from several frames. The @@ -3594,12 +3594,12 @@ our @options = ( access. This option determines how often this is refreshed. "), type => $types{integer}, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_CAN_STREAM", - default => "auto", - description => "Override the automatic detection of browser streaming capability", + name => 'ZM_WEB_L_CAN_STREAM', + default => 'auto', + description => 'Override the automatic detection of browser streaming capability', help => qqq(" If you know that your browser can handle image streams of the type 'multipart/x-mixed-replace' but ZoneMinder does not detect @@ -3610,11 +3610,11 @@ our @options = ( so the plugin will be used while 'auto' lets ZoneMinder decide. "), type => $types{tristate}, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_STREAM_METHOD", - default => "jpeg", + name => 'ZM_WEB_L_STREAM_METHOD', + default => 'jpeg', description => "Which method should be used to send video streams to your browser.", help => qqq(" ZoneMinder can be configured to use either mpeg encoded video @@ -3631,11 +3631,11 @@ our @options = ( pattern =>qr|^([mj])|i, format =>q( $1 =~ /^m/ ? "mpeg" : "jpeg" ) }, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_DEFAULT_SCALE", - default => "100", + name => 'ZM_WEB_L_DEFAULT_SCALE', + default => '100', description => "What the default scaling factor applied to 'live' or 'event' views is (%)", help => qqq(" Normally ZoneMinder will display 'live' or 'event' streams in @@ -3652,11 +3652,11 @@ our @options = ( pattern =>qr|^(\d+)$|, format =>q( $1 ) }, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_DEFAULT_RATE", - default => "100", + name => 'ZM_WEB_L_DEFAULT_RATE', + default => '100', description => "What the default replay rate factor applied to 'event' views is (%)", help => qqq(" Normally ZoneMinder will display 'event' streams at their @@ -3671,12 +3671,12 @@ our @options = ( hint =>"25|50|100|150|200|400|1000|2500|5000|10000", pattern =>qr|^(\d+)$|, format=>q( $1 ) }, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_VIDEO_BITRATE", - default => "25000", - description => "What the bitrate of the video encoded stream should be set to", + name => 'ZM_WEB_L_VIDEO_BITRATE', + default => '25000', + description => 'What the bitrate of the video encoded stream should be set to', help => qqq(" When encoding real video via the ffmpeg library a bit rate can be specified which roughly corresponds to the available @@ -3691,12 +3691,12 @@ our @options = ( lower quality. "), type => $types{integer}, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_VIDEO_MAXFPS", - default => "5", - description => "What the maximum frame rate for streamed video should be", + name => 'ZM_WEB_L_VIDEO_MAXFPS', + default => '5', + description => 'What the maximum frame rate for streamed video should be', help => qqq(" When using streamed video the main control is the bitrate which determines how much data can be transmitted. However a lower @@ -3714,11 +3714,11 @@ our @options = ( be the original divided by a power of 2. "), type => $types{integer}, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_SCALE_THUMBS", - default => "yes", + name => 'ZM_WEB_L_SCALE_THUMBS', + default => 'yes', description => "Scale thumbnails in events, bandwidth versus cpu in rescaling", help => qqq(" If unset, this option sends the whole image to the browser @@ -3730,11 +3730,11 @@ our @options = ( available in the php-gd package. "), type => $types{boolean}, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_EVENTS_VIEW", - default => "events", + name => 'ZM_WEB_L_EVENTS_VIEW', + default => 'events', description => "What the default view of multiple events should be.", help => qqq(" Stored events can be viewed in either an events list format or @@ -3749,11 +3749,11 @@ our @options = ( pattern =>qr|^([lt])|i, format =>q( $1 =~ /^e/ ? "events" : "timeline" ) }, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_SHOW_PROGRESS", - default => "no", + name => 'ZM_WEB_L_SHOW_PROGRESS', + default => 'no', description => "Show the progress of replay in event view.", help => qqq(" When viewing events an event navigation panel and progress bar @@ -3768,11 +3768,11 @@ our @options = ( bandwidth prevents it functioning effectively. "), type => $types{boolean}, - category => "lowband", + category => 'lowband', }, { - name => "ZM_WEB_L_AJAX_TIMEOUT", - default => "10000", + name => 'ZM_WEB_L_AJAX_TIMEOUT', + default => '10000', description => "How long to wait for Ajax request responses (ms)", help => qqq(" The newer versions of the live feed and event views use Ajax to @@ -3787,85 +3787,85 @@ our @options = ( milliseconds but if set to zero then no timeout will be used. "), type => $types{integer}, - category => "lowband", + category => 'lowband', }, { - name => "ZM_DYN_LAST_VERSION", - default => "", + name => 'ZM_DYN_LAST_VERSION', + default => '', description => "What the last version of ZoneMinder recorded from zoneminder.com is", - help => "", + help => '', type => $types{string}, readonly => 1, - category => "dynamic", + category => 'dynamic', }, { - name => "ZM_DYN_CURR_VERSION", + name => 'ZM_DYN_CURR_VERSION', default => "@VERSION@", description => qqq(" What the effective current version of ZoneMinder is, might be different from actual if versions ignored "), - help => "", + help => '', type => $types{string}, readonly => 1, - category => "dynamic", + category => 'dynamic', }, { - name => "ZM_DYN_DB_VERSION", + name => 'ZM_DYN_DB_VERSION', default => "@VERSION@", description => "What the version of the database is, from zmupdate", - help => "", + help => '', type => $types{string}, readonly => 1, - category => "dynamic", + category => 'dynamic', }, { - name => "ZM_DYN_LAST_CHECK", - default => "", + name => 'ZM_DYN_LAST_CHECK', + default => '', description => "When the last check for version from zoneminder.com was", - help => "", + help => '', type => $types{integer}, readonly => 1, - category => "dynamic", + category => 'dynamic', }, { - name => "ZM_DYN_NEXT_REMINDER", - default => "", - description => "When the earliest time to remind about versions will be", - help => "", + name => 'ZM_DYN_NEXT_REMINDER', + default => '', + description => 'When the earliest time to remind about versions will be', + help => '', type => $types{string}, readonly => 1, - category => "dynamic", + category => 'dynamic', }, { - name => "ZM_DYN_DONATE_REMINDER_TIME", + name => 'ZM_DYN_DONATE_REMINDER_TIME', default => 0, - description => "When the earliest time to remind about donations will be", - help => "", + description => 'When the earliest time to remind about donations will be', + help => '', type => $types{integer}, readonly => 1, - category => "dynamic", + category => 'dynamic', }, { - name => "ZM_DYN_SHOW_DONATE_REMINDER", - default => "yes", - description => "Remind about donations or not", - help => "", + name => 'ZM_DYN_SHOW_DONATE_REMINDER', + default => 'yes', + description => 'Remind about donations or not', + help => '', type => $types{boolean}, readonly => 1, - category => "dynamic", + category => 'dynamic', }, { - name => "ZM_SSMTP_MAIL", - default => "no", + name => 'ZM_SSMTP_MAIL', + default => 'no', description => qqq(" Use a SSMTP mail server if available. NEW_MAIL_MODULES must be enabled "), requires => [ - { name => "ZM_OPT_EMAIL", value => "yes" }, - { name => "ZM_OPT_MESSAGE", value => "yes" }, - { name => "ZM_NEW_MAIL_MODULES", value => "yes" } + { name => 'ZM_OPT_EMAIL', value => 'yes' }, + { name => 'ZM_OPT_MESSAGE', value => 'yes' }, + { name => 'ZM_NEW_MAIL_MODULES', value => 'yes' } ], help => qqq(" SSMTP is a lightweight and efficient method to send email. @@ -3875,20 +3875,20 @@ our @options = ( for setup and configuration help. "), type => $types{boolean}, - category => "mail", + category => 'mail', }, { - name => "ZM_SSMTP_PATH", - default => "", - description => "SSMTP executable path", - requires => [{ name => "ZM_SSMTP_MAIL", value => "yes" }], + name => 'ZM_SSMTP_PATH', + default => '', + description => 'SSMTP executable path', + requires => [{ name => 'ZM_SSMTP_MAIL', value => 'yes' }], help => qqq(" Recommend setting the path to the SSMTP application. If path is not defined. Zoneminder will try to determine the path via shell command. Example path: /usr/sbin/ssmtp. "), type => $types{string}, - category => "mail", + category => 'mail', }, ); From 0c25cecb93d687739d7083cf3be81d41592d746a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 26 May 2017 13:36:20 -0400 Subject: [PATCH 06/12] Fix some spacing --- .../lib/ZoneMinder/ConfigData.pm.in | 182 +++++++++--------- 1 file changed, 91 insertions(+), 91 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in index 480c22085..041ea0b03 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in +++ b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in @@ -72,97 +72,97 @@ sub INIT { # Types our %types = ( string => { - db_type => 'string', - hint => 'string', - pattern => qr|^(.+)$|, - format => q( $1 ) - }, - alphanum => { - db_type => 'string', - hint => 'alphanumeric', - pattern => qr|^([a-zA-Z0-9-_]+)$|, - format => q( $1 ) - }, - text => { - db_type => 'text', - hint => 'free text', - pattern => qr|^(.+)$|, - format => q( $1 ) - }, - boolean => { - db_type => 'boolean', - hint => 'yes|no', - pattern => qr|^([yn])|i, - check => q( $1 ), - format => q( ($1 =~ /^y/) ? "yes" : "no" ) - }, - integer => { - db_type => 'integer', - hint => 'integer', - pattern => qr|^(\d+)$|, - format => q( $1 ) - }, - decimal => { - db_type => 'decimal', - hint => 'decimal', - pattern => qr|^(\d+(?:\.\d+)?)$|, - format => q( $1 ) - }, - hexadecimal => { - db_type => 'hexadecimal', - hint => 'hexadecimal', - pattern => qr|^(?:0x)?([0-9a-f]{1,8})$|, - format => q( "0x".$1 ) - }, - tristate => { - db_type => 'string', - hint => 'auto|yes|no', - pattern => qr|^([ayn])|i, check=>q( $1 ), - format => q( ($1 =~ /^y/) ? "yes" : ($1 =~ /^n/ ? "no" : "auto" ) ) - }, - abs_path => { - db_type => 'string', - hint => '/absolute/path/to/somewhere', - pattern => qr|^((?:/[^/]*)+?)/?$|, - format => q( $1 ) - }, - rel_path => { - db_type => 'string', - hint => 'relative/path/to/somewhere', - pattern => qr|^((?:[^/].*)?)/?$|, - format => q( $1 ) - }, - directory => { - db_type => 'string', - hint => 'directory', - pattern => qr|^([a-zA-Z0-9-_.]+)$|, - format => q( $1 ) - }, - file => { - db_type => 'string', - hint => 'filename', - pattern => qr|^([a-zA-Z0-9-_.]+)$|, - format => q( $1 ) - }, - hostname => { - db_type => 'string', - hint => 'host.your.domain', - pattern => qr|^([a-zA-Z0-9_.-]+)$|, - format => q( $1 ) - }, - url => { - db_type => 'string', - hint => 'http://host.your.domain/', - pattern => qr|^(?:http://)?(.+)$|, - format => q( "http://".$1 ) - }, - email => { - db_type => 'string', - hint => 'your.name@your.domain', - pattern => qr|^([a-zA-Z0-9_.-]+)\@([a-zA-Z0-9_.-]+)$|, - format => q( $1\@$2 ) - }, - ); + db_type => 'string', + hint => 'string', + pattern => qr|^(.+)$|, + format => q( $1 ) + }, + alphanum => { + db_type => 'string', + hint => 'alphanumeric', + pattern => qr|^([a-zA-Z0-9-_]+)$|, + format => q( $1 ) + }, + text => { + db_type => 'text', + hint => 'free text', + pattern => qr|^(.+)$|, + format => q( $1 ) + }, + boolean => { + db_type => 'boolean', + hint => 'yes|no', + pattern => qr|^([yn])|i, + check => q( $1 ), + format => q( ($1 =~ /^y/) ? "yes" : "no" ) + }, + integer => { + db_type => 'integer', + hint => 'integer', + pattern => qr|^(\d+)$|, + format => q( $1 ) + }, + decimal => { + db_type => 'decimal', + hint => 'decimal', + pattern => qr|^(\d+(?:\.\d+)?)$|, + format => q( $1 ) + }, + hexadecimal => { + db_type => 'hexadecimal', + hint => 'hexadecimal', + pattern => qr|^(?:0x)?([0-9a-f]{1,8})$|, + format => q( "0x".$1 ) + }, + tristate => { + db_type => 'string', + hint => 'auto|yes|no', + pattern => qr|^([ayn])|i, check=>q( $1 ), + format => q( ($1 =~ /^y/) ? "yes" : ($1 =~ /^n/ ? "no" : "auto" ) ) + }, + abs_path => { + db_type => 'string', + hint => '/absolute/path/to/somewhere', + pattern => qr|^((?:/[^/]*)+?)/?$|, + format => q( $1 ) + }, + rel_path => { + db_type => 'string', + hint => 'relative/path/to/somewhere', + pattern => qr|^((?:[^/].*)?)/?$|, + format => q( $1 ) + }, + directory => { + db_type => 'string', + hint => 'directory', + pattern => qr|^([a-zA-Z0-9-_.]+)$|, + format => q( $1 ) + }, + file => { + db_type => 'string', + hint => 'filename', + pattern => qr|^([a-zA-Z0-9-_.]+)$|, + format => q( $1 ) + }, + hostname => { + db_type => 'string', + hint => 'host.your.domain', + pattern => qr|^([a-zA-Z0-9_.-]+)$|, + format => q( $1 ) + }, + url => { + db_type => 'string', + hint => 'http://host.your.domain/', + pattern => qr|^(?:http://)?(.+)$|, + format => q( "http://".$1 ) + }, + email => { + db_type => 'string', + hint => 'your.name@your.domain', + pattern => qr|^([a-zA-Z0-9_.-]+)\@([a-zA-Z0-9_.-]+)$|, + format => q( $1\@$2 ) + }, +); sub qqq { ## Un-pad paragraph of text. local $_ = shift; From 86361b59c757ac76b43677a8a88220f6bfd5a572 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 26 May 2017 14:17:28 -0400 Subject: [PATCH 07/12] convert double quotes to single quotes --- .../lib/ZoneMinder/ConfigData.pm.in | 1230 ++++++++--------- 1 file changed, 615 insertions(+), 615 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in index 041ea0b03..7083a4804 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in +++ b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in @@ -94,7 +94,7 @@ our %types = ( hint => 'yes|no', pattern => qr|^([yn])|i, check => q( $1 ), - format => q( ($1 =~ /^y/) ? "yes" : "no" ) + format => q( ($1 =~ /^y/) ? 'yes' : 'no' ) }, integer => { db_type => 'integer', @@ -112,13 +112,13 @@ our %types = ( db_type => 'hexadecimal', hint => 'hexadecimal', pattern => qr|^(?:0x)?([0-9a-f]{1,8})$|, - format => q( "0x".$1 ) + format => q( '0x'.$1 ) }, tristate => { db_type => 'string', hint => 'auto|yes|no', pattern => qr|^([ayn])|i, check=>q( $1 ), - format => q( ($1 =~ /^y/) ? "yes" : ($1 =~ /^n/ ? "no" : "auto" ) ) + format => q( ($1 =~ /^y/) ? 'yes' : ($1 =~ /^n/ ? 'no' : 'auto' ) ) }, abs_path => { db_type => 'string', @@ -154,7 +154,7 @@ our %types = ( db_type => 'string', hint => 'http://host.your.domain/', pattern => qr|^(?:http://)?(.+)$|, - format => q( "http://".$1 ) + format => q( 'http://'.$1 ) }, email => { db_type => 'string', @@ -176,12 +176,12 @@ our @options = ( default => 'classic', description => 'Default skin used by web interface', - help => qqq(" + help => qqq( q` ZoneMinder allows the use of many different web interfaces. This option allows you to set the default skin used by the website. Users can change their skin later, this merely sets the default. - "), + ` ), type => $types{string}, category => 'system', }, @@ -189,13 +189,13 @@ our @options = ( name => 'ZM_CSS_DEFAULT', default => 'classic', description => 'Default set of css files used by web interface', - help => qqq(" + help => qqq( q` ZoneMinder allows the use of many different web interfaces, and some skins allow the use of different set of CSS files to control the appearance. This option allows you to set the default set of css files used by the website. Users can change their css later, this merely sets the default. - "), + ` ), type => $types{string}, category => 'system', }, @@ -203,13 +203,13 @@ our @options = ( name => 'ZM_LANG_DEFAULT', default => 'en_gb', description => 'Default language used by web interface', - help => qqq(" + help => qqq( q` ZoneMinder allows the web interface to use languages other than English if the appropriate language file has been created and is present. This option allows you to change the default language that is used from the shipped language, British English, to another language - "), + ` ), type => $types{string}, category => 'system', }, @@ -217,7 +217,7 @@ our @options = ( name => 'ZM_OPT_USE_AUTH', default => 'no', description => 'Authenticate user logins to ZoneMinder', - help => qqq(" + help => qqq( q` ZoneMinder can run in two modes. The simplest is an entirely unauthenticated mode where anyone can access ZoneMinder and perform all tasks. This is most suitable for installations @@ -225,7 +225,7 @@ our @options = ( mode enables user accounts with varying sets of permissions. Users must login or authenticate to access ZoneMinder and are limited by their defined permissions. - "), + ` ), type => $types{boolean}, category => 'system', }, @@ -233,7 +233,7 @@ our @options = ( name => 'ZM_AUTH_TYPE', default => 'builtin', description => 'What is used to authenticate ZoneMinder users', - help => qqq(" + help => qqq( q` ZoneMinder can use two methods to authenticate users when running in authenticated mode. The first is a builtin method where ZoneMinder provides facilities for users to log in and @@ -243,13 +243,13 @@ our @options = ( 'remote' user via http. In this case ZoneMinder would use the supplied user without additional authentication provided such a user is configured ion ZoneMinder. - "), - requires => [ { name=>"ZM_OPT_USE_AUTH", value=>"yes" } ], + ` ), + requires => [ { name=>'ZM_OPT_USE_AUTH', value=>'yes' } ], type => { db_type => 'string', - hint => "builtin|remote", + hint => 'builtin|remote', pattern => qr|^([br])|i, - format => q( $1 =~ /^b/ ? "builtin" : "remote" ) + format => q( $1 =~ /^b/ ? 'builtin' : 'remote' ) }, category => 'system', }, @@ -257,7 +257,7 @@ our @options = ( name => 'ZM_AUTH_RELAY', default => 'hashed', description => 'Method used to relay authentication information', - help => qqq(" + help => qqq( q` When ZoneMinder is running in authenticated mode it can pass user details between the web pages and the back end processes. There are two methods for doing this. This first is to use a @@ -268,30 +268,30 @@ our @options = ( your system or you have a completely isolated system with no external access. You can also switch off authentication relaying if your system is isolated in other ways. - "), - requires => [ { name=>"ZM_OPT_USE_AUTH", value=>"yes" } ], + ` ), + requires => [ { name=>'ZM_OPT_USE_AUTH', value=>'yes' } ], type => { db_type => 'string', - hint => "hashed|plain|none", + hint => 'hashed|plain|none', pattern => qr|^([hpn])|i, - format => q( ($1 =~ /^h/) ? "hashed" : ($1 =~ /^p/ ? "plain" : "none" ) ) + format => q( ($1 =~ /^h/) ? 'hashed' : ($1 =~ /^p/ ? 'plain' : 'none' ) ) }, category => 'system', }, { name => 'ZM_AUTH_HASH_SECRET', - default => "...Change me to something unique...", + default => '...Change me to something unique...', description => 'Secret for encoding hashed authentication information', - help => qqq(" + help => qqq( q` When ZoneMinder is running in hashed authenticated mode it is necessary to generate hashed strings containing encrypted sensitive information such as usernames and password. Although these string are reasonably secure the addition of a random secret increases security substantially. - "), + ` ), requires => [ - { name=>"ZM_OPT_USE_AUTH", value=>"yes" }, - { name=>"ZM_AUTH_RELAY", value=>"hashed" } + { name=>'ZM_OPT_USE_AUTH', value=>'yes' }, + { name=>'ZM_AUTH_RELAY', value=>'hashed' } ], type => $types{string}, category => 'system', @@ -300,7 +300,7 @@ our @options = ( name => 'ZM_AUTH_HASH_IPS', default => 'yes', description => 'Include IP addresses in the authentication hash', - help => qqq(" + help => qqq( q` When ZoneMinder is running in hashed authenticated mode it can optionally include the requesting IP address in the resultant hash. This adds an extra level of security as only requests @@ -311,10 +311,10 @@ our @options = ( whether IP addresses are included in the authentication hash on your system. If you experience intermitent problems with authentication, switching this option off may help. - "), + ` ), requires => [ - { name=>"ZM_OPT_USE_AUTH", value=>"yes" }, - { name=>"ZM_AUTH_RELAY", value=>"hashed" } + { name=>'ZM_OPT_USE_AUTH', value=>'yes' }, + { name=>'ZM_AUTH_RELAY', value=>'hashed' } ], type => $types{boolean}, category => 'system', @@ -323,7 +323,7 @@ our @options = ( name => 'ZM_AUTH_HASH_LOGINS', default => 'no', description => 'Allow login by authentication hash', - help => qqq(" + help => qqq( q` The normal process for logging into ZoneMinder is via the login screen with username and password. In some circumstances it may be desirable to allow access directly to one or more pages, for @@ -337,10 +337,10 @@ our @options = ( authentication hash itself and ensure it is valid. If you use this option you should ensure that you have modified the ZM_AUTH_HASH_SECRET to something unique to your system. - "), + ` ), requires => [ - { name=>"ZM_OPT_USE_AUTH", value=>"yes" }, - { name=>"ZM_AUTH_RELAY", value=>"hashed" } + { name=>'ZM_OPT_USE_AUTH', value=>'yes' }, + { name=>'ZM_AUTH_RELAY', value=>'hashed' } ], type => $types{boolean}, category => 'system', @@ -348,8 +348,8 @@ our @options = ( { name => 'ZM_ENABLE_CSRF_MAGIC', default => 'no', - description => "Enable csrf-magic library", - help => qqq(" + description => 'Enable csrf-magic library', + help => qqq( q` CSRF stands for Cross-Site Request Forgery which, under specific circumstances, can allow an attacker to perform any task your ZoneMinder user account has permission to perform. To accomplish @@ -361,7 +361,7 @@ our @options = ( If you find a false positive and can document how to reproduce it, then please report it. This feature defaults to OFF currently due to its experimental nature. - "), + ` ), type => $types{boolean}, category => 'system', }, @@ -369,7 +369,7 @@ our @options = ( name => 'ZM_OPT_USE_API', default => 'yes', description => 'Enable ZoneMinder APIs', - help => qqq(" + help => qqq( q` ZoneMinder now features a new API using which 3rd party applications can interact with ZoneMinder data. It is STRONGLY recommended that you enable authentication along @@ -377,7 +377,7 @@ our @options = ( Monitor access details which are configured as JSON objects. Which is why we recommend you enabling authentication, especially if you are exposing your ZM instance on the Internet. - "), + ` ), type => $types{boolean}, category => 'system', }, @@ -386,7 +386,7 @@ our @options = ( name => 'ZM_OPT_USE_GOOG_RECAPTCHA', default => 'no', description => 'Add Google reCaptcha to login page', - help => qqq(" + help => qqq( q` This option allows you to include a google reCaptcha validation at login. This means in addition to providing a valid usernane and password, you will also have to @@ -396,9 +396,9 @@ our @options = ( that enabling this option will break 3rd party clients like zmNinja and zmView as they also need to login to ZoneMinder and they will fail the reCaptcha test. - "), + ` ), requires => [ - {name=>"ZM_OPT_USE_AUTH", value=>"yes"} + {name=>'ZM_OPT_USE_AUTH', value=>'yes'} ], type => $types{boolean}, category => 'system', @@ -406,30 +406,30 @@ our @options = ( { name => 'ZM_OPT_GOOG_RECAPTCHA_SITEKEY', - default => "...Insert your recaptcha site-key here...", - description => "Your recaptcha site-key", - help => qqq("You need to generate your keys from + default => '...Insert your recaptcha site-key here...', + description => 'Your recaptcha site-key', + help => qqq( q`You need to generate your keys from the Google reCaptcha website. Please refer to https://www.google.com/recaptcha/ for more details. - "), + ` ), requires => [ - {name=>"ZM_OPT_USE_GOOG_RECAPTCHA", value=>"yes"} + {name=>'ZM_OPT_USE_GOOG_RECAPTCHA', value=>'yes'} ], type => $types{string}, category => 'system', }, { name => 'ZM_OPT_GOOG_RECAPTCHA_SECRETKEY', - default => "...Insert your recaptcha secret-key here...", - description => "Your recaptcha secret-key", - help => qqq("You need to generate your keys from + default => '...Insert your recaptcha secret-key here...', + description => 'Your recaptcha secret-key', + help => qqq( q`You need to generate your keys from the Google reCaptcha website. Please refer to https://www.google.com/recaptcha/ for more details. - "), + ` ), requires => [ - {name=>"ZM_OPT_USE_GOOG_RECAPTCHA", value=>"yes"} + {name=>'ZM_OPT_USE_GOOG_RECAPTCHA', value=>'yes'} ], type => $types{string}, category => 'system', @@ -440,7 +440,7 @@ our @options = ( name => 'ZM_DIR_EVENTS', default => 'events', description => 'Directory where events are stored', - help => qqq(" + help => qqq( q` This is the path to the events directory where all the event images and other miscellaneous files are stored. CAUTION: The directory you specify here cannot be outside the web root. This @@ -449,7 +449,7 @@ our @options = ( share, then you should mount the drive or share directly to the ZoneMinder events folder or follow the instructions in the ZoneMinder Wiki titled Using a dedicated Hard Drive. - "), + ` ), type => $types{directory}, category => 'paths', }, @@ -457,7 +457,7 @@ our @options = ( name => 'ZM_USE_DEEP_STORAGE', default => 'yes', description => 'Use a deep filesystem hierarchy for events', - help => qqq(" + help => qqq( q` This option is now the default for new ZoneMinder systems and should not be changed. Previous versions of ZoneMinder stored all events for a monitor under one folder. Enabling @@ -467,10 +467,10 @@ our @options = ( than 32k files in a single folder inherent in some filesystems. It is important to note that you cannot simply change this option. You must stop zoneminder, enable USE_DEEP_STORAGE, and - then run \"sudo zmupdate.pl --migrate-events\". FAILURE TO DO + then run "sudo zmupdate.pl --migrate-events". FAILURE TO DO SO WILL RESULT IN LOSS OF YOUR DATA! Consult the ZoneMinder WiKi for further details. - "), + `), type => $types{boolean}, category => 'hidden', }, @@ -478,7 +478,7 @@ our @options = ( name => 'ZM_DIR_IMAGES', default => 'images', description => 'Directory where the images that the ZoneMinder client generates are stored', - help => qqq(" + help => qqq( q` ZoneMinder generates a myriad of images, mostly of which are associated with events. For those that aren't this is where they go. CAUTION: The directory you specify here cannot be @@ -488,7 +488,7 @@ our @options = ( or share directly to the ZoneMinder images folder or follow the instructions in the ZoneMinder Wiki titled Using a dedicated Hard Drive. - "), + `), type => $types{directory}, category => 'paths', }, @@ -496,34 +496,34 @@ our @options = ( name => 'ZM_DIR_SOUNDS', default => 'sounds', description => 'Directory to the sounds that the ZoneMinder client can use', - help => qqq(" + help => qqq( q` ZoneMinder can optionally play a sound file when an alarm is detected. This indicates where to look for this file. CAUTION: The directory you specify here cannot be outside the web root. Most users should never change this value. - "), + ` ), type => $types{directory}, category => 'paths', }, { name => 'ZM_DIR_EXPORTS', - default => "@ZM_TMPDIR@", + default => '@ZM_TMPDIR@', description => 'Directory where exported archives are stored', - help => qqq(" + help => qqq( q` This is the path to the exports directory where exported tar.gz and zip archives are stored. By default this points to ZoneMinder's temp folder, which often sits in ram. Since exported archives can potentially become large, it is a good idea to move this folder to some other location on machines with low memory. - "), + ` ), type => $types{directory}, category => 'paths', }, { name => 'ZM_PATH_ZMS', - default => "/cgi-bin/nph-zms", + default => '/cgi-bin/nph-zms', description => 'Web path to zms streaming server', - help => qqq(" + help => qqq( q` The ZoneMinder streaming server is required to send streamed images to your browser. It will be installed into the cgi-bin path given at configuration time. This option determines what @@ -532,7 +532,7 @@ our @options = ( parser-header mode however if you experience problems with streaming you can change this to non-parsed-header (nph) mode by changing 'zms' to 'nph-zms'. - "), + ` ), type => $types{rel_path}, category => 'paths', }, @@ -540,7 +540,7 @@ our @options = ( name => 'ZM_COLOUR_JPEG_FILES', default => 'no', description => 'Colourise greyscale JPEG files', - help => qqq(" + help => qqq( q` Cameras that capture in greyscale can write their captured images to jpeg files with a corresponding greyscale colour space. This saves a small amount of disk space over colour @@ -548,7 +548,7 @@ our @options = ( with this colour space or have to convert it beforehand. Setting this option to yes uses up a little more space but makes creation of MPEG files much faster. - "), + ` ), type => $types{boolean}, category => 'images', }, @@ -556,7 +556,7 @@ our @options = ( name => 'ZM_ADD_JPEG_COMMENTS', default => 'no', description => 'Add jpeg timestamp annotations as file header comments', - help => qqq(" + help => qqq( q` JPEG files may have a number of extra fields added to the file header. The comment field may have any kind of text added. This options allows you to have the same text that is used to @@ -564,15 +564,15 @@ our @options = ( comment. If you archive event images to other locations this may help you locate images for particular events or times if you use software that can read comment headers. - "), + ` ), type => $types{boolean}, category => 'images', }, { name => 'ZM_JPEG_FILE_QUALITY', default => '70', - description => "Set the JPEG quality setting for the saved event files (1-100)", - help => qqq(" + description => 'Set the JPEG quality setting for the saved event files (1-100)', + help => qqq( q` When ZoneMinder detects an event it will save the images associated with that event to files. These files are in the JPEG format and can be viewed or streamed later. This option @@ -585,15 +585,15 @@ our @options = ( except if the capture image has caused an alarm and the alarm file quality option is set at a higher value when that is used instead. - "), + ` ), type => $types{integer}, category => 'images', }, { name => 'ZM_JPEG_ALARM_FILE_QUALITY', default => '0', - description => "Set the JPEG quality setting for the saved event files during an alarm (1-100)", - help => qqq(" + description => 'Set the JPEG quality setting for the saved event files during an alarm (1-100)', + help => qqq( q` This value is equivalent to the regular jpeg file quality setting above except that it only applies to images saved while in an alarm state and then only if this value is set to a @@ -602,7 +602,7 @@ our @options = ( default of 0 effectively means to use the regular file quality setting for all saved images. This is to prevent acccidentally saving important images at a worse quality setting. - "), + ` ), type => $types{integer}, category => 'images', }, @@ -610,8 +610,8 @@ our @options = ( { name => 'ZM_JPEG_IMAGE_QUALITY', default => '70', - description => "Set the JPEG quality setting for the streamed 'live' images (1-100)", - help => qqq(" + description => 'Set the JPEG quality setting for the streamed \'live\' images (1-100)', + help => qqq( q` When viewing a 'live' stream for a monitor ZoneMinder will grab an image from the buffer and encode it into JPEG format before sending it. This option specifies what image quality should be @@ -622,15 +622,15 @@ our @options = ( does not apply when viewing events or still images as these are usually just read from disk and so will be encoded at the quality specified by the previous options. - "), + ` ), type => $types{integer}, category => 'hidden', }, { name => 'ZM_JPEG_STREAM_QUALITY', default => '70', - description => "Set the JPEG quality setting for the streamed 'live' images (1-100)", - help => qqq(" + description => 'Set the JPEG quality setting for the streamed \'live\' images (1-100)', + help => qqq( q` When viewing a 'live' stream for a monitor ZoneMinder will grab an image from the buffer and encode it into JPEG format before sending it. This option specifies what image quality should be @@ -641,7 +641,7 @@ our @options = ( does not apply when viewing events or still images as these are usually just read from disk and so will be encoded at the quality specified by the previous options. - "), + ` ), type => $types{integer}, category => 'images', }, @@ -649,7 +649,7 @@ our @options = ( name => 'ZM_MPEG_TIMED_FRAMES', default => 'yes', description => 'Tag video frames with a timestamp for more realistic streaming', - help => qqq(" + help => qqq( q` When using streamed MPEG based video, either for live monitor streams or events, ZoneMinder can send the streams in two ways. If this option is selected then the timestamp for each frame, @@ -660,15 +660,15 @@ our @options = ( calculated and that is used to schedule frames instead. This option should be selected unless you encounter problems with your preferred streaming method. - "), + ` ), type => $types{boolean}, category => 'images', }, { name => 'ZM_MPEG_LIVE_FORMAT', default => 'swf', - description => "What format 'live' video streams are played in", - help => qqq(" + description => 'What format \'live\' video streams are played in', + help => qqq( q` When using MPEG mode ZoneMinder can output live video. However what formats are handled by the browser varies greatly between machines. This option allows you to specify a video format @@ -679,15 +679,15 @@ our @options = ( what, if anything, works on a Linux platform. If you find out please let me know! If this option is left blank then live streams will revert to being in motion jpeg format - "), + ` ), type => $types{string}, category => 'images', }, { name => 'ZM_MPEG_REPLAY_FORMAT', default => 'swf', - description => "What format 'replay' video streams are played in", - help => qqq(" + description => 'What format \'replay\' video streams are played in', + help => qqq( q` When using MPEG mode ZoneMinder can replay events in encoded video format. However what formats are handled by the browser varies greatly between machines. This option allows you to @@ -698,7 +698,7 @@ our @options = ( or 'avi' etc should work under Linux. If you know any more then please let me know! If this option is left blank then live streams will revert to being in motion jpeg format - "), + ` ), type => $types{string}, category => 'images', }, @@ -706,19 +706,19 @@ our @options = ( name => 'ZM_RAND_STREAM', default => 'yes', description => 'Add a random string to prevent caching of streams', - help => qqq(" + help => qqq( q` Some browsers can cache the streams used by ZoneMinder. In order to prevent his a harmless random string can be appended to the url to make each invocation of the stream appear unique. - "), + ` ), type => $types{boolean}, category => 'images', }, { name => 'ZM_OPT_CAMBOZOLA', default => 'no', - description => "Is the (optional) cambozola java streaming client installed", - help => qqq(" + description => 'Is the (optional) cambozola java streaming client installed', + help => qqq( q` Cambozola is a handy low fat cheese flavoured Java applet that ZoneMinder uses to view image streams on browsers such as Internet Explorer that don't natively support this format. If @@ -726,15 +726,15 @@ our @options = ( from http://www.charliemouse.com/code/cambozola/ however if it is not installed still images at a lower refresh rate can still be viewed. - "), + ` ), type => $types{boolean}, category => 'images', }, { name => 'ZM_PATH_CAMBOZOLA', - default => "cambozola.jar", - description => "Web path to (optional) cambozola java streaming client", - help => qqq(" + default => 'cambozola.jar', + description => 'Web path to (optional) cambozola java streaming client', + help => qqq( q` Cambozola is a handy low fat cheese flavoured Java applet that ZoneMinder uses to view image streams on browsers such as Internet Explorer that don't natively support this format. If @@ -744,8 +744,8 @@ our @options = ( be viewed. Leave this as 'cambozola.jar' if cambozola is installed in the same directory as the ZoneMinder web client files. - "), - requires => [ { name=>"ZM_OPT_CAMBOZOLA", value=>"yes" } ], + ` ), + requires => [ { name=>'ZM_OPT_CAMBOZOLA', value=>'yes' } ], type => $types{rel_path}, category => 'images', }, @@ -753,13 +753,13 @@ our @options = ( name => 'ZM_RELOAD_CAMBOZOLA', default => '0', description => 'After how many seconds should Cambozola be reloaded in live view', - help => qqq(" + help => qqq( q` Cambozola allows for the viewing of streaming MJPEG however it caches the entire stream into cache space on the computer, setting this to a number > 0 will cause it to automatically reload after that many seconds to avoid filling up a hard drive. - "), + ` ), type => $types{integer}, category => 'images', }, @@ -767,7 +767,7 @@ our @options = ( name => 'ZM_TIMESTAMP_ON_CAPTURE', default => 'yes', description => 'Timestamp images as soon as they are captured', - help => qqq(" + help => qqq( q` ZoneMinder can add a timestamp to images in two ways. The default method, when this option is set, is that each image is timestamped immediately when captured and so the image held in @@ -784,7 +784,7 @@ our @options = ( desirable side effect that the timestamp is always applied at the same resolution so an image that has scaling applied will still have a legible and correctly scaled timestamp. - "), + ` ), type => $types{boolean}, category => 'config', }, @@ -792,14 +792,14 @@ our @options = ( name => 'ZM_CPU_EXTENSIONS', default => 'yes', description => 'Use advanced CPU extensions to increase performance', - help => qqq(" + help => qqq( q` When advanced processor extensions such as SSE2 or SSSE3 are available, ZoneMinder can use them, which should increase performance and reduce system load. Enabling this option on processors that do not support the advanced processors extensions used by ZoneMinder is harmless and will have no effect. - "), + ` ), type => $types{boolean}, category => 'config', }, @@ -807,7 +807,7 @@ our @options = ( name => 'ZM_FAST_IMAGE_BLENDS', default => 'yes', description => 'Use a fast algorithm to blend the reference image', - help => qqq(" + help => qqq( q` To detect alarms ZoneMinder needs to blend the captured image with the stored reference image to update it for comparison with the next image. The reference blend percentage specified @@ -820,7 +820,7 @@ our @options = ( Any other blend percentage will be rounded to the nearest possible one. The alternative is to switch this option off and use standard blending instead, which is slower. - "), + ` ), type => $types{boolean}, category => 'config', }, @@ -828,7 +828,7 @@ our @options = ( name => 'ZM_OPT_ADAPTIVE_SKIP', default => 'yes', description => 'Should frame analysis try and be efficient in skipping frames', - help => qqq(" + help => qqq( q` In previous versions of ZoneMinder the analysis daemon would attempt to keep up with the capture daemon by processing the last captured frame on each pass. This would sometimes have the @@ -851,7 +851,7 @@ our @options = ( adaptive algorithm to be overwhelmed and not have time to react to a rapid build up of pending frames and thus for a buffer overrun condition to occur. - "), + ` ), type => $types{boolean}, category => 'config', }, @@ -859,7 +859,7 @@ our @options = ( name => 'ZM_MAX_SUSPEND_TIME', default => '30', description => 'Maximum time that a monitor may have motion detection suspended', - help => qqq(" + help => qqq( q` ZoneMinder allows monitors to have motion detection to be suspended, for instance while panning a camera. Ordinarily this relies on the operator resuming motion detection afterwards as @@ -869,7 +869,7 @@ our @options = ( motion detection. This time can be extended by subsequent suspend indications after the first so continuous camera movement will also occur while the monitor is suspended. - "), + ` ), type => $types{integer}, category => 'config', }, @@ -877,12 +877,12 @@ our @options = ( { name => 'ZM_OPT_REMOTE_CAMERAS', default => 'no', - description => "Are you going to use remote/networked cameras", - help => qqq(" + description => 'Are you going to use remote/networked cameras', + help => qqq( q` ZoneMinder can work with both local cameras, ie. those attached physically to your computer and remote or network cameras. If you will be using networked cameras select this option. - "), + ` ), type => $types{boolean}, category => 'hidden', }, @@ -891,7 +891,7 @@ our @options = ( name => 'ZM_NETCAM_REGEXPS', default => 'yes', description => 'Use regular expression matching with network cameras', - help => qqq(" + help => qqq( q` Traditionally ZoneMinder has used complex regular regular expressions to handle the multitude of formats that network cameras produce. In versions from 1.21.1 the default is to use @@ -900,27 +900,27 @@ our @options = ( problems you can try the older, but more flexible, regular expression based method by selecting this option. Note, to use this method you must have libpcre installed on your system. - "), + ` ), requires => [ { name => 'ZM_OPT_REMOTE_CAMERAS', value => 'yes' } ], type => $types{boolean}, category => 'hidden', }, { name => 'ZM_HTTP_VERSION', - default => "1.0", + default => '1.0', description => 'The version of HTTP that ZoneMinder will use to connect', - help => qqq(" + help => qqq( q` ZoneMinder can communicate with network cameras using either of the HTTP/1.1 or HTTP/1.0 standard. A server will normally fall back to the version it supports with no problem so this should usually by left at the default. However it can be changed to HTTP/1.0 if necessary to resolve particular issues. - "), + ` ), type => { db_type => 'string', - hint => "1.1|1.0", + hint => '1.1|1.0', pattern => qr|^(1\.[01])$|, - format => q( $1?$1:"" ) + format => q( $1?$1:'' ) }, category => 'network', }, @@ -928,28 +928,28 @@ our @options = ( name => 'ZM_HTTP_UA', default => 'ZoneMinder', description => 'The user agent that ZoneMinder uses to identify itself', - help => qqq(" + help => qqq( q` When ZoneMinder communicates with remote cameras it will identify itself using this string and it's version number. This is normally sufficient, however if a particular cameras expects only to communicate with certain browsers then this can be changed to a different string identifying ZoneMinder as Internet Explorer or Netscape etc. - "), + ` ), type => $types{string}, category => 'network', }, { name => 'ZM_HTTP_TIMEOUT', default => '2500', - description => "How long ZoneMinder waits before giving up on images (milliseconds)", - help => qqq(" + description => 'How long ZoneMinder waits before giving up on images (milliseconds)', + help => qqq( q` When retrieving remote images ZoneMinder will wait for this length of time before deciding that an image is not going to arrive and taking steps to retry. This timeout is in milliseconds (1000 per second) and will apply to each part of an image if it is not sent in one whole chunk. - "), + ` ), type => $types{integer}, category => 'network', }, @@ -957,7 +957,7 @@ our @options = ( name => 'ZM_MIN_RTP_PORT', default => '40200', description => 'Minimum port that ZoneMinder will listen for RTP traffic on', - help => qqq(" + help => qqq( q` When ZoneMinder communicates with MPEG4 capable cameras using RTP with the unicast method it must open ports for the camera to connect back to for control and streaming purposes. This @@ -967,7 +967,7 @@ our @options = ( should be set to an even number, you may also need to open up a hole in your firewall to allow cameras to connect back if you wish to use unicasting. - "), + ` ), type => $types{integer}, category => 'network', }, @@ -975,7 +975,7 @@ our @options = ( name => 'ZM_MAX_RTP_PORT', default => '40499', description => 'Maximum port that ZoneMinder will listen for RTP traffic on', - help => qqq(" + help => qqq( q` When ZoneMinder communicates with MPEG4 capable cameras using RTP with the unicast method it must open ports for the camera to connect back to for control and streaming purposes. This @@ -987,31 +987,31 @@ our @options = ( wish to use unicasting. You should also ensure that you have opened up at least two ports for each monitor that will be connecting to unicasting network cameras. - "), + ` ), type => $types{integer}, category => 'network', }, { name => 'ZM_OPT_FFMPEG', - default => "@OPT_FFMPEG@", - description => "Is the ffmpeg video encoder/decoder installed", - help => qqq(" + default => '@OPT_FFMPEG@', + description => 'Is the ffmpeg video encoder/decoder installed', + help => qqq( q` ZoneMinder can optionally encode a series of video images into an MPEG encoded movie file for viewing, downloading or storage. This option allows you to specify whether you have the ffmpeg tools installed. Note that creating MPEG files can be fairly CPU and disk intensive and is not a required option as events can still be reviewed as video streams without it. - "), + ` ), type => $types{boolean}, category => 'images', }, { name => 'ZM_PATH_FFMPEG', - default => "@PATH_FFMPEG@", - description => "Path to (optional) ffmpeg mpeg encoder", - help => "This path should point to where ffmpeg has been installed.", - requires => [ { name=>"ZM_OPT_FFMPEG", value=>"yes" } ], + default => '@PATH_FFMPEG@', + description => 'Path to (optional) ffmpeg mpeg encoder', + help => 'This path should point to where ffmpeg has been installed.', + requires => [ { name=>'ZM_OPT_FFMPEG', value=>'yes' } ], type => $types{abs_path}, category => 'images', }, @@ -1019,22 +1019,22 @@ our @options = ( name => 'ZM_FFMPEG_INPUT_OPTIONS', default => '', description => 'Additional input options to ffmpeg', - help => qqq(" + help => qqq( q` Ffmpeg can take many options on the command line to control the quality of video produced. This option allows you to specify your own set that apply to the input to ffmpeg (options that are given before the -i option). Check the ffmpeg documentation for a full list of options which may be used here. - "), - requires => [ { name=>"ZM_OPT_FFMPEG", value=>"yes" } ], + ` ), + requires => [ { name=>'ZM_OPT_FFMPEG', value=>'yes' } ], type => $types{string}, category => 'images', }, { name => 'ZM_FFMPEG_OUTPUT_OPTIONS', - default => "-r 25", + default => '-r 25', description => 'Additional output options to ffmpeg', - help => qqq(" + help => qqq( q` Ffmpeg can take many options on the command line to control the quality of video produced. This option allows you to specify your own set that apply to the output from ffmpeg (options that @@ -1042,16 +1042,16 @@ our @options = ( for a full list of options which may be used here. The most common one will often be to force an output frame rate supported by the video encoder. - "), - requires => [ { name=>"ZM_OPT_FFMPEG", value=>"yes" } ], + ` ), + requires => [ { name=>'ZM_OPT_FFMPEG', value=>'yes' } ], type => $types{string}, category => 'images', }, { name => 'ZM_FFMPEG_FORMATS', - default => "mpg mpeg wmv asf avi* mov swf 3gp**", + default => 'mpg mpeg wmv asf avi* mov swf 3gp**', description => 'Formats to allow for ffmpeg video generation', - help => qqq(" + help => qqq( q` Ffmpeg can generate video in many different formats. This option allows you to list the ones you want to be able to select. As new formats are supported by ffmpeg you can add them @@ -1059,23 +1059,23 @@ our @options = ( format indicates that this will be the default format used for web video, adding '**' defines the default format for phone video. - "), - requires => [ { name=>"ZM_OPT_FFMPEG", value=>"yes" } ], + ` ), + requires => [ { name=>'ZM_OPT_FFMPEG', value=>'yes' } ], type => $types{string}, category => 'images', }, { name => 'ZM_FFMPEG_OPEN_TIMEOUT', default => '10', - description => "Timeout in seconds when opening a stream.", - help => qqq(" + description => 'Timeout in seconds when opening a stream.', + help => qqq( q` When Ffmpeg is opening a stream, it can take a long time before failing; certain circumstances even seem to be able to lock indefinitely. This option allows you to set a maximum time in seconds to pass before closing the stream and trying to reopen it again. - "), - requires => [ { name=>"ZM_OPT_FFMPEG", value=>"yes" } ], + ` ), + requires => [ { name=>'ZM_OPT_FFMPEG', value=>'yes' } ], type => $types{integer}, category => 'images', }, @@ -1083,7 +1083,7 @@ our @options = ( name => 'ZM_LOG_LEVEL_SYSLOG', default => '0', description => 'Save logging output to the system log', - help => qqq(" + help => qqq( q` ZoneMinder logging is now more more integrated between components and allows you to specify the destination for logging output and the individual levels for each. This option @@ -1097,10 +1097,10 @@ our @options = ( should use caution when setting this option to Debug as it can affect severely affect system performance. If you want debug you will also need to set a level and component below - "), + ` ), type => { db_type => 'integer', - hint => "None=-5|Panic=-4|Fatal=-3|Error=-2|Warning=-1|Info=0|Debug=1", + hint => 'None=-5|Panic=-4|Fatal=-3|Error=-2|Warning=-1|Info=0|Debug=1', pattern => qr|^(\d+)$|, format => q( $1 ) }, @@ -1108,9 +1108,9 @@ our @options = ( }, { name => 'ZM_LOG_LEVEL_FILE', - default => "-5", + default => '-5', description => 'Save logging output to component files', - help => qqq(" + help => qqq( q` ZoneMinder logging is now more more integrated between components and allows you to specify the destination for logging output and the individual levels for each. This option @@ -1127,10 +1127,10 @@ our @options = ( performance though file output has less impact than the other options. If you want debug you will also need to set a level and component below - "), + ` ), type => { db_type => 'integer', - hint => "None=-5|Panic=-4|Fatal=-3|Error=-2|Warning=-1|Info=0|Debug=1", + hint => 'None=-5|Panic=-4|Fatal=-3|Error=-2|Warning=-1|Info=0|Debug=1', pattern => qr|^(\d+)$|, format => q( $1 ) }, @@ -1138,9 +1138,9 @@ our @options = ( }, { name => 'ZM_LOG_LEVEL_WEBLOG', - default => "-5", + default => '-5', description => 'Save logging output to the weblog', - help => qqq(" + help => qqq( q` ZoneMinder logging is now more more integrated between components and allows you to specify the destination for logging output and the individual levels for each. This option @@ -1154,10 +1154,10 @@ our @options = ( should use caution when setting this option to Debug as it can affect severely affect system performance. If you want debug you will also need to set a level and component below - "), + ` ), type => { db_type => 'integer', - hint => "None=-5|Panic=-4|Fatal=-3|Error=-2|Warning=-1|Info=0|Debug=1", + hint => 'None=-5|Panic=-4|Fatal=-3|Error=-2|Warning=-1|Info=0|Debug=1', pattern => qr|^(\d+)$|, format => q( $1 ) }, @@ -1167,7 +1167,7 @@ our @options = ( name => 'ZM_LOG_LEVEL_DATABASE', default => '0', description => 'Save logging output to the database', - help => qqq(" + help => qqq( q` ZoneMinder logging is now more more integrated between components and allows you to specify the destination for logging output and the individual levels for each. This option @@ -1185,10 +1185,10 @@ our @options = ( caution when setting this option to Debug as it can affect severely affect system performance. If you want debug you will also need to set a level and component below - "), + ` ), type => { db_type => 'integer', - hint => "None=-5|Panic=-4|Fatal=-3|Error=-2|Warning=-1|Info=0|Debug=1", + hint => 'None=-5|Panic=-4|Fatal=-3|Error=-2|Warning=-1|Info=0|Debug=1', pattern => qr|^(\d+)$|, format => q( $1 ) }, @@ -1196,9 +1196,9 @@ our @options = ( }, { name => 'ZM_LOG_DATABASE_LIMIT', - default => "7 day", + default => '7 day', description => 'Maximum number of log entries to retain', - help => qqq(" + help => qqq( q` If you are using database logging then it is possible to quickly build up a large number of entries in the Logs table. This option allows you to specify how many of these entries are @@ -1212,7 +1212,7 @@ our @options = ( end). The Logs table is pruned periodically so it is possible for more than the expected number of rows to be present briefly in the meantime. - "), + ` ), type => $types{string}, category => 'logging', }, @@ -1220,7 +1220,7 @@ our @options = ( name => 'ZM_LOG_DEBUG', default => 'no', description => 'Switch debugging on', - help => qqq(" + help => qqq( q` ZoneMinder components usually support debug logging available to help with diagnosing problems. Binary components have several levels of debug whereas more other components have only @@ -1229,7 +1229,7 @@ our @options = ( you switch on other options that allow you to configure additional debug information to be output. Components will pick up this instruction when they are restarted. - "), + ` ), type => $types{boolean}, category => 'logging', }, @@ -1237,7 +1237,7 @@ our @options = ( name => 'ZM_LOG_DEBUG_TARGET', default => '', description => 'What components should have extra debug enabled', - help => qqq(" + help => qqq( q` There are three scopes of debug available. Leaving this option blank means that all components will use extra debug (not recommended). Setting this option to '_', e.g. _zmc, @@ -1248,7 +1248,7 @@ our @options = ( their names without the .pl extension, e.g. '_zmvideo' and to debug issues with the web interface use '_web'. You can specify multiple targets by separating them with '|' characters. - "), + ` ), requires => [ { name => 'ZM_LOG_DEBUG', value => 'yes' } ], type => $types{string}, category => 'logging', @@ -1257,7 +1257,7 @@ our @options = ( name => 'ZM_LOG_DEBUG_LEVEL', default => 1, description => 'What level of extra debug should be enabled', - help => qqq(" + help => qqq( q` There are 9 levels of debug available, with higher numbers being more debug and level 0 being no debug. However not all levels are used by all components. Also if there is debug at a @@ -1267,11 +1267,11 @@ our @options = ( of debug you wish to see is present. Scripts and the web interface only have one level so this is an on/off type option for them. - "), + ` ), requires => [ { name => 'ZM_LOG_DEBUG', value => 'yes' } ], type => { db_type => 'integer', - hint => "1|2|3|4|5|6|7|8|9", + hint => '1|2|3|4|5|6|7|8|9', pattern => qr|^(\d+)$|, format => q( $1 ) }, @@ -1279,9 +1279,9 @@ our @options = ( }, { name => 'ZM_LOG_DEBUG_FILE', - default => "@ZM_LOGDIR@/zm_debug.log+", + default => '@ZM_LOGDIR@/zm_debug.log+', description => 'Where extra debug is output to', - help => qqq(" + help => qqq( q` This option allows you to specify a different target for debug output. All components have a default log file which will norally be in /tmp or /var/log and this is where debug will be @@ -1297,7 +1297,7 @@ our @options = ( overwriting the same log. You should ensure that permissions are set up to allow writing to the file and directory specified here. - "), + ` ), requires => [ { name => 'ZM_LOG_DEBUG', value => 'yes' } ], type => $types{string}, category => 'logging', @@ -1306,14 +1306,14 @@ our @options = ( name => 'ZM_LOG_CHECK_PERIOD', default => '900', description => 'Time period used when calculating overall system health', - help => qqq(" + help => qqq( q` When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. This option allows you to indicate what period of historical events are used in this calculation. This value is expressed in seconds and is ignored if LOG_LEVEL_DATABASE is set to None. - "), + ` ), type => $types{integer}, category => 'logging', }, @@ -1321,7 +1321,7 @@ our @options = ( name => 'ZM_LOG_ALERT_WAR_COUNT', default => '1', description => 'Number of warnings indicating system alert state', - help => qqq(" + help => qqq( q` When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. @@ -1330,7 +1330,7 @@ our @options = ( system alert state. A value of zero means warnings are not considered. This value is ignored if LOG_LEVEL_DATABASE is set to None. - "), + ` ), type => $types{integer}, category => 'logging', }, @@ -1338,7 +1338,7 @@ our @options = ( name => 'ZM_LOG_ALERT_ERR_COUNT', default => '1', description => 'Number of errors indicating system alert state', - help => qqq(" + help => qqq( q` When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. @@ -1347,7 +1347,7 @@ our @options = ( system alert state. A value of zero means errors are not considered. This value is ignored if LOG_LEVEL_DATABASE is set to None. - "), + ` ), type => $types{integer}, category => 'logging', }, @@ -1355,7 +1355,7 @@ our @options = ( name => 'ZM_LOG_ALERT_FAT_COUNT', default => '0', description => 'Number of fatal error indicating system alert state', - help => qqq(" + help => qqq( q` When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. @@ -1364,7 +1364,7 @@ our @options = ( period to generate an overall system alert state. A value of zero means fatal errors are not considered. This value is ignored if LOG_LEVEL_DATABASE is set to None. - "), + ` ), type => $types{integer}, category => 'logging', }, @@ -1372,7 +1372,7 @@ our @options = ( name => 'ZM_LOG_ALARM_WAR_COUNT', default => '100', description => 'Number of warnings indicating system alarm state', - help => qqq(" + help => qqq( q` When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. @@ -1381,7 +1381,7 @@ our @options = ( system alarm state. A value of zero means warnings are not considered. This value is ignored if LOG_LEVEL_DATABASE is set to None. - "), + ` ), type => $types{integer}, category => 'logging', }, @@ -1389,7 +1389,7 @@ our @options = ( name => 'ZM_LOG_ALARM_ERR_COUNT', default => '10', description => 'Number of errors indicating system alarm state', - help => qqq(" + help => qqq( q` When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. @@ -1398,7 +1398,7 @@ our @options = ( system alarm state. A value of zero means errors are not considered. This value is ignored if LOG_LEVEL_DATABASE is set to None. - "), + ` ), type => $types{integer}, category => 'logging', }, @@ -1406,7 +1406,7 @@ our @options = ( name => 'ZM_LOG_ALARM_FAT_COUNT', default => '1', description => 'Number of fatal error indicating system alarm state', - help => qqq(" + help => qqq( q` When ZoneMinder is logging events to the database it can retrospectively examine the number of warnings and errors that have occurred to calculate an overall state of system health. @@ -1415,15 +1415,15 @@ our @options = ( period to generate an overall system alarm state. A value of zero means fatal errors are not considered. This value is ignored if LOG_LEVEL_DATABASE is set to None. - "), + ` ), type => $types{integer}, category => 'logging', }, { name => 'ZM_RECORD_EVENT_STATS', default => 'yes', - description => "Record event statistical information, switch off if too slow", - help => qqq(" + description => 'Record event statistical information, switch off if too slow', + help => qqq( q` This version of ZoneMinder records detailed information about events in the Stats table. This can help in profiling what the optimum settings are for Zones though this is tricky at @@ -1433,15 +1433,15 @@ our @options = ( be collected now in readiness for this but if you are concerned about performance you can switch this off in which case no Stats information will be saved. - "), + ` ), type => $types{boolean}, category => 'logging', }, { name => 'ZM_RECORD_DIAG_IMAGES', default => 'no', - description => "Record intermediate alarm diagnostic images, can be very slow", - help => qqq(" + description => 'Record intermediate alarm diagnostic images, can be very slow', + help => qqq( q` In addition to recording event statistics you can also record the intermediate diagnostic images that display the results of the various checks and processing that occur when trying to @@ -1451,15 +1451,15 @@ our @options = ( performance. Only switch this setting on for debug or analysis purposes and remember to switch it off again once no longer required. - "), + ` ), type => $types{boolean}, category => 'logging', }, { name => 'ZM_DUMP_CORES', default => 'no', - description => "Create core files on unexpected process failure.", - help => qqq(" + description => 'Create core files on unexpected process failure.', + help => qqq( q` When an unrecoverable error occurs in a ZoneMinder binary process is has traditionally been trapped and the details written to logs to aid in remote analysis. However in some @@ -1476,15 +1476,15 @@ our @options = ( on your system via the 'ulimit -c' command or other means otherwise no file will be created regardless of the value of this option. - "), + ` ), type => $types{boolean}, category => 'logging', }, { name => 'ZM_PATH_MAP', - default => "/dev/shm", + default => '/dev/shm', description => 'Path to the mapped memory files that that ZoneMinder can use', - help => qqq(" + help => qqq( q` ZoneMinder has historically used IPC shared memory for shared data between processes. This has it's advantages and limitations. This version of ZoneMinder can use an alternate @@ -1497,48 +1497,48 @@ our @options = ( files and for the best performance it should be a tmpfs file system or ramdisk otherwise disk access may render this method slower than the regular shared memory one. - "), + ` ), type => $types{abs_path}, category => 'paths', }, { name => 'ZM_PATH_SOCKS', - default => "@ZM_SOCKDIR@", + default => '@ZM_SOCKDIR@', description => 'Path to the various Unix domain socket files that ZoneMinder uses', - help => qqq(" + help => qqq( q` ZoneMinder generally uses Unix domain sockets where possible. This reduces the need for port assignments and prevents external applications from possibly compromising the daemons. However each Unix socket requires a .sock file to be created. This option indicates where those socket files go. - "), + ` ), type => $types{abs_path}, category => 'paths', }, { name => 'ZM_PATH_LOGS', - default => "@ZM_LOGDIR@", + default => '@ZM_LOGDIR@', description => 'Path to the various logs that the ZoneMinder daemons generate', - help => qqq(" + help => qqq( q` There are various daemons that are used by ZoneMinder to perform various tasks. Most generate helpful log files and this is where they go. They can be deleted if not required for debugging. - "), + ` ), type => $types{abs_path}, category => 'paths', }, { name => 'ZM_PATH_SWAP', - default => "@ZM_TMPDIR@", + default => '@ZM_TMPDIR@', description => 'Path to location for temporary swap images used in streaming', - help => qqq(" + help => qqq( q` Buffered playback requires temporary swap images to be stored for each instance of the streaming daemons. This option determines where these images will be stored. The images will actually be stored in sub directories beneath this location and will be automatically cleaned up after a period of time. - "), + ` ), type => $types{abs_path}, category => 'paths', }, @@ -1546,14 +1546,14 @@ our @options = ( name => 'ZM_PATH_ARP', default => '', description => 'Path to a supported ARP tool', - help => qqq(" + help => qqq( q` The camera probe function uses Address Resolution Protocol in order to find known devices on the network. Optionally supply the full path to \"ip neigh\", \"arp -a\", or any other tool on your system that returns ip/mac address pairs. If this field is left empty, ZoneMinder will search for the command \"arp\" and attempt to use that. - "), + ` ), type => $types{abs_path}, category => 'paths', }, @@ -1561,12 +1561,12 @@ our @options = ( name => 'ZM_WEB_TITLE_PREFIX', default => 'ZM', description => 'The title prefix displayed on each window', - help => qqq(" + help => qqq( q` If you have more than one installation of ZoneMinder it can be helpful to display different titles for each one. Changing this option allows you to customise the window titles to include further information to aid identification. - "), + ` ), type => $types{string}, category => 'web', }, @@ -1574,26 +1574,26 @@ our @options = ( name => 'ZM_WEB_CONSOLE_BANNER', default => '', description => 'Arbitrary text message near the top of the console', - help => qqq(" + help => qqq( q` 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_EVENT_DISK_SPACE', default => '', - description => "Whether to show disk space used by each event.", - help => qqq("Adds another column to the listing of events + description => 'Whether to show disk space used by each event.', + help => qqq( q`Adds another column to the listing of events showing the disk space used by the event. This will impart a small overhead as it will call du on the event directory. In practice this overhead is fairly small but may be noticeable on IO-constrained systems. - "), + ` ), type => $types{string}, category => 'web', }, @@ -1601,7 +1601,7 @@ our @options = ( name => 'ZM_WEB_RESIZE_CONSOLE', default => 'yes', description => 'Should the console window resize itself to fit', - help => qqq(" + help => qqq( q` Traditionally the main ZoneMinder web console window has resized itself to shrink to a size small enough to list only the monitors that are actually present. This is intended to @@ -1609,7 +1609,7 @@ our @options = ( tastes, especially if opened in a tab in browsers which support this kind if layout. Switch this option off to have the console window size left to the users preference - "), + ` ), type => $types{boolean}, category => 'web', }, @@ -1617,9 +1617,9 @@ our @options = ( name => 'ZM_WEB_ID_ON_CONSOLE', default => 'no', description => 'Should the console list the monitor id', - help => qqq("Some find it useful to have the id always visible + help => qqq( q`Some find it useful to have the id always visible on the console. This option will add a column listing it. - "), + ` ), type => $types{boolean}, category => 'web', }, @@ -1627,67 +1627,67 @@ our @options = ( name => 'ZM_WEB_POPUP_ON_ALARM', default => 'yes', description => 'Should the monitor window jump to the top if an alarm occurs', - help => qqq(" + help => qqq( q` When viewing a live monitor stream you can specify whether you want the window to pop to the front if an alarm occurs when the window is minimised or behind another window. This is most useful if your monitors are over doors for example when they can pop up if someone comes to the doorway. - "), + ` ), type => $types{boolean}, category => 'web', }, { name => 'ZM_OPT_X10', default => 'no', - description => "Support interfacing with X10 devices", - help => qqq(" + description => 'Support interfacing with X10 devices', + help => qqq( q` If you have an X10 Home Automation setup in your home you can use ZoneMinder to initiate or react to X10 signals if your computer has the appropriate interface controller. This option indicates whether X10 options will be available in the browser client. - "), + ` ), type => $types{boolean}, category => 'x10', }, { name => 'ZM_X10_DEVICE', - default => "/dev/ttyS0", - description => "What device is your X10 controller connected on", + default => '/dev/ttyS0', + description => 'What device is your X10 controller connected on', requires => [ { name => 'ZM_OPT_X10', value => 'yes' } ], - help => qqq(" + help => qqq( q` If you have an X10 controller device (e.g. XM10U) connected to your computer this option details which port it is connected on, the default of /dev/ttyS0 maps to serial or com port 1. - "), + ` ), type => $types{abs_path}, category => 'x10', }, { name => 'ZM_X10_HOUSE_CODE', default => 'A', - description => "What X10 house code should be used", + description => 'What X10 house code should be used', requires => [ { name => 'ZM_OPT_X10', value => 'yes' } ], - help => qqq(" + help => qqq( q` X10 devices are grouped together by identifying them as all belonging to one House Code. This option details what that is. It should be a single letter between A and P. - "), - type => { db_type=>"string", hint=>"A-P", pattern=>qr|^([A-P])|i, format=>q( uc($1) ) }, + ` ), + type => { db_type=>'string', hint=>'A-P', pattern=>qr|^([A-P])|i, format=>q( uc($1) ) }, category => 'x10', }, { name => 'ZM_X10_DB_RELOAD_INTERVAL', default => '60', - description => "How often (in seconds) the X10 daemon reloads the monitors from the database", + description => 'How often (in seconds) the X10 daemon reloads the monitors from the database', requires => [ { name => 'ZM_OPT_X10', value => 'yes' } ], - help => qqq(" + help => qqq( q` The zmx10 daemon periodically checks the database to find out what X10 events trigger, or result from, alarms. This option determines how frequently this check occurs, unless you change this area frequently this can be a fairly large value. - "), + ` ), type => $types{integer}, category => 'x10', }, @@ -1695,25 +1695,25 @@ our @options = ( name => 'ZM_WEB_SOUND_ON_ALARM', default => 'no', description => 'Should the monitor window play a sound if an alarm occurs', - help => qqq(" + help => qqq( q` When viewing a live monitor stream you can specify whether you want the window to play a sound to alert you if an alarm occurs. - "), + ` ), type => $types{boolean}, category => 'web', }, { name => 'ZM_WEB_ALARM_SOUND', default => '', - description => "The sound to play on alarm, put this in the sounds directory", - help => qqq(" + description => 'The sound to play on alarm, put this in the sounds directory', + help => qqq( q` You can specify a sound file to play if an alarm occurs whilst you are watching a live monitor stream. So long as your browser understands the format it does not need to be any particular type. This file should be placed in the sounds directory defined earlier. - "), + ` ), type => $types{file}, requires => [ { name => 'ZM_WEB_SOUND_ON_ALARM', value => 'yes' } ], category => 'web', @@ -1722,14 +1722,14 @@ our @options = ( name => 'ZM_WEB_COMPACT_MONTAGE', default => 'no', description => 'Compact the montage view by removing extra detail', - help => qqq(" + help => qqq( q` The montage view shows the output of all of your active monitors in one window. This include a small menu and status information for each one. This can increase the web traffic and make the window larger than may be desired. Setting this option on removes all this extraneous information and just displays the images. - "), + ` ), type => $types{boolean}, category => 'web', }, @@ -1737,7 +1737,7 @@ our @options = ( name => 'ZM_OPT_FAST_DELETE', default => 'no', description => 'Delete only event database records for speed', - help => qqq(" + help => qqq( q` Normally an event created as the result of an alarm consists of entries in one or more database tables plus the various files associated with it. When deleting events in the browser it can @@ -1748,7 +1748,7 @@ our @options = ( longer appear in the listing, and leaves the zmaudit daemon to clear up the rest later. Note that this feature is less relevant with modern hardware. Recommend this feature be left off. - "), + ` ), type => $types{boolean}, category => 'system', }, @@ -1756,7 +1756,7 @@ our @options = ( name => 'ZM_STRICT_VIDEO_CONFIG', default => 'yes', description => 'Allow errors in setting video config to be fatal', - help => qqq(" + help => qqq( q` With some video devices errors can be reported in setting the various video attributes when in fact the operation was successful. Switching this option off will still allow these @@ -1765,7 +1765,7 @@ our @options = ( errors to be ignored including those which are genuine and which may cause the video capture to not function correctly. Use this option with caution. - "), + ` ), type => $types{boolean}, category => 'config', }, @@ -1773,10 +1773,10 @@ our @options = ( name => 'ZM_LD_PRELOAD', default => '', description => "Path to library to preload before launching daemons", - help => qqq("Some older cameras require the use of the v4l1 compat + help => qqq( q`Some older cameras require the use of the v4l1 compat library. This setting allows the setting of the path to the library, so that it can be loaded by zmdc.pl - before launching zmc."), + before launching zmc.` ), type => $types{abs_path}, category => 'config', }, @@ -1784,7 +1784,7 @@ our @options = ( name => 'ZM_SIGNAL_CHECK_POINTS', default => '10', description => 'How many points in a captured image to check for signal loss', - help => qqq(" + help => qqq( q` For locally attached video cameras ZoneMinder can check for signal loss by looking at a number of random points on each captured image. If all of these points are set to the same @@ -1796,15 +1796,15 @@ our @options = ( to not have the check colour will abort any further checks so in most cases on a couple of points will actually be checked. Network and file based cameras are never checked. - "), + ` ), type => $types{integer}, category => 'config', }, { name => 'ZM_V4L_MULTI_BUFFER', default => 'yes', - description => "Use more than one buffer for Video 4 Linux devices", - help => qqq(" + description => 'Use more than one buffer for Video 4 Linux devices', + help => qqq( q` Performance when using Video 4 Linux devices is usually best if multiple buffers are used allowing the next image to be captured while the previous one is being processed. If you have @@ -1819,15 +1819,15 @@ our @options = ( value of only one of the options at a time. If you have different capture cards that need different values you can ovveride them in each individual monitor on the source page. - "), + ` ), type => $types{boolean}, category => 'config', }, { name => 'ZM_CAPTURES_PER_FRAME', default => '1', - description => "How many images are captured per returned frame, for shared local cameras", - help => qqq(" + description => 'How many images are captured per returned frame, for shared local cameras', + help => qqq( q` If you are using cameras attached to a video capture card which forces multiple inputs to share one capture chip, it can sometimes produce images with interlaced frames reversed @@ -1843,15 +1843,15 @@ our @options = ( value of only one of the options at a time. If you have different capture cards that need different values you can ovveride them in each individual monitor on the source page. - "), + ` ), type => $types{integer}, category => 'config', }, { name => 'ZM_FILTER_RELOAD_DELAY', default => '300', - description => "How often (in seconds) filters are reloaded in zmfilter", - help => qqq(" + description => 'How often (in seconds) filters are reloaded in zmfilter', + help => qqq( q` ZoneMinder allows you to save filters to the database which allow events that match certain criteria to be emailed, deleted or uploaded to a remote machine etc. The zmfilter daemon loads @@ -1859,15 +1859,15 @@ our @options = ( often the filters are reloaded from the database to get the latest versions or new filters. If you don't change filters very often this value can be set to a large value. - "), + ` ), type => $types{integer}, category => 'system', }, { name => 'ZM_FILTER_EXECUTE_INTERVAL', default => '60', - description => "How often (in seconds) to run automatic saved filters", - help => qqq(" + description => 'How often (in seconds) to run automatic saved filters', + help => qqq( q` ZoneMinder allows you to save filters to the database which allow events that match certain criteria to be emailed, deleted or uploaded to a remote machine etc. The zmfilter daemon loads @@ -1877,7 +1877,7 @@ our @options = ( should be a smaller value, however this may increase the overall load on the system and affect performance of other elements. - "), + ` ), type => $types{integer}, category => 'system', }, @@ -1885,29 +1885,29 @@ our @options = ( name => 'ZM_OPT_UPLOAD', default => 'no', description => 'Should ZoneMinder support uploading events from filters', - help => qqq(" + help => qqq( q` In ZoneMinder you can create event filters that specify whether events that match certain criteria should be uploaded to a remote server for archiving. This option specifies whether this functionality should be available - "), + ` ), type => $types{boolean}, category => 'upload', }, { name => 'ZM_UPLOAD_ARCH_FORMAT', default => 'tar', - description => "What format the uploaded events should be created in.", + description => 'What format the uploaded events should be created in.', requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], - help => qqq(" + help => qqq( q` Uploaded events may be stored in either .tar or .zip format, this option specifies which. Note that to use this you will need to have the Archive::Tar and/or Archive::Zip perl modules installed. - "), + ` ), type => { - db_type =>"string", - hint =>"tar|zip", + db_type =>'string', + hint =>'tar|zip', pattern =>qr|^([tz])|i, format =>q( $1 =~ /^t/ ? "tar" : "zip" ) }, @@ -1917,13 +1917,13 @@ our @options = ( name => 'ZM_UPLOAD_ARCH_COMPRESS', default => 'no', description => 'Should archive files be compressed', - help => qqq(" + help => qqq( q` When the archive files are created they can be compressed. However in general since the images are compressed already this saves only a minimal amount of space versus utilising more CPU in their creation. Only enable if you have CPU to waste and are limited in disk space on your remote server or bandwidth. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{boolean}, category => 'upload', @@ -1932,7 +1932,7 @@ our @options = ( name => 'ZM_UPLOAD_ARCH_ANALYSE', default => 'no', description => 'Include the analysis files in the archive', - help => qqq(" + help => qqq( q` When the archive files are created they can contain either just the captured frames or both the captured frames and, for frames that caused an alarm, the analysed image with the changed area @@ -1941,7 +1941,7 @@ our @options = ( to the remote server or if you need help in figuring out what caused an alarm in the first place as archives with these files in can be considerably larger. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{boolean}, category => 'upload', @@ -1951,7 +1951,7 @@ our @options = ( default => 'ftp', description => 'What protocol to use to upload events', requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], - help => qqq(" + help => qqq( q` ZoneMinder can upload events to a remote server using either FTP or SFTP. Regular FTP is widely supported but not necessarily very secure whereas SFTP (Secure FTP) runs over an @@ -1959,10 +1959,10 @@ our @options = ( Note that to use this you will need to have the appropriate perl module, either Net::FTP or Net::SFTP installed depending on your choice. - "), + ` ), type => { - db_type =>"string", - hint =>"ftp|sftp", + db_type =>'string', + hint =>'ftp|sftp', pattern =>qr|^([tz])|i, format =>q( $1 =~ /^f/ ? "ftp" : "sftp" ) }, @@ -1972,11 +1972,11 @@ our @options = ( name => 'ZM_UPLOAD_FTP_HOST', default => '', description => 'The remote server to upload to', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates the name, or ip address, of the server to use. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{hostname}, category => 'hidden', @@ -1985,11 +1985,11 @@ our @options = ( name => 'ZM_UPLOAD_HOST', default => '', description => 'The remote server to upload events to', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the name, or ip address, of the server to use. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{hostname}, category => 'upload', @@ -1997,14 +1997,14 @@ our @options = ( { name => 'ZM_UPLOAD_PORT', default => '', - description => "The port on the remote upload server, if not the default (SFTP only)", - help => qqq(" + description => 'The port on the remote upload server, if not the default (SFTP only)', + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote server. If you are using the SFTP protocol then this option allows you to specify a particular port to use for connection. If this option is left blank then the default, port 22, is used. This option is ignored for FTP uploads. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{integer}, category => 'upload', @@ -2013,11 +2013,11 @@ our @options = ( name => 'ZM_UPLOAD_FTP_USER', default => '', description => 'Your ftp username', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates the username that ZoneMinder should use to log in for ftp transfer. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{alphanum}, category => 'hidden', @@ -2026,11 +2026,11 @@ our @options = ( name => 'ZM_UPLOAD_USER', default => '', description => 'Remote server username', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the username that ZoneMinder should use to log in for transfer. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{alphanum}, category => 'upload', @@ -2039,11 +2039,11 @@ our @options = ( name => 'ZM_UPLOAD_FTP_PASS', default => '', description => 'Your ftp password', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates the password that ZoneMinder should use to log in for ftp transfer. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{string}, category => 'hidden', @@ -2052,42 +2052,42 @@ our @options = ( name => 'ZM_UPLOAD_PASS', default => '', description => 'Remote server password', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the password that ZoneMinder should use to log in for transfer. If you are using certificate based logins for SFTP servers you can leave this option blank. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{string}, category => 'upload', }, { name => 'ZM_UPLOAD_FTP_LOC_DIR', - default => "@ZM_TMPDIR@", + default => '@ZM_TMPDIR@', description => 'The local directory in which to create upload files', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates the local directory that ZoneMinder should use for temporary upload files. These are files that are created from events, uploaded and then deleted. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{abs_path}, category => 'hidden', }, { name => 'ZM_UPLOAD_LOC_DIR', - default => "@ZM_TMPDIR@", + default => '@ZM_TMPDIR@', description => 'The local directory in which to create upload files', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the local directory that ZoneMinder should use for temporary upload files. These are files that are created from events, uploaded and then deleted. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{abs_path}, category => 'upload', @@ -2096,11 +2096,11 @@ our @options = ( name => 'ZM_UPLOAD_FTP_REM_DIR', default => '', description => 'The remote directory to upload to', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates the remote directory that ZoneMinder should use to upload event files to. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{rel_path}, category => 'hidden', @@ -2109,11 +2109,11 @@ our @options = ( name => 'ZM_UPLOAD_REM_DIR', default => '', description => 'The remote directory to upload to', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the remote directory that ZoneMinder should use to upload event files to. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{rel_path}, category => 'upload', @@ -2122,13 +2122,13 @@ our @options = ( name => 'ZM_UPLOAD_FTP_TIMEOUT', default => '120', description => 'How long to allow the transfer to take for each file', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates the maximum ftp inactivity timeout (in seconds) that should be tolerated before ZoneMinder determines that the transfer has failed and closes down the connection. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{integer}, category => 'hidden', @@ -2137,13 +2137,13 @@ our @options = ( name => 'ZM_UPLOAD_TIMEOUT', default => '120', description => 'How long to allow the transfer to take for each file', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote server. This option indicates the maximum inactivity timeout (in seconds) that should be tolerated before ZoneMinder determines that the transfer has failed and closes down the connection. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{integer}, category => 'upload', @@ -2152,13 +2152,13 @@ our @options = ( name => 'ZM_UPLOAD_STRICT', default => 'no', description => 'Require strict host key checking for SFTP uploads', - help => qqq(" + help => qqq( q` You can require SFTP uploads to verify the host key of the remote server for protection against man-in-the-middle attacks. You will need to add the server's key to the known_hosts file. On most systems, this will be ~/.ssh/known_hosts, where ~ is the home directory of the web server running ZoneMinder. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{boolean}, category => 'upload', @@ -2167,21 +2167,21 @@ our @options = ( name => 'ZM_UPLOAD_FTP_PASSIVE', default => 'yes', description => 'Use passive ftp when uploading', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote ftp server. This option indicates that ftp transfers should be done in passive mode. This uses a single connection for all ftp activity and, whilst slower than active transfers, is more robust and likely to work from behind filewalls. This option is ignored for SFTP transfers. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], - help => qqq(" + help => qqq( q` If your computer is behind a firewall or proxy you may need to set FTP to passive mode. In fact for simple transfers it makes little sense to do otherwise anyway but you can set this to 'No' if you wish. - "), + ` ), type => $types{boolean}, category => 'upload', }, @@ -2189,12 +2189,12 @@ our @options = ( name => 'ZM_UPLOAD_FTP_DEBUG', default => 'no', description => 'Switch ftp debugging on', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote ftp server. If you are having (or expecting) troubles with uploading events then setting this to 'yes' permits additional information to be included in the zmfilter log file. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{boolean}, category => 'hidden', @@ -2203,13 +2203,13 @@ our @options = ( name => 'ZM_UPLOAD_DEBUG', default => 'no', description => 'Switch upload debugging on', - help => qqq(" + help => qqq( q` You can use filters to instruct ZoneMinder to upload events to a remote server. If you are having (or expecting) troubles with uploading events then setting this to 'yes' permits additional information to be generated by the underlying transfer modules and included in the logs. - "), + ` ), requires => [ { name => 'ZM_OPT_UPLOAD', value => 'yes' } ], type => $types{boolean}, category => 'upload', @@ -2218,7 +2218,7 @@ our @options = ( name => 'ZM_OPT_EMAIL', default => 'no', description => 'Should ZoneMinder email you details of events that match corresponding filters', - help => qqq(" + help => qqq( q` In ZoneMinder you can create event filters that specify whether events that match certain criteria should have their details emailed to you at a designated email address. This will allow @@ -2227,7 +2227,7 @@ our @options = ( this functionality should be available. The email created with this option can be any size and is intended to be sent to a regular email reader rather than a mobile device. - "), + ` ), type => $types{boolean}, category => 'mail', }, @@ -2236,10 +2236,10 @@ our @options = ( default => '', description => 'The email address to send matching event details to', requires => [ { name => 'ZM_OPT_EMAIL', value => 'yes' } ], - help => qqq(" + help => qqq( q` This option is used to define the email address that any events that match the appropriate filters will be sent to. - "), + ` ), type => $types{email}, category => 'mail', }, @@ -2264,28 +2264,28 @@ our @options = ( ZoneMinder"', description => 'The text of the email used to send matching event details', requires => [ { name => 'ZM_OPT_EMAIL', value => 'yes' } ], - help => qqq(" + help => qqq( q` This option is used to define the content of the email that is sent for any events that match the appropriate filters. - "), + ` ), type => $types{text}, category => 'hidden', }, { name => 'ZM_EMAIL_SUBJECT', - default => "ZoneMinder: Alarm - %MN%-%EI% (%ESM% - %ESA% %EFA%)", + default => 'ZoneMinder: Alarm - %MN%-%EI% (%ESM% - %ESA% %EFA%)', description => 'The subject of the email used to send matching event details', requires => [ { name => 'ZM_OPT_EMAIL', value => 'yes' } ], - help => qqq(" + help => qqq( q` This option is used to define the subject of the email that is sent for any events that match the appropriate filters. - "), + ` ), type => $types{string}, category => 'mail', }, { name => 'ZM_EMAIL_BODY', - default => " + default => ' Hello, An alarm has been detected on your installation of the ZoneMinder. @@ -2300,13 +2300,13 @@ our @options = ( This alarm was matched by the %FN% filter and can be viewed at %EPS% - ZoneMinder", + ZoneMinder', description => 'The body of the email used to send matching event details', requires => [ { name => 'ZM_OPT_EMAIL', value => 'yes' } ], - help => qqq(" + help => qqq( q` This option is used to define the content of the email that is sent for any events that match the appropriate filters. - "), + ` ), type => $types{text}, category => 'mail', }, @@ -2314,7 +2314,7 @@ our @options = ( name => 'ZM_OPT_MESSAGE', default => 'no', description => 'Should ZoneMinder message you with details of events that match corresponding filters', - help => qqq(" + help => qqq( q` In ZoneMinder you can create event filters that specify whether events that match certain criteria should have their details sent to you at a designated short message email address. This @@ -2324,7 +2324,7 @@ our @options = ( is intended to be sent to an SMS gateway or a minimal mail reader such as a mobile device or phone rather than a regular email reader. - "), + ` ), type => $types{boolean}, category => 'mail', }, @@ -2333,11 +2333,11 @@ our @options = ( default => '', description => 'The email address to send matching event details to', requires => [ { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], - help => qqq(" + help => qqq( q` This option is used to define the short message email address that any events that match the appropriate filters will be sent to. - "), + ` ), type => $types{email}, category => 'mail', }, @@ -2347,34 +2347,34 @@ our @options = ( body = "ZM alarm detected - %EL% secs, %EF%/%EFA% frames, t%EST%/m%ESM%/a%ESA% score."', description => 'The text of the message used to send matching event details', requires => [ { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], - help => qqq(" + help => qqq( q` This option is used to define the content of the message that is sent for any events that match the appropriate filters. - "), + ` ), type => $types{text}, category => 'hidden', }, { name => 'ZM_MESSAGE_SUBJECT', - default => "ZoneMinder: Alarm - %MN%-%EI%", + default => 'ZoneMinder: Alarm - %MN%-%EI%', description => 'The subject of the message used to send matching event details', requires => [ { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], - help => qqq(" + help => qqq( q` This option is used to define the subject of the message that is sent for any events that match the appropriate filters. - "), + ` ), type => $types{string}, category => 'mail', }, { name => 'ZM_MESSAGE_BODY', - default => "ZM alarm detected - %EL% secs, %EF%/%EFA% frames, t%EST%/m%ESM%/a%ESA% score.", + default => 'ZM alarm detected - %EL% secs, %EF%/%EFA% frames, t%EST%/m%ESM%/a%ESA% score.', description => 'The body of the message used to send matching event details', requires => [ { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], - help => qqq(" + help => qqq( q` This option is used to define the content of the message that is sent for any events that match the appropriate filters. - "), + ` ), type => $types{text}, category => 'mail', }, @@ -2386,7 +2386,7 @@ our @options = ( { name => 'ZM_OPT_EMAIL', value => 'yes' }, { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], - help => qqq(" + help => qqq( q` Traditionally ZoneMinder has used the MIME::Entity perl module to construct and send notification emails and messages. Some people have reported problems with this module not being @@ -2396,7 +2396,7 @@ our @options = ( method was contributed by Ross Melin and should work for everyone but has not been extensively tested so currently is not selected by default. - "), + ` ), type => $types{boolean}, category => 'mail', }, @@ -2408,14 +2408,14 @@ our @options = ( { name => 'ZM_OPT_EMAIL', value => 'yes' }, { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], - help => qqq(" + help => qqq( q` If you have chosen SMTP as the method by which to send notification emails or messages then this option allows you to choose which SMTP server to use to send them. The default of localhost may work if you have the sendmail, exim or a similar daemon running however you may wish to enter your ISP's SMTP mail server here. - "), + ` ), type => $types{hostname}, category => 'mail', }, @@ -2427,12 +2427,12 @@ our @options = ( { name => 'ZM_OPT_EMAIL', value => 'yes' }, { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], - help => qqq(" + help => qqq( q` The emails or messages that will be sent to you informing you of events can appear to come from a designated email address to help you with mail filtering etc. An address of something like ZoneMinder\@your.domain is recommended. - "), + ` ), type => $types{email}, category => 'mail', }, @@ -2444,21 +2444,21 @@ our @options = ( { name => 'ZM_OPT_EMAIL', value => 'yes' }, { name => 'ZM_OPT_MESSAGE', value => 'yes' } ], - help => qqq(" + help => qqq( q` The emails or messages that will be sent to you informing you of events can include a link to the events themselves for easy viewing. If you intend to use this feature then set this option to the url of your installation as it would appear from where you read your email, e.g. http://host.your.domain/zm.php. - "), + ` ), type => $types{url}, category => 'mail', }, { name => 'ZM_MAX_RESTART_DELAY', default => '600', - description => "Maximum delay (in seconds) for daemon restart attempts.", - help => qqq(" + description => 'Maximum delay (in seconds) for daemon restart attempts.', + help => qqq( q` The zmdc (zm daemon control) process controls when processeses are started or stopped and will attempt to restart any that fail. If a daemon fails frequently then a delay is introduced @@ -2466,7 +2466,7 @@ our @options = ( this delay is increased to prevent extra load being placed on the system by continual restarts. This option controls what this maximum delay is. - "), + ` ), type => $types{integer}, category => 'system', }, @@ -2474,12 +2474,12 @@ our @options = ( name => 'ZM_WATCH_CHECK_INTERVAL', default => '10', description => 'How often to check the capture daemons have not locked up', - help => qqq(" + help => qqq( q` The zmwatch daemon checks the image capture performance of the capture daemons to ensure that they have not locked up (rarely a sync error may occur which blocks indefinitely). This option determines how often the daemons are checked. - "), + ` ), type => $types{integer}, category => 'system', }, @@ -2487,7 +2487,7 @@ our @options = ( name => 'ZM_WATCH_MAX_DELAY', default => '5', description => 'The maximum delay allowed since the last captured image', - help => qqq(" + help => qqq( q` The zmwatch daemon checks the image capture performance of the capture daemons to ensure that they have not locked up (rarely a sync error may occur which blocks indefinitely). This option @@ -2496,7 +2496,7 @@ our @options = ( images after this period though the actual restart may take slightly longer in conjunction with the check interval value above. - "), + ` ), type => $types{decimal}, category => 'system', }, @@ -2505,7 +2505,7 @@ our @options = ( name => 'ZM_RUN_AUDIT', default => 'yes', description => 'Run zmaudit to check data consistency', - help => qqq(" + help => qqq( q` The zmaudit daemon exists to check that the saved information in the database and on the filesystem match and are consistent with each other. If an error occurs or if you are using 'fast @@ -2520,7 +2520,7 @@ our @options = ( case you may prefer to not have zmaudit running unconditionally and schedule occasional checks at other, more convenient, times. - "), + ` ), type => $types{boolean}, category => 'system', }, @@ -2528,7 +2528,7 @@ our @options = ( name => 'ZM_AUDIT_CHECK_INTERVAL', default => '900', description => 'How often to check database and filesystem consistency', - help => qqq(" + help => qqq( q` The zmaudit daemon exists to check that the saved information in the database and on the filesystem match and are consistent with each other. If an error occurs or if you are using 'fast @@ -2542,20 +2542,20 @@ our @options = ( to make this interval much larger to reduce the impact on your system. This option determines how often these checks are performed. - "), + ` ), type => $types{integer}, category => 'system', }, { name => 'ZM_AUDIT_MIN_AGE', default => '86400', - description => "The minimum age in seconds event data must be in order to be deleted.", - help => qqq(" + description => 'The minimum age in seconds event data must be in order to be deleted.', + help => qqq( q` The zmaudit daemon exists to check that the saved information in the database and on the filesystem match and are consistent with each other. Event files or db records that are younger than this setting will not be deleted and a warning will be given. - "), + ` ), type => $types{integer}, category => 'system', }, @@ -2563,12 +2563,12 @@ our @options = ( name => 'ZM_FORCED_ALARM_SCORE', default => '255', description => 'Score to give forced alarms', - help => qqq(" + help => qqq( q` The 'zmu' utility can be used to force an alarm on a monitor rather than rely on the motion detection algorithms. This option determines what score to give these alarms to distinguish them from regular ones. It must be 255 or less. - "), + ` ), type => $types{integer}, category => 'config', }, @@ -2576,7 +2576,7 @@ our @options = ( name => 'ZM_BULK_FRAME_INTERVAL', default => '100', description => 'How often a bulk frame should be written to the database', - help => qqq(" + help => qqq( q` Traditionally ZoneMinder writes an entry into the Frames database table for each frame that is captured and saved. This works well in motion detection scenarios but when in a DVR @@ -2590,15 +2590,15 @@ our @options = ( constant frame rate situations this is usually not significant. This setting is ignored in Modect mode and individual frames are still written if an alarm occurs in Mocord mode also. - "), + ` ), type => $types{integer}, category => 'config', }, { name => 'ZM_EVENT_CLOSE_MODE', default => 'idle', - description => "When continuous events are closed.", - help => qqq(" + description => 'When continuous events are closed.', + help => qqq( q` When a monitor is running in a continuous recording mode (Record or Mocord) events are usually closed after a fixed period of time (the section length). However in Mocord mode it @@ -2616,11 +2616,11 @@ our @options = ( effect of limiting the number of alarms to one per event and the events will be shorter than the section length if an alarm has occurred. - "), + ` ), type => $types{boolean}, type => { - db_type =>"string", - hint =>"time|idle|alarm", + db_type =>'string', + hint =>'time|idle|alarm', pattern =>qr|^([tia])|i, format =>q( ($1 =~ /^t/) ? "time" @@ -2633,8 +2633,8 @@ our @options = ( { name => 'ZM_FORCE_CLOSE_EVENTS', default => 'no', - description => "Close events at section ends.", - help => qqq(" + description => 'Close events at section ends.', + help => qqq( q` When a monitor is running in a continuous recording mode (Record or Mocord) events are usually closed after a fixed period of time (the section length). However in Mocord mode it @@ -2643,7 +2643,7 @@ our @options = ( until the motion has ceased. Switching this option on will force the event closed at the specified time regardless of any motion activity. - "), + ` ), type => $types{boolean}, category => 'hidden', }, @@ -2651,7 +2651,7 @@ our @options = ( name => 'ZM_CREATE_ANALYSIS_IMAGES', default => 'yes', description => 'Create analysed alarm images with motion outlined', - help => qqq(" + help => qqq( q` By default during an alarm ZoneMinder records both the raw captured image and one that has been analysed and had areas where motion was detected outlined. This can be very useful @@ -2659,7 +2659,7 @@ our @options = ( However it also incurs some overhead and in a stable system may no longer be necessary. This parameter allows you to switch the generation of these images off. - "), + ` ), type => $types{boolean}, category => 'config', }, @@ -2667,7 +2667,7 @@ our @options = ( name => 'ZM_WEIGHTED_ALARM_CENTRES', default => 'no', description => 'Use a weighted algorithm to calculate the centre of an alarm', - help => qqq(" + help => qqq( q` ZoneMinder will always calculate the centre point of an alarm in a zone to give some indication of where on the screen it is. This can be used by the experimental motion tracking feature or @@ -2677,7 +2677,7 @@ our @options = ( calculated using weighted pixel locations to give more accurate positioning for irregularly shaped blobs. This method, while more precise is also slower and so is turned off by default. - "), + ` ), type => $types{boolean}, category => 'config', }, @@ -2685,7 +2685,7 @@ our @options = ( name => 'ZM_EVENT_IMAGE_DIGITS', default => '5', description => 'How many significant digits are used in event image numbering', - help => qqq(" + help => qqq( q` As event images are captured they are stored to the filesystem with a numerical index. By default this index has three digits so the numbers start 001, 002 etc. This works works for most @@ -2697,15 +2697,15 @@ our @options = ( events unviewable as the event will have been saved with the previous scheme. Decreasing this value should have no ill effects. - "), + ` ), type => $types{integer}, category => 'config', }, { name => 'ZM_DEFAULT_ASPECT_RATIO', - default => "4:3", - description => "The default width:height aspect ratio used in monitors", - help => qqq(" + default => '4:3', + description => 'The default width:height aspect ratio used in monitors', + help => qqq( q` When specifying the dimensions of monitors you can click a checkbox to ensure that the width stays in the correct ratio to the height, or vice versa. This setting allows you to indicate @@ -2714,7 +2714,7 @@ our @options = ( default of 4:3 normally be acceptable but 11:9 is another common setting. If the checkbox is not clicked when specifying monitor dimensions this setting has no effect. - "), + ` ), type => $types{string}, category => 'config', }, @@ -2722,26 +2722,26 @@ our @options = ( name => 'ZM_USER_SELF_EDIT', default => 'no', description => 'Allow unprivileged users to change their details', - help => qqq(" + help => qqq( q` Ordinarily only users with system edit privilege are able to change users details. Switching this option on allows ordinary users to change their passwords and their language settings - "), + ` ), type => $types{boolean}, category => 'config', }, { name => 'ZM_OPT_CONTROL', default => 'no', - description => "Support controllable (e.g. PTZ) cameras", - help => qqq(" + description => 'Support controllable (e.g. PTZ) cameras', + help => qqq( q` ZoneMinder includes limited support for controllable cameras. A number of sample protocols are included and others can easily be added. If you wish to control your cameras via ZoneMinder then select this option otherwise if you only have static cameras or use other control methods then leave this option off. - "), + ` ), type => $types{boolean}, category => 'system', }, @@ -2749,20 +2749,20 @@ our @options = ( name => 'ZM_OPT_TRIGGERS', default => 'no', description => 'Interface external event triggers via socket or device files', - help => qqq(" + help => qqq( q` ZoneMinder can interact with external systems which prompt or cancel alarms. This is done via the zmtrigger.pl script. This option indicates whether you want to use these external triggers. Most people will say no here. - "), + ` ), type => $types{boolean}, category => 'system', }, { name => 'ZM_CHECK_FOR_UPDATES', default => 'yes', - description => "Check with zoneminder.com for updated versions", - help => qqq(" + description => 'Check with zoneminder.com for updated versions', + help => qqq( q` From ZoneMinder version 1.17.0 onwards new versions are expected to be more frequent. To save checking manually for each new version ZoneMinder can check with the zoneminder.com @@ -2772,7 +2772,7 @@ our @options = ( number. If you do not wish these checks to take place or your ZoneMinder system has no internet access you can switch these check off with this configuration variable - "), + ` ), type => $types{boolean}, category => 'system', }, @@ -2780,7 +2780,7 @@ our @options = ( name => 'ZM_TELEMETRY_DATA', default => 'yes', description => 'Send usage information to ZoneMinder', - help => qqq(" + help => qqq( q` Enable collection of usage information of the local system and send it to the ZoneMinder development team. This data will be used to determine things like who and where our customers are, how big their @@ -2789,7 +2789,7 @@ our @options = ( product for our target audience. This script is intended to be completely transparent to the end user, and can be disabled from the web console under Options. - "), + ` ), type => $types{boolean}, category => 'system', }, @@ -2797,11 +2797,11 @@ our @options = ( name => 'ZM_TELEMETRY_UUID', default => '', description => 'Unique identifier for ZoneMinder telemetry', - help => qqq(" + help => qqq( q` This variable is auto-generated once by the system and is used to uniquely identify it among all other ZoneMinder systems in existence. - "), + ` ), type => $types{string}, category => 'dynamic', }, @@ -2817,13 +2817,13 @@ our @options = ( { name => 'ZM_UPDATE_CHECK_PROXY', default => '', - description => "Proxy url if required to access zoneminder.com", - help => qqq(" + description => 'Proxy url if required to access zoneminder.com', + help => qqq( q` If you use a proxy to access the internet then ZoneMinder needs to know so it can access zoneminder.com to check for updates. If you do use a proxy enter the full proxy url here in the form of http://:/ - "), + ` ), type => $types{string}, category => 'system', }, @@ -2831,7 +2831,7 @@ our @options = ( name => 'ZM_SHM_KEY', default => '0x7a6d0000', description => 'Shared memory root key to use', - help => qqq(" + help => qqq( q` ZoneMinder uses shared memory to speed up communication between modules. To identify the right area to use shared memory keys are used. This option controls what the base key is, each @@ -2840,7 +2840,7 @@ our @options = ( clashes with another instance of ZoneMinder on the same machine. Only the first four hex digits are used, the lower four will be masked out and ignored. - "), + ` ), type => $types{hexadecimal}, category => 'system', }, @@ -2849,7 +2849,7 @@ our @options = ( name => 'ZM_WEB_REFRESH_METHOD', default => 'javascript', description => 'What method windows should use to refresh themselves', - help => qqq(" + help => qqq( q` Many windows in Javascript need to refresh themselves to keep their information current. This option determines what method they should use to do this. Choosing 'javascript' means that @@ -2860,10 +2860,10 @@ our @options = ( interrupted or cancelled when a link in the window is clicked meaning that the window will no longer refresh and this would have to be done manually. - "), + ` ), type => { - db_type =>"string", - hint =>"javascript|http", + db_type =>'string', + hint =>'javascript|http', pattern =>qr|^([jh])|i, format =>q( $1 =~ /^j/ ? "javascript" @@ -2876,17 +2876,17 @@ our @options = ( name => 'ZM_WEB_EVENT_SORT_FIELD', default => 'DateTime', description => 'Default field the event lists are sorted by', - help => qqq(" + help => qqq( q` Events in lists can be initially ordered in any way you want. This option controls what field is used to sort them. You can modify this ordering from filters or by clicking on headings in the lists themselves. Bear in mind however that the 'Prev' and 'Next' links, when scrolling through events, relate to the ordering in the lists and so not always to time based ordering. - "), + ` ), type => { - db_type =>"string", - hint =>"Id|Name|Cause|MonitorName|DateTime|Length|Frames|AlarmFrames|TotScore|AvgScore|MaxScore", + db_type =>'string', + hint =>'Id|Name|Cause|MonitorName|DateTime|Length|Frames|AlarmFrames|TotScore|AvgScore|MaxScore', pattern =>qr|.|, format =>q( $1 ) }, @@ -2896,7 +2896,7 @@ our @options = ( name => 'ZM_WEB_EVENT_SORT_ORDER', default => 'asc', description => 'Default order the event lists are sorted by', - help => qqq(" + help => qqq( q` Events in lists can be initially ordered in any way you want. This option controls what order (ascending or descending) is used to sort them. You can modify this ordering from filters or @@ -2904,12 +2904,12 @@ our @options = ( however that the 'Prev' and 'Next' links, when scrolling through events, relate to the ordering in the lists and so not always to time based ordering. - "), + ` ), type => { - db_type =>"string", - hint =>"asc|desc", + db_type =>'string', + hint =>'asc|desc', pattern =>qr|^([ad])|i, - format =>q( $1 =~ /^a/i ? "asc" : "desc" ) + format =>q( $1 =~ /^a/i ? 'asc' : 'desc' ) }, category => 'web', }, @@ -2917,26 +2917,26 @@ our @options = ( name => 'ZM_WEB_EVENTS_PER_PAGE', default => '25', description => 'How many events to list per page in paged mode', - help => qqq(" + help => qqq( q` In the event list view you can either list all events or just a page at a time. This option controls how many events are listed per page in paged mode and how often to repeat the column headers in non-paged mode. - "), + ` ), type => $types{integer}, category => 'web', }, { name => 'ZM_WEB_LIST_THUMBS', default => 'no', - description => "Display mini-thumbnails of event images in event lists", - help => qqq(" + description => 'Display mini-thumbnails of event images in event lists', + help => qqq( q` Ordinarily the event lists just display text details of the events to save space and time. By switching this option on you can also display small thumbnails to help you identify events of interest. The size of these thumbnails is controlled by the following two options. - "), + ` ), type => $types{boolean}, category => 'web', }, @@ -2944,7 +2944,7 @@ our @options = ( name => 'ZM_WEB_LIST_THUMB_WIDTH', default => '48', description => 'The width of the thumbnails that appear in the event lists', - help => qqq(" + help => qqq( q` This options controls the width of the thumbnail images that appear in the event lists. It should be fairly small to fit in with the rest of the table. If you prefer you can specify a @@ -2952,7 +2952,7 @@ our @options = ( of the width or height and the other option should be set to zero. If both width and height are specified then width will be used and height ignored. - "), + ` ), type => $types{integer}, requires => [ { name => 'ZM_WEB_LIST_THUMBS', value => 'yes' } ], category => 'web', @@ -2961,7 +2961,7 @@ our @options = ( name => 'ZM_WEB_LIST_THUMB_HEIGHT', default => '0', description => 'The height of the thumbnails that appear in the event lists', - help => qqq(" + help => qqq( q` This options controls the height of the thumbnail images that appear in the event lists. It should be fairly small to fit in with the rest of the table. If you prefer you can specify a @@ -2969,7 +2969,7 @@ our @options = ( one of the width or height and the other option should be set to zero. If both width and height are specified then width will be used and height ignored. - "), + ` ), type => $types{integer}, requires => [ { name => 'ZM_WEB_LIST_THUMBS', value => 'yes' } ], category => 'web', @@ -2978,7 +2978,7 @@ our @options = ( name => 'ZM_WEB_USE_OBJECT_TAGS', default => 'yes', description => 'Wrap embed in object tags for media content', - help => qqq(" + help => qqq( q` There are two methods of including media content in web pages. The most common way is use the EMBED tag which is able to give some indication of the type of content. However this is not a @@ -2993,14 +2993,14 @@ our @options = ( circumstances but they may become more widespread in the future. It is suggested that you leave this option on unless you encounter problems playing some content. - "), + ` ), type => $types{boolean}, category => 'web', }, { name => 'ZM_WEB_H_REFRESH_MAIN', default => '60', - introduction => qqq(" + introduction => qqq( q` There are now a number of options that are grouped into bandwidth categories, this allows you to configure the ZoneMinder client to work optimally over the various access @@ -3010,63 +3010,63 @@ our @options = ( the ZoneMinder client over a local network or high speed link. In most cases the default values will be suitable as a starting point. - "), - description => "How often (in seconds) the main console window should refresh itself", - help => qqq(" + ` ), + description => 'How often (in seconds) the main console window should refresh itself', + help => qqq( q` The main console window lists a general status and the event totals for all monitors. This is not a trivial task and should not be repeated too frequently or it may affect the performance of the rest of the system. - "), + ` ), type => $types{integer}, category => 'highband', }, { name => 'ZM_WEB_H_REFRESH_CYCLE', default => '10', - description => "How often (in seconds) the cycle watch window swaps to the next monitor", - help => qqq(" + description => 'How often (in seconds) the cycle watch window swaps to the next monitor', + help => qqq( q` The cycle watch window is a method of continuously cycling between images from all of your monitors. This option determines how often to refresh with a new image. - "), + ` ), type => $types{integer}, category => 'highband', }, { name => 'ZM_WEB_H_REFRESH_IMAGE', default => '3', - description => "How often (in seconds) the watched image is refreshed (if not streaming)", - help => qqq(" + description => 'How often (in seconds) the watched image is refreshed (if not streaming)', + help => qqq( q` The live images from a monitor can be viewed in either streamed or stills mode. This option determines how often a stills image is refreshed, it has no effect if streaming is selected. - "), + ` ), type => $types{integer}, category => 'highband', }, { name => 'ZM_WEB_H_REFRESH_STATUS', default => '1', - description => "How often (in seconds) the status refreshes itself in the watch window", - help => qqq(" + description => 'How often (in seconds) the status refreshes itself in the watch window', + help => qqq( q` The monitor window is actually made from several frames. The one in the middle merely contains a monitor status which needs to refresh fairly frequently to give a true indication. This option determines that frequency. - "), + ` ), type => $types{integer}, category => 'highband', }, { name => 'ZM_WEB_H_REFRESH_EVENTS', default => '5', - description => "How often (in seconds) the event listing is refreshed in the watch window", - help => qqq(" + description => 'How often (in seconds) the event listing is refreshed in the watch window', + help => qqq( q` The monitor window is actually made from several frames. The lower framme contains a listing of the last few events for easy access. This option determines how often this is refreshed. - "), + ` ), type => $types{integer}, category => 'highband', }, @@ -3074,7 +3074,7 @@ our @options = ( name => 'ZM_WEB_H_CAN_STREAM', default => 'auto', description => 'Override the automatic detection of browser streaming capability', - help => qqq(" + help => qqq( q` If you know that your browser can handle image streams of the type 'multipart/x-mixed-replace' but ZoneMinder does not detect this correctly you can set this option to ensure that the @@ -3082,15 +3082,15 @@ our @options = ( plugin. Selecting 'yes' will tell ZoneMinder that your browser can handle the streams natively, 'no' means that it can't and so the plugin will be used while 'auto' lets ZoneMinder decide. - "), + ` ), type => $types{tristate}, category => 'highband', }, { name => 'ZM_WEB_H_STREAM_METHOD', default => 'jpeg', - description => "Which method should be used to send video streams to your browser.", - help => qqq(" + description => 'Which method should be used to send video streams to your browser.', + help => qqq( q` ZoneMinder can be configured to use either mpeg encoded video or a series or still jpeg images when sending video streams. This option defines which is used. If you choose mpeg you @@ -3098,20 +3098,20 @@ our @options = ( on your browser whereas choosing jpeg will work natively on Mozilla and related browsers and with a Java applet on Internet Explorer - "), + ` ), type => { - db_type =>"string", - hint =>"mpeg|jpeg", + db_type =>'string', + hint =>'mpeg|jpeg', pattern =>qr|^([mj])|i, - format =>q( $1 =~ /^m/ ? "mpeg" : "jpeg" ) + format =>q( $1 =~ /^m/ ? 'mpeg' : 'jpeg' ) }, category => 'highband', }, { name => 'ZM_WEB_H_DEFAULT_SCALE', default => '100', - description => "What the default scaling factor applied to 'live' or 'event' views is (%)", - help => qqq(" + description => 'What the default scaling factor applied to \'live\' or \'event\' views is (%)', + help => qqq( q` Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, @@ -3119,10 +3119,10 @@ our @options = ( options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc. - "), + ` ), type => { - db_type =>"integer", - hint =>"25|33|50|75|100|150|200|300|400", + db_type =>'integer', + hint =>'25|33|50|75|100|150|200|300|400', pattern =>qr|^(\d+)$|, format =>q( $1 ) }, @@ -3131,18 +3131,18 @@ our @options = ( { name => 'ZM_WEB_H_DEFAULT_RATE', default => '100', - description => "What the default replay rate factor applied to 'event' views is (%)", - help => qqq(" + description => 'What the default replay rate factor applied to \'event\' views is (%)', + help => qqq( q` Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc. - "), + ` ), type => { - db_type =>"integer", - hint =>"25|50|100|150|200|400|1000|2500|5000|10000", + db_type =>'integer', + hint =>'25|50|100|150|200|400|1000|2500|5000|10000', pattern =>qr|^(\d+)$|, format =>q( $1 ) }, @@ -3152,7 +3152,7 @@ our @options = ( name => 'ZM_WEB_H_VIDEO_BITRATE', default => '150000', description => 'What the bitrate of the video encoded stream should be set to', - help => qqq(" + help => qqq( q` When encoding real video via the ffmpeg library a bit rate can be specified which roughly corresponds to the available bandwidth used for the stream. This setting effectively @@ -3164,7 +3164,7 @@ our @options = ( that the video is produced at. A higher frame rate at a particular bit rate result in individual frames being at a lower quality. - "), + ` ), type => $types{integer}, category => 'highband', }, @@ -3172,7 +3172,7 @@ our @options = ( name => 'ZM_WEB_H_VIDEO_MAXFPS', default => '30', description => 'What the maximum frame rate for streamed video should be', - help => qqq(" + help => qqq( q` When using streamed video the main control is the bitrate which determines how much data can be transmitted. However a lower bitrate at high frame rates results in a lower quality image. @@ -3187,15 +3187,15 @@ our @options = ( option to 10fps then the video is not produced at 10fps, but rather at 7.5fps (15 divided by 2) as the final frame rate must be the original divided by a power of 2. - "), + ` ), type => $types{integer}, category => 'highband', }, { name => 'ZM_WEB_H_SCALE_THUMBS', default => 'no', - description => "Scale thumbnails in events, bandwidth versus cpu in rescaling", - help => qqq(" + description => 'Scale thumbnails in events, bandwidth versus cpu in rescaling', + help => qqq( q` If unset, this option sends the whole image to the browser which resizes it in the window. If set the image is scaled down on the server before sending a reduced size image to the @@ -3203,34 +3203,34 @@ our @options = ( Note that ZM can only perform the resizing if the appropriate PHP graphics functionality is installed. This is usually available in the php-gd package. - "), + ` ), type => $types{boolean}, category => 'highband', }, { name => 'ZM_WEB_H_EVENTS_VIEW', default => 'events', - description => "What the default view of multiple events should be.", - help => qqq(" + description => 'What the default view of multiple events should be.', + help => qqq( q` Stored events can be viewed in either an events list format or in a timeline based one. This option sets the default view that will be used. Choosing one view here does not prevent the other view being used as it will always be selectable from whichever view is currently being used. - "), + ` ), type => { - db_type =>"string", - hint =>"events|timeline", + db_type =>'string', + hint =>'events|timeline', pattern =>qr|^([lt])|i, - format =>q( $1 =~ /^e/ ? "events" : "timeline" ) + format =>q( $1 =~ /^e/ ? 'events' : 'timeline' ) }, category => 'highband', }, { name => 'ZM_WEB_H_SHOW_PROGRESS', default => 'yes', - description => "Show the progress of replay in event view.", - help => qqq(" + description => 'Show the progress of replay in event view.', + help => qqq( q` When viewing events an event navigation panel and progress bar is shown below the event itself. This allows you to jump to specific points in the event, but can can also dynamically @@ -3241,15 +3241,15 @@ our @options = ( replay. This option allows you to turn off the progress display, whilst still keeping the navigation aspect, where bandwidth prevents it functioning effectively. - "), + ` ), type => $types{boolean}, category => 'highband', }, { name => 'ZM_WEB_H_AJAX_TIMEOUT', default => '3000', - description => "How long to wait for Ajax request responses (ms)", - help => qqq(" + description => 'How long to wait for Ajax request responses (ms)', + help => qqq( q` The newer versions of the live feed and event views use Ajax to request information from the server and populate the views dynamically. This option allows you to specify a timeout if @@ -3260,76 +3260,76 @@ our @options = ( should timeout so this setting should be set to a value greater than the slowest expected response. This value is in milliseconds but if set to zero then no timeout will be used. - "), + ` ), type => $types{integer}, category => 'highband', }, { name => 'ZM_WEB_M_REFRESH_MAIN', default => '300', - description => "How often (in seconds) the main console window should refresh itself", - help => qqq(" + description => 'How often (in seconds) the main console window should refresh itself', + help => qqq( q` The main console window lists a general status and the event totals for all monitors. This is not a trivial task and should not be repeated too frequently or it may affect the performance of the rest of the system. - "), + ` ), type => $types{integer}, - introduction => qqq(" + introduction => qqq( q` The next few options control what happens when the client is running in 'medium' bandwidth mode. You should set these options for when accessing the ZoneMinder client over a slower cable or DSL link. In most cases the default values will be suitable as a starting point. - "), + ` ), category => 'medband', }, { name => 'ZM_WEB_M_REFRESH_CYCLE', default => '20', - description => "How often (in seconds) the cycle watch window swaps to the next monitor", - help => qqq(" + description => 'How often (in seconds) the cycle watch window swaps to the next monitor', + help => qqq( q` The cycle watch window is a method of continuously cycling between images from all of your monitors. This option determines how often to refresh with a new image. - "), + ` ), type => $types{integer}, category => 'medband', }, { name => 'ZM_WEB_M_REFRESH_IMAGE', default => '10', - description => "How often (in seconds) the watched image is refreshed (if not streaming)", - help => qqq(" + description => 'How often (in seconds) the watched image is refreshed (if not streaming)', + help => qqq( q` The live images from a monitor can be viewed in either streamed or stills mode. This option determines how often a stills image is refreshed, it has no effect if streaming is selected. - "), + ` ), type => $types{integer}, category => 'medband', }, { name => 'ZM_WEB_M_REFRESH_STATUS', default => '5', - description => "How often (in seconds) the status refreshes itself in the watch window", - help => qqq(" + description => 'How often (in seconds) the status refreshes itself in the watch window', + help => qqq( q` The monitor window is actually made from several frames. The one in the middle merely contains a monitor status which needs to refresh fairly frequently to give a true indication. This option determines that frequency. - "), + ` ), type => $types{integer}, category => 'medband', }, { name => 'ZM_WEB_M_REFRESH_EVENTS', default => '60', - description => "How often (in seconds) the event listing is refreshed in the watch window", - help => qqq(" + description => 'How often (in seconds) the event listing is refreshed in the watch window', + help => qqq( q` The monitor window is actually made from several frames. The lower framme contains a listing of the last few events for easy access. This option determines how often this is refreshed. - "), + ` ), type => $types{integer}, category => 'medband', }, @@ -3337,7 +3337,7 @@ our @options = ( name => 'ZM_WEB_M_CAN_STREAM', default => 'auto', description => 'Override the automatic detection of browser streaming capability', - help => qqq(" + help => qqq( q` If you know that your browser can handle image streams of the type 'multipart/x-mixed-replace' but ZoneMinder does not detect this correctly you can set this option to ensure that the @@ -3345,15 +3345,15 @@ our @options = ( plugin. Selecting 'yes' will tell ZoneMinder that your browser can handle the streams natively, 'no' means that it can't and so the plugin will be used while 'auto' lets ZoneMinder decide. - "), + ` ), type => $types{tristate}, category => 'medband', }, { name => 'ZM_WEB_M_STREAM_METHOD', default => 'jpeg', - description => "Which method should be used to send video streams to your browser.", - help => qqq(" + description => 'Which method should be used to send video streams to your browser.', + help => qqq( q` ZoneMinder can be configured to use either mpeg encoded video or a series or still jpeg images when sending video streams. This option defines which is used. If you choose mpeg you @@ -3361,20 +3361,20 @@ our @options = ( on your browser whereas choosing jpeg will work natively on Mozilla and related browsers and with a Java applet on Internet Explorer - "), + ` ), type => { - db_type =>"string", - hint =>"mpeg|jpeg", + db_type =>'string', + hint =>'mpeg|jpeg', pattern =>qr|^([mj])|i, - format =>q( $1 =~ /^m/ ? "mpeg" : "jpeg" ) + format =>q( $1 =~ /^m/ ? 'mpeg' : 'jpeg' ) }, category => 'medband', }, { name => 'ZM_WEB_M_DEFAULT_SCALE', default => '100', - description => "What the default scaling factor applied to 'live' or 'event' views is (%)", - help => qqq(" + description => 'What the default scaling factor applied to \'live\' or \'event\' views is (%)', + help => qqq( q` Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, @@ -3382,10 +3382,10 @@ our @options = ( options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc. - "), + ` ), type => { - db_type =>"integer", - hint =>"25|33|50|75|100|150|200|300|400", + db_type =>'integer', + hint =>'25|33|50|75|100|150|200|300|400', pattern =>qr|^(\d+)$|, format =>q( $1 ) }, @@ -3394,18 +3394,18 @@ our @options = ( { name => 'ZM_WEB_M_DEFAULT_RATE', default => '100', - description => "What the default replay rate factor applied to 'event' views is (%)", - help => qqq(" + description => 'What the default replay rate factor applied to \'event\' views is (%)', + help => qqq( q` Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc. - "), + ` ), type => { - db_type =>"integer", - hint =>"25|50|100|150|200|400|1000|2500|5000|10000", + db_type =>'integer', + hint =>'25|50|100|150|200|400|1000|2500|5000|10000', pattern =>qr|^(\d+)$|, format =>q( $1 ) }, @@ -3415,7 +3415,7 @@ our @options = ( name => 'ZM_WEB_M_VIDEO_BITRATE', default => '75000', description => 'What the bitrate of the video encoded stream should be set to', - help => qqq(" + help => qqq( q` When encoding real video via the ffmpeg library a bit rate can be specified which roughly corresponds to the available bandwidth used for the stream. This setting effectively @@ -3427,7 +3427,7 @@ our @options = ( that the video is produced at. A higher frame rate at a particular bit rate result in individual frames being at a lower quality. - "), + ` ), type => $types{integer}, category => 'medband', }, @@ -3435,7 +3435,7 @@ our @options = ( name => 'ZM_WEB_M_VIDEO_MAXFPS', default => '10', description => 'What the maximum frame rate for streamed video should be', - help => qqq(" + help => qqq( q` When using streamed video the main control is the bitrate which determines how much data can be transmitted. However a lower bitrate at high frame rates results in a lower quality image. @@ -3450,15 +3450,15 @@ our @options = ( option to 10fps then the video is not produced at 10fps, but rather at 7.5fps (15 divided by 2) as the final frame rate must be the original divided by a power of 2. - "), + ` ), type => $types{integer}, category => 'medband', }, { name => 'ZM_WEB_M_SCALE_THUMBS', default => 'yes', - description => "Scale thumbnails in events, bandwidth versus cpu in rescaling", - help => qqq(" + description => 'Scale thumbnails in events, bandwidth versus cpu in rescaling', + help => qqq( q` If unset, this option sends the whole image to the browser which resizes it in the window. If set the image is scaled down on the server before sending a reduced size image to the @@ -3466,34 +3466,34 @@ our @options = ( Note that ZM can only perform the resizing if the appropriate PHP graphics functionality is installed. This is usually available in the php-gd package. - "), + ` ), type => $types{boolean}, category => 'medband', }, { name => 'ZM_WEB_M_EVENTS_VIEW', default => 'events', - description => "What the default view of multiple events should be.", - help => qqq(" + description => 'What the default view of multiple events should be.', + help => qqq( q` Stored events can be viewed in either an events list format or in a timeline based one. This option sets the default view that will be used. Choosing one view here does not prevent the other view being used as it will always be selectable from whichever view is currently being used. - "), + ` ), type => { - db_type =>"string", - hint =>"events|timeline", + db_type =>'string', + hint =>'events|timeline', pattern =>qr|^([lt])|i, - format =>q( $1 =~ /^e/ ? "events" : "timeline" ) + format =>q( $1 =~ /^e/ ? 'events' : 'timeline' ) }, category => 'medband', }, { name => 'ZM_WEB_M_SHOW_PROGRESS', default => 'yes', - description => "Show the progress of replay in event view.", - help => qqq(" + description => 'Show the progress of replay in event view.', + help => qqq( q` When viewing events an event navigation panel and progress bar is shown below the event itself. This allows you to jump to specific points in the event, but can can also dynamically @@ -3504,15 +3504,15 @@ our @options = ( replay. This option allows you to turn off the progress display, whilst still keeping the navigation aspect, where bandwidth prevents it functioning effectively. - "), + ` ), type => $types{boolean}, category => 'medband', }, { name => 'ZM_WEB_M_AJAX_TIMEOUT', default => '5000', - description => "How long to wait for Ajax request responses (ms)", - help => qqq(" + description => 'How long to wait for Ajax request responses (ms)', + help => qqq( q` The newer versions of the live feed and event views use Ajax to request information from the server and populate the views dynamically. This option allows you to specify a timeout if @@ -3523,76 +3523,76 @@ our @options = ( should timeout so this setting should be set to a value greater than the slowest expected response. This value is in milliseconds but if set to zero then no timeout will be used. - "), + ` ), type => $types{integer}, category => 'medband', }, { name => 'ZM_WEB_L_REFRESH_MAIN', default => '300', - description => "How often (in seconds) the main console window should refresh itself", - introduction => qqq(" + description => 'How often (in seconds) the main console window should refresh itself', + introduction => qqq( q` The next few options control what happens when the client is running in 'low' bandwidth mode. You should set these options for when accessing the ZoneMinder client over a modem or slow link. In most cases the default values will be suitable as a starting point. - "), - help => qqq(" + ` ), + help => qqq( q` The main console window lists a general status and the event totals for all monitors. This is not a trivial task and should not be repeated too frequently or it may affect the performance of the rest of the system. - "), + ` ), type => $types{integer}, category => 'lowband', }, { name => 'ZM_WEB_L_REFRESH_CYCLE', default => '30', - description => "How often (in seconds) the cycle watch window swaps to the next monitor", - help => qqq(" + description => 'How often (in seconds) the cycle watch window swaps to the next monitor', + help => qqq( q` The cycle watch window is a method of continuously cycling between images from all of your monitors. This option determines how often to refresh with a new image. - "), + ` ), type => $types{integer}, category => 'lowband', }, { name => 'ZM_WEB_L_REFRESH_IMAGE', default => '15', - description => "How often (in seconds) the watched image is refreshed (if not streaming)", - help => qqq(" + description => 'How often (in seconds) the watched image is refreshed (if not streaming)', + help => qqq( q` The live images from a monitor can be viewed in either streamed or stills mode. This option determines how often a stills image is refreshed, it has no effect if streaming is selected. - "), + ` ), type => $types{integer}, category => 'lowband', }, { name => 'ZM_WEB_L_REFRESH_STATUS', default => '10', - description => "How often (in seconds) the status refreshes itself in the watch window", - help => qqq(" + description => 'How often (in seconds) the status refreshes itself in the watch window', + help => qqq( q` The monitor window is actually made from several frames. The one in the middle merely contains a monitor status which needs to refresh fairly frequently to give a true indication. This option determines that frequency. - "), + ` ), type => $types{integer}, category => 'lowband', }, { name => 'ZM_WEB_L_REFRESH_EVENTS', default => '180', - description => "How often (in seconds) the event listing is refreshed in the watch window", - help => qqq(" + description => 'How often (in seconds) the event listing is refreshed in the watch window', + help => qqq( q` The monitor window is actually made from several frames. The lower framme contains a listing of the last few events for easy access. This option determines how often this is refreshed. - "), + ` ), type => $types{integer}, category => 'lowband', }, @@ -3600,7 +3600,7 @@ our @options = ( name => 'ZM_WEB_L_CAN_STREAM', default => 'auto', description => 'Override the automatic detection of browser streaming capability', - help => qqq(" + help => qqq( q` If you know that your browser can handle image streams of the type 'multipart/x-mixed-replace' but ZoneMinder does not detect this correctly you can set this option to ensure that the @@ -3608,15 +3608,15 @@ our @options = ( plugin. Selecting 'yes' will tell ZoneMinder that your browser can handle the streams natively, 'no' means that it can't and so the plugin will be used while 'auto' lets ZoneMinder decide. - "), + ` ), type => $types{tristate}, category => 'lowband', }, { name => 'ZM_WEB_L_STREAM_METHOD', default => 'jpeg', - description => "Which method should be used to send video streams to your browser.", - help => qqq(" + description => 'Which method should be used to send video streams to your browser.', + help => qqq( q` ZoneMinder can be configured to use either mpeg encoded video or a series or still jpeg images when sending video streams. This option defines which is used. If you choose mpeg you @@ -3624,20 +3624,20 @@ our @options = ( on your browser whereas choosing jpeg will work natively on Mozilla and related browsers and with a Java applet on Internet Explorer - "), + ` ), type => { - db_type =>"string", - hint =>"mpeg|jpeg", + db_type =>'string', + hint =>'mpeg|jpeg', pattern =>qr|^([mj])|i, - format =>q( $1 =~ /^m/ ? "mpeg" : "jpeg" ) + format =>q( $1 =~ /^m/ ? 'mpeg' : 'jpeg' ) }, category => 'lowband', }, { name => 'ZM_WEB_L_DEFAULT_SCALE', default => '100', - description => "What the default scaling factor applied to 'live' or 'event' views is (%)", - help => qqq(" + description => 'What the default scaling factor applied to \'live\' or \'event\' views is (%)', + help => qqq( q` Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, @@ -3645,10 +3645,10 @@ our @options = ( options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc. - "), + ` ), type => { - db_type =>"integer", - hint =>"25|33|50|75|100|150|200|300|400", + db_type =>'integer', + hint =>'25|33|50|75|100|150|200|300|400', pattern =>qr|^(\d+)$|, format =>q( $1 ) }, @@ -3657,18 +3657,18 @@ our @options = ( { name => 'ZM_WEB_L_DEFAULT_RATE', default => '100', - description => "What the default replay rate factor applied to 'event' views is (%)", - help => qqq(" + description => 'What the default replay rate factor applied to \'event\' views is (%)', + help => qqq( q` Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc. - "), + ` ), type => { - db_type =>"integer", - hint =>"25|50|100|150|200|400|1000|2500|5000|10000", + db_type =>'integer', + hint =>'25|50|100|150|200|400|1000|2500|5000|10000', pattern =>qr|^(\d+)$|, format=>q( $1 ) }, category => 'lowband', @@ -3677,7 +3677,7 @@ our @options = ( name => 'ZM_WEB_L_VIDEO_BITRATE', default => '25000', description => 'What the bitrate of the video encoded stream should be set to', - help => qqq(" + help => qqq( q` When encoding real video via the ffmpeg library a bit rate can be specified which roughly corresponds to the available bandwidth used for the stream. This setting effectively @@ -3689,7 +3689,7 @@ our @options = ( that the video is produced at. A higher frame rate at a particular bit rate result in individual frames being at a lower quality. - "), + ` ), type => $types{integer}, category => 'lowband', }, @@ -3697,7 +3697,7 @@ our @options = ( name => 'ZM_WEB_L_VIDEO_MAXFPS', default => '5', description => 'What the maximum frame rate for streamed video should be', - help => qqq(" + help => qqq( q` When using streamed video the main control is the bitrate which determines how much data can be transmitted. However a lower bitrate at high frame rates results in a lower quality image. @@ -3712,15 +3712,15 @@ our @options = ( option to 10fps then the video is not produced at 10fps, but rather at 7.5fps (15 divided by 2) as the final frame rate must be the original divided by a power of 2. - "), + ` ), type => $types{integer}, category => 'lowband', }, { name => 'ZM_WEB_L_SCALE_THUMBS', default => 'yes', - description => "Scale thumbnails in events, bandwidth versus cpu in rescaling", - help => qqq(" + description => 'Scale thumbnails in events, bandwidth versus cpu in rescaling', + help => qqq( q` If unset, this option sends the whole image to the browser which resizes it in the window. If set the image is scaled down on the server before sending a reduced size image to the @@ -3728,34 +3728,34 @@ our @options = ( Note that ZM can only perform the resizing if the appropriate PHP graphics functionality is installed. This is usually available in the php-gd package. - "), + ` ), type => $types{boolean}, category => 'lowband', }, { name => 'ZM_WEB_L_EVENTS_VIEW', default => 'events', - description => "What the default view of multiple events should be.", - help => qqq(" + description => 'What the default view of multiple events should be.', + help => qqq( q` Stored events can be viewed in either an events list format or in a timeline based one. This option sets the default view that will be used. Choosing one view here does not prevent the other view being used as it will always be selectable from whichever view is currently being used. - "), + ` ), type => { - db_type =>"string", - hint =>"events|timeline", + db_type =>'string', + hint =>'events|timeline', pattern =>qr|^([lt])|i, - format =>q( $1 =~ /^e/ ? "events" : "timeline" ) + format =>q( $1 =~ /^e/ ? 'events' : 'timeline' ) }, category => 'lowband', }, { name => 'ZM_WEB_L_SHOW_PROGRESS', default => 'no', - description => "Show the progress of replay in event view.", - help => qqq(" + description => 'Show the progress of replay in event view.', + help => qqq( q` When viewing events an event navigation panel and progress bar is shown below the event itself. This allows you to jump to specific points in the event, but can can also dynamically @@ -3766,15 +3766,15 @@ our @options = ( replay. This option allows you to turn off the progress display, whilst still keeping the navigation aspect, where bandwidth prevents it functioning effectively. - "), + ` ), type => $types{boolean}, category => 'lowband', }, { name => 'ZM_WEB_L_AJAX_TIMEOUT', default => '10000', - description => "How long to wait for Ajax request responses (ms)", - help => qqq(" + description => 'How long to wait for Ajax request responses (ms)', + help => qqq( q` The newer versions of the live feed and event views use Ajax to request information from the server and populate the views dynamically. This option allows you to specify a timeout if @@ -3785,14 +3785,14 @@ our @options = ( should timeout so this setting should be set to a value greater than the slowest expected response. This value is in milliseconds but if set to zero then no timeout will be used. - "), + ` ), type => $types{integer}, category => 'lowband', }, { name => 'ZM_DYN_LAST_VERSION', default => '', - description => "What the last version of ZoneMinder recorded from zoneminder.com is", + description => 'What the last version of ZoneMinder recorded from zoneminder.com is', help => '', type => $types{string}, readonly => 1, @@ -3800,11 +3800,11 @@ our @options = ( }, { name => 'ZM_DYN_CURR_VERSION', - default => "@VERSION@", - description => qqq(" + default => '@VERSION@', + description => qqq( q` What the effective current version of ZoneMinder is, might be different from actual if versions ignored - "), + ` ), help => '', type => $types{string}, readonly => 1, @@ -3812,8 +3812,8 @@ our @options = ( }, { name => 'ZM_DYN_DB_VERSION', - default => "@VERSION@", - description => "What the version of the database is, from zmupdate", + default => '@VERSION@', + description => 'What the version of the database is, from zmupdate', help => '', type => $types{string}, readonly => 1, @@ -3822,7 +3822,7 @@ our @options = ( { name => 'ZM_DYN_LAST_CHECK', default => '', - description => "When the last check for version from zoneminder.com was", + description => 'When the last check for version from zoneminder.com was', help => '', type => $types{integer}, readonly => 1, @@ -3858,22 +3858,22 @@ our @options = ( { name => 'ZM_SSMTP_MAIL', default => 'no', - description => qqq(" + description => qqq( q` Use a SSMTP mail server if available. NEW_MAIL_MODULES must be enabled - "), + ` ), requires => [ { name => 'ZM_OPT_EMAIL', value => 'yes' }, { name => 'ZM_OPT_MESSAGE', value => 'yes' }, { name => 'ZM_NEW_MAIL_MODULES', value => 'yes' } ], - help => qqq(" + help => qqq( q` SSMTP is a lightweight and efficient method to send email. The SSMTP application is not installed by default. NEW_MAIL_MODULES must also be enabled. Please visit: http://www.zoneminder.com/wiki/index.php/How_to_get_ssmtp_working_with_Zoneminder for setup and configuration help. - "), + ` ), type => $types{boolean}, category => 'mail', }, @@ -3882,11 +3882,11 @@ our @options = ( default => '', description => 'SSMTP executable path', requires => [{ name => 'ZM_SSMTP_MAIL', value => 'yes' }], - help => qqq(" + help => qqq( q` Recommend setting the path to the SSMTP application. If path is not defined. Zoneminder will try to determine the path via shell command. Example path: /usr/sbin/ssmtp. - "), + ` ), type => $types{string}, category => 'mail', }, From 77d068fc48b943bdd9fbc0dc50c1e3d72bfad8d8 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 26 May 2017 22:25:59 -0400 Subject: [PATCH 08/12] merge updates from SA relating to building debian packages --- distros/ubuntu1604/control | 15 +++++++-------- distros/ubuntu1604/patches/series | 2 -- distros/ubuntu1604/rules | 2 +- distros/ubuntu1604/source/format | 2 +- distros/ubuntu1604/zoneminder.install | 1 + distros/ubuntu1604/zoneminder.logrotate | 2 ++ distros/ubuntu1604/zoneminder.menu | 2 ++ distros/ubuntu1604/zoneminder.postinst | 4 ++++ 8 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 distros/ubuntu1604/zoneminder.menu diff --git a/distros/ubuntu1604/control b/distros/ubuntu1604/control index b6c681dbd..1adea5494 100644 --- a/distros/ubuntu1604/control +++ b/distros/ubuntu1604/control @@ -5,6 +5,7 @@ Maintainer: Dmitry Smirnov Uploaders: Vagrant Cascadian Build-Depends: debhelper (>= 9), dh-systemd, python-sphinx | python3-sphinx, apache2-dev, dh-linktree ,cmake + ,libx264-dev, libmp4v2-dev ,libboost-dev ,libavdevice-dev (>= 6:10~) ,libavcodec-dev (>= 6:10~) @@ -15,7 +16,7 @@ Build-Depends: debhelper (>= 9), dh-systemd, python-sphinx | python3-sphinx, apa ,libgcrypt-dev ,libcurl4-gnutls-dev ,libgnutls-openssl-dev - ,libjpeg-dev + ,libjpeg8-dev | libjpeg9-dev | libjpeg62-turbo-dev ,libmysqlclient-dev ,libpcre3-dev ,libpolkit-gobject-1-dev @@ -27,12 +28,10 @@ Build-Depends: debhelper (>= 9), dh-systemd, python-sphinx | python3-sphinx, apa ,libsys-mmap-perl [!hurd-any] ,libwww-perl ,libdata-uuid-perl - ,libx264-dev - ,libmp4v2-dev # Unbundled (dh_linktree): ,libjs-jquery ,libjs-mootools -Standards-Version: 3.9.6 +Standards-Version: 3.9.8 Homepage: http://www.zoneminder.com/ Vcs-Browser: http://anonscm.debian.org/cgit/collab-maint/zoneminder.git Vcs-Git: git://anonscm.debian.org/collab-maint/zoneminder.git @@ -41,11 +40,10 @@ Package: zoneminder Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends} ,javascript-common + ,libmp4v2-2, libx264-142|libx264-148, libswscale-ffmpeg3|libswscale4|libswscale3 ,ffmpeg | libav-tools - ,libdate-manip-perl + ,libdate-manip-perl, libmime-lite-perl, libmime-tools-perl ,libdbd-mysql-perl - ,libmime-lite-perl - ,libmime-tools-perl ,libphp-serialization-perl ,libmodule-load-conditional-perl ,libnet-sftp-foreign-perl @@ -66,10 +64,11 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends} ,libdata-uuid-perl ,mysql-client | virtual-mysql-client ,perl-modules - ,php5-mysql | php-mysql, php5-gd | php-gd, php-apcu, php-apcu-bc | php-gd + ,php5-mysql | php-mysql, php5-gd | php-gd , php5-apcu | php-apcu , php-apc | php-apcu-bc ,policykit-1 ,rsyslog | system-log-daemon ,zip + ,libpcre3 Recommends: ${misc:Recommends} ,libapache2-mod-php5 | libapache2-mod-php | php5-fpm | php-fpm ,mysql-server | virtual-mysql-server diff --git a/distros/ubuntu1604/patches/series b/distros/ubuntu1604/patches/series index fc70f4006..e69de29bb 100644 --- a/distros/ubuntu1604/patches/series +++ b/distros/ubuntu1604/patches/series @@ -1,2 +0,0 @@ -default_cgi-path.patch -use_libjs-mootools.patch diff --git a/distros/ubuntu1604/rules b/distros/ubuntu1604/rules index c7fb00198..e3b235be8 100755 --- a/distros/ubuntu1604/rules +++ b/distros/ubuntu1604/rules @@ -28,7 +28,7 @@ override_dh_auto_configure: override_dh_clean: dh_clean $(MANPAGES1) - $(RM) -r docs/_build docs/installationguide + $(RM) -r docs/_build build-indep: #$(MAKE) -C docs text diff --git a/distros/ubuntu1604/source/format b/distros/ubuntu1604/source/format index 89ae9db8f..163aaf8d8 100644 --- a/distros/ubuntu1604/source/format +++ b/distros/ubuntu1604/source/format @@ -1 +1 @@ -3.0 (native) +3.0 (quilt) diff --git a/distros/ubuntu1604/zoneminder.install b/distros/ubuntu1604/zoneminder.install index 8a26777c0..b0b1ad5b6 100644 --- a/distros/ubuntu1604/zoneminder.install +++ b/distros/ubuntu1604/zoneminder.install @@ -3,6 +3,7 @@ usr/bin usr/lib/zoneminder usr/share/polkit-1 usr/share/zoneminder/db +usr/share/zoneminder/icons usr/share/zoneminder/www # libzoneminder-perl files: diff --git a/distros/ubuntu1604/zoneminder.logrotate b/distros/ubuntu1604/zoneminder.logrotate index 18fc6b0a0..59238b7fe 100644 --- a/distros/ubuntu1604/zoneminder.logrotate +++ b/distros/ubuntu1604/zoneminder.logrotate @@ -2,6 +2,8 @@ missingok notifempty sharedscripts + delaycompress + compress postrotate /usr/bin/zmpkg.pl logrot >>/dev/null 2>&1 || : endscript diff --git a/distros/ubuntu1604/zoneminder.menu b/distros/ubuntu1604/zoneminder.menu new file mode 100644 index 000000000..fa3f3ff36 --- /dev/null +++ b/distros/ubuntu1604/zoneminder.menu @@ -0,0 +1,2 @@ +?package(zoneminder):needs="x11" section="Applications/Video" title="ZoneMinder" command="/usr/bin/x-www-browser http://localhost/zm" icon="/usr/share/zoneminder/icons/16x16/icon.xpm" + diff --git a/distros/ubuntu1604/zoneminder.postinst b/distros/ubuntu1604/zoneminder.postinst index 05f0c0448..a8f93c4d0 100644 --- a/distros/ubuntu1604/zoneminder.postinst +++ b/distros/ubuntu1604/zoneminder.postinst @@ -12,6 +12,10 @@ if [ "$1" = "configure" ]; then if [ -z "$2" ]; then chown www-data:www-data /var/cache/zoneminder /var/cache/zoneminder/* fi + if [ ! -e "/etc/apache2/mods-enabled/cgi.load" ]; then + echo "The cgi module is not enabled in apache2. I am enabling it using a2enmod cgi." + a2enmod cgi + fi # Do this every time the package is installed or upgraded From ff08843d68460b97cd10618a4788105790b5bba6 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 30 May 2017 09:10:41 -0400 Subject: [PATCH 09/12] replace with '' --- web/includes/functions.php | 426 ++++++++++++++++++------------------- 1 file changed, 213 insertions(+), 213 deletions(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index 993d40a9b..63f78d737 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -19,7 +19,7 @@ // // Compatibility functions -if ( version_compare( phpversion(), "4.3.0", "<") ) { +if ( version_compare( phpversion(), '4.3.0', '<') ) { function ob_get_clean() { $buffer = ob_get_contents(); ob_end_clean(); @@ -30,38 +30,38 @@ if ( version_compare( phpversion(), "4.3.0", "<") ) { require_once( 'logger.php' ); require_once( 'database.php' ); -function userLogin( $username, $password="", $passwordHashed=false ) { +function userLogin( $username, $password='', $passwordHashed=false ) { global $user, $cookies; - $sql = "select * from Users where Enabled = 1"; + $sql = 'select * from Users where Enabled = 1'; $sql_values = NULL; - if ( ZM_AUTH_TYPE == "builtin" ) { + if ( ZM_AUTH_TYPE == 'builtin' ) { if ( $passwordHashed ) { - $sql .= " AND Username=? AND Password=?"; + $sql .= ' AND Username=? AND Password=?'; } else { - $sql .= " AND Username=? AND Password=password(?)"; + $sql .= ' AND Username=? AND Password=password(?)'; } $sql_values = array( $username, $password ); } else { - $sql .= " AND Username = ?"; + $sql .= ' AND Username = ?'; $sql_values = array( $username ); } $_SESSION['username'] = $username; - if ( ZM_AUTH_RELAY == "plain" ) { + if ( ZM_AUTH_RELAY == 'plain' ) { // Need to save this in session $_SESSION['password'] = $password; } $_SESSION['remoteAddr'] = $_SERVER['REMOTE_ADDR']; // To help prevent session hijacking if ( $dbUser = dbFetchOne( $sql, NULL, $sql_values ) ) { - Info( "Login successful for user \"$username\"" ); + Info( "Login successful for user \"$username\'' ); $_SESSION['user'] = $user = $dbUser; unset($_SESSION['loginFailed']); - if ( ZM_AUTH_TYPE == "builtin" ) { + if ( ZM_AUTH_TYPE == 'builtin' ) { $_SESSION['passwordHash'] = $user['Password']; } session_regenerate_id(); } else { - Warning( "Login denied for user \"$username\"" ); + Warning( "Login denied for user \"$username\'' ); $_SESSION['loginFailed'] = true; unset( $user ); } @@ -82,11 +82,11 @@ function userLogout() { } function noCacheHeaders() { - header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past - header("Last-Modified: ".gmdate( "D, d M Y H:i:s" )." GMT"); // always modified - header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 - header("Cache-Control: post-check=0, pre-check=0", false); - header("Pragma: no-cache"); // HTTP/1.0 + header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past + header('Last-Modified: '.gmdate( 'D, d M Y H:i:s' ).' GMT'); // always modified + header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1 + header('Cache-Control: post-check=0, pre-check=0', false); + header('Pragma: no-cache'); // HTTP/1.0 } function CORSHeaders() { @@ -103,28 +103,28 @@ function CORSHeaders() { $Server = new Server( $row ); if ( $_SERVER['HTTP_ORIGIN'] == $Server->Url() ) { $valid = true; - header("Access-Control-Allow-Origin: " . $Server->Url() ); - header("Access-Control-Allow-Headers: x-requested-with,x-request"); + header('Access-Control-Allow-Origin: ' . $Server->Url() ); + header('Access-Control-Allow-Headers: x-requested-with,x-request'); } } if ( ! $valid ) { - Warning( $_SERVER['HTTP_ORIGIN'] . " is not found in servers list." ); + Warning( $_SERVER['HTTP_ORIGIN'] . ' is not found in servers list.' ); } } } function getAuthUser( $auth ) { - if ( ZM_OPT_USE_AUTH && ZM_AUTH_RELAY == "hashed" && !empty($auth) ) { - $remoteAddr = ""; + if ( ZM_OPT_USE_AUTH && ZM_AUTH_RELAY == 'hashed' && !empty($auth) ) { + $remoteAddr = ''; if ( ZM_AUTH_HASH_IPS ) { $remoteAddr = $_SERVER['REMOTE_ADDR']; if ( !$remoteAddr ) { Error( "Can't determine remote address for authentication, using empty string" ); - $remoteAddr = ""; + $remoteAddr = ''; } } - $sql = "select Username, Password, Enabled, Stream+0, Events+0, Control+0, Monitors+0, System+0, MonitorIds from Users where Enabled = 1"; + $sql = 'select Username, Password, Enabled, Stream+0, Events+0, Control+0, Monitors+0, System+0, MonitorIds from Users where Enabled = 1'; foreach ( dbFetchAll( $sql ) as $user ) { $now = time(); for ( $i = 0; $i < 2; $i++, $now -= (60*60) ) { // Try for last two hours @@ -143,7 +143,7 @@ function getAuthUser( $auth ) { } function generateAuthHash( $useRemoteAddr ) { - if ( ZM_OPT_USE_AUTH && ZM_AUTH_RELAY == "hashed" ) { + if ( ZM_OPT_USE_AUTH && ZM_AUTH_RELAY == 'hashed' ) { $time = localtime(); if ( $useRemoteAddr ) { $authKey = ZM_AUTH_HASH_SECRET.$_SESSION['username'].$_SESSION['passwordHash'].$_SESSION['remoteAddr'].$time[2].$time[3].$time[4].$time[5]; @@ -152,7 +152,7 @@ function generateAuthHash( $useRemoteAddr ) { } $auth = md5( $authKey ); } else { - $auth = ""; + $auth = ''; } return( $auth ); } @@ -161,24 +161,24 @@ function getStreamSrc( $args, $querySep='&' ) { $streamSrc = ZM_BASE_URL.ZM_PATH_ZMS; if ( ZM_OPT_USE_AUTH ) { - if ( ZM_AUTH_RELAY == "hashed" ) { - $args[] = "auth=".generateAuthHash( ZM_AUTH_HASH_IPS ); - } elseif ( ZM_AUTH_RELAY == "plain" ) { - $args[] = "user=".$_SESSION['username']; - $args[] = "pass=".$_SESSION['password']; - } elseif ( ZM_AUTH_RELAY == "none" ) { - $args[] = "user=".$_SESSION['username']; + if ( ZM_AUTH_RELAY == 'hashed' ) { + $args[] = 'auth='.generateAuthHash( ZM_AUTH_HASH_IPS ); + } elseif ( ZM_AUTH_RELAY == 'plain' ) { + $args[] = 'user='.$_SESSION['username']; + $args[] = 'pass='.$_SESSION['password']; + } elseif ( ZM_AUTH_RELAY == 'none' ) { + $args[] = 'user='.$_SESSION['username']; } } - if ( !in_array( "mode=single", $args ) && !empty($GLOBALS['connkey']) ) { - $args[] = "connkey=".$GLOBALS['connkey']; + if ( !in_array( 'mode=single', $args ) && !empty($GLOBALS['connkey']) ) { + $args[] = 'connkey='.$GLOBALS['connkey']; } if ( ZM_RAND_STREAM ) { - $args[] = "rand=".time(); + $args[] = 'rand='.time(); } if ( count($args) ) { - $streamSrc .= "?".join( $querySep, $args ); + $streamSrc .= '?'.join( $querySep, $args ); } return( $streamSrc ); @@ -196,11 +196,11 @@ function getMimeType( $file ) { return( trim( exec( 'file -bi '.escapeshellarg( $file ).' 2>/dev/null' ) ) ); } -function outputVideoStream( $id, $src, $width, $height, $format, $title="" ) { +function outputVideoStream( $id, $src, $width, $height, $format, $title='' ) { echo getVideoStreamHTML( $id, $src, $width, $height, $format, $title ); } -function getVideoStreamHTML( $id, $src, $width, $height, $format, $title="" ) { +function getVideoStreamHTML( $id, $src, $width, $height, $format, $title='' ) { $html = ''; $width = validInt($width); $height = validInt($height); @@ -211,24 +211,24 @@ function getVideoStreamHTML( $id, $src, $width, $height, $format, $title="" ) { } else { switch( $format ) { case 'asf' : - $mimeType = "video/x-ms-asf"; + $mimeType = 'video/x-ms-asf'; break; case 'avi' : case 'wmv' : - $mimeType = "video/x-msvideo"; + $mimeType = 'video/x-msvideo'; break; case 'mov' : - $mimeType = "video/quicktime"; + $mimeType = 'video/quicktime'; break; case 'mpg' : case 'mpeg' : - $mimeType = "video/mpeg"; + $mimeType = 'video/mpeg'; break; case 'swf' : - $mimeType = "application/x-shockwave-flash"; + $mimeType = 'application/x-shockwave-flash'; break; case '3gp' : - $mimeType = "video/3gpp"; + $mimeType = 'video/3gpp'; break; default : $mimeType = "video/$format"; @@ -239,9 +239,9 @@ function getVideoStreamHTML( $id, $src, $width, $height, $format, $title="" ) { $mimeType = 'video/'.$format; if ( ZM_WEB_USE_OBJECT_TAGS ) { switch( $mimeType ) { - case "video/x-ms-asf" : - case "video/x-msvideo" : - case "video/mp4" : + case 'video/x-ms-asf' : + case 'video/x-msvideo' : + case 'video/mp4' : { if ( isWindows() ) { return ''; } } - case "video/quicktime" : + case 'video/quicktime' : { return ' '; } - case "application/x-shockwave-flash" : + case 'application/x-shockwave-flash' : { return ''; } -function outputImageStream( $id, $src, $width, $height, $title="" ) { +function outputImageStream( $id, $src, $width, $height, $title='' ) { echo getImageStream( $id, $src, $width, $height, $title ); } -function getImageStream( $id, $src, $width, $height, $title="" ) { +function getImageStream( $id, $src, $width, $height, $title='' ) { if ( canStreamIframe() ) { return '