Commit Graph

10051 Commits (revert-3817-database-certificate-verification)

Author SHA1 Message Date
Isaac Connor 45bcb13045 Add backtrace to errors in json 2023-09-25 16:32:20 -04:00
Isaac Connor 1fdf7f2b31 Remove debug 2023-09-25 16:32:01 -04:00
Isaac Connor e1ef40de17 Only load the delConfirm modal if we click delete 2023-09-25 16:27:01 -04:00
Isaac Connor a619634988 Add tab to available js vars on options 2023-09-21 12:52:30 -04:00
Isaac Connor fc3a1bfc4b use const instead of var 2023-09-21 12:52:02 -04:00
Isaac Connor 24d6649e98 Log useful output when failure to write dnsmasq.conf and fail to restart dnsmasq 2023-09-21 12:51:37 -04:00
Isaac Connor 2e10169cde Deprecate cURL monitor type 2023-09-21 12:08:27 -04:00
Isaac Connor 057159cde6 Make properties public so that they can be access in Storage object 2023-09-21 10:10:57 -04:00
Isaac Connor 2e17d2e8a4 Add Notes filter 2023-09-20 13:35:30 -04:00
Isaac Connor 4410757037 Fix use of RETURNING Id which isn't supported in all mysql. Use dbInsertId instead. 2023-09-15 11:26:15 -04:00
Isaac Connor ee379cb4e4 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-09-15 10:15:58 -04:00
Isaac Connor f8c89a0405
Merge branch 'master' into tags 2023-09-14 16:42:06 -04:00
Isaac Connor b68ed6c135 Use UpdatedOn field of Monitor_Status to determine if info there is stale. Show offline if Monitor_Status hasn't been updated in over a minute. 2023-09-14 10:25:36 -04:00
Charlie Root 41dc7c8f4e Fixes to not log errors when there are no monitors to display in watch. 2023-09-13 11:19:16 -07:00
Charlie Root e11b700fbd Add Id as a protected member, only lookup monitor status if Id has a value 2023-09-13 11:18:50 -07:00
Charlie Root 6754fcb208 Make Filter properties protected 2023-09-13 11:18:28 -07:00
Charlie Root 1c3206b781 Merge branch 'master' into openbsd 2023-09-13 10:15:06 -07:00
Charlie Root fccebee056 Add -a to arp, add ZM_PATH_OUI for path to ieee-oui.txt 2023-09-13 10:14:49 -07:00
Charlie Root c4302c27ac Add code to test for existence of ip and support ifconfig 2023-09-13 10:14:21 -07:00
Isaac Connor a58949ab32 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-09-13 13:10:37 -04:00
Isaac Connor d9bf168066 Merge ../ZoneMinder.connortechnology 2023-09-13 13:10:14 -04:00
Isaac Connor c6a7fe949a Use different syntax for property access 2023-09-13 13:10:01 -04:00
Isaac Connor d7090ce84a Define properties 2023-09-13 13:08:12 -04:00
Isaac Connor 3767d815a5 Use different syntax for assigning object properties 2023-09-13 13:05:57 -04:00
Isaac Connor ef402e7b99 Define tablename member 2023-09-13 13:05:39 -04:00
Isaac Connor 46ac2dba2f Define tablename member 2023-09-13 13:05:25 -04:00
Isaac Connor 6a87f56ac2 Never display errors 2023-09-13 13:04:16 -04:00
Isaac Connor de8f387207 Restrict mid to a cardinal value. Fixes GHSA-9cmr-7437-v9fj 2023-09-13 10:12:04 -04:00
Isaac Connor e353523073 Fix int()=>(int) causing events to not load 2023-09-12 09:07:46 -04:00
Charlie Root da213d8532 Merge branch 'master' into openbsd 2023-09-11 13:42:43 -07:00
Charlie Root 50059e5842 Only show ram info if proc exists. 2023-09-11 13:42:22 -07:00
Isaac Connor b7ed7a4bd8 in detaintPath also strip :// because php:// is a way to inject code 2023-09-11 12:34:31 -04:00
Isaac Connor a194fe81d3 Only allow Events Columns for sort. Fixes GHSA-2qp3-fwpv-mc96. Fixes GHSA-9cmr-7437-v9fj 2023-09-11 11:29:54 -04:00
Isaac Connor a13c9c06f2 Handle when filter limit is '0' 2023-09-09 12:38:47 -04:00
Isaac Connor b1cdf9905c Make notes clickable to bring up objdetect image like in events list 2023-09-09 12:37:27 -04:00
Isaac Connor e53974119b Ensure that group_id is defined 2023-09-09 12:08:44 -04:00
Isaac Connor b44216d3da Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-09-08 14:19:09 -04:00
Isaac Connor a9997b943a Use new event::find_virtual_frame when loading frames 2023-09-08 14:19:01 -04:00
Isaac Connor cb5442d5b8 Add 704x576 aspect ratio to timeline css 2023-09-08 14:18:34 -04:00
Isaac Connor 82e972943e Add frame loading including virtual frames 2023-09-08 14:18:11 -04:00
Isaac Connor 473d34e220 Update events frameimage status code to use Event object. Make not finding the frame a debug because of bulk frames. 2023-09-08 14:17:36 -04:00
Isaac Connor 2b2c43e630
Merge pull request #3748 from Simpler1/patch-6
Refresh table on show
2023-09-05 13:05:36 -04:00
Simpler1 18d74ed7ac (feat): Tags
fix(tag): Create tags on mobile

