Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update area51 master branch to latest version #29

Merged
merged 1,774 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1774 commits
Select commit Hold shift + click to select a range
0af921d
[ticket/17176] Update psalm expected PHP version and add missing retu…
marc1706 Aug 19, 2023
c91e758
[ticket/17176] Ensure helpers are of expected type
marc1706 Aug 19, 2023
89ad5fb
[ticket/17176] Remove PHP 8 workaround for windows machines
marc1706 Aug 19, 2023
fa522d2
[ticket/17176] Add more test stubs for psalm
marc1706 Aug 20, 2023
b82c880
[ticket/17176] Cleaned up psalm stubs folder
marc1706 Aug 20, 2023
ac9659c
[ticket/17176] Resolve psalm issues after PHP version update
marc1706 Aug 20, 2023
826aeb7
[ticket/17176] More minor cleanup after recent changes to db versions
marc1706 Aug 20, 2023
96e97c2
[ticket/17176] Revert back to doctrine 3.3.x until drop index is solved
marc1706 Aug 20, 2023
8a2199e
[ticket/17176] Clean up database code to prevent test issues
marc1706 Aug 20, 2023
eed92e7
[ticket/17176] Do not always create a new connection in database tests
marc1706 Aug 21, 2023
295fcc7
[ticket/17176] Pass query_id by ref in sql_fetchfield()
marc1706 Aug 21, 2023
c707145
[ticket/17176] Adjust composer cache usage
marc1706 Aug 21, 2023
4abac49
[ticket/17176] Disable PHP 8.3 builds for now as composer cache fails
marc1706 Aug 22, 2023
dc4d79f
[ticket/17176] Take care of MSSQL being slow
marc1706 Aug 22, 2023
5d6218d
[ticket/17176] Use NativeHttpClient on windows builds
marc1706 Sep 5, 2023
4078ed7
[ticket/17176] Remove no longer needed backward compatible phpunit code
marc1706 Sep 7, 2023
0101ae9
[ticket/17176] Use ubuntu latest runner
marc1706 Sep 9, 2023
a2282de
[ticket/17176] See if we can enable php 8.3 tests again
marc1706 Sep 9, 2023
ce5a137
[ticket/17176] Use ldapuri instead of removed ldaphost
marc1706 Sep 9, 2023
f051644
[ticket/17176] Use matrix definitions for building build matrix
marc1706 Sep 9, 2023
7c05df1
[ticket/17176] Run functional and unit tests separately
marc1706 Sep 9, 2023
875d1af
[ticket/17176] Use correct ldap URI
marc1706 Sep 9, 2023
6320acb
[ticket/17176] Add type to test name
marc1706 Sep 9, 2023
1f9d143
[ticket/17176] Manually include mysql 5.7 builds and change naming of…
marc1706 Sep 9, 2023
3e2628f
[ticket/17176] Ensure slow tests are not run when not selected
marc1706 Sep 9, 2023
20a2ee2
[ticket/17176] Use different call to cause a notice
marc1706 Sep 9, 2023
9fbe00d
[ticket/17176] Fix some PHP 8.x deprecations and clean up test code
marc1706 Sep 9, 2023
4bb94bf
[ticket/17176] Fix functional test after rebase
marc1706 Sep 19, 2023
5634ea1
[ticket/17176] Use ReturnTypeWillChange instead of suppressing psalm
marc1706 Sep 21, 2023
2a95238
[ticket/17173] Fix code according to coding guidelines
marc1706 Sep 21, 2023
043d728
[ticket/17176] Remove not needed packages from composer.json and update
marc1706 Sep 21, 2023
5231e04
[ticket/17176] Use symfony error handler instead of debug
marc1706 Sep 21, 2023
43772c0
[ticket/17176] Fix mix of psalm / DebugHandler
marc1706 Sep 21, 2023
cf79989
[ticket/17176] Fix debug error handling
marc1706 Sep 21, 2023
45cefd4
[ticket/17176] Combine error handler with exception handling/msg_hand…
marc1706 Sep 21, 2023
384405d
[ticket/17176] Fix our misuse of trigger_error() to work again
marc1706 Sep 21, 2023
2d06dd0
[ticket/17176] Clear up error handler code for psalm
marc1706 Sep 21, 2023
49be2ad
[ticket/17176] Ignore useless override check
marc1706 Sep 21, 2023
2989b4b
Merge pull request #6528 from marc1706/ticket/17176
marc1706 Sep 21, 2023
e1052bd
Merge pull request #6532 from marc1706/ticket/12785
Derky Sep 21, 2023
89a4102
Merge branch '3.3.x'
Derky Sep 21, 2023
1ee4d83
[ticket/17193] Run unit tests on single runners again
marc1706 Sep 22, 2023
19d7e5f
[ticket/17193] Reduce amount of runners
marc1706 Sep 22, 2023
8143ec6
[ticket/17193] Fix invalid PHP versions
marc1706 Sep 22, 2023
a791b81
Merge pull request #6523 from marc1706/ticket/17173
marc1706 Sep 22, 2023
316b061
[ticket/17193] Remove mariadb versions not working right now
marc1706 Sep 22, 2023
276df0a
Merge pull request #6535 from marc1706/ticket/17193
Derky Sep 22, 2023
aba7f4a
[ticket/17194] Move php version in vagrant from folders to sites
Crizz0 Sep 22, 2023
2803f04
[ticket/17195] Remove travis CI files
marc1706 Sep 22, 2023
78dba4c
[ticket/17194] Move php in vagrant from folders to sites - master edi…
Crizz0 Sep 22, 2023
54ea9e0
[ticket/17195] Remove reference to travis
marc1706 Sep 22, 2023
0a395eb
[ticket/17195] Stop artifically slowing down functional tests
marc1706 Sep 22, 2023
e80cf43
Merge pull request #6536 from Crizz0/ticket/17194
marc1706 Sep 22, 2023
686f034
Merge pull request #6537 from Crizz0/ticket/17194-master
marc1706 Sep 22, 2023
eee8d80
Merge branch '3.3.x'
marc1706 Sep 22, 2023
276d793
Merge pull request #6538 from marc1706/ticket/17195
marc1706 Sep 22, 2023
0f38ece
[ticket/17172] Use correct lang for forum links
battye Sep 22, 2023
94279d8
[ticket/17184] Remove subfolders option in local storage
rubencm Sep 23, 2023
e9445bf
[ticket/16923] Fix composer.json dependencies
rubencm Sep 23, 2023
f2e4bdc
Merge pull request #6542 from rubencm/ticket/16923
marc1706 Sep 23, 2023
b0248d2
[ticket/17187] Repair mcp link to first unread post
Crizz0 Sep 23, 2023
b14f37d
[ticket/17116] Remove always TRUE if-sentence
Crizz0 Sep 23, 2023
3b622bc
[ticket/17189] Check folder permissions before writing
Derky Sep 23, 2023
a78eb6f
[ticket/17189] Show file names that couldn't be modified by installer
Derky Sep 23, 2023
6b6c710
[ticket/17189] Append slash after installer cache path
Derky Sep 24, 2023
3163b17
Merge pull request #6539 from battye/ticket/17172
marc1706 Sep 24, 2023
76748ed
Merge branch '3.3.x'
marc1706 Sep 24, 2023
b724e82
[ticket/17128] Fix outdated link to date format
battye Sep 24, 2023
2d3781f
Merge pull request #6548 from battye/ticket/17128
marc1706 Sep 27, 2023
6e7c366
Merge branch '3.3.x'
marc1706 Sep 27, 2023
88dcb5d
[ticket/15973] Add canonical URL for index
marc1706 Sep 27, 2023
a04af20
[ticket/17198] Use https instead of http as default in remote avatar
marc1706 Sep 29, 2023
90b1c22
Merge pull request #6550 from marc1706/ticket/15973
marc1706 Sep 30, 2023
3dfe60b
Merge branch '3.3.x'
marc1706 Sep 30, 2023
78aca08
Merge pull request #6551 from marc1706/ticket/17198
marc1706 Sep 30, 2023
71f04e7
Merge branch '3.3.x'
marc1706 Sep 30, 2023
346523f
[ticket/17113] Write icon_id to split topic's posts
Crizz0 Sep 23, 2023
745dd5f
[ticket/17113] Usq sql_build_array() for cleaner code
marc1706 Sep 27, 2023
715c0ad
Merge pull request #6545 from Crizz0/ticket/17116
marc1706 Sep 30, 2023
752800b
Merge branch '3.3.x'
marc1706 Sep 30, 2023
d8ac6f5
[ticket/security/279] Escape smilies URL and prevent paths in .pak fi…
Derky Sep 18, 2023
c4f42c1
[ticket/security/279] Use rawurlencode for escaping smilie URLs
Derky Sep 21, 2023
266376a
[ticket/security/279] Use utf8_basename for smilies pak file check
Derky Sep 21, 2023
c480dd8
Merge pull request #6547 from Crizz0/ticket/17113
marc1706 Sep 30, 2023
4cd895e
Merge branch '3.3.x'
marc1706 Sep 30, 2023
4046365
[ticket/17029] Use constants instead of magic numbers in tests
marc1706 Oct 1, 2023
d76c571
[ticket/17029] Test changing of post count on approve/delete
marc1706 Oct 1, 2023
4bf78d1
[ticket/17029] Add tests for deleting of last post with different vis…
marc1706 Oct 1, 2023
42bf577
Merge pull request #6526 from marc1706/ticket/17029
marc1706 Oct 1, 2023
2ff409a
Merge branch '3.3.x'
marc1706 Oct 1, 2023
6fac65d
[ticket/12904] Do not display info about required fields without any
marc1706 Oct 1, 2023
9dec6d3
Merge pull request #6552 from marc1706/ticket/12904
marc1706 Oct 2, 2023
368239a
Merge branch '3.3.x'
marc1706 Oct 2, 2023
91b3627
[ticket/17189] Check if different way of getting parent path works be…
marc1706 Oct 2, 2023
233d6a0
Merge pull request #6546 from Derky/ticket/17189
marc1706 Oct 4, 2023
7fcfcec
Merge branch '3.3.x'
marc1706 Oct 4, 2023
0a83918
[ticket/13399] Add info about usage of CHARACTERS_XY lang string
marc1706 Oct 4, 2023
99fabe2
[ticket/17191] new config values lang/en/composer.json fr common/reca…
Crizz0 Sep 21, 2023
36ea0c1
[ticket/17191] Update language file helper for new composer values
Crizz0 Sep 21, 2023
1cc6a47
[ticket/17191] Replace lang keys in fucntions with composer output
Crizz0 Sep 21, 2023
06f38a5
[ticket/17191] Add language helper function to get composer.json content
Crizz0 Sep 21, 2023
6d07852
[ticket/17191] Add new direction and user_langto helper and language.php
Crizz0 Sep 21, 2023
706c788
[ticket/17191] Add L_RECAPTCHA_LANG to page_header()
Crizz0 Sep 21, 2023
21c38e2
[ticket/17191] Change plural-rule to integer from string
Crizz0 Sep 22, 2023
5b79ac0
[ticket/17191] Remove not used use statement in language/language.php
Crizz0 Sep 22, 2023
a54f5c0
[ticket/17191] Add lang helper service to feed/controller
Crizz0 Sep 22, 2023
14b7cae
[ticket/17191] Make sure user_lang from DB is considered, with fallback
Crizz0 Sep 22, 2023
8abf9b6
[ticket/17191] Use di and avoid circular ref
Crizz0 Sep 23, 2023
154f0e7
[ticket/17191] Fix code sniffer issues
Crizz0 Sep 23, 2023
4baa3e7
[ticket/17191] Repair functional tests for lang change
Crizz0 Sep 23, 2023
dc9ef40
[ticket/17191] Inject variables from composer.json when loading langu…
marc1706 Oct 4, 2023
4ed1835
[ticket/17191] Remove invalid/unused code from tests
marc1706 Oct 4, 2023
5f8c996
Merge pull request #6521 from marc1706/ticket/13399
marc1706 Oct 4, 2023
1e3d9f9
Merge branch '3.3.x'
marc1706 Oct 4, 2023
3cc2e41
[ticket/17191] Removed unused use statements
marc1706 Oct 4, 2023
1374221
[ticket/security-132] Limit maximum number of captcha attempts at reg…
marc1706 Oct 5, 2023
d4e0840
[ticket/17188] Change regex being edited
toxyy Oct 5, 2023
ac76b80
Merge pull request #6531 from toxyy/ticket/17188
marc1706 Oct 6, 2023
228e243
Merge branch '3.3.x'
marc1706 Oct 6, 2023
e071cd8
Merge pull request #6527 from marc1706/ticket/16877
marc1706 Oct 10, 2023
831942a
Merge branch '3.3.x'
marc1706 Oct 10, 2023
edc610e
[prep-release-3.3.11] Update version numbers to 3.3.11
marc1706 Oct 15, 2023
0c90bf0
[prep-release-3.3.11] Update version numbers to 3.3.11
marc1706 Oct 15, 2023
2c5519d
[prep-release-3.3.11] Add migration for 3.3.11
marc1706 Oct 15, 2023
8fe3a97
[prep-release-3.3.11] Update changelog for 3.3.11
marc1706 Oct 15, 2023
ccf6e6c
Merge pull request #69 from phpbb/ticket/security-279
marc1706 Oct 15, 2023
31b3d56
Merge pull request #70 from phpbb/ticket/security-132
marc1706 Oct 15, 2023
01b8d6a
Merge branch 'prep-release-3.3.11' into 3.3.x
marc1706 Oct 15, 2023
4eef6a4
[3.3.x] Update version numbers to 3.3.12-dev
marc1706 Oct 15, 2023
90973a5
[prep-release-3.3.11] Update changelog for 3.3.11
marc1706 Oct 16, 2023
7e6c5df
Merge branch 'prep-release-3.3.11' into 3.3.x
marc1706 Oct 21, 2023
88385d6
Merge branch '3.3.x'
marc1706 Oct 22, 2023
70ba9da
[ticket/17201] Do not run dirname() on dir path during install redirect
marc1706 Oct 22, 2023
607a2c4
[ticket/17201] Add dot for improved dirname for URI ending in slash
marc1706 Oct 23, 2023
959f60a
[ticket/17203] Add CSS ol for group desc
GanstaZ Oct 23, 2023
2e93f5f
[ticket/17202] Include bidi.css to print only in RTL languages
GanstaZ Oct 23, 2023
593c4b8
[ticket/17201] Split off logic into function and add tests
marc1706 Oct 23, 2023
a86f64f
Merge pull request #6540 from rubencm/ticket/17184
marc1706 Oct 23, 2023
79b8f56
[ticket/17200] Fix color error in viewonline legend
GanstaZ Oct 25, 2023
5ab3916
[ticket/17200] Remove not needed addition
GanstaZ Oct 28, 2023
58fc9e0
[ticket/17201] Add comment on need to add dot to script_name
marc1706 Oct 29, 2023
eed57fd
Merge pull request #6543 from Crizz0/ticket/17187
marc1706 Oct 30, 2023
d90e973
Merge branch '3.3.x'
marc1706 Oct 30, 2023
88bbd0f
Merge pull request #6556 from GanstaZ/ticket/17200
marc1706 Oct 30, 2023
2e6d825
Merge branch '3.3.x'
marc1706 Oct 30, 2023
25c20cb
Merge pull request #6553 from marc1706/ticket/17201
marc1706 Oct 31, 2023
9a1a613
Merge branch '3.3.x'
marc1706 Oct 31, 2023
9ec60b4
Merge pull request #6534 from Crizz0/ticket/17191
marc1706 Oct 31, 2023
993e280
Merge pull request #6554 from GanstaZ/ticket/17202
marc1706 Oct 31, 2023
da7c0da
Merge branch '3.3.x'
marc1706 Oct 31, 2023
37039f9
Merge pull request #6555 from GanstaZ/ticket/17203
marc1706 Oct 31, 2023
4955de8
Merge branch '3.3.x'
marc1706 Oct 31, 2023
bb7e7b6
[ticket/17204] Update composer dependencies to latest versions
marc1706 Oct 31, 2023
2b7d802
[ticket/17204] Update composer to latest version
marc1706 Oct 31, 2023
00d349c
[ticket/17203] Fix stylesheet formatting
marc1706 Nov 1, 2023
101d8fd
Merge branch 'ticket/17204' into ticket/17204-master
marc1706 Nov 1, 2023
be9e833
[ticket/17204] Update composer dependencies on master
marc1706 Nov 1, 2023
8a951a6
[ticket/17204] Update node dependencies
marc1706 Oct 31, 2023
9e13033
[ticket/16470] remove unneeded migration, adjust code
rxu Nov 1, 2023
8afc638
[ticket/17207] Lazily call get_web_root_path() in twig environment
marc1706 Nov 1, 2023
526c79d
[ticket/17208] Skip profile field data update if youtube cpf doesn't …
marc1706 Nov 1, 2023
dd549a5
[ticket/17208] Ensure to not run the previous migration with missing …
marc1706 Nov 1, 2023
0e3bc63
Merge pull request #6560 from marc1706/ticket/17208
marc1706 Nov 2, 2023
010464c
Merge branch '3.3.x'
marc1706 Nov 2, 2023
d417851
Merge pull request #6559 from marc1706/ticket/17207
marc1706 Nov 2, 2023
fb4ea60
Merge branch '3.3.x'
marc1706 Nov 2, 2023
6f79608
[ticket/17209] Move mentions migration to v400
marc1706 Nov 3, 2023
98209b9
[ticket/17209] Add fallback for searching for roles for standard titles
marc1706 Nov 3, 2023
7efadf4
[ticket/17209] Add checks for role exists before adding permissions
marc1706 Nov 3, 2023
7d1e637
[ticket/17209] Fix migration namespace
marc1706 Nov 3, 2023
f177cfa
[ticket/17209] Check permission for existence in storage permission m…
marc1706 Nov 3, 2023
0e1e792
[ticket/14047] Check for stream close handshake before closing stream
marc1706 Nov 3, 2023
6710bba
Merge pull request #6561 from marc1706/ticket/17209
marc1706 Nov 3, 2023
fe84120
Merge pull request #6490 from rxu/ticket/16470
marc1706 Nov 4, 2023
d65141a
Merge branch '3.3.x'
marc1706 Nov 4, 2023
f6b4c5b
Merge pull request #6557 from marc1706/ticket/17204
marc1706 Nov 4, 2023
8758cb6
Merge pull request #6558 from marc1706/ticket/17204-master
marc1706 Nov 4, 2023
573fe5d
Merge branch '3.3.x'
marc1706 Nov 4, 2023
43e69df
Merge pull request #6562 from marc1706/ticket/14047
marc1706 Nov 5, 2023
caddc73
Merge branch '3.3.x'
marc1706 Nov 5, 2023
5ae1d9e
[ticket/9687] Introduce new ban manager (WIP)
Elsensee Sep 28, 2018
64af01f
[ticket/9687] Finishing user banning and ban logging
Elsensee Sep 29, 2018
95de576
[ticket/9687] Add unbanning to the manager
Elsensee Sep 29, 2018
c8b8675
[ticket/9687] Finish ban check and tidy methods
Elsensee Sep 29, 2018
9373fa3
[ticket/9687] Add more useful methods to the new ban manger
Elsensee Sep 29, 2018
7267df4
[ticket/9687] Finish documentation and integrate the new code
Elsensee Sep 29, 2018
728b200
[ticket/9687] Add service definitions
Elsensee Sep 30, 2018
64ab1fc
[ticket/9687] Fix bugs when banning and add TODO's
Elsensee Sep 30, 2018
e7015bf
[ticket/9687] Fix code style and tests
Elsensee Oct 1, 2018
40b1d1e
[ticket/9687] Remove dependency on log and user services
Elsensee Oct 5, 2018
3563f20
[ticket/9687] Fix ban session tests for real
Elsensee Nov 8, 2018
9048aed
[ticket/9687] Use new array entries for bans
marc1706 Jul 4, 2023
9b77dd0
[ticket/9687] Fix birthday list query
marc1706 Jul 4, 2023
7739eb2
[ticket/9687] Fix incorrect check for ban end and invalid query
marc1706 Jul 4, 2023
8bdda47
[ticket/9687] Fix tests
marc1706 Jul 4, 2023
d4a4dd4
[ticket/9687] Move migrations to v400
marc1706 Jul 4, 2023
d99968a
[ticket/9687] Update ban migrations and clean up code
marc1706 Jul 4, 2023
ec4a531
[ticket/9687] Add ip banning support incl. CIDR support
marc1706 Jul 4, 2023
43b35e1
[ticket/9687] Improve code quality of ban system
marc1706 Jul 4, 2023
026d66d
[ticket/9687] Properly support banning and fix display of ban info
marc1706 Jul 4, 2023
8a5a26b
[ticket/9687] Further clean up ban manager and directly pass user
marc1706 Jul 4, 2023
658e8ef
[ticket/9687] Clean up ACP module
marc1706 Jul 4, 2023
cf0e747
[ticket/9687] Add tests for ban manager and fix some inconsistencies
marc1706 Jul 29, 2023
c88a9f0
[ticket/9687] Remove support for ban exclude
marc1706 Jul 29, 2023
6048458
[ticket/9687] Remove unused exception
marc1706 Jul 29, 2023
1a4e6fe
[ticket/9687] Use Forms for template display and fix display for users
marc1706 Jul 29, 2023
872439b
[ticket/9687] Properly display error messages in ACP
marc1706 Jul 29, 2023
cf26a30
[ticket/9687] Make unbanning work again
marc1706 Jul 29, 2023
7b551ad
[ticket/9687] Prevent banning of anonymous
marc1706 Jul 29, 2023
dcbd4a5
[ticket/9687] Improve display of ban options and update tests
marc1706 Jul 30, 2023
2d53b8f
[ticket/9687] Remove invalid WHERE clause form query
marc1706 Jul 30, 2023
927f33f
[ticket/9687] Use cache driver instead of service
marc1706 Jul 30, 2023
9b8b34e
[ticket/9687] Resolve phing sniff issues
marc1706 Jul 30, 2023
f9a0e4d
[ticket/9687] Separate querie for ban options of users
marc1706 Jul 30, 2023
0414536
[ticket/9687] Add separate column for user_id
marc1706 Jul 31, 2023
0be1ffd
[ticket/9687] Adjust queries to be compatible with postgres
marc1706 Jul 31, 2023
a0bd708
[ticket/9687] Create ban message in manager and add missing sort dire…
marc1706 Jul 31, 2023
66cb07d
[ticket/9687] Fix tests on postgres
marc1706 Jul 31, 2023
040b277
[ticket/9687] Add array reverse only for linux postgres
marc1706 Jul 31, 2023
0f18869
[ticket/9687] Fix text inconsistency between mysql & postgres
marc1706 Aug 4, 2023
d738980
[ticket/9687] Add support for logging to banning system
marc1706 Aug 6, 2023
54bb32b
[ticket/9687] Improve labeling in acp for user bans
marc1706 Aug 6, 2023
e54d544
[ticket/9687] Fix ban message for banned users
marc1706 Aug 6, 2023
598f899
[ticket/9687] Fix converting phpBB2 bans
marc1706 Aug 11, 2023
8e80d73
[ticket/9687] Use correct sql_error call to prevent accessing private…
marc1706 Aug 11, 2023
8a15670
[ticket/9687] Update deprecated notices and helper functions
marc1706 Aug 12, 2023
6347323
[ticket/9687] Remove open todos and revert back to old regex
marc1706 Aug 12, 2023
21b389b
[ticket/9687] Require @ sign in emails
marc1706 Aug 13, 2023
51ea6d8
[ticket/9687] Remove exclude from banning lang strings
marc1706 Aug 13, 2023
0901633
[ticket/9687] Improve ban query
marc1706 Nov 5, 2023
744bf16
[ticket/9687] Adjust query to use join again
marc1706 Nov 5, 2023
eacfe7b
[ticket/9687] Remove no longer needed code after adjusting query
marc1706 Nov 6, 2023
13361a3
[ticket/9687] Clean up code some more
marc1706 Nov 6, 2023
58b777b
[ticket/9687] Some more code cleanup after code review
marc1706 Nov 6, 2023
604d776
Merge pull request #6518 from marc1706/ticket/9687-new
marc1706 Nov 6, 2023
c6fe842
[ticket/17230] Update doctum to 5.5.3 for PHP 8.1 compatibility
marc1706 Nov 21, 2023
100294d
Merge branch 'ticket/17230' into ticket/17230-master
marc1706 Nov 21, 2023
303f8f5
Merge pull request #6565 from marc1706/ticket/17230
marc1706 Nov 21, 2023
7e5e499
Merge pull request #6566 from marc1706/ticket/17230-master
marc1706 Nov 21, 2023
5b1ef39
Merge branch '3.3.x'
marc1706 Nov 21, 2023
a9b5dcd
[ticket/17176] Use different call to cause a notice
marc1706 Sep 9, 2023
bf26da6
[ticket/17233] Add PHP 8.3 tests to the 3.3.x branch
rxu Nov 26, 2023
9ba6e9b
Merge pull request #6567 from rxu/ticket/17233
marc1706 Nov 26, 2023
fc29dfd
Merge branch '3.3.x'
marc1706 Nov 26, 2023
c993c87
Merge remote-tracking branch 'upstream/master'
marc1706 Nov 30, 2023
4a319f3
[update/symfony_6.4] Update teamsecurity extension to latest version
marc1706 Nov 30, 2023
bbb7d41
[update/area51-master] Fix tests
marc1706 Nov 30, 2023
0c83723
[update/area51-master] Fix issues in custom area51 code
marc1706 Dec 1, 2023
2511b6a
[update/area51-master] Remove unused use statement
marc1706 Dec 1, 2023
9a99f2c
[update/area51-master] Fix file permissions
marc1706 Dec 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Debian version
ARG VARIANT="buster"
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}

