Commit Graph

9696 Commits (more_gps)

Author SHA1 Message Date
Isaac Connor 0d1e9c8d41 Try another way to prevent autofill 2023-01-31 13:30:59 -05:00
Isaac Connor ce06badc80 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-01-31 11:38:11 -05:00
Isaac Connor 843805f852 Increase redness of alarm cues and make progress indicator yellow 2023-01-31 11:37:48 -05:00
Isaac Connor 9f75de73c8 Remove z-index: -1 which causes things to not be clickable 2023-01-31 11:37:48 -05:00
Isaac Connor e411cf53a5 center events lists 2023-01-31 11:37:48 -05:00
Isaac Connor 9666244fa6 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-01-31 09:04:51 -05:00
Andrew Bauer 700c672cbd update ZM_TARGET_DISTRO description 2023-01-29 14:49:54 -06:00
Isaac Connor 689ae56732 Sync up tags with collapsed header and remove the fixed-top class so that the stick header takes over. 2023-01-29 10:54:47 -05:00
Isaac Connor b3029a3dad Cleanup and remove the Capturing=None filter. Should still be able to view events for a monitor that is NOW disabled. 2023-01-27 16:58:01 -05:00
Isaac Connor bbdfd0ddf0 Remove some cruft 2023-01-27 16:57:26 -05:00
Isaac Connor 5bf89b7178 Set width of UUID field and move labels to the left on mobile 2023-01-27 15:52:13 -05:00
Isaac Connor 3b5ceaddef add version and telemetry tabs to options 2023-01-27 15:51:50 -05:00
Isaac Connor d04b9891f1 Just do the symlink, there is a race between file_exists and symlink 2023-01-27 15:50:50 -05:00
Isaac Connor bfe7b056b8 Add alarm,snapshot, objdetect thumbs to event view 2023-01-27 15:49:49 -05:00
Isaac Connor 49885c3b9c Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-01-25 16:41:11 -05:00
Isaac Connor 047d1fb4e8 Fix missing / on close li tags 2023-01-25 16:39:05 -05:00
Isaac Connor 79d3d05060 Remove brackets and add and cnj for default filters. Use Event Loading SQL similar to other views, allowing filtering by monitor Name etc. Remove specific Archive filter. 2023-01-25 13:27:55 -05:00
Isaac Connor 4826b2edf4 Make monitor filters flex, and wrap when on mobile 2023-01-25 13:26:47 -05:00
Isaac Connor c8e4dcbe51 Add valid case for Archived 2023-01-25 13:25:33 -05:00
Isaac Connor ecf790b1d6 Diskspace(null) updates the db record so no need to call save as well 2023-01-25 12:27:59 -05:00
Isaac Connor 1658164ee1 explode the val in term for Monitor rule type. It will be a comma separated value, not an array 2023-01-25 11:50:16 -05:00
Isaac Connor d6de278070 Only add filter terms if not in live mode. Use filter sql instead of manual rules 2023-01-25 11:50:16 -05:00
Isaac Connor c48fc3ce6e Define events even if sql fails 2023-01-25 11:50:16 -05:00
Isaac Connor 6f991d81ea Go to history mode when viewing matches 2023-01-25 11:50:16 -05:00
Isaac Connor 031f5fe6f4 Don't output preg_match errors 2023-01-25 11:50:16 -05:00
Isaac Connor 874119c04d Event->Diskspace(null) automatically updates the db. So don't do a second save 2023-01-25 11:50:16 -05:00
Isaac Connor d5d5f33806 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-01-25 11:42:01 -05:00
Isaac Connor 774c963810 Merge branch 'master' of ../otherbranch 2023-01-25 11:41:52 -05:00
Isaac Connor fe95e5b2bc Add valid test case for AlarmFrames 2023-01-25 11:41:38 -05:00
Isaac Connor fd327d9b91 Replace hr with borders. Make all content scrollable fixing buttons being off screen. Shrink labels on mobile 2023-01-24 21:33:42 -05:00
Isaac Connor 56dea17703 Fix issues with removing minTime and maxTime 2023-01-24 21:33:32 -05:00
Isaac Connor caf6fc2528 Merge branch 'master' of ../otherbranch 2023-01-24 21:31:45 -05:00
Isaac Connor 4d543073ec disable minTime and maxTime inputs, in favour of filter versions 2023-01-24 21:31:30 -05:00
Isaac Connor b9c3be907c Merge branch 'master' of ../otherbranch 2023-01-24 21:23:42 -05:00
Isaac Connor 86d1ac81e6 Use 'Y-m-d H:i:s' for formatting as datetimepicker doesn't want timezone. Use Filter object methods instead of arrays. Usse Monitor instead of MonitorId in filter so that widget looks better 2023-01-24 21:23:31 -05:00
Isaac Connor d2a6c83056 Merge branch 'master' of ../otherbranch 2023-01-24 21:17:45 -05:00
Isaac Connor 1431eca868 Remove stripslashes when saving config values. The values in REQUEST have not been escaped, so stripslashes is not appropriate. Fixes #3655 2023-01-24 11:47:31 -05:00
Isaac Connor 9e46cc598e Apply chosen styles to dropdowns in Options 2023-01-24 10:42:47 -05:00
Isaac Connor 5e71a8fb72 Add operator filtering to has_term 2023-01-21 18:41:11 -05:00
Isaac Connor 9789e02f2a create archiveTypes static function. Use it. Add has_term function 2023-01-21 18:40:44 -05:00
Isaac Connor 77d27ceccc Merge ../ZoneMinder.connortechnology 2023-01-21 18:39:53 -05:00
Isaac Connor 1bfd45ea34 Don't need to call chosen in monitor.js as it is called in body 2023-01-20 14:15:22 -05:00
Isaac Connor 38853e22d7 Remove uneeded classes and tags 2023-01-20 14:12:19 -05:00
Isaac Connor 39f2fa5fbb When auto scaling, if we get a negative new height, just make it 100% width 2023-01-20 14:12:02 -05:00
Isaac Connor 9479ccae8f Add scroll bar to watch content when sticky 2023-01-20 14:11:39 -05:00
Isaac Connor 90388e6483 Spacing 2023-01-20 14:11:19 -05:00
Isaac Connor 15f1930968 Remove style on chosen selects making them bigger than content 2023-01-20 14:10:02 -05:00
Isaac Connor 8c62f86797 Add styling for ul/li layout and fix mobile layout. Fixes #3654 2023-01-20 13:49:21 -05:00
Isaac Connor df43de9496 replace use of tables for layout with ul/li/label 2023-01-20 13:12:37 -05:00
Isaac Connor a0bbdfc140 Add flip to watch 2023-01-19 17:07:48 -05:00
Isaac Connor d6e3a325aa Remove dropdown class from menu items that aren't dropdowns 2023-01-19 17:07:48 -05:00
Isaac Connor 21bc35f4d2 Override portrait menu styles so that the menus look good on mobile 2023-01-19 17:07:48 -05:00
Isaac Connor 6fa39d25c1 Separate account status section. 2023-01-19 17:07:48 -05:00
Isaac Connor 4b7680bc43 Use & instead 2023-01-19 17:07:47 -05:00
Isaac Connor 382e9840ca Make chosen work on mobile https://realize.be/blog/mobile-support-chosen 2023-01-19 17:07:47 -05:00
Isaac Connor 0fd9ca00d0 Make #header always 100% no matter responsive width 2023-01-19 17:07:47 -05:00
Isaac Connor 1469562927 Fix bulk frame adjustment doing string concat instead of integer addition 2023-01-18 10:08:33 -05:00
Isaac Connor aa3bc1a28d Add TimeStampSecs to fields returned for Frames. 2023-01-18 10:07:41 -05:00
Isaac Connor 1a4c349505 Need height: 100% to make logsTable div take up the space and show scrollbar 2023-01-17 20:05:10 -05:00
Isaac Connor 097c2bca83 fix lack of scrolling on events. 2023-01-16 19:18:20 -05:00
Isaac Connor 8fa1d98a7b Merge branch 'master' of ../ZoneMinder.connortechnology 2023-01-16 17:23:52 -05:00
Isaac Connor f942303e12 Set minimum width on sidebar to get rid of horizontal scroll 2023-01-16 17:17:38 -05:00
Isaac Connor e6b897014c Make controls scrollable when sticky navbar 2023-01-16 16:38:35 -05:00
Isaac Connor 06be7a6633 Pput buttons at top in options 2023-01-16 16:38:35 -05:00
Isaac Connor 76e3756ea6 Fixup structure and add styles for sticky header 2023-01-16 16:38:35 -05:00
Isaac Connor 378a9dc94f Rework snapshots for stick headers 2023-01-16 16:38:35 -05:00
Isaac Connor 22b735b57c Add overflow style for stick headers 2023-01-16 16:38:35 -05:00
Isaac Connor dc40fe3049 Add content div and replace invisible flip code with the code we use in montage 2023-01-16 16:38:35 -05:00
Isaac Connor 75430dad9e Remove flip code as we are using the code in skin.js now. Instead of setting height to auto, just clear it so that css rules apply. 2023-01-16 16:38:35 -05:00
Isaac Connor b517af6d29 add styles to handle stick headers on montage 2023-01-16 16:38:35 -05:00
Isaac Connor 3b0843d8d0 Specify form on filter view is 100% so that scroll bars happen 2023-01-16 16:38:35 -05:00
Isaac Connor 992984b0cd Add #content and #monitor divs so we can do stick navbar on monitor view 2023-01-16 16:38:35 -05:00
Isaac Connor 450007b860 Use getBodyTopHTML(); in watch view so that we pick up the sticky class 2023-01-16 16:38:35 -05:00
Isaac Connor 9089501bd8 Remove flexbox from #content because it is now on #page 2023-01-16 16:38:35 -05:00
Isaac Connor 5a990cb9cb Add #page div for consistency also we are going to use it instead of #content for flexbox 2023-01-16 16:38:35 -05:00
Isaac Connor 3e1c816914 Merge divs and remove h-100 on sidebar ul that causes content to wrap sideways 2023-01-16 16:38:35 -05:00
Isaac Connor 26dfee496e Use getBodyTopHTML(); in groups view so that we pick up the sticky class 2023-01-16 16:38:35 -05:00
Isaac Connor 2c6c7467f9 Add overflow styles to columns in options 2023-01-16 16:38:35 -05:00
Isaac Connor 9c15f794bf Add overflow style to filter form so that it scrolls when using sticky headers 2023-01-16 16:38:35 -05:00
Isaac Connor cb6d819c1e Make #page flex as well when sticky. 2023-01-16 16:38:35 -05:00
Isaac Connor b070749061 Split content div containing buttons from monitorlist so that we can position them separately 2023-01-16 16:38:35 -05:00
Isaac Connor aa911f8968 Update logs view to make sticky headers work 2023-01-16 16:38:35 -05:00
Isaac Connor ecf5089051 add flex styles to form and overflow to monitor list. These don't really have any effect normally so I havn't added a .sticky selector to them. 2023-01-16 16:38:35 -05:00
Isaac Connor 4f6a26dea9 Add styles so that when body has a .sticky class, we use flexbox to make content fill the browser, and we can then make sub content scrollable so that navbars are sticky 2023-01-16 16:38:35 -05:00
Isaac Connor 5dc658dd55 add sticky class to body when ZM_WEB_NAVBAR_STICKY is set. Remove it from navbar. 2023-01-16 16:38:35 -05:00
Isaac Connor b82b8d2b67 Remove debug, add willReadFrequently: true to canvas ctx. 2023-01-16 16:38:35 -05:00
Isaac Connor 0af2a3eb10 Make header navbar sticky, make entire second navbar go away when minmised. 2023-01-16 16:38:35 -05:00
Isaac Connor 17e9a64f91 Remove frames loading code. We do it via api now. 2023-01-16 16:38:35 -05:00
Isaac Connor ab2769ea48 Bulk load frames instead of by individual event 2023-01-16 16:38:35 -05:00
Isaac Connor d059806573 fix UrlToApi => urlToApi 2023-01-13 13:50:05 -05:00
Isaac Connor b9a1e1cb6c use ajax() instead of getJSON so we can specify no timeout 2023-01-13 13:43:39 -05:00
Isaac Connor cb87d04b3e Move api page content from options.php to _options_api.php 2023-01-13 13:42:23 -05:00
Isaac Connor 292f3a0cc2 Remove reference to zm.connortechnology.com 2023-01-13 12:48:26 -05:00
Isaac Connor 1236b366a1 Need to index into servers array using 0 not '' 2023-01-13 12:48:02 -05:00
Isaac Connor b1486783e3 Add a 5 second cycle option 2023-01-13 12:34:51 -05:00
Isaac Connor cf0bc32fd4 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-01-12 10:19:11 -05:00
Isaac Connor a8c80fde27 Update monitor preset view: Use a submit button instead of input with javascript. Remove no longer needed js code. Sort presets by Name. 2023-01-12 10:01:40 -05:00
Isaac Connor 2e6f465055 eslint doesn't like function names that start with a capital 2023-01-12 09:38:13 -05:00
Isaac Connor 427201abd5 Fix eslint 2023-01-12 09:37:53 -05:00
Isaac Connor 4dbc198fd0 Only load events when not in live mode 2023-01-12 09:03:48 -05:00
Isaac Connor 8c3cd92801 Merge branch 'master' of ../ZoneMinder.connortechnology 2023-01-10 12:11:01 -05:00
Isaac Connor 1426e89aff Remove debugging 2023-01-10 12:10:45 -05:00
Isaac Connor 1ee526444b populate monitor_names array to we can output the dropdown 2023-01-10 12:07:35 -05:00
Isaac Connor 0befc7796a Add code to populate dropdown input for attr type Monitor. 2023-01-10 12:07:35 -05:00
Isaac Connor 6e014949b4 Don't require zmc to be running to show a thumbnail. zms will say unable to connect, but at least later we can mouse over and get an updated image. 2023-01-10 12:07:35 -05:00
baudneo cc611129b6
Add RTSPServer help, Add Janus RTSP session timeout help.
Signed-off-by: baudneo <86508179+baudneo@users.noreply.github.com>
2023-01-09 17:57:27 -07:00
baudneo aab62c5a7e
Add Janus RTSP session timeout to PHP (front end) ⚗️
Signed-off-by: baudneo <86508179+baudneo@users.noreply.github.com>
2023-01-09 17:57:26 -07:00
baudneo eca1f5d2fd
Typo ✏️
Signed-off-by: baudneo <86508179+baudneo@users.noreply.github.com>
2023-01-09 17:57:26 -07:00
Isaac Connor 09b621bb5e Load Frames dynamically instead of in the initial page load. Use the api to do so. 2023-01-09 16:59:03 -05:00
Isaac Connor 662aa9f39d Add getting frames by event id or other named filters to api 2023-01-09 16:53:27 -05:00
Isaac Connor c9147be445 Add debug logging when date.getTime isn't a valid function I assume because EndDateTime was null 2023-01-09 14:45:31 -05:00
Isaac Connor f06e11a097 Add SectionLengthWarn, use it to disable warnings in logs about section length being exceeded. 2023-01-07 12:33:42 -05:00
Isaac Connor 18b8080569 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-01-04 13:10:15 -05:00
Isaac Connor ddf0996bd9 Fix eslint 2023-01-04 13:10:04 -05:00
Isaac Connor 3f527eb0d4 Test for existence of Janus elements 2023-01-04 11:48:16 -05:00
Isaac Connor f1ea101bc3 Fix fatal when invalid mintime/maxtime is specified 2023-01-04 11:44:07 -05:00
Isaac Connor 25b4ee8d08 Add missing document when adding fullscreenchange listener 2023-01-04 11:43:38 -05:00
Isaac Connor 99d9d70a39 Update code, remove console.log debugging 2023-01-03 19:19:13 -05:00
Isaac Connor 569c4337eb Hide timestamp caption from bottom of video.js event view. It serves no purpose. Fixes #3488 2023-01-03 19:19:13 -05:00
Isaac Connor da934a6114 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-01-03 18:09:02 -05:00
Isaac Connor 9842c083f1 Fix click on control bar of video.js controls does zoom. Fixes #3650 2023-01-03 16:24:14 -05:00
Isaac Connor 0c316662e0 Remove php4 support 2023-01-03 15:50:18 -05:00
Isaac Connor cda2191f3e Spacing, quotes, remove dead code 2023-01-03 13:57:14 -05:00
Isaac Connor 51faa4f8dd Use ajax() instead of getJSON with no timeout when deleting events. 2023-01-03 13:36:43 -05:00
Isaac Connor 5c9201cad3 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-01-03 13:35:44 -05:00
Isaac Connor 2f3596d1ef Use global Servers array instead of servers 2023-01-03 13:17:36 -05:00
Isaac Connor d27769c0f9 Use global Servers array instead of loading from db 2023-01-03 13:17:22 -05:00
Isaac Connor 3c012bf4ba Use global Servers array instead of loading from db 2023-01-03 13:17:13 -05:00
Isaac Connor 359c0c1b27 Don't know why we are turning off display errors in Server.php. Let's not. 2023-01-03 13:17:00 -05:00
Isaac Connor e59687f437 Remove debug 2023-01-03 13:16:38 -05:00
Isaac Connor f466e5b833 Use global Servers array instead of loading from db 2023-01-03 13:16:30 -05:00
Isaac Connor 8c35190b0a Move loading of global Servers array into config.php. 2023-01-03 13:16:03 -05:00
Isaac Connor df8bc464e3 Fix missing checkbox column on events table. See https://github.com/wenzhixin/bootstrap-table/issues/6522 2023-01-03 11:15:58 -05:00
Isaac Connor 5f01e275c9 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2023-01-02 15:25:21 -05:00
Isaac Connor 046925797a URL encode passwords embedded in Path. from Albert John FitzPatrick, III 2023-01-02 15:25:12 -05:00
Isaac Connor 4a1722df4f Split line so that we get a space between the limit input and the text after it. 2023-01-02 15:20:45 -05:00
Alex Porosanu 27980a8871 Make event button toolbar wrap-able
For small screens (i.e. phones), it's
useful to split the event button toolbar
on multiple rows, otherwise the video event
becomes useless (i.e. too small to be useful)