chore(tags): Change TagName to Name

chore(tags): eslint

chore(tags): dbFetchAll to dbQuery for removetag

chore(events): eslint (attempt 2)

feat(tags): Better handling of keyboard

fix(tags): Enter key for creating new tag

fix(tags): Don't allow space as a tag name

feat(tags): Delete tag if last assignment removed

fix(tags): Increase height of dropdown

in progress

fix(Tags): Use T.Id on the events page dropdown

fix(Tags): Remove $availableTags from events.php

chore(sql): Formatting sql statements

feat(Tags): Working OR on filters and events pages

fix(filter): Populate availableTags

chore(Tags): code formatting

fix(tag): Add tag on create tag

Fix(tags): Remove tag from available if last

feat(tags): Add zm_update.sql

fix(chosen): Undo css width

fix(chosen): tags dropdown width

fix(tags): dropdown over timeline

fix(tags): Full width input

fix(events): Refresh table on page show

chore(filter): Clean up availableTags

chore(event): Clean up available & selected Tags

fix(event): Update available tags on remove

fix(event): Remove hack for selected tags

feat(tags): Blur input after adding tag

doc(tags): Initial tags documentation

fix(tags): Dark theme dropdown

fix(tags): Dark theme for tags on input

fix(tags): Dark theme for highlight in dropdown

fix(tags): Populate filter tags droplist

chore(): Bump zm_update to 1.37.42

chore(tags): Move mobile check to skin.js

chore(tags): Comment debug statements

fix(tags): Enter key to create tag on mobile Chome

chore(tags): Space in 'All Tags' for translation

Temporary commit to handle cookie expiration times

chore(tags): Remove unnecessary Tag(s) from en_gb

chore(): Cleanup unnecessary Error and Debug

chore(): Resolve merge conflicts