# Install PHP
RUN apt-get -y update
RUN apt-get -y install php php-xml php-mbstring php-curl php-zip php-xdebug

# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# Install MySQL
RUN apt-get -y install mysql-server php-mysql

# Xdebug
ADD resources/xdebug.ini /etc/php/8.1/apache2/conf.d/xdebug.ini

# Configure Apache
RUN echo "Listen 8080" >> /etc/apache2/ports.conf && \
a2enmod rewrite
37 changes: 37 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.238.1/containers/ubuntu
{
"name": "Ubuntu",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick an Ubuntu version: jammy / ubuntu-22.04, focal / ubuntu-20.04, bionic /ubuntu-18.04
// Use ubuntu-22.04 or ubuntu-18.04 on local arm64/Apple Silicon.
"args": { "VARIANT": "ubuntu-22.04" }
},

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"settings": {
// Allow Xdebug to listen to requests from remote (or container)
"remote.localPortHost": "allInterfaces"
},
//"devPort": {},
// Specify which VS Code extensions to install (List of IDs)
"extensions": ["xdebug.php-debug"]
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [80, 9003],

// Use 'postCreateCommand' to run commands after the container is created.
"postStartCommand": "bash .devcontainer/resources/setup.sh",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"features": {
"github-cli": "latest"
}
}
38 changes: 38 additions & 0 deletions .devcontainer/resources/phpbb-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
installer:
admin:
name: admin
password: adminadmin
email: [email protected]

