Commit Graph

195 Commits (quadra)

Author SHA1 Message Date
Isaac Connor ebeb01a40a Clean out duplicated datetimeformatter stuff that happens in config.php 2024-10-25 10:51:01 -04:00
Isaac Connor c7975f11ed Add missing n 2024-10-23 09:04:17 -04:00
Isaac Connor 01526f4bf5 Merge branch 'release-1.36' of github.com:ZoneMinder/zoneminder into release-1.36 2024-09-12 14:06:35 -04:00
Isaac Connor 8a5d008b28 Don't log error when ignoring action if it is an ajax request 2024-08-08 17:05:39 -04:00
Isaac Connor 52b191d258 If the css in cookie is invalid, clear it so that the logs don't fill up with the warnings 2024-08-08 17:04:07 -04:00
Isaac Connor cbd8b1f40f Make view does not exist an error instead of fatal 2024-05-08 16:24:45 -04:00
Isaac Connor 6ffd2bda1c Move actions process to after the unauth check. In the past the action did the logging in but that is no longer the case. We can now assume in actions that the user is at least logged in. 2023-02-20 12:19:04 -05:00
Isaac Connor 83a84d7dd9 Better logging of view and action when using GET 2022-11-03 21:39:58 -04:00
Isaac Connor a3a44e2f27 Handle empty but defined REQUEST[action] 2022-11-02 10:10:38 -04:00
Isaac Connor feec790d45 Turn off deprecation notices so that we work with php8.2 2022-10-17 17:43:09 -04:00
Isaac Connor ef119e3ed4 Minor cleanup, remove dead code 2022-10-17 12:35:00 -04:00
Isaac Connor 3aa4310200 Only perform actions on post. Doing them on GET allows doing actions from things like img tags which is not good. 2022-10-04 11:38:03 -04:00
Isaac Connor 3bf1a1300e Only look for action if there is a view 2022-09-29 16:17:10 -04:00
Isaac Connor e52187b85f move dateFormatters to config. This is so that they get setup even if not using index.php. Like cakephp for example. 2022-07-12 14:17:15 -04:00
Isaac Connor 8a361fa9c6 Set locale based on ZM_LOCALE_DEFAULT 2022-06-23 14:21:45 -04:00
Isaac Connor 437d6ff54a Add overriding timeFormatter pattern 2022-06-23 14:21:34 -04:00
Isaac Connor 410f8a68d3 Add timeFormatter 2022-06-23 14:18:32 -04:00
Isaac Connor c483db6b3c Setup global dateFormatter and dateTimeFormatter. Once config is initialized, redo them if a different local was specified, and then apply custom patters if specified. 2022-06-23 14:15:13 -04:00
Isaac Connor f8e8fa431b Add default global dateFormatter. Default to en_US but after config is loaded we can replace it. 2022-06-23 14:12:50 -04:00
Isaac Connor 2160cc6dc9 Merge branch 'php8.1' 2022-06-02 21:26:01 -04:00
Isaac Connor 2d07fda6fc Implement zm_setcookie to simplify setting cookies, set samesite, deal with older php etc. Use it. 2022-03-29 18:09:12 -04:00
Isaac Connor ca4ec91ef3 Move CSP stuff down to view parsing. ajax requests only output json, so CSP shouldn't be relevant. Only end output buffer if there is one. archive view for example clears all output buffers. 2021-09-03 22:26:09 -04:00
Isaac Connor 74b48c9f21 Fix samsite support for php <= 7.2 2021-06-08 13:09:43 -04:00
Isaac Connor f85efc17b4 Add samesite when setting cookie for skin and css 2021-06-08 13:09:30 -04:00
Isaac Connor 7aa625ea8e Don't both loading all the Object code until after auth. 2021-04-12 15:59:31 -04:00
Isaac Connor 284837d536 quotes, spaces. Also move setting redirect to to where we actually do the redirect so that actions can remove the redirect if there was an error to report. 2021-03-21 09:19:21 -04:00
Isaac Connor 0bb4afa0bc The test for xmlhttprequest is bogus. chrome jquery JSON requests don't send it. Replace with a test for instead. So now only redirect on proper html views. 2021-03-13 12:11:55 -05:00
Isaac Connor c6cf1da47d Merge branch 'master' into zma_to_thread 2021-01-11 17:08:44 -05:00
Isaac Connor 10c0a6617c Return Debug to a regular function to match other logging functions. Since we switched to using namespaces we no longer clash with cake_php. 2020-10-14 10:39:25 -04:00
Andrew Bauer 0f263407a5 make redirect conditional on previous view 2020-10-12 10:32:25 -05:00
Isaac Connor 70b73048cc add csrf checks to frames view 2020-09-02 18:11:53 -04:00
Isaac Connor 29ab186a7e put generating the view html into an ob_start/ob_end_flush so that we can do things like re-open sessions in the middle of generating content. Only send CSP headers on html content. 2020-09-02 13:58:24 -04:00
Isaac Connor 0a3ad719cd Merge branch 'master' into filter_pre_post 2020-08-17 18:30:44 -04:00
Isaac Connor ea4edcbc94 Make a global so tht we can use it in export_functions 2020-08-16 20:08:14 -04:00
Isaac Connor 0a383c02c4 Better debugging of REQUEST/POST vars 2020-06-23 22:20:07 -04:00
Isaac Connor ebfae1f855 turn off debug 2020-05-01 13:17:39 -04:00
Isaac Connor da94985508 add back global servers 2020-04-10 11:14:09 -04:00
Isaac Connor e06912a995 Merge branch 'release-1.34' 2020-03-21 15:28:27 -04:00
Isaac Connor d3df0defc9 Support missing openssl_random_pseudo_bytes by using alternate functions 2020-03-21 15:28:18 -04:00
Isaac Connor 8eee5cc222 Add global array so that we only do it once. 2020-03-04 11:03:30 -05:00
Isaac Connor 6456d52b97 Merge branch 'fix_user_lang' 2020-02-27 17:43:51 -05:00
Isaac Connor d371da7b4f including the language files must come after auth in order to user the user's language setting 2020-02-27 17:42:02 -05:00
Isaac Connor dab5c520fe Merge branch 'master' into add_alarmed_zone_to_filters 2020-02-19 14:20:08 -05:00
Isaac Connor 600dbba8c5 We don't need to set date_default_timezone_get 2020-02-11 13:23:53 -05:00
Isaac Connor 6345ecc479 remove debug 2020-01-23 17:04:33 -05:00
Isaac Connor 9d41334e8f Merge branch 'master' into add_alarmed_zone_to_filters 2020-01-22 13:45:37 -05:00
Isaac Connor dbdb13efd7 Instead of passing query string in form post variables, store it in session so that it survives redirects. Fixes #2811 2020-01-20 11:02:43 -05:00
Isaac Connor e39a95d761 Add AlarmedZoned to filters, work on fixing filter behaviour in js. Enable viewing filter results in montagereview 2019-12-18 19:06:10 -05:00
Isaac Connor d02aee64e4 Add setting of timezone to Options/Config instead of php.ini 2019-10-02 09:07:18 -04:00
Isaac Connor ff8e9fa072 Don't glob skins dir and css dirs unless our skin or css is invalid. 2019-09-17 12:07:10 -04:00