Commit Graph

149 Commits

Author SHA1 Message Date
2071b57053
Add class MD_STD_DEBUG for debugging and code improvements 2021-07-27 23:44:08 +02:00
5e7313f166
Use MD_STD::json_encode over the generic json_encode 2021-07-20 18:25:34 +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
dbbdf4f230
Add function to ensure an input string is UTF-8 encoded 2021-07-01 15:34:46 +02:00
f030adba20
Set worker-src 'self' in MD_STD_SEC 2021-05-15 17:17:53 +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
919ffdb1b5
Use ++$i over $i++
This slightly improves performance.
2021-04-11 21:20:44 +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
06bbaf5f97
Ad doption to set start character on an unordered list in md output 2021-02-21 01:57:15 +01:00
376333b660
Add class MDFormatter for formatting contents in markdown 2021-02-19 00:49:26 +01:00
1b1d33229d
Update MD_STD_CACHE to reload error pages 2021-02-09 15:18:40 +01:00
8aa9d94acf
Remove inline if clauses 2021-02-06 20:08:37 +01:00
217e1fc86b
Consistently use "null" over "NULL" 2021-02-06 19:55:54 +01:00
605fd88b6e
Use new line for unsetting variable 2021-02-06 17:35:11 +01:00
7a252c6bfa
Improve sanitization of color inputs 2021-01-30 22:56:00 +01:00
89e06769f1
Add class for validating color codes 2021-01-28 21:47:59 +01:00
9d4d326d6a
Add check for directory existence in MD_STD::mkdir 2021-01-21 11:03:07 +01:00
298e2238a8
Add stricter wrapper around unlink() 2021-01-06 12:49:35 +01:00
d28c245a1a
Add wrapper around mkdir, that throws an exception on errors 2020-12-21 14:50:28 +01:00
2b4abf6338
Add function for running multiple curl queries simultaneously 2020-12-14 02:01:53 +01:00
34c2d57e5b
Add function for converting strings to color codes 2020-12-11 14:01:41 +01:00
287fb02f8c
Pipe STDOUT to /dev/null in MD_STD::exec_edit, actual STDOUT is for
STDERR
2020-12-09 13:34:31 +01:00
d028ac0176
Remove check for curl init working 2020-12-08 20:42:54 +01:00
ddab52b1a5
Add check against curl_init failure in runCurl 2020-12-08 11:36:54 +01:00
ada82f07b6
Reduce multipliers in brute force protection 2020-12-07 15:31:36 +01:00
cad5b4a6f8
Add missing return statement to disable MD_JAIL::enforce on CLI usage 2020-12-06 17:06:43 +01:00
6a7f91ef1d
Use shell_exec in exec_edit 2020-12-05 20:48:51 +01:00
6db2b4cc1f
Add MD_STD::exec_edit to run edit and pipe STDERR to a php exception 2020-12-04 21:33:11 +01:00
4c5097701f
Add wrapper around levenstein that crops strings to the max allowed
length
2020-12-03 12:39:47 +01:00
886acead63
Stop using cache in MD_STD_CACHE when run from command line 2020-12-02 09:39:43 +01:00
35c0fe4723
Require cached contents in MD_STD_CACHE to be 3 chars long
An empty json array is 2 chars long
2020-12-01 00:05:59 +01:00
a38c3c6fae
Let serve_page_through_redis_cache return string 2020-11-30 22:36:17 +01:00
57da808a6a
Fix class variable comment 2020-11-30 19:19:44 +01:00
558ed729dc
Add class MD_STD_CACHE 2020-11-30 19:08:20 +01:00
14c7ffb8d4
Fix class comment 2020-11-23 14:06:03 +01:00
a16619b78e
Add option to set frame-ancestors CSP 2020-11-22 23:27:54 +01:00
90997e4eb5
Add function for sending complete CSP headers 2020-11-22 17:45:07 +01:00
c60932088d
Add missing function comment 2020-11-22 15:42:56 +01:00