board:
lang: en
name: My Board
description: My amazing new phpBB board

database:
dbms: mysqli
dbhost: 127.0.0.1
dbport: 3306
dbuser: phpbb
dbpasswd: phpbb
dbname: phpbb
table_prefix: phpbb_

email:
enabled: false
smtp_delivery : ~
smtp_host: ~
smtp_port: ~
smtp_auth: ~
smtp_user: ~
smtp_pass: ~

server:
cookie_secure: false
server_protocol: http://
force_server_vars: false
server_name: localhost
server_port: 80
script_path: /

extensions: []
44 changes: 44 additions & 0 deletions .devcontainer/resources/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# setup.sh
# Commands to install and configure phpBB

# Start MySQL
echo "[Codespaces] Start MySQL"
sudo service mysql start

# Start Apache
echo "[Codespaces] Start Apache"
sudo service apache2 start

# Add SSH key
echo "[Codespaces] Add SSH key"
echo "$SSH_KEY" > /home/vscode/.ssh/id_rsa && chmod 600 /home/vscode/.ssh/id_rsa

# Create a MySQL user to use
echo "[Codespaces] Create MySQL user"
sudo mysql -u root<<EOFMYSQL
CREATE USER 'phpbb'@'localhost' IDENTIFIED BY 'phpbb';
GRANT ALL PRIVILEGES ON *.* TO 'phpbb'@'localhost' WITH GRANT OPTION;
CREATE DATABASE IF NOT EXISTS phpbb;
EOFMYSQL

