Commit Graph

261 Commits

Author SHA1 Message Date
Isaac Connor
b647280766 FIx arrap_map to array_map. Don't assume _REQUEST[mids] exists. Fixes #3859 2024-03-10 10:59:56 -04:00
Isaac Connor
55df0fd8f7 Only save permissions if passed in POST. We might not be able to see all monitors, so might not exist in POST. 2024-03-05 16:33:41 -05:00
Isaac Connor
b4bbff6353 Use per-monitor permissions 2024-03-05 14:00:40 -05:00
Isaac Connor
9cd048d97b Only try to set monitor_permissions for non-deleted Monitors 2024-02-29 09:19:19 -05:00
Server
0ff48f631e Implements an option to disable soap_wsa code that doesn't work
with some chinese cameras, more common to Latam zone
2024-02-12 19:22:01 -06:00
Isaac Connor
ceb81e13d6 Quiet warning about MonitorIds not exisitng in newGroup array when no MonitorIds are selected for that group 2024-01-23 16:14:21 -05:00
Isaac Connor
e47fd8f661 Recamp zones actions, adding a redirect after finishing deletion and fixing CanEdit=>canEdit 2024-01-21 11:30:01 -05:00
Isaac Connor
c954214b03 If success when saving monitors, do a redirect so that a reload doesn't repeat the request and ask to resubmit data 2024-01-09 17:12:45 -05:00
Isaac Connor
2d49e93405 Introduce a Create permission for Monitors, so that a given user may Edit existing monitors, but not create new ones. 2024-01-02 12:18:09 -05:00
Isaac Connor
aafd4067e0 Dont' restart a monitor if it has been deleted 2023-12-04 14:50:37 -05:00
Isaac Connor
c1b32b79a2 Code style clceanup in server action 2023-11-13 11:38:03 -05:00
Isaac Connor
13ec02d5f1 Fix Auto Unarchive not deselecting 2023-10-31 10:02:58 -04:00
Isaac Connor
f76046af3f Always stop a filter. Otherwise we won't stop it when switching from background to not background. 2023-10-30 17:16:06 -04:00
Isaac Connor
ab979c8f42 Fix typo in getHomeView 2023-10-23 16:49:34 -04:00
Isaac Connor
7762e882b1 Remove debug 2023-10-11 13:34:09 -04:00
Isaac Connor
bdc6bb58d6 Add a redirect after user delete so that we don't have form resubmission 2023-10-11 13:33:31 -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
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
889c809e0b Add RTSP2WebEnabled to defaults 2023-08-09 18:55:36 -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
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
3dbd68886a Reload user using zm\User object methods 2023-06-07 15:59:46 -04:00
Isaac Connor
6204dfdecc Fix start/stop/restart dnsmasq 2023-05-30 20:47:05 -04:00
Isaac Connor
6046398981 Add event Name to the event detail modal 2023-05-12 15:15:55 -04:00
Isaac Connor
3009c4902d Use User object find instead of raw sql 2023-05-12 15:11:40 -04:00
Isaac Connor
969baa3891 Convert user from an array to a User object 2023-04-23 12:57:29 -04:00
Isaac Connor
02046b9c88 Use object methods to load monitor and delete it 2023-04-19 18:56:52 -04:00
Isaac Connor
ce0a83f904 Reduce minimum to .05% as that is what seems to be necessary these days 2023-04-05 17:47:03 -04:00
Isaac Connor
21f6bdae35 Change minimum percent to 50% instead of 3% 2023-04-05 14:46:13 -04:00
Isaac Connor
d170112ef7 Change minimum percent to 50% instead of 3% 2023-04-05 14:45:30 -04:00
Isaac Connor
b1df318491 Use ORM Zone Object for Zone insertion on new monitor 2023-04-05 14:43:50 -04:00
Isaac Connor
065464a7f8 Use new getHomeView function instead of view=console 2023-03-05 10:21:59 -05:00
Isaac Connor
7b36027066 add in files actions, with delete 2023-02-22 05:59:16 -05:00
Isaac Connor
f4a2925177 Test for valid monitor id in snapshot creation. 2023-02-20 10:30:34 -05:00
Isaac Connor
ee89169a7b Use reload instead of restart on zone save 2023-02-16 14:10:30 -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
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
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
7ac8a47f3e Fix 500 on saving user due to incorrect scope of g. Fixes #3629 2022-11-10 17:15:39 -05:00
Isaac Connor
68bf964eec Add saving of Monitor_Permissions 2022-11-02 13:25:53 -04:00
Isaac Connor
79f5d77fab Add Permission saving to user view 2022-11-02 12:37:47 -04:00
Isaac Connor
a67f89ff9e We renamed newUser to user in form elements 2022-11-02 12:36:42 -04: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
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
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
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
e116c9ee48 Fix unable to unset LockRows on Filter 2022-10-12 16:57:53 -04:00