chore(): Address merge conflicts with master
2023-08-31 15:50:08 -04:00
Isaac Connor e5d125c4ef Handle when no linefeed found 2023-08-31 12:46:12 -04:00
Isaac Connor 56999da3eb Check for existence of path before scanning it generating a lot of erros 2023-08-30 14:38:43 -04:00
Isaac Connor 6331d79a73 Add visibility toggle for password inputs on user edit 2023-08-28 16:39:23 -04:00
Alejandro Criado-Pérez 6fd119157a
Text corrections 2023-08-27 02:00:59 +02:00
Isaac Connor cf713b59d7 Add 500 and 1000 as pagination options 2023-08-25 19:02:17 -04:00
Isaac Connor 9132f8947d If scale is 0 or negative, then start with scale=100 2023-08-23 16:32:39 -04:00
Isaac Connor 76d5646cbf Fix scaling being constantly set to 0 and hence logging a bogus value for scale 2023-08-23 16:32:13 -04:00
Isaac Connor 1dba6115b1 Fix eslint 2023-08-23 11:44:16 -04:00
Isaac Connor 1e423c151d Stop infinite recursion when fail to load logout modal. 2023-08-22 12:20:11 -04:00
Isaac Connor 67e2c80851 Check for existence of modal before including it. 2023-08-22 12:19:48 -04:00
Isaac Connor 491b48f9f9 Only allow execute if you have EditEvents permission 2023-08-18 16:58:29 -04:00
Isaac Connor 9371c2775d Use canEdit and canDelete to allow users without canEditEvents to create filters that don't act on events, only list them. 2023-08-18 16:57:51 -04:00
Isaac Connor 94ea51489b Add canDelete and canEdit functions to Filter 2023-08-18 16:57:08 -04:00
Isaac Connor ea581e521f Add default value for order 2023-08-18 16:56:50 -04:00
Isaac Connor 084fc8b651 Put users table in an options div, which has overflow-y: auto applied to it. Move buttons to top so they don't scroll 2023-08-18 12:12:30 -04:00
Isaac Connor 8748d6a1cc Handle unset _SESSION['remoteAddr'] 2023-08-16 15:23:34 -04:00
Isaac Connor 91b4e299b9 Demote failed login to Warn instead of Error 2023-08-16 10:37:06 -04:00
Isaac Connor bdc8452891 Add a button to toggle ptz controls. Put ptz controls into a right hand sidebar. 2023-08-15 17:58:55 -04:00
Isaac Connor d31f918abc Change the api for frameimage status request to split id into eid and fid instead of having id as an array. 2023-08-15 09:15:24 -04:00
Isaac Connor 9a229a78a5 Fix missing mac key on cameras array 2023-08-14 13:30:24 -04:00
Joe 87f09d3b7e Fix usage of unset variable
If daemon or args are unset the preg_replace is never called which can
result in count not having a value when referenced in the if statement.
This generates a warning in error.log.
2023-08-13 17:56:55 -07:00
Alejandro Criado-Pérez a93b67c9d8
Fixed eslint checks 2023-08-13 16:47:04 +02:00
Isaac Connor c5eec8fa12 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-08-10 11:03:30 -04:00
Isaac Connor 8672e6d64e Fix missing dropdown-item class on warning or danger storage areas. Increase warning to 95% instead of 90% 2023-08-10 11:03:22 -04:00
Isaac Connor 9d5a1ec9d5 If scale is invalid, reset to auto so we don't constantly log the error. 2023-08-10 10:58:19 -04:00
Isaac Connor b2993c3ec0 Use some const instead of var in changeScale 2023-08-09 19:29:19 -04:00
Isaac Connor b8982dce53 When hiding/unhiding the monitor filter bar, when done call changeScale to readjust the size of teh video 2023-08-09 19:28:59 -04:00
Isaac Connor 10d70022fe Handle when controls is not defined, like in WebSite monitors 2023-08-09 19:01:55 -04:00
Isaac Connor 7aa229658b Slight cleanup of changeScale, converting it to float instead of string. 2023-08-09 19:01:30 -04:00
Isaac Connor 889c809e0b Add RTSP2WebEnabled to defaults 2023-08-09 18:55:36 -04:00
Isaac Connor 7750eef533 Handle non-existing elements when monitor type is Website or Local. 2023-08-09 16:00:08 -04:00
baudneo 95655c9043
Allow RTSPtoWeb streams for zone editing (#3750)
* Allow RTSPtoWeb streams for zone editing

* Fix quoting
2023-08-08 22:03:13 -05:00
Isaac Connor 97bb130cd1 Limit effect of styling on label elements 2023-08-08 19:18:25 -04:00
Isaac Connor 00bd2259a3 Midly improve dlink support. Fix for probing an undefined array 2023-08-08 18:34:44 -04:00
Isaac Connor 0afa383c38 Info to Debug for login. 2023-08-08 14:24:36 -04:00
Isaac Connor 1e200abf16 Remove support for browsers not supporting TextDecoder to fix eslint 2023-08-08 13:01:42 -04:00
Isaac Connor fd391a4b68 Merge whoosinn:ZoneMinder 2023-08-08 10:11:08 -04:00
Isaac Connor 11f84fcb4e Fix user->Controls to user->Control. Fixes broken js on monitor view 2023-08-08 10:10:49 -04:00
Isaac Connor 042edd25e5 Add classes to tr so they can be styled 2023-08-08 09:54:47 -04:00
Isaac Connor 2f552bdcce User monitor->canView instead of user->unviewableMonitorIds for performance 2023-08-02 18:08:32 -04:00
Isaac Connor 8f9a4dc825 Use User object to get Monitor_Permission and Group_Permissions hoping it will be cached there. 2023-08-02 18:07:35 -04:00
Isaac Connor 5233c402d3 Use User object to get Monitor_Permission and Group_Permissions hoping it will be cached there. 2023-08-02 18:07:28 -04:00
Isaac Connor 672ba114f4 Fix reversed defaults for RTSP2Web options 2023-08-02 13:48:15 -04:00
Isaac Connor 206be0ea96 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-08-02 13:36:33 -04:00
Isaac Connor b48702c96c Fix lack of ZM on Warning 2023-08-02 13:36:26 -04:00
Jonathan Bennett 80c145dca4 Add support for HTTPS connections to RTSP2Web 2023-07-31 00:16:51 -05:00
Jonathan Bennett af42398070 Fix ESLint issues in RTSP2Web work 2023-07-30 16:54:22 -05:00
Jonathan Bennett 5c9588c012 Adds RTSP2Web support for live view 2023-07-29 23:46:31 -05:00
Isaac Connor d56beead81 Remove duplicated and old styles from dark montage that are in base. Removes width 99% from montage content which is no longer needed 2023-07-28 14:03:20 -04:00
Isaac Connor 20bbd9f3a6 If controls are on but not permitted the controls will not be defined 2023-07-28 12:56:51 -04:00
Isaac Connor 3301d3042b Only show map if the event has lat&long 2023-07-27 10:30:37 -04:00
Isaac Connor 03155da5b6 Use the full integer value instead of the first char of mi. Fixes failure to get status on janus viewing pages 2023-07-25 15:18:35 -04:00
Isaac Connor 30c8052e60 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-07-25 12:32:40 -04:00
Isaac Connor bd3aac1cf6 Fixup curl() and Axis probing 2023-07-25 12:32:35 -04:00
Isaac Connor bb625ab237 nonce can contain =, so parse that properly. Use a betr nonce. 2023-07-25 12:32:13 -04:00
Simpler1 a6c403a4ac
Refresh table on show
After opening an event from the events table and editing some properties, returning back to the events table would show the cached version of the table without the new values.  

This change will refresh the events table each time it's shown. 

It is a bit of a performance hit, but it's more important to show accurate information after a quick delay than to show bad/inaccurate information fast.
2023-07-24 15:13:53 -04:00
Simpler1 8c49d911a0
Event table data should be aligned with column headers
This is more noticeable when some columns of the events table are toggled off, but the column headers were centered and the data in columns were left justified.  This made it difficult to read which column went to which data.

This change centers both the column headers and the data in the columns so that they line up.
2023-07-24 15:01:12 -04:00
Isaac Connor add08aeb56 Add 5MP resolution 2023-07-21 14:30:10 -07:00
Isaac Connor 2fb0b4476b add mac to probe results 2023-07-21 14:26:56 -07:00
Isaac Connor c0b5bbf8cc Rough in Hanwha support. Fix results getting overwritten 2023-07-21 14:26:39 -07:00
Simpler1 c949b9e2d6
fix(event): Honor the Alt key with left/right arrow
Fixes a race condition when using Alt-LeftArrow to go back to the previous page (standard browser behavior).

Sometimes it would go the previous event and sometimes it would go to the previous page.  Now it will consistently go to the previous page when the alt key is pressed with the left arrow.
2023-07-21 15:07:22 -04:00
Simpler1 10f7e4320f fix(cookies): Use max-age instead of expires 2023-07-21 13:27:44 -04:00
Simpler1 ef68943b7c chore(): Set default cookie time to Jan 2038 2023-07-21 11:07:11 -04:00
Isaac Connor 6cb4f0a4f6 Fix logic on filtering monitorNames 2023-07-20 16:44:23 -04:00
Isaac Connor 75322142a4 Remove deprecated MonitorsIds. Replace it's use with looking for edit permission per monitor 2023-07-19 12:39:32 -04:00
Isaac Connor cb7d954a87 Fix warning when creating new user 2023-07-17 17:29:16 -04:00
Isaac Connor 6dbdd2120d Cleanup mid before use. Mostly to quiet snyk 2023-07-17 17:02:32 -04:00
Isaac Connor f46ef094dc Merge envserv:sandbox/ZoneMinder 2023-07-17 15:37:12 -04:00
IPC 65d37e7a36 Rough in a Grandstream detector 2023-07-17 14:36:28 -05:00
Isaac Connor 64057eec95 ROugh in Foscam and DLink detections 2023-07-15 10:29:54 -04:00
Isaac Connor cae8fda326 Remove debug 2023-07-15 10:29:38 -04:00
Isaac Connor c7259fdc14 Implement read locks when accessing jpgs. Implement locking on creating scaled jpegs. 2023-07-13 17:20:18 -04:00
Isaac Connor d172d41638 Add Capturing=Always 2023-07-13 12:45:25 -04:00
Isaac Connor b21b58c5ba Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-07-12 17:09:51 -04:00
Isaac Connor 752faf5899 Add ue strict, some speed control functions and fixes for use strict 2023-07-12 17:08:44 -04:00
Isaac Connor e13a42aa46 Fix not saving Manufacturer and Model. Have to unset the text input if the ddm is populated 2023-07-12 14:30:49 -04:00
Isaac Connor 5d21a19231
Merge pull request #3726 from Simpler1/patch-2
Remember Events table settings
2023-07-12 10:34:13 -04:00
Isaac Connor 5a8330ac98
Merge pull request #3727 from Simpler1/patch-3
Fix(event): Consistent cookie timeframe
2023-07-12 10:33:18 -04:00
Simpler1 87e493376f
fix(events): Dark background for table while loading
When using the dark theme css, as the events table is loaded, the background is a dark grey instead of white.

Previously, the "loading" background color was white which was very jarring for the user as the screen flashes from dark grey to white and then back to dark grey.
2023-07-12 10:28:59 -04:00
Isaac Connor e96d2a6acc No longer abort when sending a command... no streaming ajax should take any significant time. 2023-07-11 17:27:52 -04:00
Isaac Connor 4f80577d36 Add geolocation to event view 2023-07-10 13:45:12 -04:00
Isaac Connor f96ac69033 Set thumbnail image source to stream immediately, then change the class for zoom. Increate timeout to 250 2023-07-09 12:05:18 -04:00
Isaac Connor 37b571a58a Handle no password specified and make testing for www-authenticate header non case sensitive 2023-07-05 15:51:16 -04:00
Isaac Connor fd39c57038 Use sticky instead of absolute to fix zoomed thumbnails when scrolled 2023-06-28 14:51:32 -04:00
Isaac Connor 2862f47a8b Add standard divs and put canvas in the content div so scrolbars work 2023-06-28 14:49:31 -04:00
Isaac Connor 47ebf929cc Actualy populate Name, Email, Phone inputs 2023-06-27 11:55:21 -04:00
Isaac Connor 3714b38caa Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-06-27 11:47:03 -04:00
Isaac Connor 961f05b228 Don't show deleted monitors in group dropdowns 2023-06-27 10:45:13 -04:00
Isaac Connor bc1214e8e5 Don't use empty because it tests for false, and 0 is false. Just check for empty string. Fixes #3732 2023-06-27 10:44:25 -04:00
Isaac Connor 93dc57401f Remove duplicated ExistsInFileSystem label 2023-06-26 10:34:19 -04:00
Isaac Connor ccdbb8edf6 Improve Avigilon detection 2023-06-22 13:31:01 -04:00
Isaac Connor 139315776d Fix searching by monitor name 2023-06-22 13:13:19 -04:00
Isaac Connor 2f2c488e5a
Merge pull request #3725 from Simpler1/patch-1
Fix(monitor.css): Narrow layout for pills-tab
2023-06-20 13:02:43 -04:00
Simpler1 fa68fc3894 Merge remote-tracking branch 'origin/patch-4' into patch-5 2023-06-19 11:36:39 -04:00
Simpler1 2d07098e1b
Add Help text for OPTIONS_ALARMMAXFPS
Previously this was pointing to the same text as OPTIONS_MAXFPS.
2023-06-19 11:33:20 -04:00
Simpler1 40a4d5266e
Add Help for OPTIONS_ALARMMAXFPS
Pulled text from ReadTheDocs.
2023-06-19 11:29:31 -04:00
Simpler1 80373f8f44
Fix(event): Consistent cookie timeframe
Sets cookie timeframe from one hour to two years (consistent with other cookie settings).
2023-06-14 19:23:14 -04:00
Simpler1 4c28b16c4b
Remember Events table settings
Fixes #3671
2023-06-14 19:19:58 -04:00
Simpler1 ed1a4c249d
Fix(monitor.css): Narrow layout for pills-tab
Fixes issue #3714
2023-06-14 19:13:42 -04:00
Isaac Connor 87fbc96609 Fix where error_log write to to include path 2023-06-09 19:37:47 -04:00
Isaac Connor 19128eee18 Do not allow directory names in ZM_LOG_DEBUG_FILE. Only log to ZM_LOG_DIR 2023-06-09 17:27:54 -04:00
Isaac Connor 8a00be8cc8 Load the ZM::Event using the Event Model data instead of loading by Id which goes back to db. 2023-06-09 10:53:10 -04:00
Isaac Connor c811f1bc90 Load event using find_one which does caching. 2023-06-09 10:52:39 -04:00
Isaac Connor 2cb697f0e9 Debug alarm.jpg path when not found. Spacing. Remove unused Monitor variable 2023-06-09 10:40:34 -04:00
Isaac Connor 14eb38a00b add timeout value to debug, only send scale command if it is > 0 2023-06-08 10:30:01 -04:00
Isaac Connor 59ff7f3a31 Improve logged wrt insufficient permissions 2023-06-08 09:17:16 -04:00
Isaac Connor 81b9ac5efd Ignore inherit on monitor permission. We were returning true instead 2023-06-07 16:00:27 -04:00
Isaac Connor 7a21c01f36 Don't show bandwidth options if there are none to choose from 2023-06-07 16:00:02 -04:00
Isaac Connor 3dbd68886a Reload user using zm\User object methods 2023-06-07 15:59:46 -04:00
Isaac Connor 3491a99fc3 ServerId can be null so must have quotes around it 2023-06-07 11:33:59 -04:00
Isaac Connor 4f416edf93 Fix missing auth_relay on alarm xhr 2023-06-05 09:57:12 -04:00
Isaac Connor 28d6a9915c Fix eslint by finishing the intended code. The idea is to autmatically populate dhcp-range based on the ip set on the interface. This is unlikely to every happen due to defaults. Perhaps the code should simply check for the existence of the specified ip and flag the error 2023-06-04 07:50:29 -04:00
Isaac Connor 50be49b447 Make objdetect modals 65% width to make it easier to see 2023-06-01 14:49:00 -04:00
Isaac Connor 5c81538a09 remove fit-content on objdetect modal so we can scale it up to fit the screen better 2023-06-01 14:48:39 -04:00
Isaac Connor 7f10c7060a Fix hard coded monitor 5 in Add New Zone button 2023-06-01 07:56:43 -04:00
Isaac Connor 31d9342918 Assume reverse proxy setup for janus for http as well 2023-05-31 17:01:45 -04:00
Isaac Connor 993e8806c5 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-05-31 15:04:45 -04:00
Isaac Connor 8a0c1bc379 Check to see if dnsmasq is installed 2023-05-31 15:04:42 -04:00
Isaac Connor 42df7c00ea Fix left alingment of DHCP option 2023-05-31 15:04:04 -04:00
Isaac Connor cd4461c5a5 Fix merging config values. Defaults to no, fix parsing config file 2023-05-31 15:03:50 -04:00
Isaac Connor bfd86993e7 Add back logging, fix including = in value 2023-05-31 14:52:33 -04:00
Isaac Connor 43ed5f014f Put dnsmasq layout options into a dnsmasq class 2023-05-31 12:35:52 -04:00
Isaac Connor c3eccb4f96 Fix cspnonce 2023-05-31 12:08:08 -04:00
Isaac Connor 9141ea786d left align config 2023-05-31 12:07:58 -04:00
Isaac Connor 4b82cf1d82 Don't check for file existence, just a value 2023-05-31 11:42:38 -04:00
Isaac Connor b54a92da8e Rough in automatic range setting from interface ip 2023-05-31 11:42:15 -04:00
Isaac Connor c02cbd86f8 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-05-31 09:16:32 -04:00
Isaac Connor 8bd3e5a3b1 Can't use ZM\Logger functions in config as it loads before logger.php. 2023-05-31 09:09:17 -04:00
Isaac Connor 5fc8bf0743 Any tables with bootstrap-table class gets the bootstrap-table treatment 2023-05-30 20:47:05 -04:00
Isaac Connor ee0776c970 If configured, show dnmasq edit UI 2023-05-30 20:47:05 -04:00
Isaac Connor 7b2d8dc98c Rough in UI for editing dnsmasq config 2023-05-30 20:47:05 -04:00
Isaac Connor d277d6ca53 add formatting for dnsmasq edit 2023-05-30 20:47:05 -04:00
Isaac Connor b0e29c9be7 Fix downloading of Ffmpeg type monitors 2023-05-30 20:47:05 -04:00
Isaac Connor eab4d95e81 Always return an array from process_configfile instead of false on failure 2023-05-30 20:47:05 -04:00
Isaac Connor bc4d625ca4 Add systemd_isactive 2023-05-30 20:47:05 -04:00
Isaac Connor febf424259 Fix returning link_to 2023-05-30 20:47:05 -04:00
Isaac Connor 6204dfdecc Fix start/stop/restart dnsmasq 2023-05-30 20:47:05 -04:00
Isaac Connor 30495578c2 Add link_to function 2023-05-30 20:47:05 -04:00
Isaac Connor 2ac1fa21f8 Start roughing in dnsmasq options 2023-05-30 20:47:05 -04:00
Isaac Connor 7dbdf47d41 Add dnsmasq tab if it exists 2023-05-30 20:47:05 -04:00
Isaac Connor d728385bd1 Put a div around left buttons so we can use flex to lay it out better 2023-05-26 16:48:36 -04:00
Isaac Connor 66ef087a4d ServerId and FilterServerId must have a value to be valid 2023-05-26 16:38:58 -04:00
Isaac Connor c9a039209d Only add default value for startdatetime if the filter was empty before adding base terms 2023-05-26 16:37:23 -04:00
Isaac Connor 51a1d511fb Fix incorect merging of terms in sort. Fixes #3715. Also always show text op in simple_widget 2023-05-26 16:36:40 -04:00
Isaac Connor e14fc279e4 Handle empty set in IN/NOT IN better 2023-05-26 16:35:45 -04:00
Isaac Connor 4959d83751 Switch from utf8 to utf8mb4 so that collate works 2023-05-25 17:31:30 -04:00
Isaac Connor 9a13312e4e Fix eslint 2023-05-25 14:15:32 -04:00
Isaac Connor f49af3ac7b Fix eslint 2023-05-25 14:10:37 -04:00
Isaac Connor 99bc3a58f8 Remove md-18 from material icons so we can override the size in css for smaller screens 2023-05-25 13:56:00 -04:00
Isaac Connor e527264182 Hide navbars when not logged in and auth turned on 2023-05-25 13:55:39 -04:00
Isaac Connor d32f82750f Put back missing functionality on portrait mobile. Fixes #3712. 2023-05-25 13:55:20 -04:00
Isaac Connor f2b2d37a11 Make all material-icons buttons 18px 2023-05-25 13:54:44 -04:00
Isaac Connor 84e258c366 Just logically group code 2023-05-24 18:31:34 -04:00
Isaac Connor 704b3b2a80 Handle missing cnj on terms 2023-05-24 18:30:33 -04:00
Isaac Connor a7a8681344 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-05-24 14:42:55 -04:00
Isaac Connor ad24bd8eb1 Handle failure to db query more gracefully 2023-05-24 14:42:47 -04:00
Simpler1 b7a2afcaee
(fix): Montage 2 wide is stable on Chrome during alert
bootstrap has in internal css class called .alert that interferes with ZoneMinder's .alert class.

This fix overrides the bootstrap class and sets padding to 0.
2023-05-24 14:32:54 -04:00
Isaac Connor 52621c4314 Transform date string to int to satisfy newer php 2023-05-23 18:37:59 -04:00
Isaac Connor f24a48a71f Cleanup code, filter out invalid terms, use filter methods instead of parseTree methods to build sql. Use 1 db hit to load frame data 2023-05-23 16:54:19 -04:00
Isaac Connor d4a4bd6c8e Add remove_invalid_terms 2023-05-23 16:53:52 -04:00
Isaac Connor 20b7624da0 Handle op not being specified 2023-05-23 15:51:35 -04:00
Isaac Connor 9fdb3d1876 Don't use parsetree to sql, just go straight to sql 2023-05-23 14:32:51 -04:00
Isaac Connor de711e39ae Always include an and cnj 2023-05-19 12:44:23 -04:00
Isaac Connor fa844e60cb Don't remove cnj on first term in Query. We might reorder them later. 2023-05-19 12:44:08 -04:00
Isaac Connor e0c5382825 Get rid of colour white specification on the table 2023-05-19 10:55:31 -04:00
Isaac Connor 90e4e2b58b Add icon to AddNewZone Button and icon to delete button. 2023-05-18 13:27:37 -04:00
Isaac Connor a76daecc52 Hide button text and hide some columns on console when on phone in portrait mode 2023-05-18 09:16:38 -04:00
Isaac Connor af3849ad7f Always show Group, Monitor, StartDateTime, EndDateTime. 2023-05-17 14:36:59 -04:00
Isaac Connor fbe954473a Add support for placeholders, cookies, case insensitive search and Group as an attr. 2023-05-17 14:36:38 -04:00
Isaac Connor 91541aa6b7 Add support for placeholders, cookies, DateTime fitler, Notes, Group. Add sort_terms function. 2023-05-17 14:36:09 -04:00
Isaac Connor 56a12b4308 Make sure nav column doesn't wrap 2023-05-17 08:58:55 -04:00
Isaac Connor 485af42a0b Fix more typos 2023-05-16 14:18:26 -04:00
Isaac Connor 030d6b9696 Fix undefined mid 2023-05-16 14:14:34 -04:00
Isaac Connor 3daee34d4d Fix typo 2023-05-16 14:11:53 -04:00
Isaac Connor c8c4b560af Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-05-16 14:11:21 -04:00
Isaac Connor 6eb166c938 Handle matches2 not being defined 2023-05-16 11:53:48 -04:00
Isaac Connor ea37449023 Add auth_relay to control command 2023-05-16 11:53:34 -04:00
Isaac Connor 22bd680e40 FIx :: 2023-05-16 10:23:39 -04:00
Isaac Connor fc90d7bc2b Remove debug 2023-05-15 16:08:51 -04:00
Isaac Connor 9e007ea8d7 Shorten inputs on filter to make them fit 2023-05-15 12:45:10 -04:00
Isaac Connor d189d820a8 Don't log errors from port_open, don't close the unopened fp 2023-05-15 10:47:54 -04:00
Isaac Connor 586fd5edb7 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-05-15 10:05:13 -04:00
Isaac Connor 847e803e82 If failed to open image, send a test jpeg explaining 2023-05-15 10:05:06 -04:00
Isaac Connor 6dd9473e71 Reorder inputs, works better on mobile 2023-05-15 10:04:36 -04:00
Isaac Connor 37e711d684 Add port_open function, improve Ubiquiti probing, check for open port on 554 before saying it's a camera 2023-05-15 10:03:34 -04:00
Isaac Connor 6046398981 Add event Name to the event detail modal 2023-05-12 15:15:55 -04:00
Isaac Connor df983039c4 Add an import modal for use in add_monitor view 2023-05-12 15:14:46 -04:00
Isaac Connor 3436999665 Populate EndTime when NULL. Deal with case insensitive LIKE searching 2023-05-12 15:13:48 -04:00
Isaac Connor 3009c4902d Use User object find instead of raw sql 2023-05-12 15:11:40 -04:00
Isaac Connor 54373e4e85 It is not necessary to escape the field as cakephp will do it for us 2023-05-12 15:07:28 -04:00
Isaac Connor 494be9c0ef Add named parameter filtering to Storage controller 2023-05-12 14:10:53 -04:00
Isaac Connor 4472269f3c Finish roughing in UserPreference in api 2023-05-12 14:10:53 -04:00
Isaac Connor 0d561bbf73 Add StartTimeSecs and EndTimeSecs to returned data in Event 2023-05-12 14:10:53 -04:00
Isaac Connor d0fead5b06 Add setMaxFPS and fix streamCommand so that data doesn't pollute other commands data 2023-05-12 14:10:52 -04:00
Isaac Connor dcf551ff69 Make form 100% so that scroll bar appears 2023-05-12 13:38:03 -04:00
Isaac Connor ef424a39b6 Improve Amcrest detection with snapshot image. Fix using auth from monitor overriding other cameras 2023-05-12 13:15:55 -04:00
Isaac Connor 6014032cc8 Fix layout on add monitors 2023-05-12 13:02:33 -04:00
Isaac Connor d522ef677a Add Avigilon, loading of arp-scan oui database and showing of all devices instead of just recognized cameras. Remove the : from mac addresses to match OUI dbs 2023-05-12 12:59:53 -04:00
Isaac Connor 51755b4f4e Fix updating having Id in it 2023-05-12 12:56:36 -04:00
Isaac Connor e1c3584462 Add support for HTTP_X_FORWARDED_FOR instead of REMOTE_ADDR. Comment out debugging 2023-05-12 12:53:26 -04:00
Isaac Connor d0b8018d9c Add setting of User Name 2023-05-12 12:52:51 -04:00
Isaac Connor 7dd09ea55e When killing stream, stop and abort 2023-05-12 12:50:35 -04:00
Isaac Connor 81fd2dcb08 Don't pollute streamCmdParams 2023-05-12 12:48:31 -04:00
Isaac Connor c4c3dddbe3 add in setMaxFPS 2023-05-12 12:46:16 -04:00
Isaac Connor 995954db3d Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-05-12 11:35:21 -04:00
Simpler1 85fd53a21d fix(sound): Alarm sound for zone & zones views 2023-05-12 11:22:25 -04:00
Isaac Connor e69dc8fd12 Handle missing toggleZonesBtn 2023-05-12 09:10:36 -04:00
Isaac Connor 6e8347c693 Use viewableMonitorIds instead of deprecated MonitorIds 2023-05-12 08:59:36 -04:00
Simpler1 4610734109 feat(event): Add keyboard control 2023-05-11 14:01:30 -04:00
Isaac Connor 9fbf140fc3 fix eslint 2023-05-11 10:23:12 -04:00
Isaac Connor a31887634a Inlcude port in url to janus 2023-05-11 10:23:04 -04:00
Isaac Connor 241667340d Add server_id to monitorData 2023-05-11 10:14:02 -04:00
Isaac Connor 727362af0a Add server_id to monitorData 2023-05-11 10:13:32 -04:00
Isaac Connor 8ae4783a33 If monitor is assigned to a server, use that server for janus url. 2023-05-11 10:13:20 -04:00
Isaac Connor 2a2c192562 Add urlToJanus function to Server class 2023-05-11 10:13:04 -04:00
Isaac Connor b53d875dfb remove hello 2023-05-10 11:56:12 -04:00
Isaac Connor 4c39f060ab Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-05-10 11:03:47 -04:00
Isaac Connor 18790a01f6 Use unviewableMonitorIds fixing invalid user of u->MonitorIds 2023-05-10 11:03:39 -04:00
Isaac Connor a8365d40b4 Fix array uses of user object. Include data-id in monitor div. 2023-05-10 11:03:10 -04:00
Isaac Connor 8c99df24fd Set log entries to vertical-align: top. Fixes #3700 2023-05-09 12:56:10 -04:00
Isaac Connor 71b31e9ad8 Provide restricted list of HomeView in a dropdown instead of text entry 2023-05-04 15:59:00 -04:00
Isaac Connor 3f6efbd7ac add a call to streamPlay to manage play/pause button 2023-05-04 12:50:55 -04:00
Isaac Connor 6a86fbbd32 Hide/show play/pause instead of having both be there 2023-05-04 12:09:38 -04:00
Isaac Connor 8f8e770ee4 Make events table cookie last for a day instead of 60s 2023-05-04 12:09:17 -04:00
Isaac Connor 00113208bf fix typo 2023-04-28 08:44:47 -04:00
Isaac Connor 8c409fd7ff Move checkbox column to the left, main buttons to top, add icons on groups list 2023-04-28 08:29:59 -04:00
Isaac Connor 0f847f87f8 put event thumbnail in a div with fixed height to fix zoomed image going absolute 2023-04-27 13:46:41 -04:00
Isaac Connor 3ed6be9327 Use flexbox instead of floats on montage to layout better 2023-04-27 10:44:43 -04:00
Isaac Connor b5cfaef7b9 Use setScale instead of setStreamScale when applying scaling on layout change. Fixes image having wrong proportions. 2023-04-27 10:44:00 -04:00
Isaac Connor a608b18e8b Limit auto-calculated scale to 25%. Just looks bad less than that. When no bottom Element, adjust height as well. Don't need to change img.src on scale if streaming. Can just tell it to. Fix applying scale and will auto-reapply if needed. 2023-04-27 10:43:06 -04:00
Isaac Connor bac1974974 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-04-26 14:54:09 -04:00
Isaac Connor bf113217f2 Improve Axis detection 2023-04-26 14:15:08 -04:00
Isaac Connor 7825957114 Only set val from cookie if it is non-empty 2023-04-26 11:07:17 -04:00
Isaac Connor 886bac0888 When zooming thumbnails make them go absolute so they are not clipped by the container 2023-04-26 07:45:09 -04:00
Isaac Connor d3bb2144f5 Set height on thumbnail container div to prevent row from collapsing when thumbnail goes absolute 2023-04-26 07:44:15 -04:00
Isaac Connor ac3f26f3a3 Only count non deleted Monitors 2023-04-26 07:41:19 -04:00
Isaac Connor e4346aeb9d Add Server Id column 2023-04-26 07:40:48 -04:00
Isaac Connor 7f5269aa5c Sync API/Api on column name. Move checkboxes to left, buttons to top on servers tab 2023-04-26 07:25:53 -04:00
Isaac Connor 0d65281b24 Update users list to use User class instead of sql. Remove Monitors column 2023-04-25 14:01:14 -04:00
Isaac Connor d2fb365fa9 Add the ability to send a single summary email instead of individual emails per event 2023-04-24 17:53:16 -04:00
Isaac Connor 49014ac7fa replace MonitorIds with viewableMonitorIds 2023-04-24 13:53:14 -04:00
Isaac Connor e754c2093d Fix another user as array use 2023-04-24 13:09:40 -04:00
Isaac Connor b8ec6e3081 Speed up thumbnail onmouseover event. Don't clear src so that we can still see the low res image while we wait for the high res to load 2023-04-24 10:44:11 -04:00
Isaac Connor 7a0e6cfb42 Move events thumbnail to left 2023-04-24 10:30:35 -04:00
Isaac Connor dd064f606a Fix two straggling array uses of user 2023-04-24 10:16:46 -04:00
Isaac Connor 606c52ccec Fix missing ZM on Warning 2023-04-24 10:14:03 -04:00
Isaac Connor c87316d3a1 Handle not being logged in 2023-04-24 10:13:45 -04:00
Isaac Connor 035b616252 Change setCookie to take seconds as it's third argument, since that is how it has been used all through ZM's code. Also so that we can specify expirations under 1 day 2023-04-24 10:08:10 -04:00
Isaac Connor c78dc56822 Add 270px (1080/4) as an option to heights 2023-04-23 17:29:53 -04:00
stefan 1bd9def63e [API] Fix User variable from array to object
Fix $user variable from array to object to make API work again.
2023-04-23 22:07:24 +02:00
Isaac Connor 4b417b8937 Fix other cases of user as an array 2023-04-23 15:35:26 -04:00
Isaac Connor e7f44f2776 fix logic to use count on unviewableMonitorIds 2023-04-23 13:26:03 -04:00
Isaac Connor 141dcc07fe use ajax instead of getJson so we can specify no timeout. Ensure no concurrent ajax queries 2023-04-23 13:15:43 -04:00
Isaac Connor d951173388 Add new lines to thumbnail html 2023-04-23 13:15:11 -04:00
Isaac Connor 969baa3891 Convert user from an array to a User object 2023-04-23 12:57:29 -04:00
Isaac Connor 316c5eda86 Make text inputs wider on options 2023-04-23 12:57:07 -04:00
Isaac Connor e3a77876c0 Remove deprecated code for loading image by path. 2023-04-23 10:27:56 -04:00