Commit Graph

2217 Commits (remove_triggers)

Author SHA1 Message Date
Isaac Connor be61184faf Add defaults to GenerateVideo, don't chdir, fix other code 2023-12-01 13:05:36 -05:00
Isaac Connor 70b1432c1f Have to check for property_exists instead of empty. empty includes a valid value of 0 2023-12-01 12:46:49 -05:00
Isaac Connor 49af487746 port over generateVideo from perl side and stick into Event. 2023-12-01 12:46:26 -05:00
adhamiamirhossein 27977acdd4 fix: php 8.3 deprecated get_class method call without argument 2023-11-22 10:48:04 +03:30
Isaac Connor 092f8df115 Handle scale=0 in getImageSrc 2023-11-20 17:23:51 -05:00
Isaac Connor 3ce96005af Load Type when loading Config 2023-11-20 13:26:28 -05:00
Isaac Connor 0d6df970d3 Enforce max length of 64k for log entries. Use HTTP_X_FORWARDED_FOR in logging so we log actual remote addr 2023-11-16 10:34:44 -05:00
Isaac Connor afb594aa19 Don't load Servers, they are loaded globally in config. Enforce int instead of string for range because fseek can't handle strings 2023-11-16 10:34:44 -05:00
Isaac Connor a1693c34b9 Add HTTP_FRONT_END_HTTPS as a signal to use https in urls. Mainly for when using a reverse proxy 2023-11-16 10:34:44 -05:00
Isaac Connor d9ae4f8e04 Do not need to make servers global in this context. They are by default.| 2023-11-16 10:34:43 -05:00
Isaac Connor 40975184e0 Return the found term instead of true in has_term. 2023-11-16 10:34:43 -05:00
Isaac Connor c1b32b79a2 Code style clceanup in server action 2023-11-13 11:38:03 -05:00
Isaac Connor aaebd725bb Set default values on members, fixing bad defaults on nwe storage. 2023-11-13 11:37:31 -05:00
Isaac Connor 9f04d90a27 When ZM_AUTH_HASH_IPS is off, don't use remote ip in storing auth hash in session. If ips are constantly changing it breaks. 2023-11-13 11:31:45 -05:00
Isaac Connor 5486fc6327 Include username in url when using auth_hash so that the authenting sql can be more efficient 2023-11-08 10:55:39 -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 1545210b12 Add php8.1+ members support for multiple and chosen flags for filter terms 2023-10-26 18:43:05 -04:00
Isaac Connor d54171c21c Be a little more verbose and robust when things like permission errors break config loading 2023-10-26 18:37:15 -04:00
Isaac Connor ecfc39aa87 Set new defaults for ENabled, API Enabled and HomeView in user Object. php's new need to declare every property breaks the old default system. Only load Group Permissions and Monitor Permissions if we have an Id. 2023-10-26 09:39:26 -04:00
Isaac Connor ab979c8f42 Fix typo in getHomeView 2023-10-23 16:49:34 -04:00
Isaac Connor 717f644087 Define ->savedErrorReporting to prevent php errors in logs 2023-10-23 16:39:43 -04:00
Isaac Connor 1411c47c99 Correct case of value in User_Perference 2023-10-20 14:51:18 -04:00
Isaac Connor 84ca405749 Rename a variable due to cutnpsating 2023-10-20 14:51:07 -04:00
Isaac Connor c287b7f645 Add Tags() and Event_Tags() functions to Event 2023-10-20 14:02:25 -04:00
Isaac Connor d303927ad0 Rough in ORM for Tags 2023-10-20 14:02:10 -04:00
Isaac Connor 7824613e53 Allow Objects with no Id, they can't be cached but can be used. 2023-10-20 14:01:55 -04:00
Isaac Connor 41c156918e aviableTags must be defined 2023-10-17 14:13:44 -04:00
Isaac Connor 3cd6b78b85 OutputCodec cannot be null 2023-10-17 12:33:27 -04:00
Isaac Connor fdc500304b Add test to see if php-curl is installed instead of crashing. 2023-10-12 11:04:55 -04:00
Isaac Connor 7762e882b1 Remove debug 2023-10-11 13:34:09 -04:00
Isaac Connor 69e601d286 Fix failure to save new user due to Snapshots not getting a default value. 2023-10-11 13:34:00 -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 feb3d91e8b Remove Tags from Event Data defaults. I don't think it is meant to be there 2023-10-06 14:54:17 -04:00
Isaac Connor 72d021dae9 Remove Tags from Event Data defaults. I don't think it is meant to be there 2023-10-06 14:49:57 -04:00
Isaac Connor 44c5c3c70c Introduce new download mode that concats event videos into 1 file per monitor 2023-10-04 12:04:11 -04:00
Simpler1 2547376c27 fix(php8): AllowDynamicProperties 2023-09-30 19:56:57 -04:00
Isaac Connor 2d46fc350a Spacing, test for setting of ZM_PATH_IP 2023-09-29 12:07:50 -04:00
Isaac Connor 7060945e97 Use new ZM_PATH_IP and ZM_PATH_IFCONFIG instead of hard coded paths. Fixes #3670 2023-09-28 13:32:42 -04:00
Isaac Connor 82aeac076d Fix incorrect var name frameid=>fid in find_virtual_frame 2023-09-26 12:10:36 -04:00
Isaac Connor 709d08c6c5 Only call jsonDecode when Query_json is non-empty 2023-09-25 16:56:06 -04:00
Isaac Connor 45bcb13045 Add backtrace to errors in json 2023-09-25 16:32:20 -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 057159cde6 Make properties public so that they can be access in Storage object 2023-09-21 10:10:57 -04:00
Isaac Connor f8c89a0405
Merge branch 'master' into tags 2023-09-14 16:42:06 -04: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