# Download dependencies
echo "[Codespaces] Install Composer dependencies"
composer install --no-interaction

# Symlink the webroot so it can be viewed
echo "[Codespaces] Create Symlink of webroot"
sudo rm -rf /var/www/html
sudo ln -s /workspaces/phpbb/phpBB /var/www/html

# Copy phpBB config
echo "[Codespaces] Copy phpBB configuration"
cp /workspaces/phpbb/.devcontainer/resources/phpbb-config.yml /workspaces/phpbb/phpBB/install/install-config.yml

# Install phpBB
echo "[Codespaces] Run phpBB CLI installation"
cd /workspaces/phpbb/phpBB && composer install --no-interaction
sudo php /workspaces/phpbb/phpBB/install/phpbbcli.php install /workspaces/phpbb/phpBB/install/install-config.yml
rm -rf /workspaces/phpbb/phpBB/install

# Finished
echo "[Codespaces] phpBB installation completed"
10 changes: 10 additions & 0 deletions .devcontainer/resources/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
zend_extension=xdebug.so

[xdebug]
xdebug.mode=develop,debug
xdebug.discover_client_host=1
xdebug.client_port=9003
xdebug.start_with_request=yes
xdebug.log='/var/log/xdebug/xdebug.log'
xdebug.connect_timeout_ms=2000
xdebug.idekey=VSCODE
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ Checklist:

- [ ] Correct branch: master for new features; 3.3.x for fixes
- [ ] Tests pass
- [ ] Code follows coding guidelines: [master](https://area51.phpbb.com/docs/dev/master/development/coding_guidelines.html) and [3.3.x](https://area51.phpbb.com/docs/dev/3.3.x/development/coding_guidelines.html)
- [ ] Code follows coding guidelines: [master](https://area51.phpbb.com/docs/master/coding-guidelines.html) and [3.3.x](https://area51.phpbb.com/docs/dev/3.3.x/development/coding_guidelines.html)
- [ ] Commit follows commit message [format](https://area51.phpbb.com/docs/dev/3.3.x/development/git.html)

Tracker ticket (set the ticket ID to **your ticket ID**):
Tracker ticket:

https://tracker.phpbb.com/browse/PHPBB3-12345
15 changes: 8 additions & 7 deletions .github/check-doctum-parse-errors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
set -e

if [ ! -f doctum.phar ]; then
# Download the latest (5.1.x) release if the file does not exist
# Download the latest (5.x.x) release if the file does not exist
# Remove it to update your phar
curl -O https://doctum.long-term.support/releases/5.1/doctum.phar
curl -O https://doctum.long-term.support/releases/5/doctum.phar
rm -f doctum.phar.sha256
curl -O https://doctum.long-term.support/releases/5.1/doctum.phar.sha256
curl -O https://doctum.long-term.support/releases/5/doctum.phar.sha256
sha256sum --strict --check doctum.phar.sha256
rm -f doctum.phar.sha256
# You can fetch the latest (5.1.x) version code here:
# https://doctum.long-term.support/releases/5.1/VERSION
chmod +x ./doctum.phar
# You can fetch the latest (5.x.x) version code here:
# https://doctum.long-term.support/releases/5/VERSION
fi
# Show the version to inform users of the script
php doctum.phar --version
php doctum.phar parse build/doctum-checkout.conf.php -v
./doctum.phar version --text
./doctum.phar parse build/doctum-checkout.conf.php -v
17 changes: 6 additions & 11 deletions travis/phing-sniff.sh → .github/check-js.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,10 @@
# the docs/CREDITS.txt file.
#
set -e
set -x

DB=$1
TRAVIS_PHP_VERSION=$2
NOTESTS=$3
set +x

if [ "$NOTESTS" == '1' ]
then
cd build
../phpBB/vendor/bin/phing sniff
cd ..
fi
sudo npm install -g > /dev/null
npm ci > /dev/null
set -x
node_modules/eslint/bin/eslint.js "phpBB/**/*.js"
node_modules/eslint/bin/eslint.js "gulpfile.js"
2 changes: 1 addition & 1 deletion .github/setup-database.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ fi

if [ "$MYISAM" == '1' ]
then
mysql -h 127.0.0.1 -u root -e 'SET GLOBAL storage_engine=MyISAM;'
mysql -h 127.0.0.1 -u root -e 'SET GLOBAL default_storage_engine=MyISAM;'
fi
2 changes: 1 addition & 1 deletion .github/setup-ldap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ mkdir /var/tmp/slapd
cp .github/ldap/slapd.conf /var/tmp/slapd/slapd.conf
slapd -d 256 -d 128 -f /var/tmp/slapd/slapd.conf -h ldap://localhost:3389 &
sleep 3
ldapadd -h localhost:3389 -D "cn=admin,dc=example,dc=com" -w adminadmin -f .github/ldap/base.ldif
ldapadd -H ldap://localhost:3389 -D "cn=admin,dc=example,dc=com" -w adminadmin -f .github/ldap/base.ldif
5 changes: 0 additions & 5 deletions .github/setup-phpbb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,4 @@ fi

cd phpBB
php ../composer.phar install --dev --no-interaction
if [[ "$PHP_VERSION" =~ ^nightly$ || "$PHP_VERSION" =~ ^8 ]]
then
php ../composer.phar remove phpunit/dbunit --dev --update-with-dependencies \
&& php ../composer.phar require symfony/yaml:~4.4 misantron/dbunit:~5.0 phpunit/phpunit:^9.3 --dev --update-with-all-dependencies --ignore-platform-reqs
fi
cd ..
144 changes: 144 additions & 0 deletions .github/setup-sphinx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
set -x

sudo apt-get update
sudo apt-get install -q -y sphinxsearch

DIR=$(dirname "$0")

SPHINX_DAEMON_HOST="localhost"
SPHINX_DAEMON_PORT="9312"
SPHINX_CONF="$DIR/sphinx.conf"
SPHINX_DATA_DIR="/var/run/sphinxsearch"
SPHINX_LOG="$SPHINX_DATA_DIR/log/searchd.log"
SPHINX_QUERY_LOG="$SPHINX_DATA_DIR/log/sphinx-query.log"
ID="saw9zf2fdhp1goue" # Randomly generated via phpBB unique_id()

PHPBB_TEST_DBHOST="0.0.0.0"
PHPBB_TEST_DBNAME="phpbb_tests"
PHPBB_TEST_DBUSER="root"
PHPBB_TEST_DBPASSWD=""

sudo service sphinxsearch stop
sudo mkdir -p "$SPHINX_DATA_DIR/log"
sudo chown "sphinxsearch" "$SPHINX_DATA_DIR/log"

# Generate configuration file for Sphinx
echo "
source source_phpbb_${ID}_main
{
type = mysql # mysql or pgsql
sql_host = $PHPBB_TEST_DBHOST
sql_user = $PHPBB_TEST_DBUSER
sql_pass = $PHPBB_TEST_DBPASSWD
sql_db = $PHPBB_TEST_DBNAME
sql_port =
sql_query_pre = SET NAMES 'utf8'
sql_query_pre = UPDATE phpbb_sphinx SET max_doc_id = (SELECT MAX(post_id) FROM phpbb_posts) WHERE counter_id = 1
sql_query_range = SELECT MIN(post_id), MAX(post_id) FROM phpbb_posts
sql_range_step = 5000
sql_query = SELECT \
p.post_id AS id, \
p.forum_id, \
p.topic_id, \
p.poster_id, \
p.post_visibility, \
CASE WHEN p.post_id = t.topic_first_post_id THEN 1 ELSE 0 END as topic_first_post, \
p.post_time, \
p.post_subject, \
p.post_subject as title, \
p.post_text as data, \
t.topic_last_post_time, \
0 as deleted \
FROM phpbb_posts p, phpbb_topics t \
WHERE \
p.topic_id = t.topic_id \
AND p.post_id >= \$start AND p.post_id <= \$end
sql_query_post =
sql_query_post_index = UPDATE phpbb_sphinx SET max_doc_id = \$maxid WHERE counter_id = 1
sql_attr_uint = forum_id
sql_attr_uint = topic_id
sql_attr_uint = poster_id
sql_attr_uint = post_visibility
sql_attr_bool = topic_first_post
sql_attr_bool = deleted
sql_attr_timestamp = post_time
sql_attr_timestamp = topic_last_post_time
sql_attr_string = post_subject
}
source source_phpbb_${ID}_delta : source_phpbb_${ID}_main
{
sql_query_pre = SET NAMES 'utf8'
sql_query_range =
sql_range_step =
sql_query = SELECT \
p.post_id AS id, \
p.forum_id, \
p.topic_id, \
p.poster_id, \
p.post_visibility, \
CASE WHEN p.post_id = t.topic_first_post_id THEN 1 ELSE 0 END as topic_first_post, \
p.post_time, \
p.post_subject, \
p.post_subject as title, \
p.post_text as data, \
t.topic_last_post_time, \
0 as deleted \
FROM phpbb_posts p, phpbb_topics t \
WHERE \
p.topic_id = t.topic_id \
AND p.post_id >= ( SELECT max_doc_id FROM phpbb_sphinx WHERE counter_id=1 )
sql_query_post_index =
}
index index_phpbb_${ID}_main
{
path = $SPHINX_DATA_DIR/index_phpbb_${ID}_main
source = source_phpbb_${ID}_main
docinfo = extern
morphology = none
stopwords =
wordforms =
exceptions =
min_word_len = 2
charset_table = U+FF10..U+FF19->0..9, 0..9, U+FF41..U+FF5A->a..z, U+FF21..U+FF3A->a..z, A..Z->a..z, a..z, U+0149, U+017F, U+0138, U+00DF, U+00FF, U+00C0..U+00D6->U+00E0..U+00F6, U+00E0..U+00F6, U+00D8..U+00DE->U+00F8..U+00FE, U+00F8..U+00FE, U+0100->U+0101, U+0101, U+0102->U+0103, U+0103, U+0104->U+0105, U+0105, U+0106->U+0107, U+0107, U+0108->U+0109, U+0109, U+010A->U+010B, U+010B, U+010C->U+010D, U+010D, U+010E->U+010F, U+010F, U+0110->U+0111, U+0111, U+0112->U+0113, U+0113, U+0114->U+0115, U+0115, U+0116->U+0117, U+0117, U+0118->U+0119, U+0119, U+011A->U+011B, U+011B, U+011C->U+011D, U+011D, U+011E->U+011F, U+011F, U+0130->U+0131, U+0131, U+0132->U+0133, U+0133, U+0134->U+0135, U+0135, U+0136->U+0137, U+0137, U+0139->U+013A, U+013A, U+013B->U+013C, U+013C, U+013D->U+013E, U+013E, U+013F->U+0140, U+0140, U+0141->U+0142, U+0142, U+0143->U+0144, U+0144, U+0145->U+0146, U+0146, U+0147->U+0148, U+0148, U+014A->U+014B, U+014B, U+014C->U+014D, U+014D, U+014E->U+014F, U+014F, U+0150->U+0151, U+0151, U+0152->U+0153, U+0153, U+0154->U+0155, U+0155, U+0156->U+0157, U+0157, U+0158->U+0159, U+0159, U+015A->U+015B, U+015B, U+015C->U+015D, U+015D, U+015E->U+015F, U+015F, U+0160->U+0161, U+0161, U+0162->U+0163, U+0163, U+0164->U+0165, U+0165, U+0166->U+0167, U+0167, U+0168->U+0169, U+0169, U+016A->U+016B, U+016B, U+016C->U+016D, U+016D, U+016E->U+016F, U+016F, U+0170->U+0171, U+0171, U+0172->U+0173, U+0173, U+0174->U+0175, U+0175, U+0176->U+0177, U+0177, U+0178->U+00FF, U+00FF, U+0179->U+017A, U+017A, U+017B->U+017C, U+017C, U+017D->U+017E, U+017E, U+0410..U+042F->U+0430..U+044F, U+0430..U+044F, U+4E00..U+9FFF
ignore_chars = U+0027, U+002C
min_prefix_len = 3
min_infix_len = 0
html_strip = 1
index_exact_words = 0
blend_chars = U+23, U+24, U+25, U+26, U+40
}
index index_phpbb_${ID}_delta : index_phpbb_${ID}_main
{
path = $SPHINX_DATA_DIR/index_phpbb_${ID}_delta
source = source_phpbb_${ID}_delta
}
indexer
{
mem_limit = 512M
}
searchd
{
listen = $SPHINX_DAEMON_PORT
log = $SPHINX_LOG
query_log = $SPHINX_QUERY_LOG
read_timeout = 5
max_children = 30
pid_file = $SPHINX_DATA_DIR/searchd.pid
binlog_path = $SPHINX_DATA_DIR/
}
" > $SPHINX_CONF

sudo mv "$SPHINX_CONF" "/etc/sphinxsearch/sphinx.conf"
sudo sed -i "s/START=no/START=yes/g" "/etc/default/sphinxsearch"
sudo chmod 777 "/var/run/sphinxsearch"
Loading
Loading