Signed-off-by: Alex Porosanu <dknight110@gmail.com>
2022-12-31 11:58:23 +02:00
Isaac Connor 6667c6449a Improve title of Add Monitors view 2022-12-27 14:34:41 -05:00
Isaac Connor 63f1dbf8fd Put the filter control commands into the POST data instead of get url. Also fixes auth relay 2022-12-27 14:34:20 -05:00
Isaac Connor f6b64a9bf1 Merge branch 'master' into map 2022-12-21 14:56:25 -05:00
Isaac Connor 1c538a4bf0 Include Capturing, Analysing, Recording instead of Function 2022-12-14 08:28:21 -05:00
Isaac Connor e4b4fae584 Merge branch 'master' of ../imouse 2022-12-13 16:44:21 -05:00
Isaac Connor fd3640aca3 Fix op always being = 2022-12-13 16:44:02 -05:00
Isaac Connor 52dfca5a28 Hide WIP button 2022-12-13 12:42:24 -05:00
Isaac Connor 327f8c0f70 add missing semi colon 2022-12-12 13:12:40 -05:00
Isaac Connor 0a28a3e659 Add check for REQUEST['entity']. Add missing quotes around state word because it gets executed as code 2022-12-12 13:06:13 -05:00
Isaac Connor 1469178809 Work harder to select a monitor name that doesn't already exist 2022-12-12 13:05:25 -05:00
Isaac Connor 8c4a4cfe41 Don't output array entries for empty RTSPStreamName. Remove sorted_monitor_ids which is unused 2022-12-12 13:03:03 -05:00
Isaac Connor 24b8a9118d Merge branch 'master' of ../cloudmule 2022-12-12 13:01:38 -05:00
Isaac Connor 656bc60944 Add groups to options 2022-12-12 13:00:54 -05:00
Isaac Connor bc1e1aef45 Add date picker 2022-12-12 13:00:45 -05:00
Isaac Connor 7c7af4741c Only default to start Date, not Date/Time 2022-12-12 13:00:36 -05:00
Isaac Connor d7e95175b8 Fix html_input 2022-12-12 13:00:28 -05:00
Isaac Connor e4d167b33e Fix returning periods for sql when no attr 2022-12-12 13:00:19 -05:00
Isaac Connor afbc495c45 Fixup filter hidden fields 2022-12-12 13:00:11 -05:00
Isaac Connor 08b06bd151 Include archiveTypes so that archive Status dropdown gets populated 2022-12-12 12:50:50 -05:00
Isaac Connor de74497604 Merge branch 'master' of ../cloudmule 2022-12-07 15:54:39 -05:00
Isaac Connor e30d151da7 prevent leading and when terms are invalid 2022-12-07 15:54:26 -05:00
Isaac Connor 62a9c2d8a5 Fix eslint 2022-12-07 15:52:47 -05:00
Isaac Connor c1e2fab13b Fix eslint 2022-12-07 15:46:48 -05:00
Isaac Connor 7fe10a4047 Fix the HABATM relationship in Snapshots 2022-12-07 15:01:08 -05:00
Isaac Connor 57d208efa9 Make view and listing of snapshots be recursive so they load the Events as well 2022-12-07 15:00:48 -05:00
Isaac Connor b2c19e3db1 add the add view for snapshots 2022-12-07 14:15:39 -05:00
Isaac Connor 1c8083b0cb Add Snapshot button to montagereview 2022-12-07 14:15:38 -05:00
Isaac Connor 23b94987e7 Use post() to go to create snapshot 2022-12-07 14:14:39 -05:00
Isaac Connor a6b3b18a6e Kill streams before posting to snapshot creation. 2022-12-07 14:14:00 -05:00
Isaac Connor f6cf716ec6 Implement a post() function that submits via post as a navigation 2022-12-07 14:14:00 -05:00
Isaac Connor 50f87be9d9 Detach streams when killing the monitor stream to reduce console logging 2022-12-07 14:14:00 -05:00
Isaac Connor b3cd07e9b8 Add snapshots route 2022-12-07 14:14:00 -05:00
Isaac Connor 031c573646 Rename Snapshot_Events to Snapshots_Events 2022-12-07 14:14:00 -05:00
Isaac Connor fde0d652e5 Merge branch 'master' into update_snapshots 2022-12-07 14:09:46 -05:00
Isaac Connor b53eed852c Merge branch 'master' of ../cloudmule 2022-12-07 12:39:58 -05:00
Isaac Connor 0705bfa293 Check for term being null in FilterTerm constructor 2022-12-07 12:39:41 -05:00
Isaac Connor fc7a6601f6 Check for validity of filterterm when building the parse tree 2022-12-07 12:39:26 -05:00
Isaac Connor 5d36739d0d Add Monitor as an acceptable FilterTerm 2022-12-07 12:39:12 -05:00
Isaac Connor eeb63db929 Default to all events 2022-12-07 12:39:00 -05:00
Isaac Connor 79fbd129ec populate the events request with filter widget values. 2022-12-07 12:38:16 -05:00
Isaac Connor b2fcb4d325 Move a ton of the filter widget code out of filter.php and into Filter.php 2022-12-07 12:37:56 -05:00
Isaac Connor 2efed0418c Move a bunch more filter widget stuff into Filter 2022-12-07 12:37:38 -05:00
Isaac Connor 8b65e40883 If the filter is empty, add default filter options for StartDateTime, EndDateTime, Monitor. Add filter widget 2022-12-07 12:37:15 -05:00
Isaac Connor 623f5a5805 make .filterTable inline 2022-12-07 12:36:56 -05:00
Isaac Connor 6cd3e64bb8 Add NOW as a valid value for DateTime, rough in valid test function 2022-12-07 12:36:41 -05:00
Isaac Connor 07e188a25f Add datetimepicker class to DateTime widgets and only include the sql if the term is valid 2022-12-07 12:36:23 -05:00
Isaac Connor b7d5b53d67 Add handling of StartDateTime,EndDateTime,MonitorId as specific filters 2022-12-07 12:36:05 -05:00
Isaac Connor 6f45e6cd23 Use Monitor instead of MonitorId when loading event counts 2022-12-07 12:35:49 -05:00
Isaac Connor ff756591c9 Rough in html_input 2022-12-07 12:34:59 -05:00
Isaac Connor 1134954166 Add Monitor as a Filter Term 2022-12-07 12:34:31 -05:00
Isaac Connor 638e6b0e3b Move attrTypes and opTypes into Filter and rough in a widget and simple_width functions 2022-12-07 12:34:18 -05:00
Isaac Connor df591a677e Handle when there is no filtering in getNearEvents 2022-12-07 12:27:12 -05:00
Isaac Connor 753ba9e22b Fix no results when showing all frames due to undefined limit 2022-12-04 10:44:03 -05:00
Isaac Connor 8ee5ca0679 add autocomplete=new-password to password fields. Apparently this is how browsers now prevent auto-completing them 2022-12-02 15:57:47 -05:00
Isaac Connor a8f58b2fea Spacing and fix the bogus setting shared_data->valid to false on disconnect. Other processes call disconnect. Only the capturing thread should set it to false. 2022-12-02 10:20:29 -05:00
Isaac Connor c35b28a3d1 Rough in api support for snapshots 2022-11-30 15:11:04 -05:00
Isaac Connor c3fda9be2a Add takeSnapshot but it needs rewriting 2022-11-30 15:09:06 -05:00
Isaac Connor 0f2afdcff7 Fix eslint and use const on port 2022-11-30 13:42:17 -05:00
Isaac Connor e915b2ece7 add icons and css 2022-11-30 13:35:55 -05:00
Isaac Connor b68ebb495b add map 2022-11-30 13:35:16 -05:00
Isaac Connor 3a6984c820 Move leaflet css loading code to monitor view 2022-11-30 13:23:42 -05:00
Isaac Connor 1e05ae01e0 Move leaflet css loading code to monitor view 2022-11-30 13:23:29 -05:00
Isaac Connor d814fd27f7 Put Servers array in skin.js.php so that it is available to all views 2022-11-30 13:19:53 -05:00
Isaac Connor cdfe38cc31 Add UrltoZMS and UrltoAPI methods to Server js class 2022-11-30 13:19:02 -05:00
Isaac Connor e11b7d3406 Add CORS headers to API 2022-11-30 13:18:13 -05:00
Isaac Connor b359f8f823 Get rid of 10px padding on bottom of main navbar 2022-11-29 13:58:49 -05:00
Isaac Connor 63e37e8744 Add styles to table headers to left align them to match the body 2022-11-29 12:47:10 -05:00
Isaac Connor a5494a7c02 Use Y-m-d H:i:s instead of c for date formatting to match what datetimepicker expects. remove unused action input and put view in the get part of form action 2022-11-29 12:46:29 -05:00
Isaac Connor fd3c8b21d6 Remove dead code from report_event_audit.js 2022-11-29 12:45:30 -05:00
Isaac Connor 38be2d9664 Rework fullscreen functionality a bit so that button gets updated even if you leave via escape key or other means 2022-11-26 11:01:53 -05:00
Isaac Connor 19832d24cd Implement fullscreen button for event view 2022-11-26 10:52:28 -05:00
Isaac Connor a0b759d91e Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-11-21 17:04:33 -05:00
Isaac Connor 063eafe034 Fix link to monitor from Event Data 2022-11-21 17:01:17 -05:00
Martin Tiernan 237a95a415 If no next bulk. Use Event data to estimate the delta. 2022-11-21 10:23:08 -06:00
Martin Tiernan 68283c01eb Added length and frames getters 2022-11-21 09:06:38 -06:00
Martin Tiernan 047d109d59 Added potentially missing 404 header 2022-11-18 15:27:52 -06:00
Isaac Connor e949a5554f Must convert strings into integers before doing math as of php 8.2 Fixes Unsupported operand types: string - int 2022-11-17 14:54:05 -05:00
Isaac Connor 0515a1ba74 implode the output from zmu to fix php complaint abou array to string conversion 2022-11-17 14:53:56 -05:00
Isaac Connor e4e8560722 Fix eslint. Fix use of fail instead of error in ajax requests 2022-11-16 10:50:48 -05:00
Isaac Connor d63edde294 Make .form-group styles export page specific because they are affecting modals 2022-11-16 10:14:54 -05:00
Isaac Connor 9fe7ba8c8c Cleanup the state modal. Fix form post 2022-11-16 10:14:24 -05:00
Isaac Connor f9a3c5fc83 Don't log error when ignoring action if it is an ajax request 2022-11-16 09:28:33 -05:00
Isaac Connor 22df344880 Merge branch 'master' of ../imouse 2022-11-16 09:23:05 -05:00
Isaac Connor 57e70e1f1d Switch to post methods for ajax actions on selected events. Can't use get because with a lot of selected events, the request URI gets too long. 2022-11-16 09:22:49 -05:00
Isaac Connor 0cee0561a4 Change form to post for delete 2022-11-16 09:01:30 -05:00
Isaac Connor 89c6e22052 Remove check for ZM_WEB_DIR is writable. 2022-11-15 14:44:45 -05:00
Isaac Connor 97e464b342 Comment out debugging 2022-11-15 14:17:30 -05:00
Isaac Connor 902f7d430f Add error message when minTime >= maxTime 2022-11-15 12:48:33 -05:00
Isaac Connor 6d7a5cbcea Fix infinite recursion in montagereview 2022-11-15 12:48:23 -05:00
Isaac Connor a6856c4f94
Merge pull request #3630 from mispdev/fix_db_utf8_connection
Set web backend DB connection to UTF8
2022-11-12 15:34:03 -05:00
Isaac Connor a712ad0605 Merge ../ZoneMinder.connortechnology 2022-11-10 18:10:08 -05:00
Isaac Connor 3e95134448 Remove Debug 2022-11-10 18:07:40 -05:00
Isaac Connor 69d835b5d2 Fix height of search text input to match buttons 2022-11-10 18:06:38 -05:00
Isaac Connor 37f4c1b454 Move title to Monitor div instead of container so that the title doesn't act on events list 2022-11-10 18:06:21 -05:00
Isaac Connor 7ac8a47f3e Fix 500 on saving user due to incorrect scope of g. Fixes #3629 2022-11-10 17:15:39 -05:00
Michael 0d6b8d1de3 Set web backend db connection to utf8 2022-11-10 18:57:35 +01:00
Isaac Connor 4814eaa2df Don't use old MonitorIds filter 2022-11-03 18:29:03 -04:00
Isaac Connor d583c10fa6 Return events when limit is > the # of events returned 2022-11-03 17:48:39 -04:00
Isaac Connor 4d3dfd84f4 add includes/Monitor_Permission.php 2022-11-03 12:24:14 -04:00
Isaac Connor 59898b9a0c Fix eslint 2022-11-02 17:47:12 -04:00
Isaac Connor 24ac383f97 spacing 2022-11-02 17:44:42 -04:00
Isaac Connor 160b61a9a0 Updates for added effecivePermission calculation 2022-11-02 17:44:34 -04:00
Isaac Connor e3b1dd1dd0 rough in updateEffectivePermissions 2022-11-02 17:43:48 -04:00
Isaac Connor 6d31800419 Add monitors and groups info to javascript side 2022-11-02 17:43:34 -04:00
Isaac Connor ea6d999654 Must use false === when using array_search because first element returns 0 2022-11-02 17:42:32 -04:00
Isaac Connor 7e82159f1a Remove bootstrap calls=text-right crap. Replace with css 2022-11-02 15:53:55 -04:00
Isaac Connor 253011a453 Set styles for Name/th column of user edit table 2022-11-02 15:53:32 -04:00
Isaac Connor 135c52f3ec Fix Group_Permissions() 2022-11-02 15:53:13 -04:00
Isaac Connor ab3e1811d3 fix canEdit, rough in effectPermission 2022-11-02 15:52:37 -04:00
Isaac Connor 616734a041 Move API option to left column, replace MOnitorIds select with an entire section dedicated to specific monitor permissions 2022-11-02 13:26:37 -04:00
Isaac Connor b1579d953d Clear br.clear as well as div 2022-11-02 13:26:37 -04:00
Isaac Connor b066e936c7 Apply styles to Monitor Permissions table 2022-11-02 13:26:34 -04:00
Isaac Connor 63769a2082 Fix missing ) 2022-11-02 13:26:34 -04:00
Isaac Connor 3c36233dd8 Put in all the new logic for visibleMonitor and editableMonitor referencing Monitor_Permissions and Group_Permissions 2022-11-02 13:25:53 -04:00
Isaac Connor 68bf964eec Add saving of Monitor_Permissions 2022-11-02 13:25:53 -04:00
Isaac Connor b7490c754b Rough in Group_Permission and Monitor Permissions loading functions. 2022-11-02 13:25:44 -04:00
Isaac Connor 24a83efa79 Improve Monitor canView and canEdit. If the user is not specified, use the cached auth routines in includs/auth.php. Otherwise replicate the logic for the specfied user. 2022-11-02 13:25:44 -04:00
Isaac Connor 16b5551a4a Always return a Group_Permission in Permission() 2022-11-02 13:25:44 -04:00
Isaac Connor 121e864dde Continue roughing in Group_Permission logic 2022-11-02 13:25:44 -04:00
Isaac Connor a891b528d1 Use Monitor::canView in Event::canView 2022-11-02 13:25:44 -04:00
Isaac Connor 7a39433db7 update code to use Group_Permission::Permission 2022-11-02 12:37:47 -04:00
Isaac Connor 2ee142813e start to rough in an editable monitor function 2022-11-02 12:37:47 -04:00
Isaac Connor d8175126fd I renamed the fields to user from newUser, so reflect that in the js validation 2022-11-02 12:37:47 -04:00
Isaac Connor c6edb8d46a Make Permission column wider to support the Inherit value 2022-11-02 12:37:47 -04:00
Isaac Connor 79f5d77fab Add Permission saving to user view 2022-11-02 12:37:47 -04:00
Isaac Connor 3157510f23 Add Permission property 2022-11-02 12:37:47 -04:00
Isaac Connor 9df7283358 Rough in the boilerplate for retrieving Permissions on Groups 2022-11-02 12:37:46 -04:00
Isaac Connor dd4869fb47 Add object for Group_Permission 2022-11-02 12:36:42 -04:00
Isaac Connor a67f89ff9e We renamed newUser to user in form elements 2022-11-02 12:36:42 -04:00
Isaac Connor 85bb66a3ea Change from newUser[] to user[] in form elements. Add Group permissions 2022-11-02 12:36:42 -04:00
Isaac Connor a840d65ac4 Add styles for groups listing table on user view 2022-11-02 12:36:42 -04:00
Isaac Connor 5734e38f52 Add group permission checking to visibleMonitor 2022-11-02 12:36:42 -04:00
Isaac Connor bb9152d3f2 Update frame view js to use const etc instead of var. Put back EventId and FrameId in stats being links and fix FrameId not being populated. If no stats available disable the stats button and use the title to explain why. 2022-11-02 12:36:41 -04:00
Isaac Connor d00536915e Move getting time into the scope where it is used 2022-11-02 10:07:01 -04:00
Isaac Connor 0c0269b2cc Fix eslint 2022-11-01 12:41:27 -04:00
Isaac Connor 52c865cfeb Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-11-01 12:40:51 -04:00
Isaac Connor 2859634aaa Set xhrFields: widthCredentials: true so that we send cookies with our streaming xhr requests so that we pick up new auth hashes 2022-11-01 08:22:53 -04:00
Isaac Connor 5bd50fe575 Add Access-Control-Allow-Credentials: true so that we can pass cookies along with xhr requests. 2022-11-01 08:21:59 -04:00
Isaac Connor 09ece9320e Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-10-31 21:20:07 -04:00
Isaac Connor a6b16510d0 Add Cuase, Notes and EndDateTime to columns in events list on watch view 2022-10-31 21:19:41 -04:00
Isaac Connor cd4a9fbb98 Merge ../ZoneMinder.connortechnology 2022-10-31 18:01:04 -04:00
Isaac Connor 6199613c40 Merge branch 'add_event_data' 2022-10-31 18:00:32 -04:00
Isaac Connor 85e1f21ca7 Make button on Filter Debug modal be Close instead of Cancel 2022-10-31 17:59:52 -04:00
Isaac Connor 6edbee7c70 Handle empty but defined REQUEST[action] 2022-10-31 17:59:34 -04:00
ovargasp 6ee083a145
Update functions.php 2022-10-31 11:53:11 -06:00
Isaac Connor 25100cd592 Fix missed references to oldW and oldH 2022-10-31 09:27:53 -04:00
Isaac Connor 2fb631fa6e Clean up debug. Clone the entire monitor object into oldMonitor instead of cherry-picking properties. Fixes use of new name when deleting old symlink. Always check for existence of monitor dir and symlink after done saving. 2022-10-31 09:27:53 -04:00
Isaac Connor 33455cbad2 Remove left over references to REQUEST['newMonitor']. Add error reporting to creating monitor directory and symlinking when adding a new monitor 2022-10-31 09:27:53 -04:00
Isaac Connor 6b3768fdf6 When saving monitor, only turn off error reporting for symlink. Don't delete old symlink unless the name has changed. 2022-10-31 09:27:53 -04:00
Isaac Connor df421cbd4c remove iiot which shouldn't be there 2022-10-28 08:45:08 -04:00
Isaac Connor b0deed5376 Add EventData section to event view 2022-10-27 17:33:19 -04:00
Isaac Connor f0a1a1b0ee Merge branch 'master' into add_event_data 2022-10-27 17:08:12 -04:00
Isaac Connor 1ef87ab0b8 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-10-27 17:05:24 -04:00
Isaac Connor 1540c3b41b fetchImage now takes a documentElement not a jquery object 2022-10-27 17:01:56 -04:00
Isaac Connor 32951523b8 We no longer have outputHelper, so just output a warning if we don't have streaming support 2022-10-27 17:01:25 -04:00
Isaac Connor b8a97b0fb9 Don't report errors from mkdir, it normally exists 2022-10-27 17:01:00 -04:00
Isaac Connor c20a327eef Fixups to EventData model 2022-10-27 17:00:24 -04:00
Isaac Connor 8a5e9d944d Add authentication to FramesController 2022-10-27 16:59:34 -04:00
Isaac Connor 46fcd79881 Add authentication and fixups to EventDataController.php 2022-10-27 16:59:18 -04:00
Isaac Connor 70b0e53780 Add routing for EventData 2022-10-27 16:58:57 -04:00
Isaac Connor 6d073119cb Rough in views for EventData 2022-10-27 16:57:05 -04:00
Isaac Connor 586d43798f Rough in model and controller for Event_Data 2022-10-27 14:47:21 -04:00
Isaac Connor 7cec2d1dc3 Fix eslint, remove debug 2022-10-26 10:33:16 -04:00
Isaac Connor 2965ea2826 Fix eslint, remove debug 2022-10-26 10:33:02 -04:00
Isaac Connor 779d41f583 Add bootstrap-table-1.21.1 to eslint igore. Delete old versions 2022-10-26 10:23:16 -04:00
Isaac Connor f96c90ffa7 Fix saving Server modal. Form was incomplete, action and view were duplicated. Don't need javascript just use the submit button Save. 2022-10-26 09:00:25 -04:00
Isaac Connor ff08b0f871 Make search input the same size as other toolbar elements 2022-10-25 15:17:41 -04:00
Isaac Connor bfc4b5aa67 Implement filtering by ServerId 2022-10-25 13:36:02 -04:00
Isaac Connor 8d8337135b Give ServerId filter an id 2022-10-25 13:32:53 -04:00
Isaac Connor 0e88b5c7a3 Fix function name hash_frame_array_by_key => array_to_hash_by_key 2022-10-25 13:32:06 -04:00
Isaac Connor 91e728c0d3 Sort servers in global array 2022-10-25 13:31:40 -04:00
Isaac Connor d1a7749ff4 fix eslint 2022-10-25 13:27:55 -04:00
Isaac Connor f357327b9c Merge branch 'master' into log_filters 2022-10-25 13:05:43 -04:00
Isaac Connor 418eeb9260 Add Server, Level, StartDateTime, EndDateTime filters to logs view 2022-10-25 13:05:25 -04:00
Isaac Connor d11bb88f94 rough in array_to_hash_by_key function to generate hashes of Id => Object 2022-10-25 12:56:38 -04:00
Isaac Connor 0bc1f2792d add specific filters for level, StartDateTime and EndDateTime. 2022-10-25 12:50:29 -04:00
Isaac Connor 189bf2f687 Update bootstrap-table to 1.21.1 2022-10-25 12:50:01 -04:00
Isaac Connor 4f0f2224b2 Restructure code around build where part of sql, add specific filters for level, StartDateTime and EndDateTime. 2022-10-25 12:49:08 -04:00
Isaac Connor ee56f013d4 Add some filters to log view 2022-10-25 06:12:08 -04:00
Isaac Connor a7277e357e fix eslint 2022-10-21 18:16:53 -04:00
Isaac Connor f0cd36989b Spacing, use const and let instead of var 2022-10-21 18:11:46 -04:00
Isaac Connor 2e03d91ef7 Fix selecting 0 values in htmlSelect. Fixes not showing ZM_LOG_DATABASE_LEVEL==Info 2022-10-21 16:29:26 -04:00
Isaac Connor 3d68896625 Escape <> in log messages to prevent html shenanigans. Fixes #3596 2022-10-21 16:21:25 -04:00
Isaac Connor 42e8698318 Load logger.js before view js so that remote logging routines are available. 2022-10-21 16:20:51 -04:00
Isaac Connor cbd763b455 Update code. Break early when figuring out if any events are checked. Use ajax instead of getJSON. 2022-10-21 10:19:06 -04:00
Isaac Connor 32dfbe60df Include export.js because we need it for Download function in events list 2022-10-21 10:19:06 -04:00
Isaac Connor 4bb214f124 cleanup, use const instead of var 2022-10-21 10:19:06 -04:00
Isaac Connor 35f7e54bed Remove exportStrings as they are in skin.js.php. 2022-10-21 10:19:06 -04:00
Isaac Connor 77b9c47296 Add export.js includes at bottom of montagereview since they are no longer in skin.js 2022-10-21 10:19:06 -04:00
Isaac Connor 89d112cfe8 Add video.js includes at bottom of video view since they are no longer handled in includes/function.php 2022-10-21 10:19:06 -04:00
Isaac Connor 23b0b9876d Add leaflet.js includes at bottom of monitor view since they are no longer handled in includes/function.php 2022-10-21 10:19:06 -04:00
Isaac Connor 2cbae814c3 Add video.js includes at bottom of event view since they are no longer handled in includes/function.php 2022-10-21 10:19:06 -04:00
Isaac Connor 0fc91ec8cb Remove export-related functions out of skin.js into export.js 2022-10-21 10:19:06 -04:00
Isaac Connor beec8bb03a Move view-specific includes out of includes/functions. It is far easier to just put those at the bottom of the actual view file. 2022-10-21 10:19:06 -04:00
Isaac Connor 262a2f0cb0 Don't add class=alarmCue to noneCue spans. Move calls to get frames data to after applying scale 2022-10-20 16:48:07 -04:00
Isaac Connor 8681b6d1b2 Add back setting width and height when scaling to image stream 2022-10-20 16:46:38 -04:00
Isaac Connor bce8c6195a Don't display errors in Server.php 2022-10-20 16:45:52 -04:00
Isaac Connor f1843528d0 Put back width and height setting on img tag. Needed for event viewing 2022-10-20 16:45:37 -04:00
Isaac Connor 5cf47622d7 Clean up alarm cue styles a bit. Fix background color on noneCue 2022-10-20 16:41:21 -04:00
Isaac Connor 082ffdf76e Fix SQL for when passing an empty array to find. Return false instead of trying weird sql. 2022-10-20 10:22:56 -04:00
Isaac Connor 76cd1b6b90 remove debug of monitors and Fix Warning when monitor is not visible 2022-10-20 10:22:56 -04:00
Isaac Connor 49b7f1e557 Make inputs on action table 100% 2022-10-20 10:22:56 -04:00
Isaac Connor 84fd4b42d5 Fix test for null in Object::find 2022-10-20 10:22:56 -04:00
Isaac Connor ff01d4d394 IN () being false could still result in a true result of used in an OR, so instead of just returning, use an always false sql equivalent 2022-10-20 10:22:56 -04:00
Isaac Connor 837d0ece7f return empty array when passing empty as SQLvalue 2022-10-20 10:22:56 -04:00
Isaac Connor 73c2415f83 Remove swp file 2022-10-20 10:20:58 -04:00
Isaac Connor 59bc1c3fc3 add IIOT styles 2022-10-20 10:20:26 -04:00
Isaac Connor 85a1b15e92 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-10-20 08:59:23 -04:00
Isaac Connor 23863c1853 Make inputs on action table 100% 2022-10-18 13:56:16 -04:00
Isaac Connor c698027ac9 Fix test for null in Object::find 2022-10-18 13:29:12 -04:00
Isaac Connor 1be399026e IN () being false could still result in a true result of used in an OR, so instead of just returning, use an always false sql equivalent 2022-10-18 13:28:54 -04:00
Isaac Connor 27757c1e59 return empty array when passing empty as SQLvalue 2022-10-18 13:28:43 -04:00
Isaac Connor c40d251009 Add setting remoteAddr in session after regenerating 2022-10-17 19:09:24 -04:00
Isaac Connor 9adf5f662f Use REQUEST instead of SESSION to store the post login redirect because we clear the session on login. Fixes #3517 2022-10-17 17:25:56 -04:00
Isaac Connor 22a059d3bc Remove debug 2022-10-17 17:25:46 -04:00
Isaac Connor ce62bb1297 Minor cleanup, remove dead code 2022-10-17 17:25:36 -04:00
Isaac Connor 155328b0d6 Put view in the form get part for visibility 2022-10-17 17:25:27 -04:00
Isaac Connor 9e257def8a Add debug, add validateId function to session handler. Change it to be a a subclass of SessionHandlerInterface so that we don't have to provide createId. Fixes session breakage in php8.2 2022-10-17 17:24:52 -04:00
Isaac Connor 5c8343f737 remoteAddr is set when session is opened. So no need to do it in auth. session_clear closes the session so no need to close it first 2022-10-17 17:23:45 -04:00
Isaac Connor 520baefeae Make font file location full width 2022-10-17 16:50:39 -04:00
Isaac Connor 9f4c9919e2 when a config value is overridden via *.conf files, put up a warning/explanation. 2022-10-17 16:50:23 -04:00
Isaac Connor 2b54f732a6 improve alarm cue and progress indicator styles 2022-10-14 17:39:23 -04:00
Isaac Connor ae70b1255c Fix styles after removal of dark styles from header 2022-10-14 17:32:58 -04:00
Isaac Connor 20ebbc3c58 Fix saving from the function modal. Put action in the post variables and change the action to save instead of function. 2022-10-14 14:10:46 -04:00
Isaac Connor 5ae47c8671 Fix form structure, use of get instead of post and duplicated action input 2022-10-14 14:09:43 -04:00
Isaac Connor feecd5439d left align option value column 2022-10-14 14:09:34 -04:00
Isaac Connor 2329dda323 Merge pull request #3609 from connortechnology/fix_non_post_auth
Move relevant code out of includes/actions/auth.php into includs/auth…
2022-10-14 14:09:09 -04:00
Isaac Connor 5a5a665cdf Test for definition of ZM_LOG_INJECT. We don't include the config when not logged in. So it won't be defined 2022-10-12 19:34:05 -04:00
Isaac Connor 86e4d7f4d4 Don't show CaptureBandwidth as null/s if there is no value 2022-10-12 19:16:17 -04:00
Isaac Connor e116c9ee48 Fix unable to unset LockRows on Filter 2022-10-12 16:57:53 -04:00
Isaac Connor 66a555250c Handle the case where the specified monitor is not in display_monitors, which results in javascript breakage due to a lack of monitorData. 2022-10-12 11:18:13 -04:00
Isaac Connor 0c80425b71 Make Path link to the files view 2022-10-11 16:45:03 -04:00
Isaac Connor d64868a44b Fix downloads due to chunkSize not being defined 2022-10-11 16:45:03 -04:00
Isaac Connor 87627cac8e add js for files view 2022-10-11 16:45:03 -04:00
Isaac Connor 673dff62c9 Handle empty path, give form an id and path. 2022-10-11 16:45:03 -04:00
Isaac Connor c4a2d2fb51 Fix hide() not defined on AutoMoveTo and AutoCopyTo. 2022-10-11 16:45:03 -04:00
Isaac Connor d35f8170e6 update code in updateformCheckboxesByName 2022-10-11 16:45:03 -04:00
Isaac Connor 31edfc26df Rough in a files view 2022-10-11 16:45:03 -04:00
Isaac Connor f8eef392d3 Add output_file to includes/functions.php 2022-10-11 16:45:03 -04:00
Isaac Connor 58657cc685 Remove swp file 2022-10-11 16:45:03 -04:00
Isaac Connor 7cf58df832 Add an id=content div for styling purposese 2022-10-11 16:45:03 -04:00
Isaac Connor aadfb2e6f8 Add an id=content div for styling purposese 2022-10-11 16:45:02 -04:00
Isaac Connor 2a1d417511 Remove dark styles from navbar 2022-10-11 16:44:23 -04:00
Isaac Connor 16e8af0fe3 add IIOT styles 2022-10-11 16:44:23 -04:00
Isaac Connor 09b2b372ff Test for matches[operator]. Fixes #3607 2022-10-11 15:52:46 -04:00
Isaac Connor 25a739c90e Make the Save/Delete buttons always present, but disabled when not authorized. Allow anyone to create a filter, but only System:Edit or the owner of the filter can change or delete it. 2022-10-11 10:03:57 -04:00
Isaac Connor 371f1adbe7 update storage modal to fix buttons not being in form. Also remove duplicate view field and make button action be save instead of Save. Fixes #3605 2022-10-07 15:56:15 -04:00
Isaac Connor eed60e7acb Don't attach onclick to save button on stoage modal as it is a submit button 2022-10-07 15:55:43 -04:00
Isaac Connor 34ffd92bf1 Add permissions checking to API/Logs. Fixes unprivileged user being to add/edit/delete/view logs. 2022-10-06 16:22:56 -04:00
Isaac Connor cb3fc5907d Use canEdit['System'] and value of new ZM_LOG_INJECT to disable attempting to inject javascript errors into zm logs 2022-10-06 14:52:39 -04:00
Isaac Connor de2866f957 Check value of System:Edit permission and ZM_LOG_INJECT to disable ajax log injection. 2022-10-06 14:51:29 -04:00
Isaac Connor 072e94385b Make the ajaxError logging be debug level. If the error was actually critical, we will have to log that separately. Most of the errors reported by ajaxError are transient. 2022-10-05 09:31:39 -04:00
Isaac Connor c7e40769cf remove jquery-3.5.1 2022-10-04 10:55:55 -04:00
Isaac Connor f3aabfd67c Update jquery-ui to 1.13.2 2022-10-04 10:15:10 -04:00
Isaac Connor 4028c08831 Update jquery-ui to 1.13.2 2022-10-04 10:14:27 -04:00
Isaac Connor 54f821ac88 Upgrade jquery to 3.6.1 2022-10-04 10:06:40 -04:00
Isaac Connor 2139a0cf24 Make form on console use post 2022-10-03 16:15:17 -04:00
Isaac Connor 6d786e0690 save buttion is a submit button now, so doesn't need an onclick. Fix code setting action on delete. 2022-10-03 15:51:09 -04:00
Isaac Connor 9b8e48e480 Switch to post instead of get in the groups form because we only do actions on post now. 2022-10-03 15:50:16 -04:00
Isaac Connor c0a4c05e84 Only perform actions on post. Doing them on GET allows doing actions from things like img tags which is not good. 2022-10-03 15:49:48 -04:00
Isaac Connor 96b428edb5 Fix group modal. Use post instead of get, properly populate the save submit button 2022-10-03 15:48:05 -04:00
Isaac Connor 0ab074eb88 Change colour of indicator to yellow to be more prominent. Add last 24hour events button. 2022-09-30 09:58:24 -04:00
Isaac Connor d289eb4860 File must be escaped as well to prevent XSS 2022-09-30 09:57:35 -04:00
Isaac Connor 2f295a2f55 Make Monitor::Server always return a Server object so we don't have to test for null 2022-09-30 09:57:21 -04:00
Isaac Connor caedd94f69 add 24hour button
put archive status filter on same line as buttons
2022-09-29 17:16:57 -04:00
Isaac Connor 3b47f2fc9c Fix export not working for filter due to limit set to 0. 2022-09-29 14:36:36 -04:00
Isaac Connor 340ed19c71 Handle filter[query] not being defined 2022-09-29 14:29:36 -04:00
Isaac Connor e4fad02b43 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-09-28 18:37:20 -04:00
Isaac Connor 8d56949800 Deal with structure of json response from API when getting Janus_Pin 2022-09-28 18:36:47 -04:00
Isaac Connor 9fc0d26d32 If we don't have session, we can still generate an auth hash. We kinda need this for zmu calls from API 2022-09-28 18:35:59 -04:00
Isaac Connor 460695202f Add Janus_Pin to monitor API 2022-09-28 18:35:30 -04:00
Isaac Connor 59db9c2d90 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-09-28 17:42:16 -04:00
Isaac Connor f5bdbcf0bd Use new Server::SendToApi to reduce duplicated code. If Janus Not enabled, then don't both with Janus_Pin. If Server is remote, use API to get Janus_Pin. Implementing the API side is left as an exercise. 2022-09-28 17:41:46 -04:00
Isaac Connor 2a9576371b Introduce Server::SendToApi to reduce duplicated code. 2022-09-28 17:40:08 -04:00
Isaac Connor fe0e4fcb8f handle lack of sysvsem support in php better. Turn errors back on, just don't display them. Proceed regardless of semaphore success but log an error. 2022-09-28 14:48:13 -04:00
Isaac Connor c7ded07794 Only look for action if there is a view 2022-09-27 10:49:50 -04:00
Pliable Pixels 23ae004724 whoops fixed errant enum values I forgot to delete 2022-09-25 17:46:53 -04:00
Pliable Pixels 6218d065a5 make OutputCodec work in API 2022-09-25 12:41:07 -04:00
Isaac Connor 0b37df3782 Fix scroll to top on option help modals by not having an href=#. Fix css so that the ? still is blue. 2022-09-23 09:34:29 -04:00
Isaac Connor 63e4c81d9c Try out just using connkey as the semaphore key instead of ftok 2022-09-22 16:22:36 -04:00
Isaac Connor 8a6db4a5e7 convert event->Id() explicitly to a string for strpos. 2022-09-22 16:21:25 -04:00
Isaac Connor faa6b8c9e7 Add connkey and semaphore key to logging about failure to get semaphore. Add sem_release before every ajaxError call because ajaxError exits and so we never release the semaphore. 2022-09-22 11:30:59 -04:00
Isaac Connor cb6dd816d8 streamSrc is no longer used and is making php complain 2022-09-21 15:46:42 -04:00
Isaac Connor 5fef98ce6f Add types to buttons. Make save a submit button, and remove the javascript onclick event. 2022-09-21 15:37:47 -04:00
Isaac Connor 9338732bd3 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-09-21 14:36:05 -04:00
Isaac Connor 363c589975 More properly fix the alarm status api changing. The previous hack broken doing alarm on/off. 2022-09-21 14:35:27 -04:00
Isaac Connor f68c64ea30 Last and next buttons don't get disabled if the event record thinks it has more frames than are actually in the db. 2022-09-21 13:24:18 -04:00
Isaac Connor 6d1b341141 Add a.btn-primary.disabled to disabled buttons style so that frame view buttons look right 2022-09-21 13:23:49 -04:00
Isaac Connor 1072a8aa69 When scaling frame images, apparently a float value for height is no good. So use intval to fix. 2022-09-21 13:23:16 -04:00
Isaac Connor 9d6d5a242f fix monitorIds => MonitorIds 2022-09-21 12:32:15 -04:00
Isaac Connor 78ab6583e7 Fix typo causing broken link to monitor in event stats 2022-09-21 12:32:15 -04:00
Isaac Connor c3c897cd76 In failure state populate imageData array to reduce output php errors 2022-09-21 12:32:14 -04:00
Isaac Connor 86f27d2ac5 Update frame view js to use const etc instead of var. Put back EventId and FrameId in stats being links and fix FrameId not being populated. If no stats available disable the stats button and use the title to explain why. 2022-09-21 12:32:14 -04:00
Isaac Connor 291c43ec0f Add spans and titles over the title h2 parts so that on mouseover it tells you what they are 2022-09-21 12:32:14 -04:00
megasaturnv 8fb6477820
Case insensitive login - Fix spacing ZoneMinder/zoneminder#3516 2022-09-21 16:47:16 +01:00
Isaac Connor abc5ea26d8 Merge branch 'master' into add_janus_rtsp_user 2022-09-18 12:44:25 -04:00
Isaac Connor a36a28d4b5
Merge pull request #3591 from VikingGer/patch-4
Update MonitorLinkExpression.js
2022-09-17 14:53:31 -04:00
Isaac Connor ec16937939
Merge pull request #3592 from VikingGer/patch-5
Update event.js
2022-09-17 10:23:24 -04:00
Isaac Connor 3843b9e14f
Merge pull request #3593 from VikingGer/patch-6
Update report.php
2022-09-17 10:22:33 -04:00
VikingGer ac55a9e0f2
Update reports.js
Function name missing? Assumed to be correct according to the rest.
2022-09-17 10:28:10 +02:00
VikingGer a099a4e3ae
Update report.php
Again Eslint errors
2022-09-17 10:19:42 +02:00
VikingGer 851ddb7f06
Update event.js
Again Eslint errors
2022-09-17 10:14:00 +02:00
VikingGer 11a4735082
Update MonitorLinkExpression.js
Trailing spaces lead to eslint error. Removed them
2022-09-17 10:08:07 +02:00
Isaac Connor 7d9771e41c Merge branch 'master' into add_janus_rtsp_user 2022-09-16 18:33:52 -04:00
VikingGer c43b3d1aef
Update control_functions.php
The Reboot button was not shown without activating another one. Probably not intended  so  I did this micro adjustment
2022-09-16 14:21:15 +02:00
Isaac Connor c197644b96 Fix contents of values on LOCALE_DEFAULT. 2022-09-15 14:05:33 -04:00
Isaac Connor 62b6171934 Only try to set TIMEZONE when loading dateTimeFormatter if it is set. Handle the exception when any of TIMEZONE or LOCALE are invalid. 2022-09-15 14:04:31 -04:00
Isaac Connor bf2b6ca145 Specify that only main page content tables should have the first colunm be min-width: 300px. This was affecting the logout dialog table content. 2022-09-15 14:03:22 -04:00
Isaac Connor d1cd7d3f91 Merge branch 'master' into add_janus_rtsp_user 2022-09-14 18:34:07 -04:00
Isaac Connor a944a1fac7 Fix no video due to height:auto on videojs 2022-09-14 13:31:25 -04:00
Isaac Connor bc566ccfdf Remove debugging 2022-09-14 13:15:02 -04:00
Isaac Connor 46de7afb0f Add fade to the logout modal which for some reason fixes it not showing after a hide 2022-09-14 13:09:51 -04:00
Isaac Connor 715122e93a Spacing, ignore auth_relay, clean up clickLogout a bit 2022-09-14 13:09:38 -04:00