36 Commits

Author SHA1 Message Date
b143845aea
Fix type-safety issues around curl in new checking HTTP status function 2023-08-18 15:12:45 +02:00
88458df949
Add general abstract classes for tests, starting with test classes for
RSS feeds
2023-08-18 15:09:58 +02:00
6426947e60
Add function for getting user language without using cookies 2023-08-14 15:15:41 +02:00
a8599667c9
Use is_file() over file_exists() in MD_STD::ensure_file() 2023-07-21 16:09:43 +02:00
66a5b77b51
Add function unlink_if_exists 2023-04-14 14:13:09 +02:00
23232f4e6a
Remove superfluous variable assignments 2022-09-15 21:38:41 +02:00
c362aa1283
Remove superfluous checks for empty realnames 2022-03-31 14:38:02 +02:00
6a7b8bd8fd
Disable setting language cookie for curl or clients without user agents 2022-03-26 16:49:10 +01:00
1b63951b44
Enable TCP Fast-Open for outgoing curl requests 2022-02-12 23:06:53 +01:00
93991225fe
Use curl_setopt_array and enable http2 for speeding up CURL requests 2022-02-12 22:51:42 +01:00
2a333c1de6
Simplify MD_STD::startsWithAny 2022-01-16 15:19:40 +01:00
c689f7568f
Allow empty input haystacks in MD_STD::stri_contains() 2022-01-09 22:20:05 +01:00
dc86540da2
Explicitly expect positive ints for depths in MD_STD::json_encode 2022-01-08 01:09:57 +01:00
e2ada291f7
Fix bug in splitting int arrays, add function for splitting string
arrays
2021-12-14 03:16:11 +01:00
aa7a3c5012
Clarify prevention of empty returns in array splitter 2021-11-30 00:45:02 +01:00
3f37dd7a9e
Improve phpdoc types, type-safety 2021-11-29 22:30:28 +01:00
86c8235dae
Specify MDJsonEncodingFailedException for failure to encode JSON through
MD_STD::json_encode
2021-11-26 03:23:07 +01:00
eb869071b8
Add class for splitting a list into lists of a predefined size 2021-11-16 14:40:38 +01:00
245d161805
Add function stri_contains for case-insensitive, but intuitive
str_contains
2021-09-28 01:15:51 +02:00
a6ebab3e03
Remove superfluous parentheses 2021-09-17 15:52:37 +02:00
80ab3216d5
Allow setting headers when running MD_STD::runCurl 2021-08-12 13:57:25 +02:00
1c5d451619
Add json_encode_object for encoding objects (mainly SimpleXML obj.) 2021-07-20 18:15:23 +02:00
7fb5ad8ced
Deprecate MD_STD::startsWith - can be replaced by str_starts_with 2021-07-20 12:51:46 +02:00
01ac23229b
Use MD_STD::unlink over unlink in mime type check 2021-07-20 03:34:01 +02:00
d53303e617
Add option to pass acceptable mime types to
MD_STD_IN::move_uploaded_file
2021-07-20 02:04:55 +02:00
6adf0ee0a2
Add wrapper around move_uploaded_file 2021-07-20 01:26:31 +02:00
980c408631
Remove explicit naming of domain in setcookie 2021-05-15 15:37:05 +02:00
a06a6ed41d
Prepare for PHP 8 2021-05-13 23:02:37 +02:00
20c33437c9
Add function for checking the mime type of a remove file 2021-05-13 22:18:58 +02:00
63d6154d40
Fix spelling in setting language cookie
See #6
2021-05-13 15:21:06 +02:00
d03befe483
Use prefixed cookies for user language 2021-05-13 14:48:44 +02:00
fe0a8ba83b
Remove obsolete phpcs exclusions 2021-05-01 22:54:37 +02:00
3b5f20aa96
Add missing "static" keyword in MD_STD 2021-04-14 18:16:13 +02:00
56f4fdc88a
Add function get_user_lang for getting user language based on cookies 2021-04-14 17:59:11 +02:00
36bdb36986
Use consistent first uppercase char in MD_STD reference to exception 2021-04-09 13:45:19 +02:00
2c1f6a0490
Move scripts to /src subdirectory 2021-03-09 20:09:11 +01:00