Aleksander Machniak
f7d8852d17
Use str_starts_with() where applicable
2025-03-30 11:32:38 +02:00
Aleksander Machniak
9afeb0174e
Use PHPStan v2
2025-03-16 13:33:15 +01:00
Aleksander Machniak
a9b1ca34f3
Update min PHP version check, cleanup outdated checks/comments
2025-02-23 11:18:50 +01:00
Aleksander Machniak
64df318a73
Add static files server ( #9294 )
...
Make use of public_html mandatory
2025-02-09 14:10:50 +01:00
Michael Voříšek
1e360999b2
Use composer autoloader for bundled plugins testing ( #9412 )
...
* use fixed "roundcube/plugin-installer"
* Use composer autoloader for plugins testing
* cherrypick remaining from 9241 related with testing
* minor legacy autoload improvements
2024-04-11 18:28:46 +02:00
Michael Voříšek
4ee79b9e84
fix "explicit_string_variable" ( #9315 )
2024-01-22 08:05:59 +01:00
Michael Voříšek
6a53a1d853
Fix CS (whitespace, visibility) ( #9297 )
...
* Fix "method_argument_space"
* Fix "control_structure_continuation_position"
* Fix "new_with_parentheses"
* Fix "blank_line_before_statement"
* Fix "visibility_required"
* Fix some "array_indentation"
* Fix some "array_indentation" - unify all "rcube::raise_error" calls
* rm useless eslint ignores and add rules counts
* sort eslint ignores
* fix eslint ignores grammar
* Revert "Fix "blank_line_before_statement""
* fix CS 3.46.0
2024-01-04 14:26:35 +01:00
Michael Voříšek
2643be3eaa
Fix single quotes CS ( #9283 )
...
* Fix "single_quote"
* fix "escape_implicit_backslashes"
* fix typo from f363481c
* fix single quotes in JS
* fix some minor JS CS
* fix CS v3.45.0
2023-12-31 16:36:55 +01:00
Michael Voříšek
3e458fa5fd
Refer native constants unambiguously ( #9275 )
...
* Fix "native_constant_invocation" CS
* "self_accessor" was fixed in 9269 PR
* "php_unit_strict" was fixed in 9268 PR
2023-12-23 17:02:19 +01:00
Michael Voříšek
e7d7e62146
Modernize more basic CS II ( #9254 )
...
* fix "integer_literal_case"
* fix "phpdoc_separation"
* fix "phpdoc_var_without_name"
* fix "operator_linebreak"
* fix "no_alias_language_construct_call"
* fix "list_syntax"
* fix "concat_space"
* fix "array_syntax"
* fix "binary_operator_spaces"
* fix "binary_operator_spaces" relaxed
* fix "phpdoc_types_order"
* fix "phpdoc_trim"
* fix "native_type_declaration_casing"
* fix "method_chaining_indentation"
* fix "phpdoc_no_package"
* fix "elseif"
* fix PHP CS Fixer config itself too
* fix "native_type_declaration_casing"
2023-12-17 13:14:45 +01:00
Michael Voříšek
ca8b17d191
Modernize more basic CS ( #9258 )
...
* fix "yoda_style"
* fix "is_null"
* rm useless rule ignores
* add full "PhpCsFixer:risky" ruleset
* fix "implode_call"
* fix "no_alias_functions"
* fix "array_push"
* fix "long_to_shorthand_operator"
* fix "ternary_to_elvis_operator"
* fix "logical_operators"
* fix "fopen_flags"
* rename "returns" phpdoc tags to "return"
* fix "php_unit_construct"
* fix "function_to_constant"
* fix "php_unit_data_provider_return_type"
* fix "php_unit_set_up_tear_down_visibility"
* some safe "string_length_to_empty"
* fix "phpdoc_align"
* fix "phpdoc_no_alias_tag"
* fix "trailing_comma_in_multiline"
---------
Co-authored-by: Aleksander Machniak <alec@alec.pl >
2023-12-17 09:51:11 +01:00
Michael Voříšek
a8707ae220
Fix and assert basic CS using CI ( #9246 )
...
* Assert CS using CI
* fix "single_blank_line_at_eof"
* fix "statement_indentation"
* fix "switch_case_semicolon_to_colon"
* fix "control_structure_braces"
* fix "statement_indentation"
* fix "no_whitespace_in_blank_line"
* fix "no_trailing_whitespace_in_comment"
* fix "no_trailing_whitespace"
* fix "single_space_around_construct"
* fix "spaces_inside_parentheses"
* fix "ternary_operator_spaces"
* fix "trim_array_spaces"
* fix "whitespace_after_comma_in_array"
* fix "cast_spaces"
* fix "unary_operator_spaces"
* fix "no_trailing_comma_in_singleline"
* fix "ordered_imports"
* fix "no_unused_imports"
* Check composer.json format
* fix CI job name
* file header comments are not phpdoc
* fix "phpdoc_indent"
* fix "braces_position"
* fix "phpdoc_types"
* fix "no_blank_lines_after_class_opening"
* fix "no_multiple_statements_per_line"
* fix "multiline_comment_opening_closing"
* fix "single_line_empty_body"
* fix "non_printable_character"
* fix "phpdoc_trim_consecutive_blank_line_separation"
* fix "include"
* fix "no_mixed_echo_print"
---------
Co-authored-by: Aleksander Machniak <alec@alec.pl >
2023-12-16 15:37:43 +01:00
Aleksander Machniak
42f9cdceba
Master is 1.7-git
2022-06-23 19:02:23 +02:00
Aleksander Machniak
eec0d2b578
Display a generic error page on initial DB/configuration errors ( #8222 )
2021-10-27 14:27:56 +02:00
Aleksander Machniak
9e3d145917
Stop execution and print error on unsupported PHP version
2021-08-01 17:57:29 +02:00
Aleksander Machniak
b4fd75d6c1
Master is 1.6-git now
2021-07-25 09:08:20 +02:00
Aleksander Machniak
0cbe4a4acc
PHP8 fixes, CS fixes, short array syntax, added more tests
2020-11-22 12:03:02 +01:00
Aleksander Machniak
545a1569f1
Steps -> Actions refactoring ( #7688 )
...
* Move action handling code to rcmail class
* Add rcmail_action class
* Add action aliases
* Get rid of $OUTPUT global
* Move some methods from rcmail to rcmail_action
* PHP8 compat. fixes
* Add framework for testing actions
* Fix obvious code mistakes
2020-11-01 11:25:38 +01:00
Aleksander Machniak
bde383d051
PHP8: Fix various issues
...
for now only these I found by running our unit tests, there will be much more
2020-10-11 10:32:41 +02:00
Thomas B
9020797d0d
Merge pull request #7425 from thomascube/pr-xoauth2
...
Add OAuth/XOauth support
2020-08-10 21:40:01 +02:00
johndoh
c0fc96cdd7
Add basic error message on fatal PHP error ( #7380 )
...
Show a basic error message rather than a blank screen on fatal PHP error
2020-07-02 19:06:07 +02:00
Thomas Bruederli
5da7708f34
Improve OAuth2 login procedure
...
... as suggested in issue #6933
* add config option `oauth_verify_peer`
* add config option `oauth_identity_fields`
* do not mask access token in session data
* fix refresh token handling
* use a redirect URL without query parameters
2020-06-16 08:17:52 +02:00
Aleksander Machniak
9f1d185c44
Master is 1.5-git now
2019-10-27 09:45:15 +01:00
Aleksander Machniak
57c67db029
Remove year(s) from copyright headers + some cleanup
2019-04-16 10:42:45 +02:00
Boris Rybalkin
2d85dad0cc
Support ROUNDCUBE_CONFIG_DIR env variable ( #6112 )
2019-03-11 13:58:05 +01:00
Aleksander Machniak
5101cfc67a
Bump version to 1.4-git
2017-05-15 11:34:43 +02:00
Aleksander Machniak
e1165fed89
Remove backward compatibility "layer" of bc.php ( #4902 ) - now for real
2016-07-23 11:47:13 +02:00
Aleksander Machniak
9634169647
Bump version number to 1.3-beta
2016-05-02 14:37:39 +02:00
Thomas Bruederli
458a6b26e8
Load bc.inc in script startup
2015-11-16 22:47:28 +01:00
Aleksander Machniak
fddfd8e6d7
Remove backward compatibility "layer" of bc.php ( #1490534 )
2015-10-16 19:51:28 +02:00
Aleksander Machniak
8447bae77c
Require Mbstring and OpenSSL extensions ( #1490415 ) - remove redundant code
2015-06-28 12:27:48 +02:00
Aleksander Machniak
a958748947
CS fixes
2015-06-07 15:26:33 +02:00
Aleksander Machniak
f070da7c27
Fix fatal errors on systems without mbstring extension or mb_regex_encoding() function ( #1490280 )
2015-02-22 11:47:14 +01:00
Aleksander Machniak
3779b67a9c
Set version number to 1.2-git
2015-02-16 11:22:13 +01:00
Thomas Bruederli
2f8b1036da
Bump version and copyright year
2015-02-07 18:33:24 +01:00
Aleksander Machniak
09d52dbb67
Fix some typos in comments
2015-02-04 10:46:14 +01:00
Aleksander Machniak
fec4f240e5
Seek vendor/autoload.php in install path to make tests working
2014-08-30 09:50:31 +02:00
Thomas Bruederli
a98a4f8bb5
Remove 3rd party libs from our repository and define the dependencies in composer.json-dist.
...
Also remove the ancient utf8 lib and replace it with 'Patchwork UTF-8 for PHP'.
For direct git checkouts, copy composer.json-dist into composer.json and run
`php composer.phar install` to install the dependencies.
2014-08-27 17:45:21 +02:00
Aleksander Machniak
010a942025
Silence possible PHP Warning: file_exists(): open_basedir restriction in effect.
2014-05-25 11:13:31 +02:00
Aleksander Machniak
65f59fa3c6
Bump version number to 1.1-git
2014-03-19 08:49:55 +01:00
Aleksander Machniak
0301d9347f
CS fixes
2014-01-01 12:31:14 +01:00
Thomas Bruederli
b4d50cb41c
Prepare for the composer-based plugin repository; skip PEAR dependencies for now
2013-04-28 13:42:52 +02:00
Aleksander Machniak
1352d8ddb0
Remove redundant ini checks
2013-04-16 18:54:13 +02:00
Aleksander Machniak
bb080af14d
Bump version number up to 1.0-git
2013-03-15 12:53:02 +01:00
Thomas Bruederli
18e23ab763
Welcome to 2013
2013-01-09 17:50:51 +01:00
Thomas Bruederli
60226a75d8
Separate the very application-specific output classes from the Roundcube framework; add autoloader for rmail* classes
2012-11-27 12:13:33 +01:00
Thomas Bruederli
5926684aab
Unify path schema in global constants: paths always end with a /. Keep RCMAIL_CONFIG_DIR for backwards compatibility
2012-11-25 17:57:39 +01:00
Thomas Bruederli
fdbe5a8804
Separate framework and application constants
2012-11-25 17:45:38 +01:00
Thomas Bruederli
9be2f43d02
Define more (uniquely prefixed) constants for Roundcube directories in order to enhance the interoperability of the Roundcube framework
2012-11-25 17:35:53 +01:00
Aleksander Machniak
15cf4fa925
Rename rcube_bc.inc to bc.php for consistency
2012-11-21 19:55:34 +01:00