Isaac Connor
419a44f8ed
Merge branch 'iiot'
2022-09-13 18:23:44 -04:00
Isaac Connor
b4fc5abe95
Failure to auth by hash is common, the end result is a redirect to login page. Change the log level to INF
2022-09-13 17:59:53 -04:00
megasaturnv
8fc60fef12
Moved case-insensitive username checks to SQL
2022-09-12 13:44:18 -04:00
megasaturnv
143a00cccc
Fix typo
2022-09-12 13:44:18 -04:00
megasaturnv
c90e2f7898
Renamed ZM_AUTH_CASE_INSENSITIVE_USERNAMES to ZM_CASE_INSENSITIVE_USERNAMES as name was too long ZoneMinder/zoneminder#3516
2022-09-12 13:44:18 -04:00
megasaturnv
e9ab7f2f26
Added option ZM_AUTH_CASE_INSENSITIVE_USERNAMES to match mixed case usernames to lower case usernames in database ZoneMinder/zoneminder#3516
2022-09-12 13:44:18 -04:00
Isaac Connor
dbcf320808
For mp4, use video tag, with videojs instead of embed
2022-09-12 13:44:18 -04:00
Isaac Connor
4d2f956827
Move createVideo from functions to Event
2022-09-12 13:44:18 -04:00
Isaac Connor
eb9ac11d21
fix updating donation reminder. I would always be a month or more
2022-09-12 13:44:18 -04:00
Isaac Connor
813434e0f4
Fix saving monitor due to MQTT being empty
2022-09-12 13:44:18 -04:00
Isaac Connor
ce4dd065ff
Use y instead of Y for path generation when using Deep scheme. Fixes #3583
2022-09-12 13:44:18 -04:00
Isaac Connor
d32fe1cf55
Add Janus_RTSP_User and related UI code
2022-09-12 10:34:26 -04:00
Isaac Connor
8ba1bbc63c
Set new defaults: Only analysis jpegs, and passthrough on. Label Size => Default. Fix warnings when creating a new MOnitor because Path, User, Pass are unset.
2022-09-09 11:29:32 -04:00
Isaac Connor
9276ae7d67
calling trim on null is deprecated
2022-09-08 15:11:53 -04:00
Jonathan Bennett
c35bbc8c30
Adds the Janus_pin to shared_memory, and a -j to zmu to fetch it
2022-09-07 15:49:47 -05:00
Isaac Connor
8aaa5e52b3
Merge pull request #3582 from megasaturnv/3516-CaseInsensitiveLogin
...
Issue #3516 case insensitive login
2022-09-06 16:39:53 -04:00
Isaac Connor
7059e5a1ea
For mp4, use video tag, with videojs instead of embed
2022-09-06 15:41:42 -04:00
Isaac Connor
3079438038
Move createVideo from functions to Event
2022-09-06 13:46:41 -04:00
Isaac Connor
ce2aea9615
fix updating donation reminder. I would always be a month or more
2022-09-06 11:22:47 -04:00
Isaac Connor
1f20b18100
Merge branch 'master' of github.com:ZoneMinder/zoneminder
2022-09-06 11:22:28 -04:00
Isaac Connor
d76c425057
Fix saving monitor due to MQTT being empty
2022-09-06 11:22:04 -04:00
megasaturnv
6c4fb3e2cd
Moved case-insensitive username checks to SQL
2022-09-05 15:43:53 +01:00
megasaturnv
d80026cab1
Fix typo
2022-09-05 15:29:23 +01:00
Isaac Connor
b611a4fc08
Use y instead of Y for path generation when using Deep scheme. Fixes #3583
2022-09-04 13:53:19 -04:00
megasaturnv
6c0f40f570
Renamed ZM_AUTH_CASE_INSENSITIVE_USERNAMES to ZM_CASE_INSENSITIVE_USERNAMES as name was too long ZoneMinder/zoneminder#3516
2022-09-02 12:03:47 +01:00
megasaturnv
63e5b63eec
Added option ZM_AUTH_CASE_INSENSITIVE_USERNAMES to match mixed case usernames to lower case usernames in database ZoneMinder/zoneminder#3516
2022-09-02 11:58:02 +01:00
Isaac Connor
4c90bd0ac6
Add a title to the zone polygon
2022-09-01 07:08:39 -04:00
Isaac Connor
6c8819977e
Cache Group Monitors Ids so we don't query the database multiple times for them.
2022-09-01 07:08:04 -04:00
Isaac Connor
980e49b547
Don't query for Monitors if there are no Monitors in the Group.
2022-09-01 07:07:55 -04:00
Isaac Connor
3d1a9c5b2d
Add LIMIT 1 when filtering by AlarmZoneId to speed up
2022-09-01 07:06:46 -04:00
Isaac Connor
606fb108d5
Fix use of filter instead of this
2022-09-01 07:06:10 -04:00
Isaac Connor
4eeb49d09a
Merge branch 'master' into reports
2022-08-31 18:38:08 +02:00
Isaac Connor
1038e2d069
Cache Group Monitors Ids so we don't query the database multiple times for them.
2022-08-31 18:36:57 +02:00
Isaac Connor
683acbbc1d
Clear Manufacturer and Model so that they don't list as changes
2022-08-31 10:05:52 -04:00
Isaac Connor
e24432ee4d
Merge branch 'master' into reports
2022-08-30 19:40:14 +02:00
Isaac Connor
85c59970a6
Add a title to the zone polygon
2022-08-30 19:36:07 +02:00
Isaac Connor
4668534bf9
Don't query for Monitors if there are no Monitors in the Group.
2022-08-30 19:35:47 +02:00
Isaac Connor
54f87aa4cf
Add LIMIT 1 when filtering by AlarmZoneId to speed up
2022-08-30 19:34:51 +02:00
Isaac Connor
d6fea1c740
Don't specify return type as old php doesn't support it. maybe Fixes #3579
2022-08-30 10:40:00 -04:00
Isaac Connor
855dd6ac93
Use HTTP_X_FORWARDED_HOST or HTTP_X_FORWARDED_SERVER if present to get correct hostname to use when behind a reverse proxy.
2022-08-26 14:12:25 -04:00
Isaac Connor
29750a56e7
Merge branch 'master' into add_mqtt
2022-08-25 18:37:54 -04:00
Isaac Connor
6ae05d7009
Rework to not use strlen and strlen now complains if you pass it null
2022-08-22 11:46:57 -04:00
Isaac Connor
d51a2eb8a5
Merge pull request #3537 from parvit/issue-695
...
Added configuring of authentication for rstp cameras
2022-08-21 18:08:00 -04:00
parvit (Vittorio Parrella)
442d7b1c89
integrated dynamic client and server update of path, user and password values
2022-08-18 05:05:18 -04:00
Isaac Connor
4bd7fc8fcf
Clear out width=auto and height=auto to prevent warnings in logs
2022-08-17 15:34:39 -04:00
Isaac Connor
9501da8a41
Remove debug
2022-08-15 17:59:25 -04:00
Isaac Connor
0078a6f639
Log entire backtrace when invalid value for width
2022-08-10 09:18:39 -04:00
Jonathan Bennett
d41792ae00
Adds Janus options Profile-ID Override and Use RTSP Restream to work around camera issues
2022-08-09 00:54:41 -05:00
ovargasp
b01c75ab76
Modify config.php.in
...
Modifies config.php to use ZM_TIMEZONE if defined by user
2022-08-05 06:40:23 -06:00
Isaac Connor
6bc0ec6aab
Add Report ORM
2022-08-04 09:35:25 -04:00
Isaac Connor
ad764ca0bb
rough in major actions for reports
2022-08-04 09:11:24 -04:00
Isaac Connor
ca1ad2e2e4
Fix use of filter instead of this
2022-08-04 09:07:33 -04:00
Isaac Connor
e27e1c0991
Add backtrace to invalid value for width
2022-08-03 14:30:18 -04:00
Isaac Connor
f4b8066d00
Add backtrace to invalid value for width
2022-08-03 12:28:39 -04:00
Isaac Connor
45697c7da9
Merge branch 'master' into reports
2022-08-03 11:57:07 -04:00
Isaac Connor
cf3c194e21
Handle when there are no servers and hence no defined ServerId in newMonitor
2022-08-03 11:55:44 -04:00
Isaac Connor
5776a766e1
fixup logic inversion on test_post_sql_conditions. condense code.
2022-07-29 13:59:21 -04:00
Isaac Connor
c937169a6b
Fix logic inversion on test_pre_sql_conditions
2022-07-29 13:50:40 -04:00
Isaac Connor
d8dea37c88
When selecting AlarmedZone, must check for SCore > 0.
2022-07-28 16:33:38 -04:00
Isaac Connor
2ba7d4d0b5
Rough in a function Events() to return Event objects from a Filter.
2022-07-24 20:37:32 -04:00
Isaac Connor
bfeee1ed09
rename Onvif_Alarm_Txt to ONVIF_Alarm_Text
2022-07-23 16:08:27 -04:00
ovargasp
981769b9db
Allows users to set an specific "Onvif alarm text" for each monitor ( #3535 )
...
* Allows users to set an specific "Onvif alarm text" for each monitor
With this personalization the cameras that use strings different to "MotionAlarm"
such as Dahua, will be able to process their Onvif alarms. To make it easier, the change
sets a default "Alarm Text" value for it to work out of the box and then allows to
modify it according to the particular necessities of each brand. It consists of
a new column on table Monitors, changes on Monitors.h, Monitors.cpp and a change
on UI to manage the value of Alarm Text per camera.
Updated es_la.php language file.
Co-authored-by: ovargasp <ovargasp@hoitmail.com>
2022-07-20 12:51:13 -05:00
Isaac Connor
e84a1477ff
put back ?>
2022-07-14 13:19:10 -04:00
Isaac Connor
9ad7ce3823
Remove remaining locale stuff from language files
2022-07-14 13:16:49 -04:00
Isaac Connor
56828f4d48
Add Id=0 for default user
2022-07-12 17:31:41 -04:00
Isaac Connor
2988d49454
When saving a layout, check for System[edit] or ownership of the layout.
2022-07-12 17:31:30 -04:00
Isaac Connor
64ed7370b6
Add UserId field to MontageLayouts
2022-07-12 17:30:54 -04:00
Isaac Connor
4dbe66779a
Implement CMD_ZOOMSTOP
2022-06-17 15:11:27 -04:00
Isaac Connor
2141a5dd1c
Don't include 0 width in janus video tag
2022-06-15 13:08:48 -04:00
Isaac Connor
cf88497c77
Merge branch 'master' of github.com:ZoneMinder/zoneminder
2022-06-15 12:42:07 -04:00
Isaac Connor
c189250a61
Add AnalysisImage and options to MOnitor object
2022-06-15 11:27:48 -04:00
Isaac Connor
a578370970
Add filter terms for snapshots
2022-06-09 12:13:58 -04:00
Isaac Connor
866ad4f5e2
Don't turn '0' into ''
2022-06-07 09:44:37 -04:00
Ingemārs
af2f1cc6e6
Update config.php.in
2022-06-07 12:33:41 +03:00
Isaac Connor
4a6ad1f880
move dateFormatters to config. This is so that they get setup even if not using index.php. Like cakephp for example.
2022-06-02 20:13:37 -04:00
Isaac Connor
beec86fda2
Merge branch 'master' of github.com:ZoneMinder/zoneminder
2022-06-02 20:09:33 -04:00
Isaac Connor
73977c518d
use zm_setcookie function with will set required cookie fields so that cookie actually gets set
2022-06-02 15:11:47 -04:00
Isaac Connor
7b5a0bc775
Use dateTimeFOrmatter to format the date/time on log entries
2022-06-01 15:49:09 -04:00
Isaac Connor
eaa94ce370
update format string to date() format instead of strftime format
2022-06-01 15:48:50 -04:00
Isaac Connor
eb5c1372c7
convert from strftime() to date() when forming sql
2022-06-01 15:47:19 -04:00
Isaac Connor
907cdcd952
convert from strftime() to date() when forming the event path
2022-06-01 15:46:53 -04:00
Isaac Connor
7c0dcfcefc
handle various functions no longer dealing with null
2022-06-01 13:01:40 -04:00
Isaac Connor
553c79d8f9
Put back ctype_digit and quoting of the sql to fix loading object in new
2022-06-01 12:59:09 -04:00
Isaac Connor
976de0606f
Add default value for Storage Path
2022-06-01 11:20:28 -04:00
Isaac Connor
c00fd25c30
Add default value for Username
2022-06-01 11:20:16 -04:00
Isaac Connor
7ef965c100
Test for values being trueish as passing null to strcmp is deprecated
2022-06-01 10:41:07 -04:00
Isaac Connor
8f2b8bf478
Test for is_array first, get rid of ctype_digit test as passing a null to it is deprecated
2022-06-01 10:40:31 -04:00
Isaac Connor
b47d036b89
Use date() instead of strftime() for date formatting now that strftime is deprecated
2022-06-01 10:37:04 -04:00
Isaac Connor
d97ef46b57
Add defaults for RecordingSource and AnalysisSource to prevent warnings when creating new monitor
2022-05-30 14:28:38 -04:00
Isaac Connor
e11030095c
Add mode=single option
2022-05-30 13:35:36 -04:00
Isaac Connor
1314295020
Don't update DiskSpace with a 0 value when listing events. This generally happens with missing events and causes too much contention on the Events and summaries tables
2022-05-30 10:26:04 -04:00
tftadmin Appleton
8254e12fa6
Fix password_type test on REQUEST['password'] instead of user['Password'] causing password migrations to not happen
2022-05-18 18:59:56 -04:00
Isaac Connor
acd63ee0d8
Don't assuming we want to communicate with zms if streaming.
2022-05-11 10:21:44 -04:00
Isaac Connor
e26aa6d0ae
Set samesite for session ZMSESSID cookie for php < 7.3
2022-05-10 20:22:44 -04:00
Isaac Connor
997c1197cf
Implement decoding=Keyframes + OnDemand
2022-05-10 14:25:34 -04:00
Isaac Connor
76f01647f1
define CMD_GET_IMAGE for completeness
2022-05-07 19:39:01 -04:00
Isaac Connor
2f25421cf0
Spacing
2022-05-07 19:39:01 -04:00
Isaac Connor
dff60e5a0b
Need a ; before report-uri
2022-05-04 13:02:34 -04:00
Isaac Connor
e3787d05e1
Use Content-Security-Policy: for all views instead of Report-Only
2022-05-04 12:08:17 -04:00
Isaac Connor
74fd90cfdd
Remove loading=lazy, it breaks ajax
2022-04-28 17:14:06 -04:00
Isaac Connor
84ae91fe24
Comment out width and height setting on the imageFrame
2022-04-28 15:45:35 -04:00
Isaac Connor
2a7217ec0d
Merge branch 'master' of github.com:ZoneMinder/zoneminder
2022-04-27 15:55:12 -04:00
Isaac Connor
0cb15d3418
Remove extra { breaking ptz
2022-04-23 19:29:04 -04:00
Isaac Connor
07e6ae931f
Add mid and zid to zone polygon so that we can use them in atached onclicks
2022-04-22 15:50:00 -04:00
Isaac Connor
91a5642edc
merge
2022-04-19 17:07:20 -04:00
Isaac Connor
1eaeccc564
Handle zones not being set in options
2022-04-19 12:31:43 -04:00
Isaac Connor
7b5ee86ee8
Move svg zone display into Monitor->getStreamHTML. Remove most of it because scaling is now automatic. Move styling to css
2022-04-10 18:54:01 -04:00
Isaac Connor
e8391ad0be
Move collapsed status to Monitor.php and put back setting width and height on the monitorStream container.
2022-04-10 17:28:38 -04:00
Isaac Connor
906951e450
Merge branch 'master' of github.com:ZoneMinder/zoneminder
2022-04-06 10:37:10 -04:00
Isaac Connor
0e337cd8bf
Remove support for Cambozola which no longer works or is needed.
2022-04-06 10:37:02 -04:00
Isaac Connor
4fd027fbcc
Fix test for chrome version 7 by not including periods. We only care about the major and php is confused.
2022-04-04 17:03:36 -04:00
Isaac Connor
ed7c139fb3
Add backtrace to ajaxError
2022-04-04 15:00:33 -04:00
Isaac Connor
d0ee8dc6fd
remove duplicated factor code, define speed so that it doesn't generate an error if not HasSpeed in Control.
2022-03-29 17:19:31 -04:00
Isaac Connor
723c10ca19
Cleanup options, add DecodingOptions
2022-03-28 17:45:01 -04:00
Isaac Connor
0397c4f7e8
Add MQTT_Enabled and MQTT_Subscriptions to Monitor object
2022-03-21 16:08:13 -04:00
Isaac Connor
531793276f
Fix auth'd user information being saved to session before switching session id's leaving bogus authenticated user in previous session.
2022-03-21 15:31:44 -04:00
Isaac Connor
23aa41091f
Add Trigger/etc to onMotion recording option
2022-03-20 19:13:46 -04:00
Isaac Connor
f49601a173
Add filtering to Username to prevent XSS
2022-03-10 14:09:41 -05:00
Isaac Connor
0c31e35b4e
Add classes to fields of monitor status so we can style them as needed
2022-03-04 12:06:49 -05:00
Isaac Connor
e33b41745d
Merge branch 'master' into replace_function_concept
2022-02-27 14:04:01 -05:00
Isaac Connor
13251b133a
Make getMonitorCapturingOptions a member of the class, so can call it getCapturingOptions. Same with Analysing and Recording options
2022-02-27 14:03:37 -05:00
Isaac Connor
9b0714d20d
Fix use of value instead of val in filter term
2022-02-25 14:14:02 -05:00
Isaac Connor
b32164e992
Add handling of NOT IN and =\[\] and \!\[\]
2022-02-22 08:31:41 -05:00
Ben Dailey
ce267c7e3c
Most programmatic images are lazy.
2022-02-22 08:31:02 -05:00
Isaac Connor
cd2c977ed8
Merge branch 'master' into replace_function_concept
2022-02-16 14:25:38 -05:00
Isaac Connor
8b14885541
Add handling of NOT IN and =\[\] and \!\[\]
2022-02-15 18:52:46 -05:00
Isaac Connor
485cc26065
Merge branch 'master' into replace_function_concept
2022-02-12 22:17:47 -05:00
Isaac Connor
9fee64b62f
detaint language file.
2022-02-08 14:31:01 -05:00
Isaac Connor
2db781ed44
Test for valid language file when saving user.
2022-02-08 14:30:53 -05:00
Isaac Connor
8cdd96f286
Implement a check on change of language. Make sure that the specified language file exists. Reports errors to UI
2022-02-08 13:29:51 -05:00
Isaac Connor
f66a463574
Merge branch 'master' into replace_function_concept
2022-02-08 12:07:30 -05:00
Isaac Connor
390d77a924
Replace Function with Capturing
2022-02-08 11:21:36 -05:00
Isaac Connor
38c9ac1521
Update state action, replacing Function with Recording, Analysing, Capturing. Redirect to console instead of switching view.
2022-02-08 11:20:27 -05:00
Isaac Connor
aad79d3407
Rename MonitorAnalysingOptions => AnalysingOptions as they will have to be prefixed with module name anyways.
2022-02-08 11:19:36 -05:00
Isaac Connor
5078eecdfd
Add in get_networks and get_subnets as utilities to parse devices and networks in preparation for scanning/probing
2022-02-07 12:31:31 -05:00
Isaac Connor
69053424cd
When adding a new monitor, ModelId and ManufacturerId are not defined, so handle that
2022-02-06 19:06:35 -05:00
Isaac Connor
b3092f2f59
Add special handling for skip_locked, as it is a checkbox. Don't update REQUEST['Id'] on execute so we can redirect to the original filter.
2022-02-03 17:31:37 -05:00
Isaac Connor
a6dc7ba0fc
Add debugging, but commented out
2022-02-03 17:30:38 -05:00
Isaac Connor
7515711eb8
Implement Server function which figures out which Server likely has the video. Use it to remove duplicate logic
2022-02-03 14:45:17 -05:00
Isaac Connor
bd68b9e3af
Not ready for OutputSource yet
2022-02-02 17:10:05 -05:00
Isaac Connor
10e39b3b13
:wqMerge branch 'master' into replace_function_concept
2022-02-02 17:08:01 -05:00
Isaac Connor
1f9e654821
Default limit to 0 which means no limit
2022-02-02 12:28:58 -05:00
Isaac Connor
23bfbcd6ce
Merge branch 'master' into multistream
2022-01-26 10:13:20 -05:00
Jonathan Bennett
ec9403fb6f
Adds Amcrest On-camera Motion Detection
2022-01-25 22:38:00 -06:00
Jonathan Bennett
8125aa633b
Merge branch 'ZoneMinder:master' into master
2022-01-22 12:20:13 -06:00
Isaac Connor
ce2d605b3d
load Private as well as Name,Value from Config
2022-01-22 12:31:15 -05:00
Jonathan Bennett
52e48c02b6
Add janus_path and janus_secret, allowing for more secure and flexible Janus installs
2022-01-21 22:23:41 -06:00
Isaac Connor
4bf55b1af1
Use net zm_setcookie
2022-01-20 09:48:09 -05:00
Isaac Connor
3cd6fbdc12
Use net zm_setcookie
2022-01-20 09:48:02 -05:00
Isaac Connor
9395b7e47c
Use net zm_setcookie
2022-01-20 09:47:53 -05:00
Isaac Connor
a57206ef54
Implement getMonitorStateHTML to synchronize it between montage and live view, cycle etc. Reuseable code. Also the structure is required by MonitorStream.js
2022-01-20 09:47:36 -05:00
Isaac Connor
db866fa668
Implement zm_setcookie to simplify setting cookies, set samesite, deal with older php etc. Use it.
2022-01-20 09:46:38 -05:00
Jonathan Bennett
fb832e7d1b
Adds janus_enable_audio, a switch to try to enable audio in live stream viewing.
2022-01-19 00:14:52 -06:00
Isaac Connor
d00aaa11e9
default JanusEnabled to 0 so that we can turn it off
2022-01-18 23:02:26 -05:00
Isaac Connor
3241fa59c5
Don't redirect if there was an error so that we display it
2022-01-18 23:02:26 -05:00
Isaac Connor
3835087c9d
Merge branch 'master' into multistream
2022-01-18 20:16:08 -05:00
Jonathan Bennett
9e9bdd183c
Merge branch 'ZoneMinder:master' into janus
2022-01-14 14:05:23 -06:00
Isaac Connor
7c1ba721aa
Preface Debug with ZM
2022-01-13 22:15:02 -05:00
Isaac Connor
a414506a5e
Preface Debug with ZM
2022-01-13 22:14:14 -05:00
Jonathan Bennett
3a9c16aeea
First working Janus build
2022-01-10 23:22:37 -06:00
Isaac Connor
fd3a70172d
Merge branch 'master' into multistream
2022-01-10 17:51:50 -05:00
Isaac Connor
a679455a0b
Merge branch 'master' into merge_work_on_zms
2022-01-07 16:22:51 -05:00
Isaac Connor
cfac99be4e
better debugging when the row has no Id
2022-01-07 16:21:49 -05:00
Isaac Connor
df0a0c7853
Add CMD_ANALYZE_ON and OFF
2022-01-07 13:50:40 -05:00
Jonathan Bennett
1333d8c751
Adds ONVIF Motion Detection Support
2022-01-06 16:45:15 -06:00
Isaac Connor
6bd04de5f6
Merge branch 'master' into multistream
2021-12-31 17:53:36 -05:00
Isaac Connor
4dd454325c
use options[maxfps] instead of always specifying 30fps.
2021-12-16 16:36:38 -05:00
Isaac Connor
30e4d72c1d
Implement CMD_MAXFPS
2021-12-16 16:36:12 -05:00
Isaac Connor
6b18b2889d
Add skip_locked and ExecuteInterval
2021-12-13 15:01:17 -05:00
Isaac Connor
a9ef5bf731
Add STATE_UNKNOWN and correct values of other states
2021-12-09 12:36:03 -05:00
Isaac Connor
45559123af
Add numCoords, Coords, Area, AlarmRGB to Zone object. Also add Points(), AreaCoords, svg_polygon utility functions to it.
2021-12-05 17:45:26 -05:00
Isaac Connor
1277e75278
Detect group hierarchy loops and break them.
2021-12-03 13:25:50 -05:00
Isaac Connor
21218491f7
Add EventStartCommand and EventEndCommand to monitors ui
2021-11-26 19:22:07 -05:00
Isaac Connor
836fe8c2b1
spacing
2021-11-17 18:57:44 -05:00
Isaac Connor
b1d881b118
Report more saving errors to ui
2021-11-17 18:57:36 -05:00
Isaac Connor
a0666e777a
Merge branch 'master' into add_manufacturer_model_to_monitors
2021-11-17 17:45:47 -05:00
Isaac Connor
c37d8eeded
spacing and report save errors
2021-11-17 17:45:38 -05:00
Isaac Connor
71c29afa7b
Merge branch 'master' into add_manufacturer_model_to_monitors
2021-11-15 09:47:34 -05:00
Isaac Connor
98e29e7ef6
implement UrlToZMS in Monitor
2021-11-12 15:11:48 -05:00
Isaac Connor
944c04e5b4
Whitespace
2021-11-12 15:11:48 -05:00
Isaac Connor
193f349e38
implement Event::canEdit
2021-11-12 13:37:01 -05:00
Isaac Connor
4c2d50c1f4
implement UrlToZMS in Monitor
2021-11-10 14:18:58 -05:00
Isaac Connor
e617eb8615
Whitespace
2021-11-09 13:59:14 -05:00
Isaac Connor
1fd99424bb
Merge branch 'master' into add_manufacturer_model_to_monitors
2021-11-05 10:13:41 -04:00
Isaac Connor
fb67c6a3e7
Add defaults for Capturing, Analysing, Recording
2021-10-25 16:53:42 -04:00
Isaac Connor
0c222f66ee
Add sort_asc, sort_field and limit to the filter QueryString
2021-10-25 12:34:51 -04:00
Isaac Connor
16d0e269df
WHen saving v4l settings redirect back to watch instead of console.
2021-10-19 12:39:37 -04:00
Isaac Connor
8d1c45162d
Add functions to return options for Capturing, Analysing, AnalysisSource, Recording, RecordingSource
2021-10-16 20:35:11 -04:00
Isaac Connor
7bda103b99
WHen saving v4l settings redirect back to watch instead of console.
2021-10-16 18:30:55 -04:00
Isaac Connor
a465403c72
Handle when SERVER['HTTP_HOST'] is not set
2021-10-05 19:49:42 -04:00
Isaac Connor
c72d34f176
fix validInt to take negative integers. Introduce validCardinal to handle positive integers
2021-10-05 19:49:42 -04:00
Isaac Connor
1f04723f3a
dbError is supposed to take the sql that caused the error. So pass something to satisfy php
2021-10-05 19:49:42 -04:00
Isaac Connor
2f12615f08
assign REQUEST['newMonitor'] to a variable to simplify code. Fixup ModelId and ManufacturerId saving.
2021-09-25 10:33:16 -04:00
Isaac Connor
7ca7d40b6f
Add defaults for ModelId and ManufacturerId. Fixes the methods for loading them
2021-09-25 10:32:04 -04:00
Isaac Connor
227e5794fa
Merge branch 'master' into add_manufacturer_model_to_monitors
2021-09-08 18:32:46 -04:00
Isaac Connor
b2415643f6
Add missing Importance member
2021-09-08 13:57:46 -04:00
Peter Keresztes Schmidt
6e96cbe14a
Misc: Merge ZM_HAS_V4L with ZM_HAS_V4L2
2021-09-08 00:19:08 +02:00
r01k
79e041d0f0
Fixed bug that caused 'Call to undefined function Error()' in control_functions.php. Exception was being raised due to logger.php not being included in control_functions.php.
2021-08-20 22:42:57 -04:00
Isaac Connor
eb1124c406
Spacing and quotes
2021-08-18 10:53:59 -04:00
Isaac Connor
b9efe627f3
implement Event->canView
2021-08-18 10:53:59 -04:00
Isaac Connor
301d8fa5fa
Change monitor->canView semantics so that a specified monitorId trumps the Monitors:None setting. This is so that the console can be hidden, but the group dropdown still gets populated.
2021-08-18 10:53:59 -04:00
Isaac Connor
a311455526
clean up code logic so that if we are executing an unchanged filter we don't do the unecessary save.
2021-08-12 13:42:36 -04:00
Isaac Connor
cd3359c3eb
spacing. Add defaults for AutoMoveTo and AutoCopyTo so that we don't get false changes. redirect is a global, so make it so. Re-null the Id of the filter object after temp execute so that we don't reference a no longer existing filter.
2021-08-12 12:53:46 -04:00
Isaac Connor
672de6e84f
event may have changed (have endtime set) between load and saving Archived bit. Lock the event which now also reloads it.
2021-08-06 19:15:22 -04:00
Isaac Connor
500ced2dc5
When locking, use the results to reload the object fields fresh as they may have changed since the object was loaded
2021-08-06 19:14:43 -04:00
Isaac Connor
105851b70c
Actually delete the snapshot record, not just the event connection
2021-08-06 13:17:02 -04:00
Isaac Connor
c6209ce460
Store new Model and Manufacturer when saving Monitor
2021-07-07 09:47:00 -04:00
Isaac Connor
3bb2b804b3
Include Model and Manufacturer to includes in Monitor.php
2021-07-07 09:46:36 -04:00
Isaac Connor
24a77d7fb3
Add ManufacturerId to Model
2021-07-07 09:46:12 -04:00
Peter Keresztes Schmidt
f2bee0704a
LocalCamera: Remove support for V4L1
...
Kernel support for Video4Linux 1 was removed in 2.6.38 (March 2011). It's time to drop support on our side.
2021-05-31 23:29:29 +02:00
Isaac Connor
096581b7f1
add getMonitorStatuses function to return string values for status numbers
2021-05-28 12:29:30 -04:00
Isaac Connor
d59118fc47
Add redirect so that Yes I'd like to donate now goes to the zoneminder /donate website. This used to happen in javascript but got removed when it was turned into a modal.
2021-05-25 11:33:12 -04:00
Isaac Connor
0b4c35c58e
Merge pull request #3241 from connortechnology/fix_3239
...
Fix 3239
2021-05-19 20:39:42 -04:00
Isaac Connor
da8128aba1
Merge branch 'master' into add_manufacturer_model_to_monitors
2021-05-07 19:16:35 -04:00
Isaac Connor
44e8107cac
Fix AlarmedZoneId filter term not working because I wrote AlarmZoneId instead
2021-05-02 13:38:06 -04:00
Isaac Connor
7901950c48
spacing
2021-04-26 09:40:08 -04:00
Isaac Connor
9254c99ab8
Add ModectDuringPTZ
2021-04-23 14:52:29 -04:00
Isaac Connor
37e0f010e3
Require session to be instantiated
2021-04-23 09:08:48 -04:00
Isaac Connor
95249d5eb4
Merge branch 'release-1.34'
2021-04-12 16:32:57 -04:00
Isaac Connor
3335976cba
implement remote api Trigger support.
2021-04-12 15:59:31 -04:00
Isaac Connor
1b50314f9e
Add DisableAlarms function
2021-04-12 15:59:31 -04:00
Isaac Connor
7e579fd851
Implement Snapshots user permission
2021-04-12 15:59:31 -04:00
Isaac Connor
3dcb71933e
Add event summary fields to Monitor Object
2021-04-09 19:46:25 -04:00
Isaac Connor
2e22cd5c3b
Mark snapshot events as Archived
2021-04-08 15:20:44 -04:00
Isaac Connor
7e3d6f867e
Set the default crf so that encoding works
2021-04-01 11:53:57 -04:00
Isaac Connor
6c4e423a8b
Spacing
2021-03-30 18:20:31 -04:00
Isaac Connor
cbd8b22efb
Fix setting value when not empty
2021-03-30 14:28:17 -04:00
Isaac Connor
8582c1a652
Once again fix saving string value to '' so that we can empty LabelFormat
2021-03-30 13:31:26 -04:00
Isaac Connor
beb7a75d5a
Implement canView for Monitors
2021-03-30 11:52:04 -04:00
Isaac Connor
aeb98ec790
Implement canView for Groups. Implement Monitors() and Children() functions. Use canView when populating Group dropdown
2021-03-30 11:51:52 -04:00
Isaac Connor
8e1b2ccbc7
Add MaxImageBufferCount
2021-03-26 17:02:17 -04:00
Isaac Connor
be0841832e
enable reporting saving errors back to web ui.
2021-03-22 12:59:41 -04:00
Isaac Connor
3fdd2bff7f
Have to use === because apparently null == NOW() according to php.
2021-03-22 12:59:18 -04:00
Isaac Connor
fa08240a4d
Fix set() and __call to use the default value when set value is ''. Fixes issues in monitor view when changing type
2021-03-22 12:06:25 -04:00
Isaac Connor
c347261e19
Change default of ImageBufferCount to 3
2021-03-22 12:05:36 -04:00
Isaac Connor
d0adaeaabe
rework user saving action to use User object. Implement a duplicate username check. Deprecate php < 5.3 due to lack of bcrypt password hashing functions. Hence deprecate the use of mysql PASSWORD()
2021-03-21 09:18:12 -04:00
Isaac Connor
68f9c7c9e6
introduce a _last_error member to the object for reporting errors saving.
2021-03-20 19:27:53 -04:00
Isaac Connor
4cb38a119e
Fix saving Filters and other objects. Apparently comparing 0 to NOW() doesn't work.
2021-03-18 14:09:15 -04:00
Isaac Connor
28700fd56b
Implement saving DecodingEnabled from function view
2021-03-16 12:09:14 -04:00
Isaac Connor
5eae1c0a9f
spacing, add code comment
2021-03-13 12:10:55 -05:00
Isaac Connor
b50916e02a
Allow unknown columns in filters. Allow specifying the table name in FilterTerm.
2021-03-12 10:52:10 -05:00
Isaac Connor
11c2318a05
Rough in the ui for Snapshots
2021-03-12 09:28:05 -05:00
Isaac Connor
6682ec7da5
Add Snapshots and Snapshot_Events Tables. Add HomeView to Users.
2021-03-12 09:26:23 -05:00
Isaac Connor
de0bbf7e04
Instead of fatal error triggering, turn off file logging and log the error elsewhere
2021-03-03 14:31:43 -05:00
Isaac Connor
ce4e133c94
Add loading SecondPath in monitor
2021-03-03 09:56:33 -05:00
Isaac Connor
4cfe777e93
Fix path to Monitor.php
2021-02-16 11:16:06 -05:00
Isaac Connor
bb747bfc6d
Add RTSPStreamName fields
2021-03-01 16:46:48 -05:00
Isaac Connor
5d826fd558
Don't try to addup/update DIskSpace used by incomplete events.
2021-02-20 17:11:20 -05:00
Isaac Connor
4d739f35ef
Fix parseTree when using iS or ISNOT. Add strtoupper comparisons for NULL values.
2021-02-20 17:07:07 -05:00
Isaac Connor
0fc4b00ac1
Allow null as well as NULL infilter values
2021-02-20 12:32:38 -05:00
Isaac Connor
c99f43205d
add parenthesis for safety
2021-02-18 13:47:27 -05:00
Isaac Connor
c608af4df7
Correct timeline when using Weekday
2021-02-17 13:11:02 -05:00
Isaac Connor
b58ecca040
Allow RTSPServer to be unselected
2021-02-17 12:07:55 -05:00
Peter Keresztes Schmidt
687ba03eb4
Drop relicts of zma
2021-02-10 13:26:25 +01:00
Isaac Connor
c2ac171811
truncate file when logging to 255 chars so it gets into the db
2021-02-09 14:23:15 -05:00
Isaac Connor
c8af90fd24
Add RTSP Server checkbox
2021-02-02 23:19:52 -05:00
Isaac Connor
105eff7a21
Remove references to zma
2021-02-01 17:29:16 -05:00
Isaac Connor
0dc6b60985
Use new insert function to allow re-use of monitor Ids
2021-02-01 16:44:41 -05:00
Isaac Connor
50e5f84df2
introduce insert function to be used when we want specifically to insert a db record instead of being smart about update/insert.
2021-02-01 16:44:04 -05:00
Isaac Connor
da7d9c3756
Add default for Monitor Name
2021-02-01 16:43:24 -05:00
Isaac Connor
e4c6709eca
ensure options always has width and height set
2021-01-27 13:07:31 -05:00
Isaac Connor
973533c809
Use method to handle case where Event wasn't found
2021-01-25 18:39:57 -05:00
Isaac Connor
f2fea95f4b
Merge branch 'master' into zma_to_thread
2021-01-14 13:02:52 -05:00
Isaac Connor
9a824716b5
Fix clicking on pills committing the form. Remove hidden inputs and use pills to toggle visibility of divs instead. rename newControl to Control. Use button as the action input
2021-01-12 18:41:24 -05:00
Andrew Bauer
70f73f5475
modernize monitors view
2021-01-11 13:46:50 -05:00
Andrew Bauer
6dcedb584d
modernize monitors view
2021-01-05 10:16:51 -06:00
Isaac Connor
284b9f963f
Merge branch 'master' into zma_to_thread
2020-12-29 12:18:26 -05:00
Isaac Connor
a1917d83d0
Merge branch 'master' into zma_to_thread
2020-12-22 19:52:09 -05:00
Isaac Connor
381cc30e5d
Set default value for DefaultScale to 0 which is ScaleToFit
2020-12-18 10:54:08 -05:00
Isaac Connor
0702b64cc4
Merge branch 'master' into zma_to_thread
2020-12-15 10:51:40 -05:00
Isaac Connor
bfd16db34b
add format padding so that right align file size strings will line up nicely.
2020-12-11 09:33:36 -05:00
Isaac Connor
f89da79c27
Fix comparing empty arrays. explode on an empty string returns an array with a single element '' instead of an empty array
2020-12-10 16:25:24 -05:00
Isaac Connor
da8d96ddda
Don't pass types to changes, it doesn't do anything. Add DecodingEnabled to request
2020-12-10 16:24:09 -05:00
Isaac Connor
ced396e437
Add DecodingEnabled to Monitors
2020-12-10 14:06:26 -05:00
Isaac Connor
5482d3b3d5
Quiet error when calling logout when already logged out
2020-12-09 17:56:27 -05:00
Isaac Connor
eb4b7f248d
handle sort_field and limit not existing in _REQUEST
2020-12-09 17:56:27 -05:00
Isaac Connor
63e36340c6
Remove extra }
2020-12-08 11:26:52 -05:00
Isaac Connor
bfe5bb0249
Include code to handle when we are already logged in but trying to auth with a mismatched auth_hash
2020-12-08 11:19:22 -05:00
Isaac Connor
b261fbb397
Merge branch 'master' into zma_to_thread
2020-12-07 16:26:26 -05:00
Isaac Connor
4d33667a85
Merge branch 'release-1.34'
2020-12-05 16:51:42 -05:00
Isaac Connor
fdbca4760f
dbFetchAll should always return an array. Not null on error
2020-12-05 16:38:25 -05:00
Isaac Connor
3a7571dd63
undo bogus cache use in Object constructor
2020-12-04 15:16:43 -05:00
Isaac Connor
8397ec3b9d
Merge branch 'release-1.34'
2020-12-01 14:28:10 -05:00
Isaac Connor
baeb1dbd5b
Take an optional debug param in dbQuery
2020-12-01 14:07:23 -05:00
Isaac Connor
cf08010ebe
Fix redirect on zone editing
2020-11-18 13:04:56 -05:00
Andrew Bauer
0ffb5e153c
modify FilterTerm to support Frames view searches
2020-11-14 17:33:18 -06:00
Isaac Connor
3cf31435a7
fix next/prev buttons by correcting the sort_field when it is StartTime or EndTime
2020-11-13 09:51:54 -05:00
Isaac Connor
df783f4835
Merge branch 'master' into zma_to_thread
2020-11-12 12:53:55 -05:00
Isaac Connor
fe733fe1e6
Must use & instead of & in filter redirect
2020-11-11 17:39:37 -05:00
Isaac Connor
73e8c04b6f
Fix encoding of = in filter['Id']. Fixes redirect after saving
2020-11-11 17:39:20 -05:00
Isaac Connor
b4aacde5bf
Remove debug. Auth is pretty solid these days
2020-11-10 13:15:46 -05:00
Isaac Connor
5b10fff2a0
Use cached objects when using new instead of only find_one
2020-11-10 13:14:36 -05:00
Isaac Connor
59403dc11b
Move event stat totals to Monitor_Status.
2020-11-06 14:00:18 -05:00
Isaac Connor
8029f59eac
Rename StartTime, EndTime in Events to StartDateTime and EndDateTime
2020-11-04 13:52:50 -05:00
Isaac Connor
2d33dd5386
Rename StartTime, EndTime in Events to StartDateTime and EndDateTime
2020-11-04 13:52:32 -05:00
Isaac Connor
e67532ef76
implement is_valid_attr. Fix incorrect EventDiskspace vs FS DiskSpace. FS DiskSpace isn't implemented. DiskPercent is.
2020-11-04 12:40:43 -05:00
Isaac Connor
387b2b1fc2
add attr validation to addTerm. Add addTerms
2020-11-04 12:39:42 -05:00
Isaac Connor
dda1decfb1
When redirecting after execute, redirect to the full filter querystring, as it may not have an Id and may have additional changes
2020-11-03 11:45:22 -05:00
Isaac Connor
f7c9a0e03d
Must urlencode [Id]=
2020-11-03 11:44:54 -05:00
Matt N
6e3eb922e0
Use relative symlinks for monitor event directories
...
This way the link continues to work from backups and after the user moves ZM data to a new directory.
2020-11-01 14:55:08 -08:00
Isaac Connor
858674c0b2
Merge branch 'master' into filter_locking
2020-10-28 12:52:52 -04:00
Isaac Connor
b3a28b2ba2
fix confusion in syslog reporting web_php when the error was actually web_js
2020-10-28 12:49:03 -04:00
Isaac Connor
a2596505e9
add LockRows to Filters
2020-10-26 18:47:17 -04:00
Isaac Connor
90c5f63d6d
Fix session.gc SQL issue. Don't need a * when deleting
2020-10-24 09:05:39 -04:00
Isaac Connor
2178da387d
pass desired object name into querystring()
2020-10-23 17:56:38 -04:00
Isaac Connor
b6004012e9
implement passing the object name to use when constructing the querystring
2020-10-23 17:56:05 -04:00
Isaac Connor
8f8526c2f1
add some debug to session garbage collection
2020-10-21 10:38:42 -04:00
Isaac Connor
946a59ce8b
add special case for sort_field being StartDateTime. This is not an event column and must be corrected to StartTime
2020-10-21 10:37:39 -04:00
Isaac Connor
1c5e161909
quotes
2020-10-21 10:37:06 -04:00
Isaac Connor
1dfebc24b0
Fix ZM\
2020-10-21 10:36:58 -04:00
Isaac Connor
34ce3a1498
Use Filter::parse instead of parseFilter. Use Filter->addTerm to limit to User's monitor restrictions. Return early with better logging in the event of error. Introduce Filter->addTerm
2020-10-21 10:36:40 -04:00
Isaac Connor
2eda49333f
Merge branch 'master' into zma_to_thread
2020-10-20 16:20:29 -04:00
Andrew Bauer
442fadb585
link bstable locale to zoneminder's
2020-10-17 07:28:14 -05:00
Isaac Connor
4f56f9d82b
Merge branch 'master' of github.com:ZoneMinder/zoneminder
2020-10-15 17:20:10 -04:00
Isaac Connor
12b75e93b8
Merge branch 'release-1.34'
2020-10-15 17:19:56 -04:00
Isaac Connor
3c5dc8e8b3
Add line breaks in select options
2020-10-15 17:16:14 -04:00
Isaac Connor
57a1a383ad
Merge branch 'release-1.34'
2020-10-14 11:32:50 -04:00
Isaac Connor
e9fb150880
Improve error message when a row doesn't exist in the Monitor_Status table
2020-10-14 11:32:33 -04:00
Andrew Bauer
c3a98c1f44
replace shutdown form submit with ajax
2020-10-14 10:03:33 -05:00
Isaac Connor
10c0a6617c
Return Debug to a regular function to match other logging functions. Since we switched to using namespaces we no longer clash with cake_php.
2020-10-14 10:39:25 -04:00
Isaac Connor
cd2e96eaec
Merge branch 'master' of github.com:ZoneMinder/zoneminder
2020-10-13 08:42:28 -04:00
Isaac Connor
908c20e959
add ZM prefix to Warning
2020-10-13 08:42:22 -04:00
Andrew Bauer
1db31ba574
remove makePopupLink function. Use makeLink instead
2020-10-12 12:20:21 -05:00
Andrew Bauer
0f263407a5
make redirect conditional on previous view
2020-10-12 10:32:25 -05:00
Isaac Connor
046124fe0e
Add AutoUnarchive column, also add Id to querystring if this is a saved Filter
2020-10-12 10:54:22 -04:00
Isaac Connor
fa34d00392
Add object classes for Manufacturer and Model
2020-10-11 09:57:51 -04:00
Isaac Connor
630d9011f3
Fix redirect when saving users
2020-10-10 09:48:09 -04:00
Isaac Connor
624006022c
Use a redirect to get rid of post on reload
2020-10-07 11:59:11 -04:00
Isaac Connor
b683d5326a
Test for empty array in htmlOPtions when notifying about not selecting a value
2020-10-07 11:22:42 -04:00
Isaac Connor
efd56a2e09
spacing
2020-10-07 11:16:02 -04:00
Andrew Bauer
87fd316e5b
makePopupButton removed, use makeButton instead
2020-10-05 16:40:14 -05:00
Andrew Bauer
2852d14ca6
use data-on-change-this instead of inline js
2020-10-04 08:04:11 -05:00
Andrew Bauer
1ef1b48c71
remove warnings used for testing
2020-10-03 07:08:04 -05:00
Andrew Bauer
a97e526298
fix save button in controlpreset modal
2020-10-02 16:10:32 -05:00
Andrew Bauer
802e439cb5
convert controlpreset view to a modal
2020-10-02 15:46:28 -05:00
Isaac Connor
e9d120f032
remove debug
2020-10-02 15:56:56 -04:00
Isaac Connor
bc5002515e
remove debug
2020-10-02 15:56:50 -04:00
Isaac Connor
5d20dde85c
Implement a Session class that takes over session functions and stores in the database
2020-10-02 14:50:22 -04:00
Andrew Bauer
186b8ac947
convert x10 device view to a modal
2020-10-01 15:52:33 -05:00
Andrew Bauer
928fa67fce
redirect to previous view after user perm changes
2020-10-01 10:45:44 -05:00
Andrew Bauer
b8d95dfa05
fix array to string php warning
2020-10-01 09:13:50 -05:00
Isaac Connor
aa7ba44ed9
Use ->zmaControl instead of invalid zmaControl(). the old zmaControl takes a mid, not a monitor object
2020-09-29 16:48:22 -04:00
Isaac Connor
24d8b99eea
test for property_exists to quiet errors
2020-09-29 16:47:49 -04:00
Isaac Connor
a39a656373
Merge branch 'master' into zma_to_thread
2020-09-29 11:02:40 -04:00
Isaac Connor
ecac5e051a
Merge branch 'master' of github.com:ZoneMinder/zoneminder
2020-09-28 09:34:14 -04:00
Isaac Connor
0a4a144bbc
Merge branch 'location'
2020-09-28 09:33:28 -04:00
Andrew Bauer
3b46ebacae
remove warning used for testing
2020-09-27 12:20:09 -05:00
Andrew Bauer
c1a0afef95
make group view into a modal
2020-09-27 12:12:01 -05:00
Andrew Bauer
2d8349073d
redirect to controlcaps after saving a control
2020-09-26 14:31:59 -05:00
Andrew Bauer
ae9139b00c
unpopup zone view
2020-09-25 10:52:13 -05:00