Isaac Connor
c5e4a964cd
quotes, spacing fix some functions that clearly no one uses
2020-09-05 12:49:14 -04:00
Isaac Connor
240f4ceabd
Fix code warning if no value is selected in htmlSelect
2020-09-03 18:21:38 -04:00
Isaac Connor
94c7708df5
Warn when the specified selected value isn't in the passed options. Don't default to adding id in htmlSelect. Shouldbe passed in behaviours
2020-09-03 10:42:33 -04:00
Isaac Connor
31e8270470
Do not set width and height of stream based on monitor size
2020-09-02 14:37:28 -04:00
Isaac Connor
9fef228636
remove debug Warning
2020-08-27 13:38:13 -04:00
Isaac Connor
b451c323e9
remove debug code at Warning level
2020-08-26 18:40:31 -04:00
Isaac Connor
0a3ad719cd
Merge branch 'master' into filter_pre_post
2020-08-17 18:30:44 -04:00
Isaac Connor
72cad5f6d6
Move more code from parseFilter to Filter object.
2020-08-17 16:57:14 -04:00
Isaac Connor
d1126b3007
Move term logic from parseFilter to FilterTerm class
2020-08-16 13:02:34 -04:00
Isaac Connor
4fee59208d
Use str_replace and ltrim instead of preg_replace for efficiency
2020-08-13 12:14:18 -04:00
Isaac Connor
d42424d6d8
Merge branch 'release-1.34'
2020-08-11 11:41:11 -04:00
Isaac Connor
b4a3ccdfed
only put the hostname in the CSP headers so that we accept as source either http or https or any port. Useful for multiport.
2020-08-09 22:18:07 -04:00
Isaac Connor
3df58fc9db
handle array args in daemonStatus
2020-07-30 19:36:05 -04:00
Isaac Connor
c4d4a73c2a
json decoding errors shouldnt' be fatal
2020-07-29 16:41:37 -04:00
Isaac Connor
4c5a88a822
json decoding errors shouldnt' be fatal
2020-07-29 16:40:31 -04:00
Isaac Connor
e90efa7a7e
spacing
2020-07-25 14:28:08 -04:00
Isaac Connor
a70b329ce3
Merge branch 'master' of github.com:/ZoneMinder/zoneminder
2020-07-20 18:40:59 -04:00
Isaac Connor
2db65d3821
Merge branch 'release-1.34'
2020-07-04 09:09:24 -04:00
Isaac Connor
c47a348fea
Handle empty string version of scale
2020-06-30 19:18:45 -04:00
Isaac Connor
b060e0835c
Merge branch 'master' of github.com:/ZoneMinder/zoneminder
2020-06-25 16:07:22 -04:00
Isaac Connor
13130a844e
handle array args in daemonStatus
2020-06-25 16:07:16 -04:00
Isaac Connor
ef3fc758cb
in getDiskPercent we have calls to Error without the ZM namespace. Fixes #2954
2020-06-04 11:34:48 -04:00
Isaac Connor
0644358d0a
in getDiskPercent we have calls to Error without the ZM namespace. Fixes #2954
2020-06-03 17:41:03 -04:00
Isaac Connor
24c09a8207
Accept 0 as a value for scale meaning scale to fit
2020-05-08 17:55:12 -04:00
Isaac Connor
54995ab0d1
handle sort_asc not being set. Handle term['val'] not being set.
2020-04-23 15:18:05 -04:00
Isaac Connor
2d748091a2
handle sort_asc not being set. Handle term['val'] not being set.
2020-04-10 11:13:30 -04:00
Isaac Connor
d0fe1b60df
Merge branch 'release-1.34'
2020-04-04 16:58:53 -04:00
Isaac Connor
210d380029
CSP must include all Servers.
2020-04-04 16:57:52 -04:00
Isaac Connor
b611e2616b
handle scale=auto
2020-03-24 16:15:24 -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
d24069e3d0
Look for global array so we don't load all Servers multiple times. Add all servers to allowed script-src in CSPHeaders
2020-03-04 11:03:07 -05:00
Isaac Connor
fa6ac399be
Fix code in makePopupLink. Return content-type application/json for json response
2020-03-02 17:21:58 -05:00
Isaac Connor
85e5ade07a
fix makePopupLink when condition is false
2020-03-02 16:10:56 -05:00
Isaac Connor
6456d52b97
Merge branch 'fix_user_lang'
2020-02-27 17:43:51 -05:00
Isaac Connor
bab0b2e830
handle a scale value of auto
2020-02-27 11:35:40 -05:00
Isaac Connor
a34af39ca7
Fix logging line in generate video function
2020-02-25 18:14:14 -05:00
Isaac Connor
4d044a1f14
Fix logging line in generate video function
2020-02-25 18:11:07 -05:00
Isaac Connor
f719514998
remove debug
2020-02-25 13:39:33 -05:00
Isaac Connor
4dda37a6ee
remove extra }
2020-02-25 12:13:12 -05:00
Isaac Connor
d68d115581
Handle scale==0 to do width=100%.
2020-02-25 11:12:49 -05:00
Isaac Connor
df5bf788d9
Filtering by Alarmed Zone now only supports a single value using EXISTS as the operator. We now also support CURDATE() and NOW() as values for Date/StartDate/EndDate
2020-01-24 11:09:27 -05:00
Isaac Connor
9d41334e8f
Merge branch 'master' into add_alarmed_zone_to_filters
2020-01-22 13:45:37 -05:00
Isaac Connor
a3754709e4
allow filters to not have terms specified. We can't pass an empty array in a url, so we will just have to handle it.
2020-01-18 16:09:33 -05:00
Isaac Connor
714d304528
Change WebColour to a colour selector input and add a random colour icon. Select a random colour on new Monitor creation
2019-12-31 19:10:29 -05:00
Isaac Connor
9e43e06a55
Add empty array value for terms when there isn't any to get rid of warning when loading all events
2019-12-26 11:22:42 -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
4d9d4ba957
Do not allow deletion of archived events.
2019-12-15 10:35:43 -05:00
Isaac Connor
df9f6103e4
fix syntax error
2019-12-04 09:00:20 -05:00
Isaac Connor
78912584e1
re-arrange code to hopefully get rid of syntax error reported by some people
2019-12-04 07:10:33 -05:00
Isaac Connor
576dd23907
test for existence of filter in query
2019-12-02 12:30:15 -05:00
Isaac Connor
cab1056328
improve debugging in recursive_array_diff
2019-11-29 14:49:10 -05:00
Isaac Connor
1c54f22627
Introduce CSP_REPORT_URI to config and use it when setting up CSP headers as to where to report unsafe inline js to.
2019-11-08 15:18:08 -05:00
Isaac Connor
014ce0afe8
improve error message regarding timezone differences
2019-11-05 12:40:11 -05:00
Isaac Connor
988b2183c3
use new ViewWIdth and ViewHeight functions to generate video stream.
2019-10-29 17:42:48 -04:00
Isaac Connor
3244c8ab5b
spacing, quotes, remove debug
2019-10-21 13:18:09 -04:00
Isaac Connor
13b02284fe
Merge branch 'master' into timezone_as_config
2019-10-18 13:58:22 -04:00
externo6
4b71bc75ea
Change language to Contains / Not Contains and update perl filter.
2019-10-16 00:35:49 +01:00
Isaac Connor
d02aee64e4
Add setting of timezone to Options/Config instead of php.ini
2019-10-02 09:07:18 -04:00
externo6
7479d3f1f1
Add LIKE and NOT LIKE to filter options
...
This is useful for filtering notes.
EG filtering detected objects from zmeventnofification;
WHERE notes LIKE %detect%
WHERE notes NOT LIKE %car%
2019-09-28 13:03:16 +01:00
Isaac Connor
555f3e9c0d
Fix missing semi colon in Content-Security-Policy-Report-Only
2019-09-26 13:52:27 -04:00
Isaac Connor
4deea4c6ab
code doc
2019-09-25 10:35:57 -04:00
Isaac Connor
fe893a4a01
Add report-uri to out Content-Security-Policy-Report-Only header
2019-09-25 10:16:02 -04:00
Isaac Connor
1539e34204
spacing
2019-09-19 14:57:28 -04:00
Isaac Connor
1407d849e8
deprecate getStreamSrc in functions.php.
2019-09-18 11:10:25 -04:00
Isaac Connor
6b9e8bec69
Add logging of delete events
2019-08-29 11:26:32 -04:00
Isaac Connor
231c9c3902
move executeFilter to Filter->execute. If no changes have been made, don't make a tempfilter.
2019-08-26 18:48:34 -04:00
Isaac Connor
7ef26275bc
use isset to get rid of warnings when eid is not in REQUEST
2019-08-20 10:28:19 -04:00
Isaac Connor
f09941ed48
timezone errors shouldn't be fatal
2019-08-15 15:16:02 -04:00
Isaac Connor
702cb65d2a
Merge branch 'storageareas'
2019-08-08 13:38:36 -04:00
Isaac Connor
df285006d2
change sortHeader to include eid if it is in the request
2019-08-08 13:34:10 -04:00
Isaac Connor
5b0509e000
When invalid operator terms, use print_r on the term instead of just the operator
2019-08-08 09:26:00 -04:00
Isaac Connor
45afc2a534
introduce array_recursive_diff which we use to compare two arrays in Object::changes
2019-07-24 11:24:37 -04:00
Isaac Connor
fe71a9abaa
php_errormsg is deprecated
2019-07-19 16:32:40 -04:00
Tom Hodder
1336c03f97
WIP: Add pagination to frames.php in classic ( #2618 )
...
* add pagination to the frames.php results
* remove commented code, fix view all paging
* removing debugging logging statements
* default frames paging to on
2019-06-16 12:02:00 -04:00
Isaac Connor
b0869a0b13
spaces and quotes
2019-05-31 10:34:53 -04:00
Isaac Connor
db9ba7eeab
Add StartDateTime and EndDateTime as Sort options. Fixes #2614
2019-05-24 10:02:15 -04:00
Isaac Connor
8f28ba0be3
beter debug and less often when no terms in parseFilter
2019-03-22 17:28:12 -04:00
Isaac Connor
7f7acc18ee
spacing and code doc
2019-03-21 14:14:30 -04:00
Isaac Connor
6efeab5f8d
improve readability of parseFilter
2019-03-20 14:26:48 -04:00
Isaac Connor
778707c8df
Merge branch 'master' into storageareas
2019-03-04 14:33:28 -05:00
Isaac Connor
96e29c0299
fix up remaining issues with cycle updates
2019-03-04 13:35:40 -05:00
Isaac Connor
5da51d51bc
Merge branch 'master' into storageareas
2019-02-26 10:55:51 -05:00
Isaac Connor
2187dea2aa
add namespace to Warnings
2019-02-25 15:11:08 -05:00
Isaac Connor
fd310c0f0a
Merge branch 'master' into storageareas
2019-02-22 11:33:47 -05:00
Isaac Connor
8dd8888975
Php namespace ( #2537 )
...
* experiment with namespaces on the Server class
* experiment with namespaces on the Server class
* Implement the ZM namespace on objects
* Implement the ZM namespace on objects
* Implement the ZM namespace on objects
2019-02-22 09:19:07 -05:00
Isaac Connor
5029d7214a
Merge branch 'master' into storageareas
2019-02-18 17:00:45 -05:00
Mitch Capper
b646284da3
don't quote dbEscape values it will quote it already ( #2529 )
2019-02-17 11:31:28 -05:00
Isaac Connor
555cb4780d
Merge branch 'master' into storageareas
2019-02-10 12:37:45 -05:00
Matthew Noorenberghe
a97711de89
Replace or sanitize remaining uses of PHP_SELF. Fixes #2446
2019-02-09 22:12:36 -08:00
Matthew Noorenberghe
effd609ff7
Escape output of state names. Fixes #2475
2019-02-09 20:40:08 -08:00
Matthew Noorenberghe
6d2f3c265f
events.php: Remove inline event handlers and enforce CSP
2019-02-09 17:34:59 -08:00
Matthew Noorenberghe
fcbc22b6a2
functions.php: Ensure 'limit' request parameter is an integer. Fixes #2456
2019-02-09 17:27:47 -08:00
Matthew Noorenberghe
502f53fad0
functions.php: Fix SQLi in getFormChanges
2019-02-09 17:15:02 -08:00
Matthew Noorenberghe
b2a97ee190
frame.php: Fix multiple XSS from 'show' and 'scale' parameters and enforce CSP.
...
Fixes #2448 , fixes #2449 , and fixes #2447 .
2019-02-09 15:10:45 -08:00
Matthew Noorenberghe
c8066919ff
functions.php: Esacepe textContent in htmlOptions()
2019-02-09 14:14:46 -08:00
Matthew Noorenberghe
02f09aad7f
view=export: Remove inline event handlers and fix arbitrary URL/XSS usage. Fixes #2443
2019-02-09 02:01:26 -08:00
Matthew Noorenberghe
0b38e72f88
view=download: Remove inline event handlers and fix arbitrary URL/XSS usage. Fixes #2441
2019-02-09 01:16:32 -08:00
Isaac Connor
533d021dea
Merge branch 'master' into storageareas
2019-01-30 15:17:27 -05:00
Matt N
8c5687ca30
Fix name/protocol XSS in controlcaps.php. Fixes #2445 ( #2479 )
2019-01-25 08:35:07 -05:00