Commit Graph

524 Commits (5b29e018d0166c9fc46fd729b18a80b1c2016eff)

Author SHA1 Message Date
Isaac Connor c7eac3383a Fix form structure, use of get instead of post and duplicated action input 2022-10-13 09:08:41 -04:00
Isaac Connor 0071d3da40 Fix saving from the function modal. Put action in the post variables and change the action to save instead of function. 2022-10-12 21:23:58 -04:00
Isaac Connor 00f2b325b0 Just use the master version of ajax/log.php 2022-10-07 23:53:50 -04:00
Isaac Connor 3f8352c256 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:48:40 -04:00
Isaac Connor ef91e20532 Check value of System:Edit permission and ZM_LOG_INJECT to disable ajax log injection. 2022-10-07 11:09:59 -04:00
Isaac Connor e4a0d758d6 Fix group modal. Use post instead of get, properly populate the save submit button 2022-10-04 11:37:50 -04:00
Isaac Connor dbcfc8cb18 File must be escaped as well to prevent XSS 2022-09-30 09:59:09 -04:00
Isaac Connor 0df8b0cc7c Put the view and mid into the get query part of the form submit. Because it's a modal, view is not populated. We are also moving the action to actionsn/watch.php so specify watch view. This all fixes not saving v4l settings. 2022-09-25 09:55:03 -04:00
Isaac Connor a7e45752de 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:29:26 -04:00
Isaac Connor c4baddbf2a Add fade to the logout modal which for some reason fixes it not showing after a hide 2022-09-14 17:00:59 +00:00
Isaac Connor 7801d8e3b8 Don't call format on an empty string and only pass the integer part of it 2022-08-10 15:30:36 -04:00
Isaac Connor 2aff356948 Fix deprecation warning due to implicit conversion to integer. Make it explicit. 2022-08-10 10:56:54 -04:00
Isaac Connor 9b3be9a392 db limits should not be affected by pre-conditions, so include the limit regardless of pre-sql-conditions. 2022-07-29 14:00:06 -04:00
Isaac Connor b23de8044b Convert missed strftimes to dateTimeFormatter. Fixes #3526 2022-07-13 18:49:13 -04:00
ovargasp ea1f1dbc3c translations 2022-07-12 13:31:16 -04:00
Isaac Connor d2d1bad803 Add support for lambda functions as post processing. Use the to replace StartDateTimeShort with StartDateTimeFormatted so that dates on viewed events use the specified formatting. 2022-06-23 14:29:37 -04:00
Isaac Connor e5f0781659 fix formatter->format 2022-06-23 14:27:36 -04:00
Isaac Connor dac40cff5e Must pass time() to format() 2022-06-23 14:27:21 -04:00
Isaac Connor 5bf2316f26 Use dateTimeFOrmatter to format the date/time on session access 2022-06-23 14:18:21 -04:00
Isaac Connor f758b74036 Use dateTimeFOrmatter to format the date/time on events 2022-06-23 14:14:19 -04:00
Isaac Connor 334a2566ea Use dateTimeFOrmatter to format the date/time on frames 2022-06-23 14:13:32 -04:00
Isaac Connor 4634325c01 Use dateTimeFOrmatter to format the date/time on logs 2022-06-23 14:13:23 -04:00
Isaac Connor 2cf3c26e46 Use global dateFormatter to format time in ajax events response. Don't format Length as it loses precision. Let javascript side do it. Turn off error_reporting in the output as it breaks the json 2022-06-23 14:12:20 -04:00
Isaac Connor 0c1d101266 Handle php versions < 5.6.1 which don't have non-blocking semaphore support 2022-06-13 15:54:37 -04:00
Nic Boet 84bf07080c Fix semaphore_tries on systems without System V
This appears to be impacting systems without php System V semaphore support
have_semaphore is not a boolean

Signed-off-by: Nic Boet <nic@boet.cc>
2022-06-07 09:45:21 -04:00
Isaac Connor 27057157da Add a progress ticker, and delete events in chunks of 10. Fixes #3444 2022-06-06 13:10:21 -04:00
Isaac Connor 658ec3a7d7 Only return error messages, not a bunch of empty arrays 2022-06-06 13:10:09 -04:00
Isaac Connor 6479a1ec99 Implement semaphore retry. Make not getting the semaphore an error 2022-05-31 13:14:30 -04:00
Isaac Connor 469112af6c Remove file_exist localSocketFile. It will very likely exist and logging it is not useful 2022-05-20 11:14:39 -04:00
tftadmin Appleton bdf13bd46e Fix loading sessions 2022-05-18 17:51:08 -05:00
tftadmin Appleton 746ee44cf4 Specify only sessions active in the last ZM_COOKIE_LIFTTIME seconds when loading logout modal 2022-05-18 17:37:53 -05:00
Ben Dailey 1ad191e8d6 Most programmatic images are lazy. 2022-03-29 18:45:13 -04:00
Isaac Connor 4d44ab13fc spacing, improve debug 2022-03-29 17:59:02 -04:00
Isaac Connor 29f6d9e194 define raw as an empty array so we don't generate js errors 2022-03-29 17:56:39 -04:00
Isaac Connor 2fde32d211 Make filter debug modal work on non-saved filter 2022-03-29 17:55:06 -04:00
Isaac Connor 40968ed3f7 Add more of the resulting SQL to the filter debug modal 2022-03-29 17:55:03 -04:00
Isaac Connor fee0a450e5 Allow empty sort field. 2022-03-25 12:00:40 -04:00
Isaac Connor 62c39ed0d4 Fix potential XSS from Username 2022-03-23 14:53:26 -04:00
Isaac Connor 0db629fbba Fix potential XSS from Username 2022-03-23 14:53:07 -04:00
Isaac Connor aaf391fc65 Include EndDateTimeShort in event ajax response 2022-02-17 13:32:36 -05:00
Isaac Connor b28f97c5c3 Implement filter limits. Which go before pagination/advanced search limits 2022-02-02 10:50:28 -05:00
Isaac Connor fa533d04ff Send all stats rows instead of just 1. Handle receiving all rows, and don't list event id and frame id 2021-11-16 15:00:04 -05:00
Isaac Connor bbf1269e6f remove extra , 2021-11-16 15:00:04 -05:00
Isaac Connor 00919314e7 Report error if sql fails. Add check for access to specific event. 2021-11-09 10:51:29 -05:00
Isaac Connor 2aa7293326 Fix event listing when not paginated. 2021-11-02 17:23:46 -04:00
SzymekCRX 9da9d1840c Critical bug in events.php
Two extra brackets causes fatal error in Ajax request causing 500 HTTP error and problems with listing / deleting events
2021-10-28 13:09:41 -04:00
Isaac Connor d03365c9e7 Use filter->sort_asc and sort_field which will use either the value specified in query, or defaults set in system. url params order and sort will override. 2021-10-28 13:09:31 -04:00
Isaac Connor d884d86b38 Can export events if canView Snapshots. Event->canView will filter events that are not in a snapshot 2021-09-03 22:23:30 -04:00
Isaac Connor 2f7c44dce2 Fix deleting snapshots 2021-09-03 22:18:24 -04:00
Isaac Connor ad9ce720fd Allow specifying export Structure to get a flat zip 2021-09-03 22:18:06 -04:00