Commit graph

439 commits

Author SHA1 Message Date
Visman
7bdd3d6c09 Update Core\Router
You can set the types of arguments returned when processing uri.
Now Router can return integers in addition to strings.
2021-02-12 23:36:30 +07:00
Visman
39b1ba5998 Extract method getErrorsWithoutType() from getErrors() 2021-02-10 15:51:15 +07:00
Visman
796a2a4db1 Update Core\Validator
Change getErrors() method
2021-02-09 14:42:41 +07:00
Visman
1720a032c9 Fix Core\Mail
The additional headers cannot contain the "To" header in ...
2021-02-08 22:02:51 +07:00
Visman
f7f180c9d3 Update Core\Secury 2021-02-05 17:20:03 +07:00
Visman
39a73a0410 Add spaces to code O_o 2021-02-03 18:19:28 +07:00
Visman
130b10264e Add Cote\Log to Core\ErrorHandler 2021-01-28 19:01:09 +07:00
Visman
0c2095e369 Add spaces to code O_o 2021-01-27 19:19:32 +07:00
Visman
436e9b31ba Fix type for backtrace in Core\ErrorHandler 2021-01-26 22:44:16 +07:00
Visman
945da6d10e Update Core\ErrorHandler.php 2021-01-26 22:24:33 +07:00
Visman
2ac35214e5 Fix Core\Container
Array_replace_recursive() functions kept old arguments and added new ones because the keys were different.
2021-01-24 18:27:33 +07:00
Visman
979ed4a519 Update Core\Log 2021-01-23 19:35:30 +07:00
Visman
1040e9972d Update Core\Log 2021-01-19 21:30:21 +07:00
Visman
e0b08758f1 Update Core\Validator
Change the getData() method to be able to exclude the specified elements.
2021-01-19 00:48:41 +07:00
Visman
21e1e40e0e Update Core\Log
Do not log cookies.
2021-01-19 00:46:06 +07:00
Visman
4549617268 Update Core\Log 2021-01-18 23:19:41 +07:00
Visman
2891f8fc78 Add Core\Log
psr-3
2021-01-17 21:01:47 +07:00
Visman
56a872bbb1 Update Container.php
Escaping the percent character.
2021-01-17 20:38:29 +07:00
Visman
c110cd65ce Add Content-Type header for error page 2021-01-11 17:21:29 +07:00
Visman
cd8090310b Delete continue 2020-12-22 08:30:29 +07:00
Visman
e83ef43cb6 Copyright 2020-12-21 17:40:19 +07:00
Visman
7831282422 Update Core\File
You can set the maximum allowed file size for save. Use for avatars.
2020-12-20 14:43:25 +07:00
Visman
23ab6ff1b3 Update Core\Files
Get an extension through the regular.
The previous version allowed backslashes and forward slashes in the file extension.
2020-11-28 21:17:12 +07:00
Visman
d5836d258c Code style, remove unnecessary comments and remove unused code 2020-11-27 14:57:54 +07:00
Visman
bd67fc9796 Shorten the file name for the polls cache. 2020-11-26 15:44:39 +07:00
Visman
1056711792 Code style 2020-11-25 21:49:16 +07:00
Visman
433057e823 Update FileCache
Save the polls cache in the /polls/ subdirectory.
2020-11-25 19:14:20 +07:00
Visman
fdbaa05f51 Fix Core\Validator for array
Another 100500 fix O_o.
2020-11-20 23:54:25 +07:00
Visman
c2f9164cc1 Fix Core\Validator for array
Restore the structure of the array according to the form validation rules.
2020-11-19 16:05:30 +07:00
Visman
b6f208eb56 Fix Core\Validator for array 2020-11-17 13:33:07 +07:00
Visman
10d2eb7aa9 Use negative index to access a character 2020-11-06 17:58:46 +07:00
Visman
97de25a05f Fix for PHP 8 RC2 2020-10-29 14:32:54 +07:00
Visman
50562d6ae3 Update Core\Lang
Add caching for *.po files.
2020-10-27 23:18:47 +07:00
Visman
2a6e260d30 Update Secury.php
Add remove control characters \x7F and \xC2\x80- \xC2\x9F
2020-10-27 13:31:10 +07:00
Visman
9a064e3b89 Fix Core\Router\validate()
If there is no route for GET and the response is METHOD_NOT_ALLOWED, then check the route for POST
2020-10-20 20:24:52 +07:00
Visman
9bbc27b95f Remove checks for intl functionality 2020-10-17 20:38:46 +07:00
Visman
9575efce44 Add Unicode Normalization
Canonical Decomposition followed by Canonical Composition for all input data
2020-10-17 20:29:10 +07:00
Visman
1347c28ffc Update Core\View 2020-10-16 20:40:22 +07:00
Visman
1e2ed92e35 Fix Core\View 2020-10-16 13:14:10 +07:00
Visman
8bc21acc9c Add strict mode 4 2020-10-15 20:02:24 +07:00
Visman
26cbd4981c Add strict mode 2 2020-10-14 21:46:49 +07:00
Visman
bd0ca920fd Add strict mode 1 2020-10-14 20:01:43 +07:00
Visman
e5f677bf61 Fix Core\Test 2020-10-14 14:25:54 +07:00
Visman
328d65465d Fix namespace for constants 2020-10-14 14:06:59 +07:00
Visman
4cf5abdd77 rev.21 Add Core\Test 2020-10-14 14:06:06 +07:00
Visman
a6a6e6ec45 Limit the maximum file size to the constant \PHP_INT_MAX 2020-10-12 17:27:27 +07:00
Visman
b3df3fc916 Fix vulnerability of lack of token
Csrf\getError() returns null if there is no token field. As a result, the check is aborted without adding an error.
2020-10-12 17:13:02 +07:00
Visman
2df6800f6f Change Core\Csrf
Add getError() method.
Returns the error text for verify(): 'Expired token' or 'Bad token'.
2020-10-10 15:30:00 +07:00
Visman
74c5b7d7a5 Add strict mode for validation 2020-10-10 11:15:07 +07:00
Visman
aa7b179e38 Add field rule setting via array 2020-10-07 20:56:27 +07:00
Visman
e8157cc802 Rename Core\Validators 2020-10-07 17:56:12 +07:00
Visman
b162126a22 Update Core\Validator
Partially changed the logic of rules processing.
2020-10-07 17:41:23 +07:00
Visman
fd75a85b0f Delete ProviderCacheInterface.php 2020-10-05 19:54:10 +07:00
Visman
ed26a085b6 rev.20 Delete Core\Cache
FileCache used without a wrapper
2020-10-05 19:53:38 +07:00
Visman
e9381eaccf Fix Core\Config
Fix for adding a formatted array to an existing element
2020-10-05 19:51:18 +07:00
Visman
6ee99cdb89 Change Cache for PSR-16 2020-10-05 18:13:20 +07:00
Visman
469436ad1b Add support .webp for avatar 2020-10-04 13:46:14 +07:00
Visman
465f02b981 Add non-standard mime types 1
image/x-ms-bmp
2020-10-02 21:04:00 +07:00
Visman
3503041449 Change Core\Files
Change isImage() method (use mime_content_type()).
Add a check if the file extension matches its mime type.
2020-10-02 20:44:06 +07:00
Visman
586e7c8197 Update Validator.php
Add the ability to escape the delimiter in the rule
2020-09-29 18:08:52 +07:00
Visman
923618846c Update Mail.php
Add support AUTH CRAM-MD5 and AUTH PLAIN for smtp
2020-09-24 23:10:01 +07:00
Visman
6656c082e0 Add auto calc token for Router\link() 2020-09-23 21:04:21 +07:00
Visman
c7259750f3 Fix Container\config() 2020-09-23 20:44:31 +07:00
Visman
cbbe278413 Add BBCodeList model + generate() method 2020-09-21 21:59:14 +07:00
Visman
80224917ec Override bbcode settings 2020-09-21 11:31:55 +07:00
Visman
657e061c4f Delete o_quote_depth from config 2020-09-20 13:18:31 +07:00
Visman
8dc15138eb emove phpDocumentor syntax from comments 2020-09-12 23:22:32 +07:00
Visman
72c250be11 rev.15 Add smilies management 2020-09-12 14:26:42 +07:00
Visman
e3e41628d9 Add renameField() method to mysql driver 2020-09-12 14:24:25 +07:00
Visman
f045592a9b Change the structure of the smiley cache 2020-09-10 15:43:51 +07:00
Visman
64c4735f2e rev.13 Add subscriptions 4
Add sending emails
Change template format for emails
Change previousPost() method for Post
2020-09-04 23:41:51 +07:00
Visman
0fefe8a715 Update Core\Mail
To send email with multi recipients via Bcc headers.
Emails end up in spam :(
2020-08-30 18:04:02 +07:00
Visman
511c9e7e91 Change hrader() method in Page
You can remove the http header via $value = null
2020-08-25 20:29:48 +07:00
Visman
cfcb867afd Update View for feeds
Replace flags of \htmlspecialchars() function for xml files
2020-08-24 18:31:46 +07:00
Visman
97b544f851 Add delete() method for Core\Config 2020-08-09 17:42:03 +07:00
Visman
d8f94dc853 Fix Core\Config 2020-08-09 16:04:27 +07:00
Visman
2eca001f10 Update Core\Config 2020-08-09 15:53:49 +07:00
Visman
1a4844c508 Delete test exit in Core\Config 2020-08-07 00:50:46 +07:00
Visman
ce3dfbaf10 Refine the return type 2020-08-07 00:40:41 +07:00
Visman
864b338e30 Add Core\Config class
for test
2020-08-07 00:39:33 +07:00
Visman
5bfceba89e rev.2 for DB update
and fix mysql db driver
2020-08-04 19:49:03 +07:00
Visman
8bbfbbf550 Fix config() method in Container 2020-07-18 23:34:49 +07:00
Visman
cad582c85c Update Lang.php
The order of selection of translations can be changed by specifying the second parameter of the load() method
2020-07-16 16:22:43 +07:00
Visman
3d9d33c7c6 Update censorship usage 2 2020-07-05 20:16:58 +07:00
Visman
0799853a93 Coding style 2020-07-03 15:28:10 +07:00
Visman
700435010a Coding style 2020-07-02 21:07:17 +07:00
Visman
a228dc1792 Move constants from Routing to Router 2020-07-01 23:37:14 +07:00
Visman
8eb4b6ea9c Coding style 2020-07-01 21:40:10 +07:00
Visman
8131e14e56 Coding style 2020-06-28 12:10:59 +07:00
Visman
cc3f2aaeba Update Container.php 2020-06-27 14:14:02 +07:00
Visman
eb438fa40e Fix Cache (delete() method) 2020-06-05 21:33:43 +07:00
Visman
dffb30b0a6 \hash_algos to \hash_hmac_algos 2020-05-26 13:02:31 +07:00
Visman
07734b676e Group use declarations 2020-05-26 12:45:40 +07:00
Visman
b88bdd2b31 Null coalescing operator 2020-05-26 10:52:52 +07:00
Visman
9a8cc16b5c Change PHP min version 2020-05-24 20:31:05 +07:00
Visman
e87a75cd6d Add declaration of argument types and return values 2020-05-24 18:30:48 +07:00
Visman
871586be8a Add report page 2020-05-23 12:22:21 +07:00
Visman
c4fccb38eb Update ErrorHandler.php 2020-01-16 21:43:46 +07:00
Visman
54d1e7d537 Minor fix 2019-12-29 16:52:39 +07:00
Visman
a6180e05f9 Minor editing of validator messages 2019-12-28 15:19:27 +07:00
Visman
f85405c48e Fix whitespace characters in code 2019-12-21 17:12:35 +07:00
Visman
24ac0f9547 Hide the full path to the file with the error 2019-12-05 11:54:22 +07:00
Visman
f04c994f7e Update for PHP 7.4 2019-11-28 20:25:13 +07:00
Visman
4c2c686d3e Reorder image resizing operations 2019-11-20 16:51:41 +07:00
Visman
c196267568 * Fixed namespace in function_exists 2019-10-31 22:14:08 +07:00
Visman
d6d94eebb1 * Minor changes in Files 2019-10-31 22:05:42 +07:00
Visman
ebdfe382d9 For PHP 7.4
https://www.php.net/manual/migration74.deprecated.php#migration74.deprecated.core.array-string-access-curly-brace
2019-10-11 19:32:26 +07:00
Visman
2b3b016fac Recursive cache flushing 2019-09-14 20:37:03 +07:00
Visman
7962d485af Additional check for the presence of a database driver 2019-09-14 16:27:52 +07:00
Visman
3e1fd25349 * Validator returns float number for the numeric rule 2018-11-01 16:08:31 +07:00
Visman
a676d3e052 * Changed the behavior of the validator for the string:trim
Now string:trim returns an empty string, not NULL for an empty field.
2018-11-01 16:03:35 +07:00
Visman
547d89455f + Database transaction time has been added to the statistics. 2018-10-25 19:43:19 +07:00
Visman
246e4fadab * Automatic beginTransaction() when DB calling 2018-10-23 21:41:36 +07:00
Visman
5f5dba3ff7 * Fix Illegal string offset for PHP 7.1 2018-09-15 21:58:07 +07:00
Visman
f6a69f2b41 * Fix install + new start group for stop spam 2018-09-12 00:20:46 +07:00
Visman
badc4de958 * http headers 2018-08-29 16:25:24 +07:00
Visman
d1f0e4360f Added error handler 2018-08-21 21:12:17 +07:00
Visman
2b80012658 Automatic language detection for guest 2018-08-15 23:32:11 +07:00
Visman
fa3174ed4c Changed language folder names 2018-08-15 22:40:57 +07:00
Visman
a9241d0385 Added language names 2018-08-15 22:11:17 +07:00
Visman
a12aa57e26 2018-04-22 2018-04-22 16:57:23 +07:00
Visman
99a5ab6dd1 2018-04-13 2018-04-13 14:35:07 +07:00
Visman
f35e93627c 2018-04-11 2018-04-11 18:18:42 +07:00
Visman
a94f166337 2018-04-04 2018-04-04 14:37:21 +07:00
Visman
326582ff78 2018-04-04 2018-04-04 11:21:11 +07:00
Visman
eb5124817d 2018-04-03 2018-04-03 19:07:19 +07:00
Visman
40600704f4 2018-04-01 2018-04-01 18:16:58 +07:00
Visman
6c44946e39 2018-04-01 2018-04-01 09:51:59 +07:00
Visman
abe2ebb477 2018-03-25 2018-03-25 14:50:22 +07:00
Visman
b7db2cdd1d 2018-03-21 2018-03-21 20:09:42 +07:00
Visman
e0bb025d3b 2018-03-21 2018-03-21 19:21:31 +07:00
Visman
94c919f59f 2018-03-16 2018-03-16 15:54:05 +07:00
Visman
d1b03f32d6 2018-03-16 2018-03-16 13:47:55 +07:00
Visman
8b2b97d2d1 2018-03-11 2018-03-11 13:19:52 +07:00
Visman
1ed9421500 2018-03-08 2018-03-08 19:39:54 +07:00
Visman
2a132adc24 2018-03-04 2018-03-04 20:31:05 +07:00
Visman
244e1649e9 2018-03-04 2018-03-04 18:44:12 +07:00
Visman
cda99fbe4b 2018-03-04 2018-03-04 12:30:07 +07:00
Visman
f3dbc4535a DBold folder deleted 2018-02-25 12:14:40 +07:00
Visman
c75f487e38 2018-01-23 2018-01-23 22:57:53 +07:00
Visman
0c13908e25 2018-01-22 2018-01-22 23:34:06 +07:00
Visman
6e40010dba 2018-01-09 Validator 2018-01-09 21:11:42 +07:00
Visman
19dbdb6bbd 2018-01-08 Auth, Register 2018-01-08 20:03:23 +07:00
Visman
039b8df08b 2018-01-08 Core 2018-01-08 16:22:02 +07:00
Visman
204df06728 2018-01-06 2018-01-06 22:18:36 +07:00
Visman
cd259b79ab 2018-01-01 2018-01-01 22:19:38 +07:00
Visman
6dfc6c9ec0 2017-12-29 2017-12-29 23:51:36 +07:00
Visman
616c84ef0d 2017-12-27 2017-12-27 23:26:22 +07:00
Visman
a255ac2a16 2017-12-19 2017-12-19 22:34:38 +07:00
Visman
8f6f0696ea 2017-12-15 2017-12-15 22:09:00 +07:00
Visman
d6e07a8f28 2017-12-14 2017-12-14 19:16:09 +07:00
Visman
87b8c632ed 2017-12-11 2017-12-11 23:34:36 +07:00
Visman
372521b5ff 2017-12-09 2017-12-09 23:23:35 +07:00
Visman
c49db50c23 2017-12-07 2017-12-07 19:21:51 +07:00
Visman
375a014e20 2017-12-04 2017-12-04 23:57:25 +07:00
Visman
66ac330784 2017-12-03 2017-12-03 22:50:06 +07:00
Visman
4f7b2404f6 2017-12-02 2017-12-02 13:27:03 +07:00
Visman
a4a81c04e0 2017-11-30 2017-11-30 10:08:32 +07:00
Visman
7e91738c70 2017-11-26 2017-11-26 18:56:54 +07:00
Visman
37f80f6fb8 2017-11-03 2017-11-03 20:06:22 +07:00
Visman
e3abb67d67 2017-10-13 2017-10-13 13:53:43 +07:00
Visman
9becae3750 2017-10-08 2017-10-08 23:45:00 +07:00
Visman
6311b5b8d5 2017-10-06 2017-10-06 21:53:41 +07:00
Visman
58b807cb87 2017-09-30 2017-10-01 00:12:17 +07:00
Visman
7362c03c7a DB and ... 2017-09-14 20:10:47 +07:00
Visman
44bee23a23 AdminGroups, Csrf, Validator, ... 2017-04-09 21:32:49 +07:00
Visman
1481a2d889 Page, Validator, View 2017-04-03 16:42:29 +07:00
Visman
0a71fc6cb6 Forum 2017-03-23 22:14:09 +07:00
Visman
6290aad378 Forum and ... 2017-03-21 23:16:15 +07:00
Visman
3101e4c1fe Passphrase 2017-03-15 23:07:39 +07:00
Visman
2a8c75f613 Install 2017-03-13 23:14:57 +07:00
Visman
dc51f88896 DB 2017-03-08 22:52:45 +07:00
Visman
35c9d5583c Exceptions, Mail, Auth, Register, UserMapper, Validator 2017-03-04 19:01:10 +07:00
Visman
a1f5f61a50 Mail, Auth, Register, UserMapper, Validator 2017-03-02 15:45:43 +07:00
Visman
5f2e45ee58 new Container 2017-02-21 17:47:34 +07:00
Visman
ffdcefb076 Validator 2017-02-20 21:52:45 +07:00
Visman
44bb5dc6ca ... 2017-02-18 23:29:41 +07:00
Visman
a3426e3380 new model for user 2017-02-16 20:26:15 +07:00
Visman
75288400c6 intermediate achievements 2017-02-14 20:05:26 +07:00
Visman
a2dd3dcd37 Changed cache system, fix search.php 2017-01-17 14:12:29 +07:00
Visman
ec1e6af2b0 Changed cookies, deleted o_database_revision 2017-01-15 17:46:39 +07:00
Visman
41b38f3ebb Added Cookie, UserCookie, Secury classes + updated Container 2017-01-11 22:31:43 +07:00
Visman
9d0a2be89a Moved the cache folder 2017-01-08 21:15:47 +07:00
Visman
dea119336c pun_strlen() and utf8_strlen() replaced to mb_strlen(). Fix PUN_MAX_POSTSIZE 2017-01-08 17:22:07 +07:00
Visman
8506912b96 Deleted POST, GET from admin_censoring 2017-01-07 15:15:40 +07:00
Visman
ddd6d0438f Deleted POST, GET, REQUEST from admin_bans 2017-01-07 14:28:53 +07:00
Visman
7ba2287c71 Moved base url in the configuration file. 2017-01-06 23:28:04 +07:00
Visman
472b8b59f2 Minor changes version, constants and the updating script 2017-01-06 23:05:45 +07:00
Visman
0b5e67c682 Composer + Container + installation moved to a class + favicon.ico 2017-01-06 20:51:12 +07:00