1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-13 17:42:08 +02:00

Compare commits

..

493 Commits

Author SHA1 Message Date
Marc Alexander
4051bf2466 [prep-release-3.3.0-RC1] Update changelog for 3.3.0-RC1 2019-12-21 10:51:05 +01:00
Marc Alexander
a0251ec1d9 [prep-release-3.3.0-RC1] Add migration for 3.3.0-RC1 2019-12-21 10:48:37 +01:00
Marc Alexander
84f01ed0da [prep-release-3.3.0-RC1] Update version numbers to 3.3.0-RC1 2019-12-21 10:46:12 +01:00
Marc Alexander
9ddb1bdddb [prep-release-3.3.0-RC1] Update version numbers to 3.3.0-RC1 2019-12-21 10:45:23 +01:00
Marc Alexander
d26622e992 Merge pull request #5770 from JoshyPHP/ticket/16250
[ticket/16250] Add a service to check BBCodes safeness in ACP
2019-12-21 10:34:17 +01:00
Marc Alexander
0b3eb2f9ea Merge branch '3.2.x' into 3.3.x 2019-12-21 10:25:56 +01:00
Marc Alexander
581139ab15 Merge pull request #5769 from hanakin/ticket/16248
[ticket/16248] swap logo for new svg version
2019-12-21 10:15:53 +01:00
hanakin
8e54e5cc79 [ticket/16248] stupid lack of standards are stupid
PHPBB3-16248
2019-12-17 17:41:21 -08:00
hanakin
26c4dfb9d7 [ticket/16248] add quotes to lang
PHPBB3-16248
2019-12-17 15:35:15 -08:00
hanakin
fce796517b [ticket/16248] Convert to twig
PHPBB3-16248
2019-12-17 14:28:53 -08:00
JoshyPHP
2733ce0712 [ticket/16250] Reworked status as constants
PHPBB3-16250
2019-12-16 01:34:26 +01:00
Marc Alexander
bcc90133a8 Merge pull request #5728 from rxu/ticket/15294
[ticket/15294] Fix session_gc() selecting expired sessions for unique users
2019-12-15 20:26:01 +01:00
Marc Alexander
611b3c4e46 Merge pull request #5775 from SagePtr/ticket/16255
[ticket/16255] Fix PHP 7.4 deprecation warning
2019-12-15 20:14:22 +01:00
Marc Alexander
ac43c5c8bd Merge pull request #5773 from marc1706/ticket/16238-3.3.x
[ticket/16238] Update version for deprecation
2019-12-15 19:59:45 +01:00
Marc Alexander
b786dbc5d7 Merge branch '3.2.x' into 3.3.x 2019-12-13 20:17:17 +01:00
Marc Alexander
0efeef46e1 Merge pull request #5766 from marc1706/ticket/16224-3.3.x
[ticket/16224] Update composer dependencies - 3.3.x version
2019-12-13 20:16:45 +01:00
Sage Pointer
fd5ac318a5 [ticket/16255] Fix PHP 7.4 deprecation warning
PHPBB3-16255
2019-12-13 20:28:36 +02:00
JoshyPHP
2926ceba6a [ticket/16250] Add a service to check BBCodes safeness
PHPBB3-16250
2019-12-13 01:46:09 +01:00
Marc Alexander
581fe4ec83 [ticket/16238] Update version for deprecation
PHPBB3-16238
2019-12-12 18:41:52 +01:00
Marc Alexander
02689df8f7 Merge pull request #5751 from AlfredoRamos/ticket/16235
[ticket/16235] Fix PHP CodeSniffer ignore patterns
2019-12-12 18:34:06 +01:00
Marc Alexander
d9749d5bb0 Merge branch '3.2.x' into 3.3.x 2019-12-12 18:20:56 +01:00
Marc Alexander
b7492a7b6f Merge branch '3.2.x' into 3.3.x 2019-12-12 18:17:00 +01:00
Marc Alexander
59afb76df4 Merge branch 'ticket/16224' into ticket/16224-3.3.x 2019-12-12 18:13:25 +01:00
hanakin
d659276749 [ticket/16248] fix logo in acp
PHPBB3-16248
2019-12-08 00:07:57 -10:00
hanakin
8be1ad4568 [ticket/16248] loaaaad svg old way for BC
PHPBB3-16248
2019-12-07 08:20:59 -10:00
hanakin
0fc6fbf916 [ticket/16248] Remove all unused theme/images
PHPBB3-16248
2019-12-07 08:12:52 -10:00
hanakin
8ffbd66cba [ticket/16248] Swap out logos
PHPBB3-16248
2019-12-07 08:05:21 -10:00
hanakin
ff3458ff03 [ticket/16248] Add DS_Store to gitignore
PHPBB3-16248
2019-12-07 08:03:57 -10:00
Marc Alexander
5be4cca408 Merge pull request #5748 from marc1706/ticket/16226
[ticket/16226] Prevent Apache servers from using MultiViews
2019-12-06 08:31:53 +01:00
Marc Alexander
3009e7ffbe Merge branch '3.2.x' into 3.3.x 2019-12-06 07:20:34 +01:00
Marc Alexander
d7425b4998 Merge pull request #5756 from mrgoldy/ticket/16239
[ticket/16239] Remove deprecated phpbb\db\tools
2019-12-06 07:12:46 +01:00
Marc Alexander
186384e514 Merge branch '3.2.x' into 3.3.x 2019-12-06 07:03:35 +01:00
Marc Alexander
f9a364074d Merge branch '3.2.x' into 3.3.x 2019-12-04 21:11:40 +01:00
Marc Alexander
cb0f4790ae Merge branch '3.2.x' into 3.3.x 2019-12-04 20:49:54 +01:00
Marc Alexander
f26e83e4c6 Merge branch 'ticket/16224' into ticket/16224-3.3.x 2019-12-04 20:39:38 +01:00
Marc Alexander
5ef225381d Merge pull request #5752 from rxu/ticket/16236
[ticket/16236] Bump phpBB 3.3 max PHP version requirement to PHP 7.4
2019-12-04 20:11:18 +01:00
Marc Alexander
8b4892b96b Merge pull request #5758 from VSEphpbb/ticket/16241
[ticket/16241] Color Palette backwards compatibility
2019-12-01 11:36:25 +01:00
Matt Friedman
68326c6aa1 [ticket/16241] Color Palette backwards compatibility
PHPBB3-16241
2019-11-30 09:17:08 -08:00
mrgoldy
1a4739aed9 [ticket/16239] Update DB tools in UI test case
PHPBB3-16239
2019-11-30 15:28:01 +01:00
mrgoldy
670dbaba1b [ticket/16239] Remove deprecated phpbb\db\tools
PHPBB3-16239
2019-11-30 15:12:35 +01:00
rxu
6d71748e9a [ticket/16236] Bump phpBB 3.3 max PHP version requirement to PHP 7.4
PHPBB3-16236
2019-11-29 23:00:05 +07:00
Alfredo Ramos
3089770fec [ticket/16235] Fix PHP CodeSniffer ignore patterns
PHPBB3-16235
2019-11-28 21:19:33 -06:00
Marc Alexander
5d5c3481b7 Merge branch '3.2.x' into 3.3.x 2019-11-28 21:39:45 +01:00
Marc Alexander
3837d2cfee Merge pull request #5749 from 3D-I/ticket/16227
[ticket/16227] Fix undefined vars on login
2019-11-28 21:24:42 +01:00
Marc Alexander
ac6676a144 Merge branch '3.2.x' into 3.3.x 2019-11-28 21:11:48 +01:00
Marc Alexander
3986273fdb Merge pull request #5750 from mrgoldy/ticket/12539
[ticket/12539] Rebind live member search navigation
2019-11-28 20:46:07 +01:00
Marc Alexander
cbbba2dcc7 Merge pull request #5745 from marc1706/ticket/16223
[ticket/16223] Remove no longer supported memcache driver
2019-11-27 08:10:44 +01:00
mrgoldy
6b7d9af0c2 [ticket/12539] Rebind live member search navigation
PHPBB3-12539
2019-11-26 16:36:56 +01:00
rubencm
5ed02c2149 [ticket/16223] Use register_php_extension instead of echo
PHPBB3-16223
2019-11-26 08:40:05 +01:00
3D-I
3be57cea04 [ticket/16227] Fix undefined vars on login
PHPBB3-16227
2019-11-25 23:09:37 +01:00
Marc Alexander
dac910d27a [ticket/16223] Do not use install_php_extension for memcached
PHPBB3-16223
2019-11-25 22:19:03 +01:00
Marc Alexander
380b7d0a98 [ticket/16223] Use constructor arguments instead of func_get_args()
PHPBB3-16223
2019-11-25 22:16:41 +01:00
Marc Alexander
bc045fd19b [ticket/16223] Use install_php_extensions for installing memcached
PHPBB3-16223
2019-11-25 22:04:24 +01:00
Marc Alexander
7b70984ef3 [ticket/16226] Prevent Apache servers from using MultiViews
PHPBB3-16226
2019-11-25 22:00:31 +01:00
Marc Alexander
c37e696c1c [ticket/16223] Add memcached config and PHP extension
PHPBB3-16223
2019-11-25 21:33:42 +01:00
Marc Alexander
c7d47e34e8 [ticket/16223] Ensure memcached tests are only run when available
PHPBB3-16223
2019-11-25 21:27:43 +01:00
Marc Alexander
fd7524858c [ticket/16223] Add test for memcached driver
PHPBB3-16223
2019-11-25 20:10:12 +01:00
Marc Alexander
86085f96ab [ticket/16223] Remove no longer supported memcache driver
PHPBB3-16223
2019-11-24 16:54:57 +01:00
Marc Alexander
a8e2f4256b [3.3.x] Update version numbers to 3.3.0-rc1-dev 2019-11-23 14:25:53 +01:00
Marc Alexander
8b7e0563a5 Merge branch 'prep-release-3.3.0-b2' into 3.3.x 2019-11-23 14:23:39 +01:00
Marc Alexander
3e9c2ea025 Merge branch '3.2.x' into 3.3.x 2019-11-22 19:15:44 +01:00
Marc Alexander
960e5af71c Merge pull request #5742 from marc1706/ticket/16216
[ticket/16216] Ignore not being able to disable xdebug
2019-11-22 19:12:06 +01:00
Marc Alexander
679f3b0c76 [ticket/16216] Ignore not being able to disable xdebug
PHPBB3-16216
2019-11-22 19:04:02 +01:00
Marc Alexander
f7ac1d2629 Merge branch '3.2.x' into 3.3.x 2019-11-22 18:21:07 +01:00
Marc Alexander
77a15e3542 [prep-release-3.3.0-b2] Update changelog for 3.3.0-b2 2019-11-22 11:08:11 +01:00
Marc Alexander
d55e421c0f [prep-release-3.3.0-b2] Add migration for 3.3.0-b2 2019-11-22 11:06:15 +01:00
Marc Alexander
db1040ec69 [prep-release-3.3.0-b2] Update version numbers to 3.3.0-b2 2019-11-22 11:04:32 +01:00
Marc Alexander
251473700a [prep-release-3.3.0-b2] Update version numbers to 3.3.0-b2 2019-11-22 11:03:07 +01:00
Marc Alexander
896b31272b Merge pull request #5686 from v12mike/ticket/9837
[ticket/9837] Display unapproved posts to their authors
2019-11-22 10:56:33 +01:00
Marc Alexander
0a4cc5d201 [ticket/9837] Apply suggested changes by CHItA
PHPBB3-9837
2019-11-22 09:20:18 +01:00
Marc Alexander
2a023c9e15 Merge pull request #5727 from marc1706/ticket/16167
[ticket/16167] Use user_email column for checking duplicates
2019-11-21 14:54:32 +01:00
Marc Alexander
4a10062933 [ticket/9837] Remove not needed lines in test
PHPBB3-9837
2019-11-21 13:44:22 +01:00
v12mike
29be971fad [ticket/9837] Make unapproved posts visible to author
review comments

PHPBB3-9837
2019-11-21 13:44:22 +01:00
v12mike
0f57f3d90d [ticket/9837] Display unapproved posts to their authors
Coding guidelines fixes

PHPBB3-9837
2019-11-21 13:44:22 +01:00
v12mike
4d15683733 [ticket/9837] Display unapproved posts to their authors
Clarification of comment

PHPBB3-9837
2019-11-21 13:44:22 +01:00
v12mike
8726baea9f [ticket/9837] Display unapproved posts to their authors
Change code order to improve efficiency.

PHPBB3-9837
2019-11-21 13:44:22 +01:00
v12mike
15da5b108e [ticket/9837] Display unapproved posts to their authors
Re-order code for efficiency

PHPBB3-9837
2019-11-21 13:44:21 +01:00
v12mike
63ebd658a9 [ticket/9837] Display unapproved posts to their authors
Improve ACP language strings

PHPBB3-9837
2019-11-21 13:44:21 +01:00
v12mike
9fff4cf253 [ticket/9837] Make unapproved posts visible to posters
Add tests
Tidy up code
Improve user message formatting

PHPBB3-9837
2019-11-21 13:44:21 +01:00
v12mike
1f10cd51ff [ticket/9837] Display unapproved posts to posters
Add tests and improve style template

PHPBB3-9837
2019-11-21 13:44:21 +01:00
Máté Bartus
e39753083d [ticket/9837] Small fixes
PHPBB3-9837
2019-11-21 13:44:21 +01:00
Máté Bartus
3149b45eba [ticket/9837] Display unapproved posts to their authors
Basic functionality mock up.

PHPBB3-9837
2019-11-21 13:44:20 +01:00
v12mike
46a189fa4c [ticket/9837] Display unapproved posts to originator
Fix whitespace issues

PHPBB3-9837
2019-11-21 13:44:20 +01:00
v12mike
e102a9a3cb [ticket/9837] Make unapproved posts visible to poster
Improve acp explanation string

PHPBB3-9837
2019-11-21 13:44:20 +01:00
v12mike
92362441bd [ticket/9837] Make unapproved posts visible to posters
Add tests
Tidy up code
Improve user message formatting

PHPBB3-9837
2019-11-21 13:44:20 +01:00
v12mike
78a913581c [ticket/9837] Display unapproved posts to posters
Add tests and improve style template

PHPBB3-9837
2019-11-21 13:44:20 +01:00
v12mike
63b7518a0f [ticket/9837] Make unapproved posts visible to posters
Improvements for feature following review

PHPBB3-9837
2019-11-21 13:44:19 +01:00
Máté Bartus
01b0ec19c6 [ticket/9837] Small fixes
PHPBB3-9837
2019-11-21 13:44:19 +01:00
Máté Bartus
eb94fe973b [ticket/9837] Display unapproved posts to their authors
Basic functionality mock up.

PHPBB3-9837
2019-11-21 13:44:19 +01:00
Marc Alexander
c628cd7e15 [ticket/16167] Deprecate phpbb_email_hash() and remove gen_email_hash()
The latter one has been deprecated for 10 years now.

PHPBB3-16167
2019-11-19 21:15:21 +01:00
Marc Alexander
83d430419e [ticket/16167] Adjust tests for actual duplicate email
PHPBB3-16167
2019-11-18 21:50:58 +01:00
Marc Alexander
9872316cac [ticket/16167] Remove uses of user_email_hash
PHPBB3-16167
2019-11-18 21:06:00 +01:00
Marc Alexander
aed7e369c3 [ticket/16167] Add migration for removing user_email_hash
PHPBB3-16167
2019-11-18 20:57:24 +01:00
Marc Alexander
289524938c Merge pull request #5735 from AlfredoRamos/ticket/16205
[ticket/16205] Fix undefined $zebra variable
2019-11-17 16:56:42 +01:00
Marc Alexander
f2e6bda0d1 Merge pull request #5725 from marc1706/ticket/12574
[ticket/12574] Remove passwords manager dependency from auth providers
2019-11-17 14:55:25 +01:00
Marc Alexander
c11dbffbac [ticket/12574] Remove not used user_type
PHPBB3-12574
2019-11-17 09:42:27 +01:00
Marc Alexander
f460194379 [ticket/12574] Remove passwords manager & container requirement from oauth
PHPBB3-12574
2019-11-16 23:05:36 +01:00
Marc Alexander
0cbe05faad [ticket/12574] Remove special cases for PHP < 5.3.7
PHPBB3-12574
2019-11-16 16:02:44 +01:00
Marc Alexander
a00b8c2920 [ticket/12574] Clean up dependencies of db auth provider
PHPBB3-12574
2019-11-16 16:02:44 +01:00
Marc Alexander
9e0c3fc81e [ticket/12574] Stop using passwords manager in apache provider
PHPBB3-12574
2019-11-16 16:02:43 +01:00
Marc Alexander
0d668fee36 [ticket/12574] Fix incorrect setup() method declaration & ldap extension
PHPBB3-12574
2019-11-16 16:02:43 +01:00
Marc Alexander
149df2d7b6 [ticket/12574] Adjust login tests for ldap
PHPBB3-12574
2019-11-16 16:02:43 +01:00
Marc Alexander
c75502e09c [ticket/12574] Use correct config entry for connecting to ldap
PHPBB3-12574
2019-11-16 16:02:43 +01:00
Marc Alexander
9aee50968e [ticket/12574] Don't add extension to php config & set default username
PHPBB3-12574
2019-11-16 16:02:42 +01:00
Marc Alexander
0cd7033baa [ticket/12574] Run LDAP test as slow test and install ldap extension
PHPBB3-12574
2019-11-16 16:02:42 +01:00
Marc Alexander
2c3a24b678 [ticket/12574] Remove passwords manager dependency from ldap
Also started to implement tests for ldap provider.

PHPBB3-12574
2019-11-16 16:02:42 +01:00
Marc Alexander
51bb05f286 [ticket/12574] Introduce files for LDAP testing on travis
PHPBB3-12574
2019-11-16 16:02:41 +01:00
Marc Alexander
791d633b8a Merge pull request #5733 from mrgoldy/ticket/16206
[ticket/16206] Remove no longer needed workaround for PHP bug #66834
2019-11-16 14:35:45 +01:00
Marc Alexander
e39c0be8f8 Merge pull request #5584 from mrgoldy/ticket/16008
[ticket/16008] Clean up OAuth system
2019-11-16 14:22:09 +01:00
Marc Alexander
e0e410e8a2 Merge branch '3.2.x' into 3.3.x 2019-11-14 20:40:04 +01:00
Alfredo Ramos
5e5042e52a [ticket/16205] Fix undefined zebra variable
PHPBB3-16205
2019-11-12 00:40:06 -06:00
Marc Alexander
4679433ae1 [ticket/16008] Adjust naming and remove typo
PHPBB3-16008
2019-11-11 18:21:18 +01:00
mrgoldy
3e22a2eebd [ticket/16206] Remove offsetExists and set non-NULL value
PHPBB3-16206
2019-11-10 22:59:55 +01:00
Marc Alexander
79a6648b99 Merge pull request #5726 from marc1706/ticket/12559
[ticket/12559] Add forum setting to limit subforum legend
2019-11-08 20:46:21 +01:00
Marc Alexander
8dbda26623 Merge branch '3.2.x' into 3.3.x 2019-11-07 21:19:17 +01:00
Marc Alexander
5d6f8c8bd9 Merge pull request #5684 from mrgoldy/ticket/12539
[ticket/12539] Live member search improvements
2019-11-06 21:28:05 +01:00
rxu
7ea063100e [ticket/15294] Minor code adjusting
PHPBB3-15294
2019-11-05 22:53:11 +07:00
rxu
56bff6380e [ticket/15294] Add session_gc() tests
PHPBB3-15294
2019-11-05 02:04:30 +07:00
Marc Alexander
85837d48b2 [ticket/12559] Use short array syntax
PHPBB3-12559
2019-11-04 17:31:18 +01:00
rxu
ba17f16dc8 [ticket/15294] Get rid of SQL query in a loop as far as possible
PHPBB3-15294
2019-11-04 21:48:20 +07:00
rxu
a340c362bc [ticket/15294] Back to the all DBMS compliant splitted queries
PHPBB3-15294
2019-11-04 13:36:58 +07:00
rxu
46a68d37ee [ticket/15294] Another approach, optimize updating & purging expired sessions
PHPBB3-15294
2019-11-03 23:49:00 +07:00
rxu
e9fc3ed22e [ticket/15294] Fix session_gc() selecting expired sessions for unique users
Also remove limit of 10 as it does not allow to collect all the garbage.

PHPBB3-15294
2019-11-03 20:04:01 +07:00
mrgoldy
cbb5e6f765 [ticket/16008] Enforce string data type as per ticket/16181
PHPBB3-16008
2019-11-03 11:48:10 +01:00
mrgoldy
219955fa6c [ticket/16008] Remove empty line, re-add @changed and remove duplicate code
PHPBB3-16008
2019-11-03 11:48:08 +01:00
mrgoldy
95a696c4da [ticket/16008] Properly order get_external_service_provider
PHPBB3-16008
2019-11-03 11:44:56 +01:00
mrgoldy
85910fe5bc [ticket/16008] Add missing empty line
PHPBB3-16008
2019-11-03 11:44:54 +01:00
mrgoldy
76b4a2faab [ticket/16008] Unindent YML comments
PHPBB3-16008
2019-11-03 11:41:41 +01:00
mrgoldy
0b39e4e854 [ticket/16008] Clean up phpBB OAuth system
PHPBB3-16008
2019-11-03 11:41:39 +01:00
Marc Alexander
78ce646c69 Merge branch '3.2.x' into 3.3.x 2019-11-01 22:12:29 +01:00
Marc Alexander
4ae43c7970 Merge pull request #5717 from 3D-I/ticket/16187
[ticket/16187] Correctly display registration using external services
2019-11-01 22:10:27 +01:00
Marc Alexander
912eb28223 Merge pull request #5718 from rubencm/ticket/16189
[ticket/16189] Deprecate inet_ntop and inet_pton wrappers
2019-11-01 22:01:26 +01:00
Marc Alexander
7df08fe12e [ticket/12559] Add functional test for limiting subforums in legend
PHPBB3-12559
2019-11-01 18:12:38 +01:00
Marc Alexander
729e2f5d08 [ticket/12559] Move migration to v330 folder
PHPBB3-12559
2019-11-01 16:52:36 +01:00
PayBas
e2de342d3a [ticket/12559] Update migration dependencies
PHPBB3-12559
2019-11-01 16:26:36 +01:00
PayBas
b14c7c3511 [ticket/12559] Updated copyright information
PHPBB3-12559
2019-11-01 16:26:36 +01:00
PayBas
c2997ada7a [ticket/12559] Applied DeMorgan and removed unnecessary true:false
PHPBB3-12559
2019-11-01 16:26:36 +01:00
PayBas
6ccffec906 [ticket/12559] Add forum setting to limit subforum legend
Squashed all commits, they were basically just typos and errors

PHPBB3-12559
2019-11-01 16:26:34 +01:00
rubencm
00682db8a6 [ticket/16189] Make wrappers call native functions
PHPBB3-16189
2019-11-01 10:30:41 +00:00
rubencm
0a7e98951b [ticket/16189] Update version
PHPBB3-16189
2019-11-01 10:30:41 +00:00
rubencm
b6a99e7dca [ticket/16188] Remove some legacy code and fix bug
PHPBB3-16189
2019-11-01 10:30:41 +00:00
rubencm
f09f5bc51c [ticket/16189] Deprecate inet_ntop and inet_pton wrappers
PHPBB3-16189
2019-11-01 10:30:41 +00:00
Marc Alexander
ce35aa8b0b Merge pull request #5722 from mrgoldy/ticket/16195
[ticket/16195] Copy forum permissions' missing paragraph
2019-11-01 08:32:16 +01:00
Marc Alexander
930895f563 Merge pull request #5720 from hanakin/ticket/16188
[ticket/16188] fix acp responsive stats
2019-11-01 08:23:43 +01:00
Marc Alexander
75e4fcd2e9 Merge pull request #5719 from rubencm/ticket/15958
[ticket/15958] Standarize create forums default options
2019-11-01 08:21:42 +01:00
Marc Alexander
9887a9d76c Merge pull request #5724 from rubencm/ticket/16190
[ticket/16190] Deprecate phpbb's checkdnsrr wrapper
2019-11-01 08:16:10 +01:00
Marc Alexander
b40fe17d93 Merge pull request #5723 from rubencm/ticket/16196
[ticket/16196] Remove paragonie/random_compat
2019-11-01 08:04:36 +01:00
hanakin
1a2e5f6ee6 [ticket/16188] Remove responsive tables in acp
PHPBB3-16188
2019-10-31 17:22:18 -10:00
rubencm
163aac74db [ticket/16190] Deprecate phpbb's checkdnsrr wrapper
PHPBB3-16190
2019-10-31 20:54:21 +00:00
rubencm
d87fc02774 [ticket/16196] Remove paragonie/random_compat
PHPBB3-16196
2019-10-30 22:29:39 +00:00
mrgoldy
be17a8417d [ticket/16195] Add missing paragraph
PHPBB3-16195
2019-10-30 20:13:01 +01:00
Marc Alexander
404768a607 Merge branch '3.2.x' into 3.3.x 2019-10-28 20:32:08 +01:00
mrgoldy
9cb1119d1e [ticket/12539] Prevent cursor repositioning
PHPBB3-12539
2019-10-28 20:29:51 +01:00
Marc Alexander
1e67ffee1d Merge branch '3.2.x' into 3.3.x 2019-10-28 20:22:57 +01:00
Marc Alexander
40a69b8edf Merge branch '3.2.x' into 3.3.x 2019-10-28 19:50:01 +01:00
Marc Alexander
0e8e8c7b14 Merge pull request #5721 from VSEphpbb/ticket/16192
[ticket/16192] Fix CLI extension not enableable messages
2019-10-28 17:17:12 +01:00
Matt Friedman
7ae8f98ec6 [ticket/16192] Fix CLI extension not enableable messages
PHPBB3-16192
2019-10-27 16:22:24 -07:00
hanakin
eb0195dd7c [ticket/16188] fix acp responsive stats
PHPBB3-16188
2019-10-27 12:14:44 -10:00
Marc Alexander
b6f400a014 Merge branch '3.2.x' into 3.3.x 2019-10-26 21:50:49 +02:00
Marc Alexander
b8616fe9ac Merge branch '3.2.x' into 3.3.x 2019-10-26 21:35:39 +02:00
rubencm
f985f42dc2 [ticket/15958] Standarize create forums default options
PHPBB3-15958
2019-10-24 21:15:23 +00:00
3D-I
734c1cd5bd [ticket/16187] Correctly display registration using external services
PHPBB3-16187
2019-10-24 07:08:41 +02:00
Marc Alexander
95880a5f49 [3.3.x] Update version numbers to 3.3.0-b2-dev 2019-10-23 21:00:50 +02:00
Marc Alexander
90a8e1dd1c Merge branch 'prep-release-3.3.0-b1' into 3.3.x 2019-10-23 20:56:58 +02:00
mrgoldy
ade88f020e [ticket/12539] Reposition ESC to be on top
PHPBB3-12539
2019-10-22 22:20:27 +02:00
mrgoldy
fe7118aea0 [ticket/12539] Change let to var in jQuery
PHPBB3-12539
2019-10-22 22:19:07 +02:00
Marc Alexander
396a8214db [prep-release-3.3.0-b1] Add jquery update migration to 330b1 dependencies 2019-10-21 20:05:12 +02:00
Marc Alexander
b0b3810aab Merge branch '3.2.x' into 3.3.x 2019-10-21 17:51:29 +02:00
Marc Alexander
a8fb843ded Merge branch '3.2.x' into 3.3.x 2019-10-21 17:48:48 +02:00
Marc Alexander
dfcc744275 Merge pull request #5716 from marc1706/ticket/15437
[ticket/15437] Update jQuery and cookie consent to latest
2019-10-21 17:38:53 +02:00
Marc Alexander
e78632767c [ticket/15437] Rename jquery.min.js to jquery-3.4.1.min.js
PHPBB3-15437
2019-10-20 21:35:45 +02:00
Marc Alexander
cf7c3dcab5 [ticket/15437] Add migration for updating jQuery to 3.4.1
PHPBB3-15437
2019-10-20 21:33:05 +02:00
Marc Alexander
77da8b6507 Merge branch '3.2.x' into 3.3.x 2019-10-20 21:06:58 +02:00
Marc Alexander
06c894ff7f Merge branch '3.2.x' into 3.3.x 2019-10-20 21:01:44 +02:00
Marc Alexander
e75071fbd2 Merge branch '3.2.x' into 3.3.x 2019-10-20 20:59:06 +02:00
Marc Alexander
0a133fe009 Merge branch '3.2.x' into 3.3.x 2019-10-20 20:57:36 +02:00
Marc Alexander
4008800527 Merge branch '3.2.x' into 3.3.x 2019-10-20 20:51:26 +02:00
Marc Alexander
49ea5a4091 Merge branch '3.2.x' into 3.3.x 2019-10-20 20:39:12 +02:00
Marc Alexander
d9f9360c5b Merge branch '3.2.x' into 3.3.x 2019-10-20 17:18:16 +02:00
Marc Alexander
a671eaf25d Merge pull request #5714 from marc1706/ticket/16043
[ticket/16043] Check if not null before getting anything from the container
2019-10-20 11:22:02 +02:00
Marc Alexander
829ac4062d [ticket/15437] Update cookie consent to 3.3.1
PHPBB3-15437
2019-10-20 11:15:35 +02:00
Marc Alexander
33785d0fd3 [ticket/15437] Update jQuery to 3.4.1
PHPBB3-15437
2019-10-20 10:48:58 +02:00
Paul Sohier
465d0b1a4c [ticket/16043] Check if not null before getting anything from the container
This is only happening when there is basicly an error during
init of the container.

PHPBB3-16043
2019-10-19 17:29:20 +02:00
Marc Alexander
6105260a8e [prep-release-3.3.0-b1] Add changelog for 3.3.0-b1 2019-10-19 15:22:21 +02:00
Marc Alexander
2f220a07d1 [prep-release-3.3.0-b1] Add migration for 3.3.0-b1 2019-10-19 15:19:42 +02:00
Marc Alexander
32cc32c76a [prep-release-3.3.0-b1] Update version to 3.3.0-b1 2019-10-19 15:13:53 +02:00
Marc Alexander
c5ae114315 Merge pull request #5713 from marc1706/ticket/16185
[ticket/16185] Use xenial for builds on travis
2019-10-19 14:06:47 +02:00
Marc Alexander
bea1df7759 [ticket/16185] Add mysql, postgresql to services and use mariadb 10.1
Updated GPG key signature according to mariadb documentation.

PHPBB3-16185
2019-10-19 12:14:34 +02:00
Marc Alexander
5ff519c7b2 [ticket/16185] Use /mode for -perm when checking executables
The +mode notation is no longer supported and has been deprecated since 2005.

PHPBB3-16185
2019-10-19 11:48:52 +02:00
Marc Alexander
eb13694b25 [ticket/16185] Use xenial for builds on travis
PHPBB3-16185
2019-10-18 20:14:44 +02:00
Marc Alexander
1001584c1b Merge pull request #5700 from marc1706/ticket/16175
[ticket/16175] Update composer dependencies for 3.3.0-b1
2019-10-15 21:07:54 +02:00
Marc Alexander
8c2d0c8c36 Merge pull request #5708 from marc1706/ticket/16051
[ticket/16051] Remove mysql driver as it's no longer supported in PHP >= 7.0
2019-10-13 12:29:34 +02:00
Marc Alexander
6f48b3c044 Merge branch '3.2.x' into 3.3.x 2019-10-07 21:31:47 +02:00
Marc Alexander
b80cbd0e7d Merge branch '3.2.x' into 3.3.x 2019-10-07 20:58:08 +02:00
Marc Alexander
4cda76b5c0 Merge pull request #5702 from marc1706/ticket/14465
[ticket/14465] Remove setting for maximum password length
2019-10-07 18:31:14 +02:00
Marc Alexander
f7e51ca875 Merge pull request #5701 from marc1706/ticket/15922
[ticket/15922] Remove driver for discontinued APC cache
2019-10-07 10:40:20 +02:00
Marc Alexander
e8b4304c1b [ticket/16051] Automatically convert mysql driver to mysqli
PHPBB3-16051
2019-10-06 22:12:46 +02:00
Marc Alexander
bd02c5bd08 [ticket/16051] Remove mysql driver as it's no longer supported in PHP >= 7.0
PHPBB3-16051
2019-10-06 12:07:35 +02:00
Marc Alexander
60bc949ba1 [ticket/14465] Remove setting for maximum password length
PHPBB3-14465
2019-10-03 23:05:02 +02:00
Marc Alexander
25ae4fa355 [ticket/15922] Remove driver for discontinued APC cache
PHPBB3-15922
2019-10-03 22:42:34 +02:00
Marc Alexander
68c197fd60 Merge pull request #5652 from marc1706/ticket/11327
[ticket/11327] Implement forgot password functionality via form
2019-10-03 21:01:36 +02:00
Marc Alexander
dd2eadf8ec [ticket/16175] Update composer dependencies for 3.3.0-b1
PHPBB3-16175
2019-10-03 17:12:35 +02:00
Marc Alexander
3a443b5623 [ticket/11327] Adjust code per review comments
PHPBB3-11327
2019-10-03 16:56:17 +02:00
Marc Alexander
1eed2f98c3 Merge pull request #5555 from senky/ticket/15257
[ticket/15257] Provide extension not enableable messages
2019-10-03 11:06:58 +02:00
Marc Alexander
e54aa94e77 [ticket/15257] Improve readability of check_is_enableable
PHPBB3-15257
2019-09-30 21:21:50 +02:00
Jakub Senko
d7c644a792 [ticket/15257] Address validation issues
PHPBB3-15257
2019-09-30 20:25:54 +02:00
Jakub Senko
975fe1e153 [ticket/15257] Provide extension not enableable messages
PHPBB3-15257
2019-09-30 20:25:44 +02:00
Marc Alexander
b6c230753e Merge pull request #5511 from senky/ticket/15940
[ticket/15940] Expose user_id to notif method's is_available()
2019-09-28 16:17:52 +02:00
Jakub Senko
1af05d9615 [ticket/15940] Fix approve_* notifications
PHPBB3-15940
2019-09-28 14:34:17 +02:00
Marc Alexander
a85bb1332d Merge pull request #5480 from mrgoldy/ticket/15905
[ticket/15905] Create multiple twig extensions
2019-09-28 12:57:06 +02:00
Marc Alexander
f05022941d [ticket/15905] Reset avatar manager enabled drivers property
PHPBB3-15905
2019-09-28 11:58:02 +02:00
Marc Alexander
e00a154882 [ticket/15905] Add tests for twig extensions
PHPBB3-15905
2019-09-26 22:33:52 +02:00
mrgoldy
f21003f977 [ticket/15905] Re-add add_class and lang_defined
PHPBB3-15905
2019-09-25 20:43:01 +02:00
mrgoldy
133dfd0a84 [ticket/15905] Try it without auth
PHPBB3-15905
2019-09-25 20:39:04 +02:00
mrgoldy
eee00652e7 [ticket/15905] Resolve conflicts
PHPBB3-15905
2019-09-25 20:08:40 +02:00
mrgoldy
7989f3f71f [ticket/15905] Try with existing phpbb extension
PHPBB3-15905
2019-09-25 20:07:09 +02:00
mrgoldy
012fe18879 [ticket/15905] Correct line endings
PHPBB3-15905
2019-09-25 19:49:24 +02:00
mrgoldy
91b89b6374 [ticket/15905] Create multiple twig extensions
PHPBB3-15905
2019-09-25 19:49:17 +02:00
Marc Alexander
36614e6f81 Merge pull request #5135 from senky/ticket/15564
[ticket/15564] Switch to Invisible reCAPTCHA
2019-09-25 17:13:00 +02:00
Jakub Senko
7fac5be2cc [ticket/15564] Improve wording
PHPBB3-15564
2019-09-24 14:04:40 +02:00
Jakub Senko
d7dd91d0e2 [ticket/15564] Improve wording since captcha can be invisible now
PHPBB3-15564
2019-09-24 14:04:32 +02:00
Jakub Senko
25d3292d30 [ticket/15564] Move recaptcha callbacks to global space
PHPBB3-15564
2019-09-24 14:04:23 +02:00
Jakub Senko
a05d744266 [ticket/15564] Move JS functions closer to related code
PHPBB3-15564
2019-09-24 14:04:14 +02:00
Jakub Senko
772e801d4f [ticket/15564] Don't use ES2015, it breaks UI tests
PHPBB3-15564
2019-09-24 14:04:04 +02:00
Jakub Senko
27153d7e46 [ticket/15564] Remove console.log() call
PHPBB3-15564
2019-09-24 14:03:55 +02:00
Jakub Senko
c0e9ef21fe [ticket/15564] Update ACP as well
PHPBB3-15564
2019-09-24 14:03:47 +02:00
Jakub Senko
0f3559528a [ticket/15564] Use es2015
PHPBB3-15564
2019-09-24 14:03:38 +02:00
Jakub Senko
760a03fffc [ticket/15564] Switch to Invisible reCAPTCHA
PHPBB3-15564
2019-09-24 14:03:27 +02:00
Marc Alexander
a90f5e6bcc Merge pull request #5694 from marc1706/ticket/15436
[ticket/15436] Remove folder icons code from index
2019-09-24 13:51:27 +02:00
Marc Alexander
f4935ef500 Merge branch '3.2.x' into 3.3.x 2019-09-23 17:37:17 +02:00
Marc Alexander
ba945496b4 Merge branch '3.2.x' into 3.3.x 2019-09-22 21:16:42 +02:00
Marc Alexander
ae08036b2c Merge branch '3.2.x' into 3.3.x 2019-09-22 21:04:41 +02:00
Marc Alexander
a028dfab12 Merge branch '3.2.x' into 3.3.x 2019-09-22 16:59:09 +02:00
Marc Alexander
914199d50f Merge branch '3.2.x' into 3.3.x 2019-09-22 16:54:53 +02:00
Marc Alexander
7e8c6d8c0d Merge branch '3.2.x' into 3.3.x 2019-09-22 13:02:24 +02:00
Marc Alexander
9454377e55 Merge branch '3.2.x' into 3.3.x 2019-09-22 12:05:05 +02:00
Marc Alexander
1ef43bc1a1 Merge branch '3.2.x' into 3.3.x 2019-09-21 14:33:25 +02:00
Marc Alexander
13932e9aba Merge branch '3.2.x' into 3.3.x 2019-09-21 14:29:18 +02:00
Marc Alexander
fcff807834 Merge branch '3.2.x' into 3.3.x 2019-09-21 14:17:15 +02:00
Marc Alexander
281049eafd Merge branch '3.2.x' into 3.3.x 2019-09-21 14:11:50 +02:00
vinny
81cbefdae5 [ticket/15436] Remove folder icons code from index
PHPBB3-15436
2019-09-21 14:09:21 +02:00
Marc Alexander
a7c02304a5 Merge branch '3.2.x' into 3.3.x 2019-09-20 22:23:06 +02:00
mrgoldy
ccc21a8c94 [ticket/12539] Live member search improvements
PHPBB3-12539
2019-09-09 16:27:16 +02:00
Marc Alexander
d613984660 Merge branch '3.2.x' into 3.3.x 2019-09-01 13:33:05 +02:00
Marc Alexander
dcafa6a711 Merge pull request #5659 from rubencm/ticket/16131
[ticket/16131] Force vagrant to install phpBB with php7.2
2019-09-01 13:01:50 +02:00
Marc Alexander
f920336be4 [ticket/11327] Use http_exception instead of trigger_error
PHPBB3-11327
2019-09-01 11:36:57 +02:00
Marc Alexander
8048d817ca [ticket/11327] Move html output to reset password html file
PHPBB3-11327
2019-08-30 09:44:10 +02:00
Marc Alexander
454ea081f1 [ticket/11327] Use U_ prefix for reset password URL template variable
PHPBB3-11327
2019-08-26 18:14:39 +02:00
Marc Alexander
7a3e351178 [ticket/11327] Clean up code style a bit
PHPBB3-11327
2019-08-22 14:05:58 +02:00
Marc Alexander
0b843505e8 Merge branch '3.2.x' into 3.3.x 2019-08-17 21:48:12 +02:00
Marc Alexander
d4652c1b20 Merge branch '3.2.x' into 3.3.x 2019-08-17 11:14:00 +02:00
Marc Alexander
7dd822942a Merge branch '3.2.x' into 3.3.x 2019-08-17 11:02:16 +02:00
Marc Alexander
826cc9751a Merge branch '3.2.x' into 3.3.x 2019-08-16 12:24:46 +02:00
Marc Alexander
f5f03d24e9 Merge branch '3.2.x' into 3.3.x 2019-08-15 10:47:34 +02:00
rubencm
49ac98ffdb [ticket/16131] Force vagrant to install phpBB with php7.2
PHPBB3-16131
2019-08-14 12:23:00 +00:00
Marc Alexander
da6be75a18 Merge branch '3.2.x' into 3.3.x 2019-08-13 18:46:31 +02:00
Marc Alexander
fffcb2a6af Merge branch '3.2.x' into 3.3.x 2019-08-13 18:34:16 +02:00
Marc Alexander
c0bd3122e0 Merge branch '3.2.x' into 3.3.x 2019-08-12 21:40:17 +02:00
Marc Alexander
54fff02f95 Merge branch '3.2.x' into 3.3.x 2019-08-11 20:44:57 +02:00
Marc Alexander
784938e68b Merge branch '3.2.x' into 3.3.x 2019-08-11 20:37:47 +02:00
Marc Alexander
3947970d0b Merge branch '3.2.x' into 3.3.x 2019-08-11 20:02:16 +02:00
Marc Alexander
08ee5a608b Merge branch '3.2.x' into 3.3.x 2019-08-11 17:36:24 +02:00
Marc Alexander
0cbf06780e Merge branch '3.2.x' into 3.3.x 2019-08-11 17:24:16 +02:00
Marc Alexander
96335c0402 Merge branch '3.2.x' into 3.3.x 2019-08-11 17:15:50 +02:00
Marc Alexander
bf6f1cac8f Merge branch '3.2.x' into 3.3.x 2019-08-11 17:10:37 +02:00
Marc Alexander
9e772d1421 [ticket/11327] Adjust tests for new reset password changes
PHPBB3-11327
2019-08-10 22:21:14 +02:00
Marc Alexander
ba92e7d2d6 [ticket/11327] Clean up code a bit
PHPBB3-11327
2019-08-10 21:30:40 +02:00
Marc Alexander
fa5a0d5e21 [ticket/11327] Update tests to reflect changes
PHPBB3-11327
2019-08-10 21:18:55 +02:00
Marc Alexander
cefdf8bf19 [ticket/11327] Finish up initial version of password reset system
PHPBB3-11327
2019-08-10 17:18:39 +02:00
Marc Alexander
eee18f3747 [ticket/11327] Rename UCP reset password template
PHPBB3-11327
2019-08-10 15:11:43 +02:00
Marc Alexander
e991df195b [ticket/11327] Continue with implementation of password reset functionality
PHPBB3-11327
2019-08-10 15:09:35 +02:00
Marc Alexander
1d1d963c14 [ticket/11327] Adjust wording of forgot password email
PHPBB3-11327
2019-08-09 23:32:49 +02:00
Marc Alexander
cfea54f8f3 [ticket/11327] Rename email file to forgot password
PHPBB3-11327
2019-08-09 22:52:35 +02:00
Marc Alexander
0a5599697f [ticket/11327] Split up into forgot password and reset password
PHPBB3-11327
2019-08-09 22:51:51 +02:00
Marc Alexander
f41c51d1ec [ticket/11327] Add reset token columns & config setting
PHPBB3-11327
2019-08-09 22:47:04 +02:00
Marc Alexander
4ad288c544 Merge branch '3.2.x' into 3.3.x 2019-08-09 13:27:10 +02:00
Marc Alexander
fe030f67ef [ticket/11327] Adjust display of page title
PHPBB3-11327
2019-08-08 22:11:13 +02:00
Marc Alexander
276f350bcb [ticket/11327] Refactor ucp_remind to reset_password controller
PHPBB3-11327
2019-08-08 22:03:27 +02:00
Marc Alexander
3f852a3233 [ticket/11327] Move UCP remind functionality to a controller for password reset
PHPBB3-11327
2019-08-08 22:01:51 +02:00
Marc Alexander
9cb22f008d Merge branch '3.2.x' into 3.3.x 2019-08-07 14:25:17 +02:00
Marc Alexander
d880443ea2 Merge branch '3.2.x' into 3.3.x 2019-07-31 07:50:23 +02:00
Marc Alexander
b4d4709726 Merge pull request #5644 from marc1706/ticket/16115
[ticket/16115] Add PHP 7.4snapshot to travis CI build matrix
2019-07-30 20:42:22 +02:00
Derky
2f85fc53dc Merge branch '3.2.x' into 3.3.x 2019-07-30 07:39:16 +02:00
Marc Alexander
90722a3c66 Merge branch '3.2.x' into 3.3.x 2019-07-29 21:45:18 +02:00
Marc Alexander
2e634e9f96 Merge branch '3.2.x' into 3.3.x 2019-07-29 21:43:37 +02:00
Marc Alexander
e086d4039e Merge branch '3.2.x' into 3.3.x 2019-07-29 21:38:18 +02:00
Marc Alexander
d4e623ffee Merge branch '3.2.x' into 3.3.x 2019-07-29 21:31:12 +02:00
Marc Alexander
6078f58343 Merge pull request #5639 from marc1706/ticket/16112-3.3.x
[ticket/16112] Update composer dependencies for 3.3.x
2019-07-29 21:30:56 +02:00
Marc Alexander
be3a58aff1 Merge branch '3.2.x' into 3.3.x 2019-07-29 20:48:28 +02:00
Marc Alexander
eaf42f3c72 [ticket/16115] Add PHP 7.4snapshot to travis CI build matrix
PHPBB3-16115
2019-07-29 20:46:35 +02:00
Marc Alexander
189f3fd68e Merge pull request #5636 from marc1706/ticket/15886
[ticket/15886] Use getMockBuilder instead of removed getMock()
2019-07-29 08:21:10 +02:00
Marc Alexander
7543508570 Merge branch 'ticket/16112' into ticket/16112-3.3.x 2019-07-28 23:11:52 +02:00
Marc Alexander
e1962acd4e [ticket/15886] Use getMockBuilder instead of removed getMock()
PHPBB3-15886
2019-07-28 21:53:04 +02:00
Marc Alexander
710a0b3ea3 Merge branch '3.2.x' into 3.3.x 2019-07-28 17:55:30 +02:00
Marc Alexander
2df9230902 Merge branch '3.2.x' into 3.3.x 2019-07-28 17:18:40 +02:00
Marc Alexander
423345d517 Merge pull request #5557 from senky/ticket/15088
[ticket/15088] Avoid code repetitions in extension manager
2019-07-28 10:40:58 +02:00
Marc Alexander
5a76d541a2 Merge branch '3.2.x' into 3.3.x 2019-07-28 10:38:38 +02:00
Marc Alexander
065feb3ff9 [ticket/15088] Ensure phpBB version is set in tests
PHPBB3-15088
2019-07-27 21:32:54 +02:00
Jakub Senko
b0334d6b4f [ticket/15088] Avoid code repetitions in extension manager
PHPBB3-15088
2019-07-27 16:51:56 +02:00
Marc Alexander
ee51bf26fa Merge pull request #5566 from JoshyPHP/ticket/16017
[ticket/16017] Add support for Argon2id as default password hashing
2019-07-27 16:30:25 +02:00
Marc Alexander
812edebfb7 Merge branch '3.2.x' into 3.3.x 2019-07-27 16:20:58 +02:00
Marc Alexander
31192fc08e Merge branch '3.2.x' into 3.3.x 2019-07-27 16:18:41 +02:00
Marc Alexander
3433f61ccb Merge branch '3.2.x' into 3.3.x 2019-07-27 14:57:34 +02:00
Marc Alexander
84fdba604d Merge branch '3.2.x' into 3.3.x 2019-07-27 14:38:02 +02:00
Marc Alexander
b12405dbc7 Merge branch '3.2.x' into 3.3.x 2019-07-27 14:30:35 +02:00
Marc Alexander
3e9682fe49 [ticket/16017] Add missing passwords.driver tag to argon2id
PHPBB3-16017
2019-07-26 22:46:22 +02:00
Marc Alexander
33be961aa0 Merge pull request #5565 from JoshyPHP/ticket/16016
[ticket/16016] Add a base class for native password hashing
2019-07-26 18:20:32 +02:00
JoshyPHP
860a370e8f [ticket/16017] Add support for Argon2id as default password hashing
PHPBB3-16017
2019-07-23 21:30:28 +02:00
JoshyPHP
a4a5b069ec [ticket/16016] Add a base class for native password hashing
PHPBB3-16016
2019-07-23 21:28:05 +02:00
Marc Alexander
c382536f47 Merge branch '3.2.x' into 3.3.x 2019-07-23 21:18:27 +02:00
Marc Alexander
b5e6f34cd9 Merge branch '3.2.x' into 3.3.x 2019-07-23 21:08:54 +02:00
Marc Alexander
ce518043e9 Merge branch '3.2.x' into 3.3.x 2019-07-22 22:17:14 +02:00
Marc Alexander
58fa8eabb7 Merge branch '3.2.x' into 3.3.x 2019-07-22 21:40:12 +02:00
Marc Alexander
b2c5f8fb48 Merge branch '3.2.x' into 3.3.x 2019-07-22 21:31:57 +02:00
Marc Alexander
01018630c9 Merge pull request #5619 from marc1706/ticket/16082
[ticket/16082] Remove XCache as it does not support PHP 7
2019-07-22 21:24:46 +02:00
Marc Alexander
f5d28a95b0 Merge pull request #5618 from marc1706/ticket/16081
[ticket/16081] Remove eAccelerator cache driver
2019-07-22 21:23:17 +02:00
Marc Alexander
204e3b1fe0 Merge branch '3.2.x' into 3.3.x 2019-07-22 20:55:06 +02:00
Marc Alexander
6fc269b62a Merge branch '3.2.x' into 3.3.x 2019-07-21 22:24:52 +02:00
Marc Alexander
348979c13d Merge branch '3.2.x' into 3.3.x 2019-07-21 21:38:27 +02:00
Marc Alexander
5d2e144624 Merge branch '3.2.x' into 3.3.x 2019-07-21 21:12:07 +02:00
Marc Alexander
de039dcc7c Merge branch '3.2.x' into 3.3.x 2019-06-23 10:50:04 +02:00
Marc Alexander
6d4fdb1f15 Merge branch '3.2.x' into 3.3.x 2019-06-17 15:32:07 +02:00
Marc Alexander
5cef0d2035 Merge branch '3.2.x' into 3.3.x 2019-06-17 15:28:10 +02:00
Marc Alexander
8a979d6871 Merge branch '3.2.x' into 3.3.x 2019-06-17 14:53:56 +02:00
Marc Alexander
30f522351e Merge branch '3.2.x' into 3.3.x 2019-06-17 10:26:33 +02:00
Marc Alexander
a6803e6a18 Merge branch '3.2.x' into 3.3.x 2019-06-17 10:21:09 +02:00
Marc Alexander
05f9ef7134 Merge branch '3.2.x' into 3.3.x 2019-06-17 10:15:00 +02:00
Marc Alexander
fc8d0c54e9 Merge branch '3.2.x' into 3.3.x 2019-06-17 10:11:57 +02:00
Marc Alexander
5de54906f0 Merge branch '3.2.x' into 3.3.x 2019-06-17 10:07:03 +02:00
Marc Alexander
8f3f7d1e5e Merge branch '3.2.x' into 3.3.x 2019-06-17 10:00:26 +02:00
Marc Alexander
5741c8d8ee Merge branch '3.2.x' into 3.3.x 2019-06-17 09:35:05 +02:00
Marc Alexander
6007978e7b Merge branch '3.2.x' into 3.3.x 2019-06-17 09:03:38 +02:00
Marc Alexander
bd646cff52 Merge branch '3.2.x' into 3.3.x 2019-06-07 23:46:47 +02:00
Marc Alexander
95264e2152 Merge branch '3.2.x' into 3.3.x 2019-06-06 22:28:33 +02:00
Marc Alexander
6422bdb5ec [ticket/16082] Remove XCache as it does not support PHP 7
PHPBB3-16082
2019-06-06 22:21:40 +02:00
Marc Alexander
7572bc050b [ticket/16081] Remove eAccelerator cache driver
eAccelerator does not support any PHP version above 5.3.

PHPBB3-16081
2019-06-06 22:13:03 +02:00
Marc Alexander
bc59342e1a Merge branch '3.2.x' into 3.3.x 2019-06-06 21:59:30 +02:00
Marc Alexander
9e90b27ba1 Merge branch '3.2.x' into 3.3.x 2019-06-06 21:51:13 +02:00
Marc Alexander
e419c2cd3b Merge pull request #5583 from marc1706/ticket/15987
[ticket/15987] Table parameters as array
2019-06-05 21:45:42 +02:00
Marc Alexander
183d1afcaa Merge branch '3.2.x' into 3.3.x 2019-06-05 21:22:32 +02:00
Marc Alexander
99d83673f5 Merge branch '3.2.x' into 3.3.x 2019-06-04 22:21:52 +02:00
Marc Alexander
2a69eb051d Merge branch '3.2.x' into 3.3.x 2019-06-03 23:10:51 +02:00
Marc Alexander
5540a0f8e0 Merge branch '3.2.x' into 3.3.x 2019-06-03 21:18:46 +02:00
Marc Alexander
730e1140e3 Merge pull request #5614 from JoshyPHP/ticket/16072
[ticket/16072] Update s9e/text-formatter
2019-06-03 21:06:20 +02:00
JoshyPHP
76ea1de0ab [ticket/16072] Update s9e/text-formatter
PHPBB3-16072
2019-05-31 22:46:59 +02:00
Marc Alexander
c04642f987 Merge branch '3.2.x' into 3.3.x 2019-05-27 21:19:13 +02:00
Marc Alexander
b4d36e3235 Merge branch '3.2.x' into 3.3.x 2019-05-27 20:50:53 +02:00
Marc Alexander
b9a40be9b4 Merge pull request #5591 from rubencm/ticket/16057
[ticket/16057] Fix vagrant in 3.3
2019-05-27 20:34:13 +02:00
Marc Alexander
00f639de7b Merge branch '3.2.x' into 3.3.x 2019-05-23 22:07:30 +02:00
rubencm
84ce92896e [ticket/16057] Enable cgi.fix_pathinfo in php.ini
PHPBB3-16057
2019-05-17 20:58:54 +00:00
rubencm
dd3330d7c9 [ticket/16057] Undo composer.json changes
PHPBB3-16057
2019-05-15 23:22:02 +00:00
rubencm
d639e107ec [ticket/16057] Enable url rewrite and composer.json rule
PHPBB3-16057
2019-05-15 23:07:29 +00:00
Marc Alexander
d72498a9c3 [ticket/15987] Go back to previous table definition type
This will still allow using the 'tables' parameter array but will also ensure
full backward compatibility and compatibility with extensions that will add
more tables to the 'tables' array.

PHPBB3-15987
2019-05-14 21:20:51 +02:00
Marc Alexander
61fa4f006a [ticket/15987] Add missing paranthesis
PHPBB3-15987
2019-05-14 20:29:46 +02:00
Marc Alexander
9c1baf0fd7 [ticket/15987] Add container extension to support tables "array access"
PHPBB3-15987
2019-05-14 20:29:29 +02:00
mrgoldy
fe04f59ca2 [ticket/15987] Table parameters as array
PHPBB3-15987
2019-05-14 20:28:46 +02:00
Marc Alexander
9207b13224 Merge branch '3.2.x' into 3.3.x 2019-05-14 17:24:36 +02:00
Marc Alexander
29d40fd3d6 Merge branch '3.2.x' into 3.3.x 2019-05-14 17:18:39 +02:00
Marc Alexander
0ebcb3f3a0 Merge branch '3.2.x' into 3.3.x 2019-05-14 11:42:43 +02:00
rubencm
c2841cb6e2 [ticket/16057] Fix vagrant in 3.3
PHPBB3-16057
2019-05-13 19:36:43 +00:00
Marc Alexander
f7ec97b88e [ticket/16052] Update composer dependencies
PHPBB3-16052
2019-05-12 18:28:08 +02:00
Marc Alexander
b6cd02bacb [ticket/16052] Add 3.3.0-dev migration
PHPBB3-16052
2019-05-11 23:36:20 +02:00
hanakin
52ed8bfaa1 [ticket/15927] Avoid using floats
PHPBB3-15927
2019-05-11 23:36:20 +02:00
hanakin
8f0643a14c [ticket/15927] Fix render issue
PHPBB3-15927
2019-05-11 23:36:20 +02:00
Marc Alexander
31ab3d93a2 [ticket/15828] Do not allow PHP 7.3 tests to fail
PHPBB3-15828
2019-05-11 23:36:20 +02:00
Marc Alexander
89ae1c3221 [ticket/16052] Update version numbers to 3.3
PHPBB3-16052
2019-05-11 23:36:44 +02:00
Marc Alexander
3f33d89572 [ticket/16052] Fix issues caused by merges
PHPBB3-16052
2019-05-11 23:36:20 +02:00
Matt Friedman
90f8498a44 [ticket/15369] Fix php_exporter tests
PHPBB3-15369
2019-05-10 21:02:54 +02:00
Matt Friedman
2753f8ccc8 [ticket/15369] Fix tests
PHPBB3-15369
2019-05-10 21:02:43 +02:00
Marc Alexander
18d4b7f358 [ticket/15938] Update classes in backupStaticAttributesBlacklist
PHPBB3-15938
2019-05-09 21:59:28 +02:00
Marc Alexander
978d883abb [ticket/14948] Remove checks for unsupported PHP versions
PHPBB3-14948
2019-05-09 21:58:29 +02:00
Marc Alexander
d0e3c2c136 [ticket/14948] Switch to VC15 where necessary for appveyor mssql driver
PHPBB3-14948
2019-05-09 21:58:23 +02:00
Marc Alexander
fe6dd5a8f7 [ticket/14948] Use MSSQL 5.3.0 driver in appveyor builds
PHPBB3-14948
2019-05-09 21:58:11 +02:00
Marc Alexander
33f9333f13 [ticket/14948] Remove no longer needed or supported phpunit configs
PHPBB3-14948
2019-05-09 21:58:05 +02:00
Marc Alexander
51ffab0045 [ticket/14948] Use new namespaced classes when generating mssql schema
PHPBB3-14948
2019-05-09 21:58:01 +02:00
Marc Alexander
4ad0d4ceeb [ticket/14948] Require json extension in composer.json
PHPBB3-14948
2019-05-09 21:57:55 +02:00
Marc Alexander
4ff993fc1b [ticket/14948] Allow failures on PHP 7.3 until segfault is resolved
PHPUnit still runs into segfaults on PHP 7.3.0. Let this test fail for now.

PHPBB3-14948
2019-05-09 21:57:48 +02:00
Marc Alexander
3c0fd43f85 [ticket/14948] Use continue 2 instead of continue to continue while loop
PHPBB3-14948
2019-05-09 21:57:42 +02:00
Marc Alexander
c92d4933cc [ticket/14948] Remove mysql build as it's no longer supported in PHP >= 7.0
PHPBB3-14948
2019-05-09 21:57:37 +02:00
Marc Alexander
9f19202152 [ticket/14948] Update lexer to be compatible with twig 2.6
PHPBB3-14948
2019-05-09 21:57:30 +02:00
Marc Alexander
e7795fe7ce [ticket/14948] Change PHP versions for appveyor
PHPBB3-14948
2019-05-09 21:57:23 +02:00
Marc Alexander
9223781797 [ticket/14948] Update codesniffer files to be compatible with phpcs 3.x
PHPBB3-14948
2019-05-09 21:57:10 +02:00
Marc Alexander
e76c673e2e [ticket/14948] Update requirements and travis build matrix
PHPBB3-14948
2019-05-09 21:49:57 +02:00
Marc Alexander
ebac54aa9e [ticket/14948] Adjust calls for twig and phpunit updates
PHPBB3-14948
2019-05-09 21:40:06 +02:00
Marc Alexander
d968392b4d [ticket/14948] Require PHP 7.1 and update dependencies
PHPBB3-14948
2019-05-09 21:36:06 +02:00
Máté Bartus
05a86ca3b0 [ticket/15921] Fix master build
PHPBB3-15921
2019-05-09 21:31:35 +02:00
François-Xavier de Guillebon
c0fde5d5fd [ticket/15508] Update loader
PHPBB3-15508
2019-05-09 21:30:39 +02:00
François-Xavier de Guillebon
40e61e4d1e [ticket/15508] Remove call to getEnvironment() from parser
PHPBB3-15508
2019-05-09 21:30:12 +02:00
François-Xavier de Guillebon
ff35f65064 [ticket/15508] Replace Twig_NodeInterface with Twig_Node
PHPBB3-15508
2019-05-09 21:28:24 +02:00
François-Xavier de Guillebon
ac3c49e548 [ticket/15508] Update composer dependencies to allow Twig 2.x
PHPBB3-15508
2019-05-09 21:28:08 +02:00
rubencm
27fc256745 [ticket/12629] Fix tests
PHPBB3-12629
2019-05-09 21:24:06 +02:00
rubencm
6643c904d5 [ticket/12629] Rename errors_show to show_errors
PHPBB3-12629
2019-05-09 21:23:58 +02:00
Rubén Calvo
ba088f6bdc [ticket/12629] Add debug.errors_show
PHPBB3-12629
2019-05-09 21:22:52 +02:00
hubaishan
84b6dd7e5f [ticket/15846] Fix Wrong id for downldable group
`downloadable` extension group has id 5 not 6

PHPBB3-15846
2019-05-09 21:21:32 +02:00
Rubén Calvo
e46d8d329d [ticket/15244] Remove unglobalise related code
PHPBB3-15244
2019-05-09 21:21:09 +02:00
rubencm
a702142a34 [ticket/12636] Rename log.session_errors to session.log_errors
PHPBB3-12636
2019-05-09 21:20:16 +02:00
Rubén Calvo
c20fed43cd [ticket/12636] Add log.session_errors to mock container_builder
PHPBB3-12636
2019-05-09 21:10:53 +02:00
Rubén Calvo
303b823847 [ticket/12636] Add log.session_errors
PHPBB3-12636
2019-05-09 19:04:01 +02:00
Jakub Senko
4f402465bf [ticket/12628] Introduce debug.memory
Also fix one debug.sql_explain missing from the previous PR

PHPBB3-12628
2019-05-09 19:02:14 +02:00
JoshyPHP
917880e2bf [ticket/15410] Remove obsolete code from BBCodes ACP
PHPBB3-15410
2019-05-09 19:02:01 +02:00
rubencm
db36318ad0 [ticket/15772] Hide warning in acp when allow_install_dir is true
PHPBB3-15772
2019-05-09 19:01:23 +02:00
Rubén Calvo
4f5a8f6983 [ticket/15255] Move language strings from acp/common to common
PHPBB3-15255
2019-05-09 19:01:00 +02:00
Jakub Senko
3914515199 [ticket/11838] OAuth registration from ucp_register
PHPBB3-11838
2019-05-09 19:00:29 +02:00
Rubén Calvo
3c2e75b52a [ticket/15720] Don't escape ampersands on redirections
PHPBB3-15720
2019-05-09 18:59:45 +02:00
Rubén Calvo
7c26569d93 [ticket/15413] Login redirect to previous page
PHPBB3-15413
2019-05-09 18:59:30 +02:00
Jakub Senko
30303647f0 [ticket/15744] Remove useless sql_freeresults
PHPBB3-15744
2019-05-09 18:58:22 +02:00
Rubén Calvo
284368b9d6 [ticket/12623] Add install dir during tests
PHPBB3-12623
2019-05-09 18:57:15 +02:00
Rubén Calvo
432482160d [ticket/12623] Add allow_install_dir
PHPBB3-12623
2019-05-09 18:57:10 +02:00
Marc Alexander
1609fa292d [ticket/15746] Update symfony to latest on master
Also fixed incorrect creation of dumped container (Container instead of
ContainerBuilder).

PHPBB3-15746
2019-05-09 18:56:41 +02:00
Rubén Calvo
0fe4cbc17f [ticket/15663] Remove empty line
PHPBB3-15663
2019-05-09 18:55:07 +02:00
Rubén Calvo
98b3aacde4 [ticket/15663] Remove flash icon and template
PHPBB3-15663
2019-05-09 18:55:03 +02:00
Rubén Calvo
0a2589b5e0 [ticket/15663] Move constant to compatibility_globals
PHPBB3-15663
2019-05-09 18:54:58 +02:00
Rubén Calvo
35fef8333a [ticket/15663] Add migration
PHPBB3-15663
2019-05-09 18:54:49 +02:00
Rubén Calvo
65b0698ef7 [ticket/15663] Remove flash attachments support
PHPBB3-15663
2019-05-09 18:53:46 +02:00
Rubén Calvo
9e3141d9d3 [ticket/15738] Remove deprecated variables from questionnaire
PHPBB3-15738
2019-05-09 18:47:56 +02:00
Rubén Calvo
688d022f42 [ticket/15738] Remove code related with safe_mode
PHPBB3-15738
2019-05-09 18:47:50 +02:00
rxu
ab0dae6003 [ticket/15725] Fix installing ext in tests for master branch
PHPBB3-15725
2019-05-09 18:46:50 +02:00
Jakub Senko
64b053c997 [ticket/15694] Ignore lang files in prosilver/theme dir
PHPBB3-15694
2019-05-09 18:44:48 +02:00
Jakub Senko
1f87b25709 [ticket/12591] Introduce a BC fallback
PHPBB3-12591
2019-05-09 18:44:41 +02:00
Jakub Senko
9f20ff7b9e [ticket/12591] Improve breadcrumb naming and extend it's usage
PHPBB3-12591
2019-05-09 18:43:34 +02:00
Jakub Senko
139eb17bb7 [ticket/12624] Add debug.load_time parameter
PHPBB3-12624
2019-05-09 18:40:15 +02:00
Jakub Senko
b4d4336ef4 [ticket/12627] Add debug.sql_explain parameter
PHPBB3-12627
2019-05-09 18:29:22 +02:00
Rubén Calvo
5815d21427 [ticket/15714] Edit language string
PHPBB3-15714
2019-05-09 18:28:41 +02:00
Rubén Calvo
7dae1fe48c [ticket/15714] Auto login after registration
PHPBB3-15714
2019-05-09 18:28:36 +02:00
Jakub Senko
ec04f177d0 [ticket/15718] Update CONTRIBUTING.md
PHPBB3-15718
2019-05-09 18:28:15 +02:00
3D-I
efc2e6e570 [ticket/15580] Remove redundant code from ACP
PHPBB3-15580
2019-05-09 18:27:48 +02:00
Jakub Senko
62e609c10c [ticket/15522] Improve color palette syntax
PHPBB3-15522
2019-05-09 18:26:30 +02:00
amalnaeem
7e96098e29 [ticket/15610] Improving UI of Board Statistics in ACP
Master Improving UI of Board Statistics in ACP

Statistics table was divided into two in acp_main.html.

PHPBB3-15610
2019-05-09 18:25:39 +02:00
amalnaeem
ee667ac897 [ticket/15610] Improving UI of Board Statistics in ACP
Master Improving UI of Board Statistics in ACP

Statistics table was divided into two in acp_main.html.

PHPBB3-15610
2019-05-09 18:25:34 +02:00
amalnaeem
d227912ee8 [ticket/15610] Improving UI of Board Statistics in ACP
Master Improving UI of Board Statistics in ACP

Statistics table was divided into two in  acp_main.html.

PHPBB3-15610
2019-05-09 18:25:28 +02:00
amalnaeem
68cba0cb26 [ticket/15610] Improving UI of Board Statistics in ACP
Master Improving UI of Board Statistics in ACP

Statistics table was divided into two in  acp_main.html

PHPBB3-15610
2019-05-09 18:25:18 +02:00
amalnaeem
cbe9833975 [ticket/15610] Improving UI of Board Statistics in ACP
Master Improving UI of Board Statistics in ACP

Statistics table was divided into two in acp_main.html

PHPBB3-15610
2019-05-09 18:25:13 +02:00
amalnaeem
7b4ef7a101 [ticket/15610] Improving UI of Board Statistics in ACP
Master Improving UI of Board Statistics in ACP

Statistics table was divided into two in acp_main.html

PHPBB3-15610
2019-05-09 18:25:07 +02:00
amalnaeem
f993d91865 [ticket/15610] Improving UI of Board Statistics in ACP
Master Improving UI of Board Statistics in ACP

Statistics table was divided into two in acp_main.html

PHPBB3-15610
2019-05-09 18:25:01 +02:00
amalnaeem
94f4062b29 [ticket/15610] Improving UI of Board Statistics in ACP
Master Improving UI of Board Statistics in ACP

Statistics table was divided into two in acp_main.html.

PHPBB3-15610
2019-05-09 18:24:52 +02:00
amalnaeem
a66c4170a9 [ticket/15610] Improving UI of Board Statistics
Master Improving UI of Board Statistics in ACP.

Statistics table was divided into two in acp_main.html.

PHPBB3-15610
2019-05-09 18:24:06 +02:00
amalnaeem
9b5b058925 [ticket/15610] Improving UI of Board Statistics in ACP
Master Improving UI of Board Statistics in ACP

Statistics table was divided into two in acp_main.html.

PHPBB3-15610
2019-05-09 18:21:56 +02:00
amalnaeem
341962ae74 [ticket/15610] Improving UI of Board Statistics in ACP
Master Improving UI of Board Statistics in ACP

Statistics table was divided into two in acp_main.html.

PHPBB3-15610
2019-05-09 18:21:51 +02:00
Jakub Senko
4da589acba [ticket/15664] Add support for multi step processes
PHPBB3-15664
2019-05-09 18:21:01 +02:00
Jakub Senko
3e6fd7e8fd [ticket/15664] Ajaxify ext actions in ACP
PHPBB3-15664
2019-05-09 18:20:41 +02:00
Rubén Calvo
dc9b1c37b1 [ticket/15671] Rewrite load extensions from a variable instead of harcode it
PHPBB3-15671
2019-05-08 22:29:01 +02:00
Rubén Calvo
dc397755d5 [ticket/15671] Load extensions from a variable instead of harcode it
PHPBB3-15671
2019-05-08 22:28:56 +02:00
Rubén Calvo
4ff986f578 [ticket/15671] Limit accepted formats for avatar upload
PHPBB3-15671
2019-05-08 22:28:49 +02:00
Rubén Calvo
2578a2b9fc [ticket/15686] Update homestead
PHPBB3-15686
2019-05-08 22:28:24 +02:00
JoshyPHP
5de4780753 [ticket/15646] Made Argon2i the default password driver
PHPBB3-15646
2019-05-08 22:26:29 +02:00
JoshyPHP
2ff5871ff4 [ticket/15646] Added support for Argon2i passwords
PHPBB3-15646
2019-05-08 22:26:23 +02:00
Rubén Calvo
5153413f7a [ticket/15400] Make app.php routes work in vagrant
PHPBB3-15400
2019-05-08 22:22:15 +02:00
luzpaz
a9a28859d4 [ticket/15424] Multiple typo fixes in docs & comments
Fixed typos in some docs, guidelines, some non-user-facing files.

PHPBB3-15424
2019-05-08 22:20:56 +02:00
Rubén Calvo
62921c066c [ticket/15377] Use __DIR__ constant
PHPBB3-15377
2019-05-08 22:15:10 +02:00
Rubén Calvo
3e5247187c [ticket/15377] Add test
PHPBB3-15377
2019-05-08 22:14:07 +02:00
Máté Bartus
75d957e9e1 [ticket/15351] Fix missing global usage
PHPBB3-15351
2019-05-08 22:08:37 +02:00
Rubén Calvo
1b9507d93d [ticket/15330] Fix typo
PHPBB3-15330
2019-05-08 22:08:21 +02:00
Rubén Calvo
16d8b0bf78 [ticket/15330] Twig function to know if a language string is defined
PHPBB3-15330
2019-05-08 22:08:15 +02:00
javiexin
5a0c9763d1 [ticket/15274] Allow "custom" migrations to use parameters
Remove references in migration tool.

PHPBB3-15274
2019-05-08 22:06:39 +02:00
javiexin
5c001df380 [ticket/15274] Allow "custom" migrations to use parameters
Add the possibility to have custom migrations with parameters,
allowing the use of a single function for several uses.

PHPBB3-15274
2019-05-08 22:06:34 +02:00
Matt Friedman
e36da01264 [ticket/15295] Restore tests on mysql and myisam
PHPBB3-15295
2019-05-08 22:06:03 +02:00
Tristan Darricau
deb556fbf0 [ticket/15258] Adds a method to get a service by class in service_collection
PHPBB3-15258
2019-05-08 22:05:41 +02:00
rxu
574749daeb [ticket/14972] Update tests matrix to reflect bumping PHP version requirement
PHPBB3-14972
2019-05-08 21:57:48 +02:00
rxu
42b7782927 [ticket/14972] Migrate from deprecated getMock() method to createMock()
PHPBB3-14972
2019-05-08 21:57:00 +02:00
rxu
cdf3aa27df [ticket/14972] Bump PHP requirements to 5.6. Update dependencies.
Also bump to PHP 7.2 compatible versions: PHPUnit to 5.7, Guzzle to 6.3.

PHPBB3-14972
2019-05-08 21:54:20 +02:00
Rubén Calvo
560704c9f3 [ticket/15269] Don't enable DEBUG_CONTAINER by default
PHPBB3-15269
2019-05-08 21:52:37 +02:00
Rubén Calvo
3f3d88696b [ticket/15269] Remove comment only if is the beginning of a line
PHPBB3-15269
2019-05-08 21:52:30 +02:00
Rubén Calvo
acab3b048d [ticket/15269] Set development environment and enable all debugs with vagrant
PHPBB3-15269
2019-05-08 21:52:25 +02:00
Rubén Calvo
a08dce82c2 [ticket/15203] Include missing constants in web installer
PHPBB3-15203
2019-05-08 21:51:22 +02:00
Vishal Pandey
332b310809 [ticket/11515] If condition changes
Duplicate return statements removed.

PHPBB3-11515
2019-05-08 21:49:28 +02:00
Vishal Pandey
dfcce400a4 [ticket/11515] Inverted Logic
Inverted the logic to raise exception inside if.

PHPBB3-11515
2019-05-08 21:49:21 +02:00
Vishal Pandey
f1c2f7baae [ticket/11515] Refactoring changes.
Refactoring the code as suggested.

PHPBB3-11515
2019-05-08 21:49:15 +02:00
Vishal Pandey
7d4909dc06 [ticket/11515] Refactoring the patch.
Removing else conditions.

PHPBB3-11515
2019-05-08 21:49:10 +02:00
Vishal Pandey
cf12223b25 [ticket/11515] Space between if and braces
Exactly one space between if and opening brace.

PHPBB3-11515
2019-05-08 21:49:04 +02:00
Vishal Pandey
530e5bca87 [ticket/11515] Change If...else statement struct
Modifications in if-else structure.

PHPBB3-11515
2019-05-08 21:48:59 +02:00
Vishal Pandey
26acd8a5e4 [ticket/11515] Extra check after acquiring locks.
Add additional check to flock.php and db.php to ensure lock aquiring.

PHPBB3-11515
2019-05-08 21:48:52 +02:00
Matt Friedman
4282cf459e [ticket/15153] Update to newer homestead for vagrant
PHPBB3-15153
2019-05-06 22:02:16 +02:00
Tristan Darricau
228e0f58a8 [ticket/14769] Fix CLI installer configuration compatibility with SF 3
PHPBB3-14769
2019-05-06 21:57:43 +02:00
Matt Friedman
fe64174ca8 [ticket/14761] myisam should be setup on PHP 5.5 (5.4 removed)
PHPBB3-14761
2019-05-06 21:48:28 +02:00
Jakub Senko
77315a014c [ticket/14573] Add Whoisonline breadcrumbs
PHPBB3-14573
2019-05-06 21:48:07 +02:00
Jakub Senko
c02be62ea1 [ticket/14573] Add Memberlist breadcrumbs
PHPBB3-14573
2019-05-06 21:48:02 +02:00
Jakub Senko
5614f80b89 [ticket/14573] Add MCP breadcrumbs
PHPBB3-14573
2019-05-06 21:47:55 +02:00
Jakub Senko
4e3ac92d05 [ticket/14573] Add UCP breadcrumbs
PHPBB3-14573
2019-05-06 21:47:47 +02:00
Jakub Senko
571a6df993 [ticket/14573] Add Search breadcrumbs
PHPBB3-14573
2019-05-06 21:47:29 +02:00
Jakub Senko
296bf434b0 [ticket/14573] Add FAQ breadcrumbs
PHPBB3-14573
2019-05-06 21:46:17 +02:00
Máté Bartus
ab6835d849 [ticket/14542] Add missing dockblocks
PHPBB3-14542
2019-05-06 21:45:27 +02:00
Máté Bartus
271ac6b57e [ticket/14542] Fix tests
PHPBB3-14542
2019-05-06 21:45:21 +02:00
Máté Bartus
7a173877b7 [ticket/14542] Move cron to controller
PHPBB3-14542
2019-05-06 21:45:15 +02:00
Marc Alexander
41956a8b90 [ticket/14670] Set shared flag instead of defining prototype scope
The prototype scope was deprecated in symfony 2.8 and removed in 3.0.

PHPBB3-14670
2019-05-06 21:44:19 +02:00
Marc Alexander
773d246a7e [ticket/14670] Do not backup static attributes
This seems to cause issues with the UI tests as the backed up
static web driver does not seem to be properly initialized.

PHPBB3-14670
2019-05-06 21:44:19 +02:00
Marc Alexander
f165b8ece4 [ticket/14670] Modify service definition for RouterListener
PHPBB3-14670
2019-05-06 21:44:19 +02:00
Marc Alexander
a33c875d2f [ticket/14670] Fix typo in .travis.yml
PHPBB3-14670
2019-05-06 21:44:19 +02:00
Marc Alexander
1dc14c0f38 [ticket/14670] Remove usage of prototype scope in tests
In this specific case, the mock container builder is used which does not
even support setting the scope.

PHPBB3-14670
2019-05-06 21:44:19 +02:00
Marc Alexander
a4f48205fb [ticket/14670] Add new travis builds and PHP 5.5 requirement
PHPBB3-14670
2019-05-06 21:44:16 +02:00
Marc Alexander
1a8a8da7bf [ticket/14670] Fix incompatibilities with container definitions
PHPBB3-14670
2019-05-06 21:43:55 +02:00
Marc Alexander
653305d461 [ticket/14670] Use symfony 3.1 in master branch
Removed sami as it doesn't have a version compatible
with symfony 3.x.

PHPBB3-14670
2019-05-06 21:43:53 +02:00
Máté Bartus
cfaf24bd45 [ticket/14584] Change all to be removed tags to 4.0
PHPBB3-14584
2019-05-06 21:27:08 +02:00
Máté Bartus
7a831c3e28 [ticket/14548] Move deprecated globals and functions
PHPBB3-14584
2019-05-06 21:26:55 +02:00
657 changed files with 10287 additions and 11842 deletions

View File

@@ -6,18 +6,16 @@ services:
- iis
environment:
COMPOSER_AUTH:
secure: '{"github-oauth": {"github.com": "zvq38wk7sRe87Y9W2OCYXcK7WKQDsig7GRIUDHGmxm6ZQRK8JswPbi8JoJQbFhM+"}}'
matrix:
- db: mssql
db_version: sql2012sp1
php: 7.0
php: 7.1
- db: mssql
db_version: sql2014
php: 7.0
php: 7.1
- db: mssql
db_version: sql2016
php: 7.1.12
php: 7.2
# - db: mssql
# db_version: sql2017
# php: 7.1
@@ -66,10 +64,11 @@ before_test:
# Get MSSQL driver
if ($env:db -eq "mssql") {
cd c:\tools\php\ext
$DLLVersion = "4.1.6.1"
curl -o php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip https://windows.php.net/downloads/pecl/releases/sqlsrv/$($:DLLVersion)/php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip
$DLLVersion = "5.3.0"
$VCVersion = If ([System.Version]"$($env:php)" -ge [System.Version]"7.2") {"vc15"} Else {"vc14"}
curl -o php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip https://windows.php.net/downloads/pecl/releases/sqlsrv/$($:DLLVersion)/php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-$($VCVersion)-x64.zip
7z x -y php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip > $null
curl -o php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip https://windows.php.net/downloads/pecl/releases/pdo_sqlsrv/$($DLLVersion)/php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip
curl -o php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip https://windows.php.net/downloads/pecl/releases/pdo_sqlsrv/$($DLLVersion)/php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-$($VCVersion)-x64.zip
7z x -y php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip > $null
Remove-Item c:\tools\php\* -include .zip
cd c:\tools\php

View File

@@ -2,5 +2,5 @@
1. [Create an account on phpBB.com](http://www.phpbb.com/community/ucp.php?mode=register)
2. [Create a ticket (unless there already is one)](http://tracker.phpbb.com/secure/CreateIssue!default.jspa)
3. Read our [Coding guidelines](https://wiki.phpbb.com/Coding_guidelines) and [Git Contribution Guidelines](http://wiki.phpbb.com/Git)
3. Read our [Coding guidelines](https://area51.phpbb.com/docs/dev/master/development/coding_guidelines.html) and [Git Contribution Guidelines](https://area51.phpbb.com/docs/dev/master/development/git.html)
4. Send us a pull request

View File

@@ -1,9 +1,9 @@
Checklist:
- [ ] Correct branch: master for new features; 3.2.x for fixes
- [ ] Correct branch: master for new features; 3.3.x & 3.2.x for fixes
- [ ] Tests pass
- [ ] Code follows coding guidelines: [master](https://area51.phpbb.com/docs/dev/master/development/coding_guidelines.html) and [3.2.x](https://area51.phpbb.com/docs/dev/3.2.x/development/coding_guidelines.html)
- [ ] Commit follows commit message [format](https://area51.phpbb.com/docs/dev/3.2.x/development/git.html)
- [ ] Code follows coding guidelines: [master](https://area51.phpbb.com/docs/dev/master/development/coding_guidelines.html), [3.3.x](https://area51.phpbb.com/docs/dev/3.3.x/development/coding_guidelines.html) and [3.2.x](https://area51.phpbb.com/docs/dev/3.2.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**):

6
.gitignore vendored
View File

@@ -16,8 +16,10 @@
/phpBB/store/*
/phpBB/styles/*
!/phpBB/styles/prosilver
/phpBB/styles/prosilver/theme/*/
!/phpBB/styles/prosilver/theme/en
!/phpBB/styles/prosilver/theme/images
!/phpBB/styles/all
node_modules
/phpBB/vendor
/tests/phpbb_unit_tests.sqlite*
/tests/test_config*.php
@@ -25,4 +27,4 @@ node_modules
/tests/vendor
/vagrant/phpbb-install-config.yml
.vagrant
.idea
*.DS_Store*

View File

@@ -1,32 +1,26 @@
language: php
dist: trusty
dist: xenial
matrix:
include:
- php: 5.4
env: DB=none;NOTESTS=1
- php: 5.4
env: DB=mysqli # MyISAM
- php: 5.4
env: DB=mysql
- php: 5.4
env: DB=mariadb
- php: 5.4
env: DB=postgres
- php: 5.4
env: DB=sqlite3
- php: 5.4
env: DB=mysqli;SLOWTESTS=1
- php: 5.5
env: DB=mysqli
- php: 5.6
env: DB=mysqli
- php: 7.0
env: DB=mysqli
- php: 7.1
env: DB=mysqli
env: DB=none;NOTESTS=1
- php: 7.1
env: DB=mariadb
- php: 7.1
env: DB=postgres
- php: 7.1
env: DB=sqlite3
- php: 7.1
env: DB=mysqli;SLOWTESTS=1
- php: 7.1
env: DB=mysqli # MyISAM
- php: 7.2
env: DB=mysqli
- php: 7.3
env: DB=mysqli
- php: 7.4snapshot
env: DB=mysqli
- php: nightly
env: DB=mysqli
allow_failures:
@@ -35,12 +29,16 @@ matrix:
services:
- redis-server
- postgresql
- mysql
- memcached
install:
- travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
before_script:
- travis/setup-database.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- travis/setup-ldap.sh $SLOWTESTS
- phantomjs --webdriver=8910 > /dev/null &
script:

View File

@@ -2,9 +2,9 @@
<project name="phpBB" description="The phpBB forum software" default="all" basedir="../">
<!-- a few settings for the build -->
<property name="newversion" value="3.2.10-RC2" />
<property name="prevversion" value="3.2.10-RC1" />
<property name="olderversions" value="3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.7-pl1, 3.1.8, 3.1.9, 3.1.10, 3.1.11, 3.1.12, 3.2.0-a1, 3.2.0-a2, 3.2.0-b1, 3.2.0-b2, 3.2.0-RC1, 3.2.0-RC2, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9" />
<property name="newversion" value="3.3.0-RC1" />
<property name="prevversion" value="3.2.8" />
<property name="olderversions" value="3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.7-pl1, 3.1.8, 3.1.9, 3.1.10, 3.1.11, 3.1.12, 3.2.0-a1, 3.2.0-a2, 3.2.0-b1, 3.2.0-b2, 3.2.0-RC1, 3.2.0-RC2, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.3.0-b1, 3.3.0-b2" />
<!-- no configuration should be needed beyond this point -->
<property name="oldversions" value="${olderversions}, ${prevversion}" />
@@ -81,28 +81,36 @@
--ignore=${project.basedir}/phpBB/phpbb/db/migration/data/v30x/*
phpBB/phpbb"
dir="." returnProperty="retval-php-strict" passthru="true" />
<php function="preg_replace" returnProperty="sniffIgnoreList">
<param value="/\s+/"/>
<param value=""/>
<param value="${project.basedir}/phpBB/cache/*,
${project.basedir}/phpBB/develop/*,
${project.basedir}/phpBB/ext/*,
${project.basedir}/phpBB/includes/diff/*.php,
${project.basedir}/phpBB/includes/sphinxapi.php,
${project.basedir}/phpBB/includes/utf/data/*,
${project.basedir}/phpBB/install/data/*,
${project.basedir}/phpBB/install/database_update.php,
${project.basedir}/phpBB/phpbb/*,
${project.basedir}/phpBB/vendor/*,
${project.basedir}/phpBB/vendor-ext/*,
${project.basedir}/phpBB/config.php,
${project.basedir}/phpBB/config_dev.php,
${project.basedir}/phpBB/config_test.php"/>
</php>
<exec command="phpBB/vendor/bin/phpcs
-s -p
--extensions=php
--standard=build/code_sniffer/ruleset-php-legacy-core.xml
--ignore=${project.basedir}/phpBB/cache/*
--ignore=${project.basedir}/phpBB/develop/*
--ignore=${project.basedir}/phpBB/ext/*
--ignore=${project.basedir}/phpBB/includes/diff/*.php
--ignore=${project.basedir}/phpBB/includes/sphinxapi.php
--ignore=${project.basedir}/phpBB/includes/utf/data/*
--ignore=${project.basedir}/phpBB/install/data/*
--ignore=${project.basedir}/phpBB/install/database_update.php
--ignore=${project.basedir}/phpBB/phpbb/*
--ignore=${project.basedir}/phpBB/vendor/*
--ignore=${sniffIgnoreList}
phpBB"
dir="." returnProperty="retval-php-legacy" passthru="true" />
<exec command="phpBB/vendor/bin/phpcs
-s -p
--extensions=php
--standard=build/code_sniffer/ruleset-php-extensions.xml
--ignore=${project.basedir}/phpBB/ext/*/tests/*
--ignore=${project.basedir}/phpBB/ext/*/vendor/*
--ignore=${project.basedir}/phpBB/ext/*/tests/*,${project.basedir}/phpBB/ext/*/vendor/*
phpBB/ext"
dir="." returnProperty="retval-php-ext" passthru="true" />
<if>

View File

@@ -11,6 +11,9 @@
*
*/
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\Sniff;
/**
* Checks that each PHP source file contains a valid header as defined by the
* phpBB Coding Guidelines.
@@ -18,7 +21,7 @@
* @package code_sniffer
* @author Manuel Pichler <mapi@phpundercontrol.org>
*/
class phpbb_Sniffs_Commenting_FileCommentSniff implements PHP_CodeSniffer_Sniff
class phpbb_Sniffs_Commenting_FileCommentSniff implements Sniff
{
/**
* Returns an array of tokens this test wants to listen for.
@@ -33,13 +36,13 @@ class phpbb_Sniffs_Commenting_FileCommentSniff implements PHP_CodeSniffer_Sniff
/**
* Processes this test, when one of its tokens is encountered.
*
* @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
* @param File $phpcsFile The file being scanned.
* @param int $stackPtr The position of the current token
* in the stack passed in $tokens.
*
* @return null
* @return void
*/
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
public function process(File $phpcsFile, $stackPtr): void
{
// We are only interested in the first file comment.
if ($stackPtr !== 0)
@@ -62,7 +65,7 @@ class phpbb_Sniffs_Commenting_FileCommentSniff implements PHP_CodeSniffer_Sniff
// Mark as error if this is not a doc comment
else if ($start === false || $tokens[$start]['code'] !== T_DOC_COMMENT_OPEN_TAG)
{
$phpcsFile->addError('Missing required file doc comment.', $stackPtr);
$phpcsFile->addError('Missing required file doc comment.', $stackPtr, 'MissingComment');
return;
}
@@ -82,7 +85,7 @@ class phpbb_Sniffs_Commenting_FileCommentSniff implements PHP_CodeSniffer_Sniff
if ($tokens[$token]['column'] === 1 && (($tokens[$token]['content'] !== '*' && $tokens[$token]['content'] !== ' ') || ($tokens[$token]['content'] === ' ' && $tokens[$token + 1]['content'] !== '*')))
{
$message = 'The file doc comment should not be indented.';
$phpcsFile->addWarning($message, $token);
$phpcsFile->addWarning($message, $token, 'CommentIndented');
}
}
@@ -95,13 +98,13 @@ class phpbb_Sniffs_Commenting_FileCommentSniff implements PHP_CodeSniffer_Sniff
if (!(($tokens[$start + 2]['content'] !== '*' && $tokens[$start + 4]['content'] !== '*') || ($tokens[$start + 3]['content'] !== '*' && $tokens[$start + 6]['content'] !== '*')))
{
$message = 'The first file comment line should be empty.';
$phpcsFile->addWarning($message, ($start + 1));
$phpcsFile->addWarning($message, ($start + 1), 'CommentFirstNotEmpty');
}
if ($tokens[$end - 3]['content'] !== '*' && $tokens[$end - 6]['content'] !== '*')
{
$message = 'The last file comment line should be empty.';
$phpcsFile->addWarning($message, $end - 1);
$phpcsFile->addWarning($message, $end - 1, 'CommentLastNotEmpty');
}
//$this->processPackage($phpcsFile, $start, $tags);
@@ -113,59 +116,59 @@ class phpbb_Sniffs_Commenting_FileCommentSniff implements PHP_CodeSniffer_Sniff
/**
* Checks that the tags array contains a valid package tag
*
* @param PHP_CodeSniffer_File $phpcsFile The context source file instance.
* @param File $phpcsFile The context source file instance.
* @param integer The stack pointer for the first comment token.
* @param array(string=>array) $tags The found file doc comment tags.
*
* @return null
* @return void
*/
protected function processPackage(PHP_CodeSniffer_File $phpcsFile, $ptr, $tags)
protected function processPackage(File $phpcsFile, $ptr, $tags): void
{
if (!isset($tags['package']))
{
$message = 'Missing require @package tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
$phpcsFile->addError($message, $ptr, 'MissingTagPackage');
}
else if (preg_match('/^([\w]+)$/', $tags['package'][0]) === 0)
{
$message = 'Invalid content found for @package tag.';
$phpcsFile->addWarning($message, $tags['package'][1]);
$phpcsFile->addWarning($message, $tags['package'][1], 'InvalidTagPackage');
}
}
/**
* Checks that the tags array contains a valid version tag
*
* @param PHP_CodeSniffer_File $phpcsFile The context source file instance.
* @param File $phpcsFile The context source file instance.
* @param integer The stack pointer for the first comment token.
* @param array(string=>array) $tags The found file doc comment tags.
*
* @return null
* @return void
*/
protected function processVersion(PHP_CodeSniffer_File $phpcsFile, $ptr, $tags)
protected function processVersion(File $phpcsFile, $ptr, $tags): void
{
if (!isset($tags['version']))
{
$message = 'Missing require @version tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
$phpcsFile->addError($message, $ptr, 'MissingTagVersion');
}
else if (preg_match('/^\$Id:[^\$]+\$$/', $tags['version'][0]) === 0)
{
$message = 'Invalid content found for @version tag, use "$Id: $".';
$phpcsFile->addError($message, $tags['version'][1]);
$phpcsFile->addError($message, $tags['version'][1], 'InvalidTagVersion');
}
}
/**
* Checks that the tags array contains a valid copyright tag
*
* @param PHP_CodeSniffer_File $phpcsFile The context source file instance.
* @param File $phpcsFile The context source file instance.
* @param integer The stack pointer for the first comment token.
* @param array(string=>array) $tags The found file doc comment tags.
*
* @return null
* @return void
*/
protected function processCopyright(PHP_CodeSniffer_File $phpcsFile, $ptr, $tags)
protected function processCopyright(File $phpcsFile, $ptr, $tags): void
{
$copyright = '(c) phpBB Limited <https://www.phpbb.com>';
$tokens = $phpcsFile->getTokens();
@@ -177,7 +180,7 @@ class phpbb_Sniffs_Commenting_FileCommentSniff implements PHP_CodeSniffer_Sniff
if ($tokens[$tag + 2]['content'] !== $copyright)
{
$message = 'Invalid content found for the first @copyright tag, use "' . $copyright . '".';
$phpcsFile->addError($message, $tags['copyright'][0][1]);
$phpcsFile->addError($message, $tags['copyright'][0][1], 'InvalidTagCopyright');
}
return;
@@ -185,19 +188,19 @@ class phpbb_Sniffs_Commenting_FileCommentSniff implements PHP_CodeSniffer_Sniff
}
$message = 'Missing require @copyright tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
$phpcsFile->addError($message, $ptr, 'MissingTagCopyright');
}
/**
* Checks that the tags array contains a valid license tag
*
* @param PHP_CodeSniffer_File $phpcsFile The context source file instance.
* @param File $phpcsFile The context source file instance.
* @param integer The stack pointer for the first comment token.
* @param array(string=>array) $tags The found file doc comment tags.
*
* @return null
* @return void
*/
protected function processLicense(PHP_CodeSniffer_File $phpcsFile, $ptr, $tags)
protected function processLicense(File $phpcsFile, $ptr, $tags): void
{
$license = 'GNU General Public License, version 2 (GPL-2.0)';
$tokens = $phpcsFile->getTokens();
@@ -210,7 +213,7 @@ class phpbb_Sniffs_Commenting_FileCommentSniff implements PHP_CodeSniffer_Sniff
if ($found)
{
$message = 'It must be only one @license tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
$phpcsFile->addError($message, $ptr, 'MultiTagVersion');
}
$found = true;
@@ -218,7 +221,7 @@ class phpbb_Sniffs_Commenting_FileCommentSniff implements PHP_CodeSniffer_Sniff
if ($tokens[$tag + 2]['content'] !== $license)
{
$message = 'Invalid content found for @license tag, use "' . $license . '".';
$phpcsFile->addError($message, $tags['license'][0][1]);
$phpcsFile->addError($message, $tags['license'][0][1], 'InvalidTagLicense');
}
}
}
@@ -226,7 +229,7 @@ class phpbb_Sniffs_Commenting_FileCommentSniff implements PHP_CodeSniffer_Sniff
if (!$found)
{
$message = 'Missing require @license tag in file doc comment.';
$phpcsFile->addError($message, $ptr);
$phpcsFile->addError($message, $ptr, 'MissingTagLicense');
}
}
}

View File

@@ -11,11 +11,14 @@
*
*/
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\Sniff;
/**
* Checks that the opening brace of a control structures is on the line after.
* From Generic_Sniffs_Functions_OpeningFunctionBraceBsdAllmanSniff
*/
class phpbb_Sniffs_ControlStructures_OpeningBraceBsdAllmanSniff implements PHP_CodeSniffer_Sniff
class phpbb_Sniffs_ControlStructures_OpeningBraceBsdAllmanSniff implements Sniff
{
/**
* Registers the tokens that this sniff wants to listen for.
@@ -36,13 +39,13 @@ class phpbb_Sniffs_ControlStructures_OpeningBraceBsdAllmanSniff implements PHP_C
/**
* Processes this test, when one of its tokens is encountered.
*
* @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
* @param File $phpcsFile The file being scanned.
* @param int $stackPtr The position of the current token in the
* stack passed in $tokens.
*
* @return void
*/
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
public function process(File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();

View File

@@ -11,11 +11,14 @@
*
*/
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\Sniff;
/**
* Checks that there is exactly one space between the keyword and the opening
* parenthesis of a control structures.
*/
class phpbb_Sniffs_ControlStructures_OpeningParenthesisSniff implements PHP_CodeSniffer_Sniff
class phpbb_Sniffs_ControlStructures_OpeningParenthesisSniff implements Sniff
{
/**
* Registers the tokens that this sniff wants to listen for.
@@ -36,13 +39,13 @@ class phpbb_Sniffs_ControlStructures_OpeningParenthesisSniff implements PHP_Code
/**
* Processes this test, when one of its tokens is encountered.
*
* @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
* @param File $phpcsFile The file being scanned.
* @param int $stackPtr The position of the current token in the
* stack passed in $tokens.
*
* @return void
*/
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
public function process(File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();

View File

@@ -11,10 +11,13 @@
*
*/
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\Sniff;
/**
* Checks that each use statement is used.
*/
class phpbb_Sniffs_Namespaces_UnusedUseSniff implements PHP_CodeSniffer_Sniff
class phpbb_Sniffs_Namespaces_UnusedUseSniff implements Sniff
{
/**
* {@inheritdoc}
@@ -24,7 +27,7 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements PHP_CodeSniffer_Sniff
return array(T_USE);
}
protected function check($phpcsFile, $found_name, $full_name, $short_name, $line)
protected function check(File $phpcsFile, $found_name, $full_name, $short_name, $line)
{
if ($found_name === $full_name)
@@ -44,7 +47,7 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements PHP_CodeSniffer_Sniff
/**
* {@inheritdoc}
*/
public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
public function process(File $phpcsFile, $stackPtr)
{
if ($this->should_ignore_use($phpcsFile, $stackPtr) === true)
{
@@ -179,13 +182,13 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements PHP_CodeSniffer_Sniff
/**
* Check if this use statement is part of the namespace block.
*
* @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
* @param File $phpcsFile The file being scanned.
* @param int $stackPtr The position of the current token in
* the stack passed in $tokens.
*
* @return bool
*/
private function should_ignore_use(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
private function should_ignore_use(File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();
@@ -207,7 +210,7 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements PHP_CodeSniffer_Sniff
}
/**
* @param PHP_CodeSniffer_File $phpcsFile
* @param File $phpcsFile
* @param int $field
* @param array $tokens
* @param string $class_name_full
@@ -216,7 +219,7 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements PHP_CodeSniffer_Sniff
*
* @return bool
*/
private function checkDocblock(PHP_CodeSniffer_File $phpcsFile, $comment_end, $tokens, $class_name_full, $class_name_short)
private function checkDocblock(File $phpcsFile, $comment_end, $tokens, $class_name_full, $class_name_short)
{
$ok = false;

View File

@@ -26,7 +26,6 @@ $config['versions'] = Sami\Version\GitVersionCollection::create(__DIR__ . '/../'
->add('3.0.x')
->add('3.1.x')
->add('3.2.x')
->add('3.3.x')
->add('master')
;

Binary file not shown.

View File

@@ -36,6 +36,13 @@ RewriteRule ^(.*)$ app.php [QSA,L]
#Options +FollowSymLinks
</IfModule>
# Apache content negotation tries to interpret non-existent paths as files if
# MultiViews is enabled. This will however cause issues with paths containg
# dots, e.g. for the cron tasks
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
# module mod_authz_host to a new module called mod_access_compat (which may be
# disabled) and a new "Require" syntax has been introduced to mod_authz_host.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -49,7 +49,6 @@ if (!$auth->acl_get('a_'))
define('IN_ADMIN', true);
// Some oft used variables
$safe_mode = (@ini_get('safe_mode') == '1' || strtolower(@ini_get('safe_mode')) === 'on') ? true : false;
$file_uploads = (@ini_get('file_uploads') == '1' || strtolower(@ini_get('file_uploads')) === 'on') ? true : false;
$module_id = $request->variable('i', '');
$mode = $request->variable('mode', '');

View File

@@ -50,21 +50,16 @@
<dl>
<dt><label for="{options.KEY}">{options.TITLE}{L_COLON}</label><!-- IF options.S_EXPLAIN --><br /><span>{options.TITLE_EXPLAIN}</span><!-- ENDIF --></dt>
<dd>{options.CONTENT}</dd>
{% if (options.KEY == 'allow_attachments' and S_EMPTY_POST_GROUPS) or (options.KEY == 'allow_pm_attach' and S_EMPTY_PM_GROUPS) %}
<dd><span class="error">{{ lang(options.KEY == 'allow_attachments' ? 'NO_EXT_GROUP_ALLOWED_POST' : 'NO_EXT_GROUP_ALLOWED_PM', U_EXTENSION_GROUPS) }}</span></dd>
{% endif %}
</dl>
<!-- ENDIF -->
<!-- END options -->
</fieldset>
<fieldset>
<legend>{{ lang('ACP_SUBMIT_CHANGES') }}</legend>
<p class="submit-buttons">
<fieldset class="submit-buttons">
<legend>{L_SUBMIT}</legend>
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</p>
</fieldset>
<!-- IF not S_SECURE_DOWNLOADS -->
@@ -209,9 +204,6 @@
<dd><select name="allowed_forums[]" multiple="multiple" size="8">{S_FORUM_ID_OPTIONS}</select></dd>
</dl>
</fieldset>
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
@@ -316,14 +308,10 @@
</tbody>
</table>
</fieldset>
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
@@ -394,9 +382,6 @@
<!-- ENDIF -->
<!-- IF .orphan -->
</fieldset>
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />

View File

@@ -1,6 +1,6 @@
<dl>
<dt><label for="avatar_upload_file">{L_UPLOAD_AVATAR_FILE}{L_COLON}</label></dt>
<dd><input type="hidden" name="MAX_FILE_SIZE" value="{AVATAR_UPLOAD_SIZE}" /><input type="file" name="avatar_upload_file" id="avatar_upload_file" class="inputbox autowidth" /></dd>
<dd><input type="hidden" name="MAX_FILE_SIZE" value="{AVATAR_UPLOAD_SIZE}" /><input type="file" name="avatar_upload_file" id="avatar_upload_file" class="inputbox autowidth" accept="{{ AVATAR_ALLOWED_EXTENSIONS }}" /></dd>
</dl>
<!-- IF S_UPLOAD_AVATAR_URL -->

View File

@@ -73,9 +73,7 @@
<dt><label for="bangivereason">{L_BAN_GIVE_REASON}{L_COLON}</label></dt>
<dd><input name="bangivereason" type="text" class="text medium" maxlength="255" id="bangivereason" /></dd>
</dl>
</fieldset>
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input class="button1" type="submit" id="bansubmit" name="bansubmit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="banreset" name="banreset" value="{L_RESET}" />

View File

@@ -44,7 +44,7 @@
<!-- INCLUDE acp_posting_buttons.html -->
<dl class="responsive-columns">
<dt style="width: 90px;" id="color_palette_placeholder" data-orientation="v" data-height="12" data-width="15" data-bbcode="true">
<dt style="width: 90px;" id="color_palette_placeholder" data-color-palette="v" data-height="12" data-width="15" data-bbcode="true">
</dt>
<dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px;">
@@ -66,12 +66,9 @@
</dl>
</fieldset>
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<fieldset class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</p>
<input class="button2" type="submit" name="preview" value="{L_PREVIEW}" />
{S_FORM_TOKEN}
</fieldset>
</form>

View File

@@ -76,10 +76,7 @@
</select></dd>
<dd><a href="#" onclick="selector(true); return false;">{L_SELECT_ALL}</a> :: <a href="#" onclick="selector(false); return false;">{L_DESELECT_ALL}</a></dd>
</dl>
</fieldset>
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />

View File

@@ -0,0 +1,6 @@
{% for action in enabled.actions %}
<a href="{{ action.U_ACTION }}"{% if action.L_ACTION_EXPLAIN %} title="{{ action.L_ACTION_EXPLAIN }}"{% endif %}{% if action.COLOR %} style="color: {{ action.COLOR }};"{% endif %} data-ajax="{{ action.ACTION_AJAX }}" data-refresh="true">{{ action.L_ACTION }}</a>{% if not action.S_LAST_ROW %}&nbsp;|&nbsp;{% endif %}
{% endfor %}
{% for action in disabled.actions %}
<a href="{{ action.U_ACTION }}"{% if action.L_ACTION_EXPLAIN %} title="{{ action.L_ACTION_EXPLAIN }}"{% endif %}{% if action.COLOR %} style="color: {{ action.COLOR }};"{% endif %} data-ajax="{{ action.ACTION_AJAX }}" data-refresh="true">{{ action.L_ACTION }}</a>{% if not action.S_LAST_ROW %}&nbsp;|&nbsp;{% endif %}
{% endfor %}

View File

@@ -1,40 +0,0 @@
<!-- INCLUDE overall_header.html -->
<a id="maincontent"></a>
<h1>{L_EXTENSIONS_ADMIN}</h1>
<p>{L_EXTENSIONS_EXPLAIN}</p>
<p>{L_EXTENSION_DELETE_DATA_EXPLAIN}</p>
<!-- IF MIGRATOR_ERROR -->
<div class="errorbox">
<p><strong>{L_MIGRATION_EXCEPTION_ERROR}</strong></p>
<p>{MIGRATOR_ERROR}</p>
<p><a href="{U_RETURN}">{L_RETURN_TO_EXTENSION_LIST}</a></p>
</div>
<!-- ELSEIF PRE -->
<div class="errorbox">
<p>{L_CONFIRM_MESSAGE}</p>
</div>
<form id="acp_extensions" method="post" action="{U_PURGE}">
<fieldset class="submit-buttons">
<legend>{L_EXTENSION_DELETE_DATA}</legend>
<input class="button1" type="submit" name="delete_data" value="{L_EXTENSION_DELETE_DATA}" />
<input class="button2" type="submit" name="cancel" value="{L_CANCEL}" />
</fieldset>
</form>
<!-- ELSEIF S_NEXT_STEP -->
<div class="errorbox">
<p>{L_EXTENSION_DELETE_DATA_IN_PROGRESS}</p>
</div>
<!-- ELSE -->
<div class="successbox">
<p>{L_EXTENSION_DELETE_DATA_SUCCESS}</p>
<br />
<p><a href="{U_RETURN}">{L_RETURN_TO_EXTENSION_LIST}</a></p>
</div>
<!-- ENDIF -->
<!-- INCLUDE overall_footer.html -->

View File

@@ -1,34 +0,0 @@
<!-- INCLUDE overall_header.html -->
<a id="maincontent"></a>
<h1>{L_EXTENSIONS_ADMIN}</h1>
<p>{L_EXTENSIONS_EXPLAIN}</p>
<p>{L_EXTENSION_DISABLE_EXPLAIN}</p>
<!-- IF PRE -->
<fieldset>
<h2>{L_CONFIRM}</h2>
<p>{L_CONFIRM_MESSAGE}</p>
</fieldset>
<form id="acp_extensions" method="post" action="{U_DISABLE}">
<fieldset class="submit-buttons">
<input class="button1" type="submit" name="disable" value="{L_EXTENSION_DISABLE}" />
<input class="button2" type="submit" name="cancel" value="{L_CANCEL}" />
</fieldset>
</form>
<!-- ELSEIF S_NEXT_STEP -->
<div class="successbox notice">
<p>{L_EXTENSION_DISABLE_IN_PROGRESS}</p>
</div>
<!-- ELSE -->
<div class="successbox">
<p>{L_EXTENSION_DISABLE_SUCCESS}</p>
<br />
<p><a href="{U_RETURN}">{L_RETURN_TO_EXTENSION_LIST}</a></p>
</div>
<!-- ENDIF -->
<!-- INCLUDE overall_footer.html -->

View File

@@ -1,40 +0,0 @@
<!-- INCLUDE overall_header.html -->
<a id="maincontent"></a>
<h1>{L_EXTENSIONS_ADMIN}</h1>
<p>{L_EXTENSIONS_EXPLAIN}</p>
<p>{L_EXTENSION_ENABLE_EXPLAIN}</p>
<!-- IF MIGRATOR_ERROR -->
<div class="errorbox">
<p><strong>{L_MIGRATION_EXCEPTION_ERROR}</strong></p>
<p>{MIGRATOR_ERROR}</p>
<p><a href="{U_RETURN}">{L_RETURN_TO_EXTENSION_LIST}</a></p>
</div>
<!-- ELSEIF PRE -->
<fieldset>
<h2>{L_CONFIRM}</h2>
<p>{L_CONFIRM_MESSAGE}</p>
</fieldset>
<form id="acp_extensions" method="post" action="{U_ENABLE}">
<fieldset class="submit-buttons">
<input class="button1" type="submit" name="enable" value="{L_EXTENSION_ENABLE}" />
<input class="button2" type="submit" name="cancel" value="{L_CANCEL}" />
</fieldset>
</form>
<!-- ELSEIF S_NEXT_STEP -->
<div class="successbox notice">
<p>{L_EXTENSION_ENABLE_IN_PROGRESS}</p>
</div>
<!-- ELSE -->
<div class="successbox">
<p>{L_EXTENSION_ENABLE_SUCCESS}</p>
<br />
<p><a href="{U_RETURN}">{L_RETURN_TO_EXTENSION_LIST}</a></p>
</div>
<!-- ENDIF -->
<!-- INCLUDE overall_footer.html -->

View File

@@ -7,7 +7,7 @@
<p>{L_EXTENSIONS_EXPLAIN}</p>
<fieldset class="quick">
<span class="small"><a href="https://www.phpbb.com/go/customise/extensions/3.2" target="_blank">{L_BROWSE_EXTENSIONS_DATABASE}</a> &bull; <a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE_ALL}</a> &bull; <a href="javascript:phpbb.toggleDisplay('version_check_settings');">{L_SETTINGS}</a></span>
<span class="small"><a href="https://www.phpbb.com/go/customise/extensions/3.3" target="_blank">{L_BROWSE_EXTENSIONS_DATABASE}</a> &bull; <a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE_ALL}</a> &bull; <a href="javascript:phpbb.toggleDisplay('version_check_settings');">{L_SETTINGS}</a></span>
</fieldset>
<form id="version_check_settings" method="post" action="{U_ACTION}" style="display:none">
@@ -42,8 +42,8 @@
</tr>
</thead>
<tbody>
<!-- IF .enabled -->
<tr>
<tr id="ext_enabled_header"<!-- IF not .enabled --> class="hidden"<!-- ENDIF -->>
<td class="row3" colspan="4"><strong>{L_EXTENSIONS_ENABLED}</strong><!-- EVENT acp_ext_list_enabled_title_after --></td>
</tr>
<!-- BEGIN enabled -->
@@ -59,17 +59,12 @@
</td>
<td style="text-align: center;"><a href="{enabled.U_DETAILS}">{L_DETAILS}</a></td>
<td style="text-align: center;">
<!-- BEGIN actions -->
<a href="{enabled.actions.U_ACTION}"<!-- IF enabled.actions.L_ACTION_EXPLAIN --> title="{enabled.actions.L_ACTION_EXPLAIN}"<!-- ENDIF -->>{enabled.actions.L_ACTION}</a>
<!-- IF not enabled.actions.S_LAST_ROW -->&nbsp;|&nbsp;<!-- ENDIF -->
<!-- END actions -->
<!-- INCLUDE acp_ext_actions.html -->
</td>
</tr>
<!-- END enabled -->
<!-- ENDIF -->
<!-- IF .disabled -->
<tr>
<tr id="ext_disabled_header"<!-- IF not .disabled --> class="hidden"<!-- ENDIF -->>
<td class="row3" colspan="4"><strong>{L_EXTENSIONS_DISABLED}</strong><!-- EVENT acp_ext_list_disabled_title_after --></td>
</tr>
<!-- BEGIN disabled -->
@@ -87,14 +82,10 @@
<!-- IF disabled.U_DETAILS --><a href="{disabled.U_DETAILS}">{L_DETAILS}</a><!-- ENDIF -->
</td>
<td style="text-align: center;">
<!-- BEGIN actions -->
<a href="{disabled.actions.U_ACTION}"<!-- IF disabled.actions.L_ACTION_EXPLAIN --> title="{disabled.actions.L_ACTION_EXPLAIN}"<!-- ENDIF -->>{disabled.actions.L_ACTION}</a>
<!-- IF not disabled.actions.S_LAST_ROW -->&nbsp;|&nbsp;<!-- ENDIF -->
<!-- END actions -->
<!-- INCLUDE acp_ext_actions.html -->
</td>
</tr>
<!-- END disabled -->
<!-- ENDIF -->
</tbody>
</table>

View File

@@ -210,6 +210,11 @@
<dd><label><input type="radio" class="radio" name="display_subforum_list" value="1"<!-- IF S_DISPLAY_SUBFORUM_LIST --> id="display_subforum_list" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
<label><input type="radio" class="radio" name="display_subforum_list" value="0"<!-- IF not S_DISPLAY_SUBFORUM_LIST --> id="display_subforum_list" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
</dl>
<dl>
<dt><label for="display_subforum_limit">{L_LIMIT_SUBFORUMS}{L_COLON}</label><br /><span>{L_LIMIT_SUBFORUMS_EXPLAIN}</span></dt>
<dd><label><input type="radio" class="radio" name="display_subforum_limit" value="1"<!-- IF S_DISPLAY_SUBFORUM_LIMIT --> id="display_subforum_limit" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
<label><input type="radio" class="radio" name="display_subforum_limit" value="0"<!-- IF not S_DISPLAY_SUBFORUM_LIMIT --> id="display_subforum_limit" checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
</dl>
<dl>
<dt><label for="display_on_index">{L_LIST_INDEX}{L_COLON}</label><br /><span>{L_LIST_INDEX_EXPLAIN}</span></dt>
<dd><label><input type="radio" class="radio" name="display_on_index" value="1"<!-- IF S_DISPLAY_ON_INDEX --> id="display_on_index" checked="checked"<!-- ENDIF --> /> {L_YES}</label>

View File

@@ -100,7 +100,7 @@
<input name="group_colour" type="text" id="group_colour" value="{GROUP_COLOUR}" size="6" maxlength="6" />
<!-- IF GROUP_COLOUR -->&nbsp;<span style="background-color: #{GROUP_COLOUR}">&nbsp; &nbsp;</span><!-- ENDIF -->&nbsp;&nbsp;<span>
[ <a href="#" id="color_palette_toggle">{L_COLOUR_SWATCH}</a> ]</span>
<div id="color_palette_placeholder" style="display: none;" data-orientation="h" data-height="12" data-width="15" data-target="#group_colour"></div>
<div id="color_palette_placeholder" style="display: none;" data-color-palette="h" data-height="12" data-width="15" data-target="#group_colour"></div>
</dd>
</dl>
<dl>

View File

@@ -15,9 +15,7 @@
<label><input type="radio" name="legend_sort_groupname" class="radio" value="0"<!-- IF not LEGEND_SORT_GROUPNAME --> checked="checked"<!-- ENDIF --> /> {L_NO}</label>
</dd>
</dl>
</fieldset>
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input class="button1" type="submit" name="update" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" name="reset" value="{L_RESET}" />

View File

@@ -40,7 +40,6 @@
</div>
<!-- EVENT acp_help_phpbb_stats_after -->
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input type="hidden" name="systemdata" value="{RAW_DATA}" />
<input type="hidden" name="help_send_statistics_time" value="{COLLECT_STATS_TIME}" />
@@ -52,7 +51,6 @@
</form>
<form action="{U_COLLECT_STATS}" method="post" target="questionaire_result" id="questionnaire-form">
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input type="hidden" name="systemdata" value="{RAW_DATA}" />
<input class="button1" type="submit" id="submit_stats" name="submit" value="{L_SEND_STATISTICS}" />

View File

@@ -70,12 +70,9 @@
</fieldset>
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<fieldset class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>

View File

@@ -69,7 +69,7 @@
<p>{L_ACP_LANGUAGE_PACKS_EXPLAIN}</p>
<fieldset class="quick">
<span class="small"><a href="https://www.phpbb.com/go/customise/language-packs/3.2" target="_blank">{L_BROWSE_LANGUAGE_PACKS_DATABASE}</a></span>
<span class="small"><a href="https://www.phpbb.com/go/customise/language-packs/3.3" target="_blank">{L_BROWSE_LANGUAGE_PACKS_DATABASE}</a></span>
</fieldset>
<table class="table1 zebra-table">

View File

@@ -94,66 +94,93 @@
<!-- EVENT acp_main_notice_after -->
<table class="table1 two-columns no-header" data-no-responsive-header="true">
<caption>{L_FORUM_STATS}</caption>
<col class="col1" /><col class="col2" /><col class="col1" /><col class="col2" />
<div class="lside">
<table class="table1 zebra-table no-header" data-no-responsive-header="true">
<thead>
<tr>
<th>{L_STATISTIC}</th>
<th>{L_VALUE}</th>
<th>{L_STATISTIC}</th>
<th>{L_VALUE}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{L_NUMBER_POSTS}{L_COLON} </td>
<td><strong>{TOTAL_POSTS}</strong></td>
<td>{L_POSTS_PER_DAY}{L_COLON} </td>
<td><strong>{POSTS_PER_DAY}</strong></td>
<td class="tabled">{L_NUMBER_POSTS}{L_COLON}</td>
<td class="tabled"><strong>{TOTAL_POSTS}</strong></td>
</tr>
<tr>
<td>{L_NUMBER_TOPICS}{L_COLON} </td>
<td><strong>{TOTAL_TOPICS}</strong></td>
<td>{L_TOPICS_PER_DAY}{L_COLON} </td>
<td><strong>{TOPICS_PER_DAY}</strong></td>
<td class="tabled">{L_POSTS_PER_DAY}{L_COLON}</td>
<td class="tabled"><strong>{POSTS_PER_DAY}</strong></td>
</tr>
<tr>
<td>{L_NUMBER_USERS}{L_COLON} </td>
<td><strong>{TOTAL_USERS}</strong></td>
<td>{L_USERS_PER_DAY}{L_COLON} </td>
<td><strong>{USERS_PER_DAY}</strong></td>
<td class="tabled">{L_NUMBER_TOPICS}{L_COLON}</td>
<td class="tabled"><strong>{TOTAL_TOPICS}</strong></td>
</tr>
<tr>
<td>{L_NUMBER_FILES}{L_COLON} </td>
<td><strong>{TOTAL_FILES}</strong></td>
<td>{L_FILES_PER_DAY}{L_COLON} </td>
<td><strong>{FILES_PER_DAY}</strong></td>
<td class="tabled">{L_TOPICS_PER_DAY}{L_COLON}</td>
<td class="tabled"><strong>{TOPICS_PER_DAY}</strong></td>
</tr>
<tr>
<td>{L_BOARD_STARTED}{L_COLON} </td>
<td><strong>{START_DATE}</strong></td>
<td>{L_AVATAR_DIR_SIZE}{L_COLON} </td>
<td><strong>{AVATAR_DIR_SIZE}</strong></td>
<td class="tabled">{L_NUMBER_USERS}{L_COLON}</td>
<td class="tabled"><strong>{TOTAL_USERS}</strong></td>
</tr>
<tr>
<td>{L_DATABASE_SIZE}{L_COLON} </td>
<td><strong>{DBSIZE}</strong></td>
<td>{L_UPLOAD_DIR_SIZE}{L_COLON} </td>
<td><strong>{UPLOAD_DIR_SIZE}</strong></td>
<td class="tabled">{L_USERS_PER_DAY}{L_COLON}</td>
<td class="tabled"><strong>{USERS_PER_DAY}</strong></td>
</tr>
<tr>
<td>{L_DATABASE_SERVER_INFO}{L_COLON} </td>
<td><strong>{DATABASE_INFO}</strong></td>
<td>{L_GZIP_COMPRESSION}{L_COLON} </td>
<td><strong>{GZIP_COMPRESSION}</strong></td>
<td class="tabled">{L_NUMBER_FILES}{L_COLON}</td>
<td class="tabled"><strong>{TOTAL_FILES}</strong></td>
</tr>
<tr>
<td class="tabled">{L_FILES_PER_DAY}{L_COLON}</td>
<td class="tabled"><strong>{FILES_PER_DAY}</strong></td>
</tr>
<tr>
<td class="tabled">&nbsp;</td>
<td class="tabled">&nbsp;</td>
</tr>
</tbody>
</table>
<table class="table1 zebra-table no-header" data-no-responsive-header="true">
<thead>
<tr>
<th>{L_STATISTIC}</th>
<th>{L_VALUE}</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tabled">{L_BOARD_STARTED}{L_COLON}</td>
<td class="tabled"><strong>{START_DATE}</strong></td>
</tr>
<tr>
<td class="tabled">{L_AVATAR_DIR_SIZE}{L_COLON}</td>
<td class="tabled"><strong>{AVATAR_DIR_SIZE}</strong></td>
</tr>
<tr>
<td class="tabled">{L_DATABASE_SIZE}{L_COLON}</td>
<td class="tabled"><strong>{DBSIZE}</strong></td>
</tr>
<tr>
<td class="tabled">{L_UPLOAD_DIR_SIZE}{L_COLON}</td>
<td class="tabled"><strong>{UPLOAD_DIR_SIZE}</strong></td>
</tr>
<tr>
<td class="tabled">{L_DATABASE_SERVER_INFO}{L_COLON}</td>
<td class="tabled"><strong>{DATABASE_INFO}</strong></td>
</tr>
<tr>
<td class="tabled">{L_GZIP_COMPRESSION}{L_COLON}</td>
<td class="tabled"><strong>{GZIP_COMPRESSION}</strong></td>
</tr>
<tr>
<td class="tabled">{L_PHP_VERSION}{L_COLON}</td>
<td class="tabled"><strong>{PHP_VERSION_INFO}</strong></td>
</tr>
<tr>
<td>{L_PHP_VERSION}{L_COLON} </td>
<td><strong>{PHP_VERSION_INFO}</strong></td>
<!-- IF S_TOTAL_ORPHAN -->
<td>{L_NUMBER_ORPHAN}{L_COLON} </td>
<td>
<td class="tabled">{L_NUMBER_ORPHAN}{L_COLON}</td>
<td class="tabled">
<!-- IF TOTAL_ORPHAN > 0 -->
<a href="{U_ATTACH_ORPHAN}" title="{L_MORE_INFORMATION}"><strong>{TOTAL_ORPHAN}</strong></a>
<!-- ELSE -->
@@ -161,23 +188,19 @@
<!-- ENDIF -->
</td>
<!-- ELSE -->
<td>&nbsp;</td>
<td>&nbsp;</td>
<!-- ENDIF -->
</tr>
<!-- IF S_VERSIONCHECK -->
<tr>
<td>{L_BOARD_VERSION}{L_COLON} </td>
<td>
<td class="tabled">{L_BOARD_VERSION}{L_COLON}</td>
<td class="tabled">
<strong><a href="{U_VERSIONCHECK}" <!-- IF S_VERSION_UP_TO_DATE -->style="color: #228822;" <!-- ELSEIF not S_VERSIONCHECK_FAIL -->style="color: #BC2A4D;" <!-- ENDIF -->title="{L_MORE_INFORMATION}">{BOARD_VERSION}</a></strong> [&nbsp;<a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a>&nbsp;]
</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<!-- ENDIF -->
</tbody>
</table>
</div>
<!-- IF S_ACTION_OPTIONS -->
<fieldset>
<legend>{L_STATISTIC_RESYNC_OPTIONS}</legend>

View File

@@ -340,12 +340,9 @@
<br class="responsive-hide" /><br class="responsive-hide" />
<fieldset class="quick" style="float: {S_CONTENT_FLOW_END};">
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="action[apply_all_permissions]" value="{L_APPLY_ALL_PERMISSIONS}" />&nbsp;
<input class="button2" type="button" id="reset" name="cancel" value="{L_RESET}" onclick="document.forms['set-permissions'].reset(); init_colours(active_pmask + active_fmask);" />
<input class="button1" type="submit" name="action[apply_all_permissions]" value="{L_APPLY_ALL_PERMISSIONS}" />
<input class="button2" type="button" name="cancel" value="{L_RESET}" onclick="document.forms['set-permissions'].reset(); init_colours(active_pmask + active_fmask);" />
{S_FORM_TOKEN}
</p>
</fieldset>
<br class="responsive-hide" /><br class="responsive-hide" />

View File

@@ -44,7 +44,7 @@
</select>
<!-- EVENT acp_posting_buttons_custom_tags_before -->
<!-- BEGIN custom_tags -->
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{{ custom_tags.BBCODE_HELPLINE }}" />
<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{{ custom_tags.BBCODE_HELPLINE|e('html_attr') }}" />
<!-- END custom_tags -->
</div>
<!-- EVENT acp_posting_buttons_after -->

View File

@@ -21,11 +21,8 @@
<!-- IF S_STEP_ONE -->
{% EVENT acp_profile_options_before %}
<fieldset>
<legend>{L_TITLE}</legend>
{% EVENT acp_profile_basic_options_before %}
<dl>
<dt><label>{L_FIELD_TYPE}{L_COLON}</label><br /><span>{L_FIELD_TYPE_EXPLAIN}</span></dt>
<dd><strong>{FIELD_TYPE}</strong></dd>
@@ -46,11 +43,8 @@
<dd><label><input type="radio" class="radio" id="field_no_view" name="field_no_view" value="0"<!-- IF not S_FIELD_NO_VIEW --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
<label><input type="radio" class="radio" name="field_no_view" value="1"<!-- IF S_FIELD_NO_VIEW --> checked="checked"<!-- ENDIF --> /> {L_NO}</label></dd>
</dl>
{% EVENT acp_profile_basic_options_after %}
</fieldset>
{% EVENT acp_profile_visibility_options_before %}
<fieldset>
<legend>{L_VISIBILITY_OPTION}</legend>
<dl>
@@ -93,11 +87,8 @@
<dd><input class="text medium" type="text" name="field_contact_url" id="field_contact_url" value="{FIELD_CONTACT_URL}" /> <label for="field_contact_url">{L_FIELD_CONTACT_URL}</label></dd>
<!-- EVENT acp_profile_contact_last -->
</dl>
{% EVENT acp_profile_contact_after %}
</fieldset>
{% EVENT acp_profile_visibility_options_after %}
<!-- IF S_EDIT_MODE -->
<fieldset class="quick">
<input class="button1" type="submit" name="save" value="{L_SAVE}" />

View File

@@ -66,10 +66,7 @@
<dd><label><input type="radio" class="radio" name="action" value="delete" /> {L_DELETE_USERS}</label>
<label><input type="radio" class="radio" id="deactivate" name="action" value="deactivate" checked="checked" /> {L_DEACTIVATE}</label></dd>
</dl>
</fieldset>
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input type="hidden" name="prune" value="1" />
@@ -78,7 +75,6 @@
{S_FORM_TOKEN}
</p>
</fieldset>
</form>
<!-- INCLUDE overall_footer.html -->

View File

@@ -59,12 +59,10 @@
<!-- END backend -->
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<fieldset class="submit-buttons">
<legend>{L_SUBMIT}</legend>
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</p>
{S_FORM_TOKEN}
</fieldset>
</form>
@@ -91,12 +89,10 @@
<p>{L_CONTINUE_EXPLAIN}</p>
<form id="acp_search_continue" method="post" action="{U_CONTINUE_INDEXING}">
<fieldset>
<legend>{L_ACP_SUBMIT_CHANGES}</legend>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
</p>
<fieldset class="submit-buttons">
<legend>{L_SUBMIT}</legend>
<input class="button1" type="submit" id="continue" name="continue" value="{L_CONTINUE}" onclick="popup_progress_bar('{S_CONTINUE_INDEXING}');" />&nbsp;
<input class="button2" type="submit" id="cancel" name="cancel" value="{L_CANCEL}" />
{S_FORM_TOKEN}
</fieldset>
</form>

View File

@@ -33,7 +33,7 @@
<!-- IF L_EXPLAIN --><p>{L_EXPLAIN}</p><!-- ENDIF -->
<fieldset class="quick">
<span class="small"><a href="https://www.phpbb.com/go/customise/styles/3.2" target="_blank">{L_BROWSE_STYLES_DATABASE}</a></span>
<span class="small"><a href="https://www.phpbb.com/go/customise/styles/3.3" target="_blank">{L_BROWSE_STYLES_DATABASE}</a></span>
</fieldset>
<form id="acp_styles" method="post" action="{U_ACTION}">

View File

@@ -26,7 +26,7 @@
<!-- INCLUDE acp_posting_buttons.html -->
<dl class="responsive-columns">
<dt style="width: 90px;" id="color_palette_placeholder" data-orientation="v" data-height="12" data-width="15" data-bbcode="true">
<dt style="width: 90px;" id="color_palette_placeholder" data-color-palette="v" data-height="12" data-width="15" data-bbcode="true">
</dt>
<dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px;"><textarea name="signature" rows="10" cols="60" style="width: 95%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();" data-bbcode="true">{SIGNATURE}</textarea></dd>
<dd style="margin-{S_CONTENT_FLOW_BEGIN}: 90px; margin-top: 5px;">

View File

@@ -1,4 +1,4 @@
/* phpBB 3.2 Admin Style Sheet
/* phpBB 3.3 Admin Style Sheet
------------------------------------------------------------------------
Original author: subBlue ( http://www.subblue.com/ )
Copyright (c) phpBB Limited <https://www.phpbb.com>
@@ -191,7 +191,7 @@ li {
#page-header {
text-align: right;
background: url("../images/phpbb_logo.png") top left no-repeat;
background: url("../images/phpbb_logo.svg") top left no-repeat;
height: 54px;
font-size: 0.85em;
margin-bottom: 10px;
@@ -199,7 +199,7 @@ li {
.rtl #page-header {
text-align: left;
background: url("../images/phpbb_logo.png") top right no-repeat;
background: url("../images/phpbb_logo.svg") top right no-repeat;
}
#page-header h1 {
@@ -723,9 +723,13 @@ td {
}
.table1 {
border-collapse: separate;
border-spacing: 1px;
clear: both;
border-spacing: 1px;
border-collapse: separate;
}
.tabled {
width: 25%;
}
dt#color_palette_placeholder table {
@@ -2049,8 +2053,6 @@ fieldset.permissions .padding {
}
.permissions-category ul {
display: flex;
flex-wrap: wrap;
margin: 0;
padding: 0;
list-style: none;
@@ -2104,6 +2106,7 @@ fieldset.permissions .padding {
.permissions-category .activetab a span.tabbg {
background-position: 100% 0;
padding-bottom: 7px;
color: #333333;
}
@@ -2298,10 +2301,6 @@ fieldset.permissions .padding {
margin: 0 !important;
}
.permissions-category ul {
display: block;
}
.permissions-category a, .permissions-category a span.tabbg {
display: block;
float: none !important;

View File

@@ -228,6 +228,64 @@ function parse_document(container)
});
}
/**
* Extension actions helper functions
*/
function move_to_enabled(element)
{
var disabled_header = document.querySelector('#ext_disabled_header');
disabled_header.parentNode.insertBefore(element, disabled_header);
element.classList.remove('ext_disabled');
element.classList.add('ext_enabled');
}
function move_to_disabled(element)
{
var table_body = document.querySelector('#ext_disabled_header').parentNode;
table_body.appendChild(element);
element.classList.remove('ext_enabled');
element.classList.add('ext_disabled');
}
function set_actions(container, actions) {
container.innerHTML = '';
for (var i = 0; i < actions.length; i++) {
var a = document.createElement('a');
a.href = actions[i].U_ACTION.split('&amp;').join('&'); // replace all occurances
a.title = actions[i].L_ACTION_EXPLAIN;
if (actions[i].COLOR) {
a.style = actions[i].COLOR;
}
a.innerHTML = actions[i].L_ACTION;
// ajaxify this action as well
phpbb.ajaxify({
selector: a,
refresh: true,
callback: actions[i].ACTION_AJAX
});
container.appendChild(a);
if (i < actions.length - 1) {
container.innerHTML += '&nbsp;|&nbsp;';
}
}
}
function show_enabled_header() {
document.querySelector('#ext_enabled_header').classList.remove('hidden');
}
function show_disabled_header() {
document.querySelector('#ext_disabled_header').classList.remove('hidden');
}
function hide_disabled_header_if_empty() {
if (!document.querySelector('.ext_disabled')) {
document.querySelector('#ext_disabled_header').classList.add('hidden');
}
}
function hide_enabled_header_if_empty() {
if (!document.querySelector('.ext_enabled')) {
document.querySelector('#ext_enabled_header').classList.add('hidden');
}
}
/**
* Run onload functions
*/

View File

@@ -157,6 +157,34 @@ phpbb.addAjaxCallback('row_delete', function(res) {
}
});
/**
* Callbacks for extension actions
*/
phpbb.addAjaxCallback('ext_enable', function(res) {
if (res.EXT_ENABLE_SUCCESS) {
move_to_enabled(this.parentNode.parentNode);
set_actions(this.parentNode, res.ACTIONS);
show_enabled_header();
hide_disabled_header_if_empty();
}
});
phpbb.addAjaxCallback('ext_delete_data', function(res) {
if (res.EXT_DELETE_DATA_SUCCESS) {
move_to_disabled(this.parentNode.parentNode);
set_actions(this.parentNode, res.ACTIONS);
show_disabled_header();
hide_enabled_header_if_empty();
}
});
phpbb.addAjaxCallback('ext_disable', function(res) {
if (res.EXT_DISABLE_SUCCESS) {
move_to_disabled(this.parentNode.parentNode);
set_actions(this.parentNode, res.ACTIONS);
show_disabled_header();
hide_enabled_header_if_empty();
}
});
/**
* Handler for submitting permissions form in chunks
* This call will submit permissions forms in chunks of 5 fieldsets.
@@ -173,9 +201,7 @@ function submitPermissions() {
var permissionSubmitSize = 0,
permissionRequestCount = 0,
forumIds = [],
permissionSubmitFailed = false,
clearIndicator = true,
$loadingIndicator;
permissionSubmitFailed = false;
if ($submitAllButton !== $submitButton) {
fieldsetList = $form.find('fieldset#' + $submitButton.closest('fieldset.permissions').id);
@@ -209,8 +235,6 @@ function submitPermissions() {
}
});
$loadingIndicator = phpbb.loadingIndicator();
/**
* Handler for submitted permissions form chunk
*
@@ -226,8 +250,6 @@ function submitPermissions() {
} else if (!permissionSubmitFailed && res.S_USER_NOTICE) {
// Display success message at the end of submitting the form
if (permissionRequestCount >= permissionSubmitSize) {
clearIndicator = true;
var $alert = phpbb.alert(res.MESSAGE_TITLE, res.MESSAGE_TEXT);
var $alertBoxLink = $alert.find('p.alert_text > a');
@@ -277,17 +299,6 @@ function submitPermissions() {
$form.submit();
}, res.REFRESH_DATA.time * 1000); // Server specifies time in seconds
}
} else {
// Still more forms to submit, so do not clear indicator
clearIndicator = false;
}
}
if (clearIndicator) {
phpbb.clearLoadingTimeout();
if ($loadingIndicator) {
$loadingIndicator.fadeOut(phpbb.alertTime);
}
}
}

View File

@@ -5,8 +5,9 @@
<div>{L_RECAPTCHA_NOSCRIPT}</div>
</noscript>
{L_RECAPTCHA_INVISIBLE}
<script src="{RECAPTCHA_SERVER}.js?hl={LA_RECAPTCHA_LANG}" async defer></script>
<div class="g-recaptcha" data-sitekey="{RECAPTCHA_PUBKEY}"></div>
<div class="g-recaptcha" data-sitekey="{RECAPTCHA_PUBKEY}" data-size="invisible"></div>
</dd>
</dl>
<!-- ELSE -->

View File

@@ -23,7 +23,7 @@ installLang = {
</script>
<script src="{T_JQUERY_LINK}"></script>
<!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery.min.js">\x3C/script>');</script><!-- ENDIF -->
<!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery-3.4.1.min.js">\x3C/script>');</script><!-- ENDIF -->
<script src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script>
<!-- INCLUDEJS admin.js -->
{$SCRIPTS}

View File

@@ -34,7 +34,7 @@
</div>
<script src="{T_JQUERY_LINK}"></script>
<!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script><!-- ENDIF -->
<!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery-3.4.1.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script><!-- ENDIF -->
<script src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script>
<!-- INCLUDEJS ajax.js -->
<!-- INCLUDEJS admin.js -->

View File

@@ -4,7 +4,7 @@
<h1>{L_ACP_FORUM_PERMISSIONS_COPY}</h1>
{L_ACP_FORUM_PERMISSIONS_COPY_EXPLAIN}
<p>{L_ACP_FORUM_PERMISSIONS_COPY_EXPLAIN}</p>
<form id="forum_perm_copy" method="post" action="{U_ACTION}">

View File

@@ -269,13 +269,7 @@ function mark_one_option(id, field_name, s) {
}
/**
* (Re)set the permission role dropdown.
*
* Try and match the set permissions to an existing role.
* Otherwise reset the dropdown to "Select a role.."
*
* @param {string} id The fieldset identifier
* @returns {void}
* Reset role dropdown field to Select role... if an option gets changed
*/
function reset_role(id) {
var t = document.getElementById(id);
@@ -284,37 +278,18 @@ function reset_role(id) {
return;
}
// Before resetting the role dropdown, try and match any permission role
var parent = t.parentNode,
roleId = match_role_settings(id.replace('role', 'perm')),
text = no_role_assigned,
index = 0;
t.options[0].selected = true;
// If a role permissions was matched, grab that option's value and index
if (roleId) {
for (var i = 0; i < t.options.length; i++) {
if (parseInt(t.options[i].value, 10) === roleId) {
text = t.options[i].text;
index = i;
break;
}
}
}
// Update the select's value and selected index
t.value = roleId;
t.options[index].selected = true;
// Update the dropdown trigger to show the new value
parent.querySelector('span.dropdown-trigger').innerText = text;
parent.querySelector('input[data-name^=role]').value = roleId;
var parent = t.parentNode;
parent.querySelector('span.dropdown-trigger').innerText = no_role_assigned;
parent.querySelector('input[data-name^=role]').value = '0';
}
/**
* Load role and set options accordingly
*/
function set_role_settings(role_id, target_id) {
var settings = role_options[role_id];
settings = role_options[role_id];
if (!settings) {
return;
@@ -327,51 +302,3 @@ function set_role_settings(role_id, target_id) {
mark_one_option(target_id, r, (settings[r] === 1) ? 'y' : 'n');
}
}
/**
* Match the set permissions against the available roles.
*
* @param {string} id The parent fieldset identifier
* @return {number} The permission role identifier
*/
function match_role_settings(id) {
var fieldset = document.getElementById(id),
radios = fieldset.getElementsByTagName('input'),
set = {};
// Iterate over all the radio buttons
for (var i = 0; i < radios.length; i++) {
var matches = radios[i].id.match(/setting\[\d+]\[\d+]\[([a-z_]+)]/);
// Make sure the name attribute matches, the radio is checked and it is not the "No" (-1) value.
if (matches !== null && radios[i].checked && radios[i].value !== '-1') {
set[matches[1]] = parseInt(radios[i].value, 10);
}
}
// Sort and stringify the 'set permissions' object
set = sort_and_stringify(set);
// Iterate over the available role options and return the first match
for (var r in role_options)
{
if (sort_and_stringify(role_options[r]) === set) {
return parseInt(r, 10);
}
}
return 0;
}
/**
* Sort and stringify an Object so it can be easily compared against another object.
*
* @param {object} obj The object to sort (by key) and stringify
* @return {string} The sorted object as a string
*/
function sort_and_stringify(obj) {
return JSON.stringify(Object.keys(obj).sort().reduce(function (result, key) {
result[key] = obj[key];
return result;
}, {}));
}

View File

@@ -17,7 +17,7 @@
</div>
<script src="{T_JQUERY_LINK}"></script>
<!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script><!-- ENDIF -->
<!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery-3.4.1.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script><!-- ENDIF -->
<script src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script>
<!-- EVENT acp_simple_footer_after -->

View File

@@ -218,6 +218,23 @@ $(function() {
// Prepare dropdown
phpbb.prepareRolesDropdown();
// Reset role drop-down on modifying permissions in advanced tab
$('div.permissions-switch > a').on('click', function () {
$.each($('input[type=radio][name^="setting["]'), function () {
var $this = $(this);
$this.on('click', function () {
var $rolesOptions = $this.closest('fieldset.permissions').find('.roles-options'),
rolesSelect = $rolesOptions.find('select > option')[0];
// Set selected setting
$rolesOptions.children('span')
.text(rolesSelect.text);
$rolesOptions.children('input[type=hidden]')
.val(rolesSelect.value);
});
});
});
});
})(jQuery); // Avoid conflicts with other libraries

View File

@@ -1,6 +1,6 @@
.cc-window{opacity:1;transition:opacity 1s ease}.cc-window.cc-invisible{opacity:0}.cc-animate.cc-revoke{transition:transform 1s ease}.cc-animate.cc-revoke.cc-top{transform:translateY(-2em)}.cc-animate.cc-revoke.cc-bottom{transform:translateY(2em)}.cc-animate.cc-revoke.cc-active.cc-bottom,.cc-animate.cc-revoke.cc-active.cc-top,.cc-revoke:hover{transform:translateY(0)}.cc-grower{max-height:0;overflow:hidden;transition:max-height 1s}
.cc-link,.cc-revoke:hover{text-decoration:underline}.cc-revoke,.cc-window{position:fixed;overflow:hidden;box-sizing:border-box;font-family:Helvetica,Calibri,Arial,sans-serif;font-size:16px;line-height:1.5em;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;z-index:9999}.cc-window.cc-static{position:static}.cc-window.cc-floating{padding:2em;max-width:24em;-ms-flex-direction:column;flex-direction:column}.cc-window.cc-banner{padding:1em 1.8em;width:100%;-ms-flex-direction:row;flex-direction:row}.cc-revoke{padding:.5em}.cc-header{font-size:18px;font-weight:700}.cc-btn,.cc-close,.cc-link,.cc-revoke{cursor:pointer}.cc-link{opacity:.8;display:inline-block;padding:.2em}.cc-link:hover{opacity:1}.cc-link:active,.cc-link:visited{color:initial}.cc-btn{display:block;padding:.4em .8em;font-size:.9em;font-weight:700;border-width:2px;border-style:solid;text-align:center;white-space:nowrap}.cc-banner .cc-btn:last-child{min-width:140px}.cc-highlight .cc-btn:first-child{background-color:transparent;border-color:transparent}.cc-highlight .cc-btn:first-child:focus,.cc-highlight .cc-btn:first-child:hover{background-color:transparent;text-decoration:underline}.cc-close{display:block;position:absolute;top:.5em;right:.5em;font-size:1.6em;opacity:.9;line-height:.75}.cc-close:focus,.cc-close:hover{opacity:1}
.cc-revoke.cc-top{top:0;left:3em;border-bottom-left-radius:.5em;border-bottom-right-radius:.5em}.cc-revoke.cc-bottom{bottom:0;left:3em;border-top-left-radius:.5em;border-top-right-radius:.5em}.cc-revoke.cc-left{left:3em;right:unset}.cc-revoke.cc-right{right:3em;left:unset}.cc-top{top:1em}.cc-left{left:1em}.cc-right{right:1em}.cc-bottom{bottom:1em}.cc-floating>.cc-link{margin-bottom:1em}.cc-floating .cc-message{display:block;margin-bottom:1em}.cc-window.cc-floating .cc-compliance{-ms-flex:1;flex:1}.cc-window.cc-banner{-ms-flex-align:center;align-items:center}.cc-banner.cc-top{left:0;right:0;top:0}.cc-banner.cc-bottom{left:0;right:0;bottom:0}.cc-banner .cc-message{-ms-flex:1;flex:1}.cc-compliance{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between}.cc-compliance>.cc-btn{-ms-flex:1;flex:1}.cc-btn+.cc-btn{margin-left:.5em}
@media print{.cc-revoke,.cc-window{display:none}}@media screen and (max-width:900px){.cc-btn{white-space:normal}}@media screen and (max-width:414px) and (orientation:portrait),screen and (max-width:736px) and (orientation:landscape){.cc-window.cc-top{top:0}.cc-window.cc-bottom{bottom:0}.cc-window.cc-banner,.cc-window.cc-left,.cc-window.cc-right{left:0;right:0}.cc-window.cc-banner{-ms-flex-direction:column;flex-direction:column}.cc-window.cc-banner .cc-compliance{-ms-flex:1;flex:1}.cc-window.cc-floating{max-width:none}.cc-window .cc-message{margin-bottom:1em}.cc-window.cc-banner{-ms-flex-align:unset;align-items:unset}}
.cc-floating.cc-theme-classic{padding:1.2em;border-radius:5px}.cc-floating.cc-type-info.cc-theme-classic .cc-compliance{text-align:center;display:inline;-ms-flex:none;flex:none}.cc-theme-classic .cc-btn{border-radius:5px}.cc-theme-classic .cc-btn:last-child{min-width:140px}.cc-floating.cc-type-info.cc-theme-classic .cc-btn{display:inline-block}
.cc-theme-edgeless.cc-window{padding:0}.cc-floating.cc-theme-edgeless .cc-message{margin:2em 2em 1.5em}.cc-banner.cc-theme-edgeless .cc-btn{margin:0;padding:.8em 1.8em;height:100%}.cc-banner.cc-theme-edgeless .cc-message{margin-left:1em}.cc-floating.cc-theme-edgeless .cc-btn+.cc-btn{margin-left:0}
.cc-window{opacity:1;-webkit-transition:opacity 1s ease;transition:opacity 1s ease}.cc-window.cc-invisible{opacity:0}.cc-animate.cc-revoke{-webkit-transition:transform 1s ease;-webkit-transition:-webkit-transform 1s ease;transition:-webkit-transform 1s ease;transition:transform 1s ease;transition:transform 1s ease,-webkit-transform 1s ease}.cc-animate.cc-revoke.cc-top{-webkit-transform:translateY(-2em);transform:translateY(-2em)}.cc-animate.cc-revoke.cc-bottom{-webkit-transform:translateY(2em);transform:translateY(2em)}.cc-animate.cc-revoke.cc-active.cc-top{-webkit-transform:translateY(0);transform:translateY(0)}.cc-animate.cc-revoke.cc-active.cc-bottom{-webkit-transform:translateY(0);transform:translateY(0)}.cc-revoke:hover{-webkit-transform:translateY(0);transform:translateY(0)}.cc-grower{max-height:0;overflow:hidden;-webkit-transition:max-height 1s;transition:max-height 1s}
.cc-revoke,.cc-window{position:fixed;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:Helvetica,Calibri,Arial,sans-serif;font-size:16px;line-height:1.5em;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;z-index:9999}.cc-window.cc-static{position:static}.cc-window.cc-floating{padding:2em;max-width:24em;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cc-window.cc-banner{padding:1em 1.8em;width:100%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.cc-revoke{padding:.5em}.cc-revoke:hover{text-decoration:underline}.cc-header{font-size:18px;font-weight:700}.cc-btn,.cc-close,.cc-link,.cc-revoke{cursor:pointer}.cc-link{opacity:.8;display:inline-block;padding:.2em;text-decoration:underline}.cc-link:hover{opacity:1}.cc-link:active,.cc-link:visited{color:initial}.cc-btn{display:block;padding:.4em .8em;font-size:.9em;font-weight:700;border-width:2px;border-style:solid;text-align:center;white-space:nowrap}.cc-highlight .cc-btn:first-child{background-color:transparent;border-color:transparent}.cc-highlight .cc-btn:first-child:focus,.cc-highlight .cc-btn:first-child:hover{background-color:transparent;text-decoration:underline}.cc-close{display:block;position:absolute;top:.5em;right:.5em;font-size:1.6em;opacity:.9;line-height:.75}.cc-close:focus,.cc-close:hover{opacity:1}
.cc-revoke.cc-top{top:0;left:3em;border-bottom-left-radius:.5em;border-bottom-right-radius:.5em}.cc-revoke.cc-bottom{bottom:0;left:3em;border-top-left-radius:.5em;border-top-right-radius:.5em}.cc-revoke.cc-left{left:3em;right:unset}.cc-revoke.cc-right{right:3em;left:unset}.cc-top{top:1em}.cc-left{left:1em}.cc-right{right:1em}.cc-bottom{bottom:1em}.cc-floating>.cc-link{margin-bottom:1em}.cc-floating .cc-message{display:block;margin-bottom:1em}.cc-window.cc-floating .cc-compliance{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}.cc-window.cc-banner{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cc-banner.cc-top{left:0;right:0;top:0}.cc-banner.cc-bottom{left:0;right:0;bottom:0}.cc-banner .cc-message{display:block;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;max-width:100%;margin-right:1em}.cc-compliance{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:justify;align-content:space-between}.cc-floating .cc-compliance>.cc-btn{-webkit-box-flex:1;-ms-flex:1;flex:1}.cc-btn+.cc-btn{margin-left:.5em}
@media print{.cc-revoke,.cc-window{display:none}}@media screen and (max-width:900px){.cc-btn{white-space:normal}}@media screen and (max-width:414px) and (orientation:portrait),screen and (max-width:736px) and (orientation:landscape){.cc-window.cc-top{top:0}.cc-window.cc-bottom{bottom:0}.cc-window.cc-banner,.cc-window.cc-floating,.cc-window.cc-left,.cc-window.cc-right{left:0;right:0}.cc-window.cc-banner{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cc-window.cc-banner .cc-compliance{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.cc-window.cc-floating{max-width:none}.cc-window .cc-message{margin-bottom:1em}.cc-window.cc-banner{-webkit-box-align:unset;-ms-flex-align:unset;align-items:unset}.cc-window.cc-banner .cc-message{margin-right:0}}
.cc-floating.cc-theme-classic{padding:1.2em;border-radius:5px}.cc-floating.cc-type-info.cc-theme-classic .cc-compliance{text-align:center;display:inline;-webkit-box-flex:0;-ms-flex:none;flex:none}.cc-theme-classic .cc-btn{border-radius:5px}.cc-theme-classic .cc-btn:last-child{min-width:140px}.cc-floating.cc-type-info.cc-theme-classic .cc-btn{display:inline-block}
.cc-theme-edgeless.cc-window{padding:0}.cc-floating.cc-theme-edgeless .cc-message{margin:2em;margin-bottom:1.5em}.cc-banner.cc-theme-edgeless .cc-btn{margin:0;padding:.8em 1.8em;height:100%}.cc-banner.cc-theme-edgeless .cc-message{margin-left:1em}.cc-floating.cc-theme-edgeless .cc-btn+.cc-btn{margin-left:0}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,9 @@ phpbb.alertTime = 100;
var keymap = {
TAB: 9,
ENTER: 13,
ESC: 27
ESC: 27,
ARROW_UP: 38,
ARROW_DOWN: 40
};
var $dark = $('#darkenwrapper');
@@ -561,7 +563,7 @@ phpbb.search.setValue = function($input, value, multiline) {
phpbb.search.setValueOnClick = function($input, value, $row, $container) {
$row.click(function() {
phpbb.search.setValue($input, value.result, $input.attr('data-multiline'));
$container.hide();
phpbb.search.closeResults($input, $container);
});
};
@@ -575,7 +577,7 @@ phpbb.search.setValueOnClick = function($input, value, $row, $container) {
* @param {object} event Onkeyup event object.
* @param {function} sendRequest Function to execute AJAX request.
*
* @returns {bool} Returns false.
* @returns {boolean} Returns false.
*/
phpbb.search.filter = function(data, event, sendRequest) {
var $this = $(this),
@@ -584,9 +586,16 @@ phpbb.search.filter = function(data, event, sendRequest) {
searchID = $this.attr('data-results'),
keyword = phpbb.search.getKeyword($this, data[dataName], $this.attr('data-multiline')),
cache = phpbb.search.cache.get(searchID),
key = event.keyCode || event.which,
proceed = true;
data[dataName] = keyword;
// No need to search if enter was pressed
// for selecting a value from the results.
if (key === keymap.ENTER) {
return false;
}
if (cache.timeout) {
clearTimeout(cache.timeout);
}
@@ -697,6 +706,8 @@ phpbb.search.showResults = function(results, $input, $container, callback) {
row.appendTo($resultContainer).show();
});
$container.show();
phpbb.search.navigateResults($input, $container, $resultContainer);
};
/**
@@ -708,11 +719,95 @@ phpbb.search.clearResults = function($container) {
$container.children(':not(.search-result-tpl)').remove();
};
/**
* Close search results.
*
* @param {jQuery} $input Search input|textarea.
* @param {jQuery} $container Search results container.
*/
phpbb.search.closeResults = function($input, $container) {
$input.off('.phpbb.search');
$container.hide();
};
/**
* Navigate search results.
*
* @param {jQuery} $input Search input|textarea.
* @param {jQuery} $container Search results container.
* @param {jQuery} $resultContainer Search results list container.
*/
phpbb.search.navigateResults = function($input, $container, $resultContainer) {
// Add a namespace to the event (.phpbb.search),
// so it can be unbound specifically later on.
// Rebind it, to ensure the event is 'dynamic'.
$input.off('.phpbb.search');
$input.on('keydown.phpbb.search', function(event) {
var key = event.keyCode || event.which,
$active = $resultContainer.children('.active');
switch (key) {
// Close the results
case keymap.ESC:
phpbb.search.closeResults($input, $container);
break;
// Set the value for the selected result
case keymap.ENTER:
if ($active.length) {
var value = $active.find('.search-result > span').text();
phpbb.search.setValue($input, value, $input.attr('data-multiline'));
}
phpbb.search.closeResults($input, $container);
// Do not submit the form
event.preventDefault();
break;
// Navigate the results
case keymap.ARROW_DOWN:
case keymap.ARROW_UP:
var up = key === keymap.ARROW_UP,
$children = $resultContainer.children();
if (!$active.length) {
if (up) {
$children.last().addClass('active');
} else {
$children.first().addClass('active');
}
} else if ($children.length > 1) {
if (up) {
if ($active.is(':first-child')) {
$children.last().addClass('active');
} else {
$active.prev().addClass('active');
}
} else {
if ($active.is(':last-child')) {
$children.first().addClass('active');
} else {
$active.next().addClass('active');
}
}
$active.removeClass('active');
}
// Do not change cursor position in the input element
event.preventDefault();
break;
}
});
};
$('#phpbb').click(function() {
var $this = $(this);
if (!$this.is('.live-search') && !$this.parents().is('.live-search')) {
$('.live-search').hide();
phpbb.search.closeResults($('input, textarea'), $('.live-search'));
}
});
@@ -853,10 +948,7 @@ phpbb.timezonePreselectSelect = function(forceSelector) {
var minutes = offset % 60;
var hours = (offset - minutes) / 60;
if (hours === 0) {
hours = '00';
sign = '+';
} else if (hours < 10) {
if (hours < 10) {
hours = '0' + hours.toString();
} else {
hours = hours.toString();
@@ -1495,7 +1587,7 @@ phpbb.colorPalette = function(dir, width, height) {
* @param {jQuery} el jQuery object for the palette container.
*/
phpbb.registerPalette = function(el) {
var orientation = el.attr('data-orientation'),
var orientation = el.attr('data-color-palette') || el.attr('data-orientation'), // data-orientation kept for backwards compat.
height = el.attr('data-height'),
width = el.attr('data-width'),
target = el.attr('data-target'),
@@ -1653,6 +1745,50 @@ phpbb.lazyLoadAvatars = function loadAvatars() {
});
};
var recaptchaForm = $('.g-recaptcha').parents('form');
var submitButton = null;
var programaticallySubmitted = false;
phpbb.recaptchaOnLoad = function () {
// Listen to submit buttons in order to know which one was pressed
$('input[type="submit"]').each(function () {
$(this).on('click', function () {
submitButton = this;
});
});
recaptchaForm.on('submit', function (e) {
if (!programaticallySubmitted) {
grecaptcha.execute();
e.preventDefault();
}
});
}
phpbb.recaptchaOnSubmit = function () {
programaticallySubmitted = true;
// If concrete button was clicked (e.g. preview instead of submit),
// let's trigger the same action
if (submitButton) {
submitButton.click();
} else {
// Rename input[name="submit"] so that we can submit the form
if (typeof recaptchaForm.submit !== 'function') {
recaptchaForm.submit.name = 'submit_btn';
}
recaptchaForm.submit();
}
}
// reCAPTCHA doesn't accept callback functions nested inside objects
// so we need to make this helper functions here
window.phpbbRecaptchaOnLoad = function() {
phpbb.recaptchaOnLoad();
}
window.phpbbRecaptchaOnSubmit = function() {
phpbb.recaptchaOnSubmit();
}
$(window).on('load', phpbb.lazyLoadAvatars);
/**
@@ -1665,7 +1801,7 @@ $(function() {
phpbb.registerPageDropdowns();
$('[data-orientation]').each(function() {
$('[data-color-palette], [data-orientation]').each(function() {
phpbb.registerPalette($(this));
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -12,7 +12,7 @@
*/
/**
* Minimum Requirement: PHP 5.4.0
* Minimum Requirement: PHP 7.1.0
*/
if (!defined('IN_PHPBB'))
@@ -132,6 +132,8 @@ catch (InvalidArgumentException $e)
$phpbb_class_loader->set_cache($phpbb_container->get('cache.driver'));
$phpbb_class_loader_ext->set_cache($phpbb_container->get('cache.driver'));
$phpbb_container->get('dbal.conn')->set_debug_sql_explain($phpbb_container->getParameter('debug.sql_explain'));
$phpbb_container->get('dbal.conn')->set_debug_load_time($phpbb_container->getParameter('debug.load_time'));
require($phpbb_root_path . 'includes/compatibility_globals.' . $phpEx);
register_compatibility_globals();

View File

@@ -25,51 +25,50 @@
"phpbb/phpbb-core": "self.version"
},
"require": {
"php": ">=5.4",
"bantu/ini-get-wrapper": "1.0.*",
"php": ">=7.1",
"ext-json": "*",
"bantu/ini-get-wrapper": "~1.0",
"google/recaptcha": "~1.1",
"guzzlehttp/guzzle": "~5.3",
"guzzlehttp/guzzle": "~6.3",
"lusitanian/oauth": "^0.8.1",
"marc1706/fast-image-size": "^1.1",
"paragonie/random_compat": "^2.0",
"patchwork/utf8": "^1.1",
"s9e/text-formatter": "^1.3",
"symfony/config": "^2.8",
"symfony/console": "^2.8",
"symfony/debug": "^2.8",
"symfony/dependency-injection": "^2.8",
"symfony/event-dispatcher": "^2.8",
"symfony/filesystem": "^2.8",
"symfony/finder": "^2.8",
"symfony/http-foundation": "^2.8",
"symfony/http-kernel": "^2.8",
"symfony/proxy-manager-bridge": "^2.8",
"symfony/routing": "^2.8",
"symfony/twig-bridge": "^2.8",
"symfony/yaml": "^2.8",
"twig/twig": "^1.0"
"s9e/text-formatter": "^2.0",
"symfony/config": "~3.4",
"symfony/console": "~3.4",
"symfony/debug": "~3.4",
"symfony/dependency-injection": "~3.4",
"symfony/event-dispatcher": "~3.4",
"symfony/filesystem": "~3.4",
"symfony/finder": "~3.4",
"symfony/http-foundation": "~3.4",
"symfony/http-kernel": "~3.4",
"symfony/proxy-manager-bridge": "~3.4",
"symfony/routing": "~3.4",
"symfony/twig-bridge": "~3.4",
"symfony/yaml": "~3.4",
"twig/twig": "^1.0 || ^2.0"
},
"require-dev": {
"fabpot/goutte": "~2.0",
"facebook/webdriver": "~1.1",
"laravel/homestead": "~2.2",
"phing/phing": "2.4.*",
"phpunit/dbunit": "1.3.*",
"phpunit/phpunit": "^4.1",
"sami/sami": "1.*",
"squizlabs/php_codesniffer": "2.*",
"symfony/browser-kit": "^2.8",
"symfony/css-selector": "^2.8",
"symfony/dom-crawler": "^2.8"
"fabpot/goutte": "~3.2",
"facebook/webdriver": "~1.6",
"laravel/homestead": "~7.0",
"phing/phing": "~2.4",
"phpunit/dbunit": "~4.0",
"phpunit/phpunit": "^7.0",
"squizlabs/php_codesniffer": "~3.4",
"symfony/browser-kit": "~3.4",
"symfony/css-selector": "~3.4",
"symfony/dom-crawler": "~3.4"
},
"extra": {
"branch-alias": {
"dev-master": "3.2.x-dev"
"dev-master": "3.3.x-dev"
}
},
"config": {
"platform": {
"php": "5.4.7"
"php": "7.1"
}
}
}

2803
phpBB/composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -14,6 +14,8 @@ parameters:
# List of default password driver types
passwords.algorithms:
- passwords.driver.argon2id
- passwords.driver.argon2i
- passwords.driver.bcrypt_2y
- passwords.driver.bcrypt
- passwords.driver.salted_md5

View File

@@ -27,6 +27,7 @@ imports:
- { resource: services_text_formatter.yml }
- { resource: services_text_reparser.yml }
- { resource: services_twig.yml }
- { resource: services_ucp.yml }
- { resource: services_user.yml }
- { resource: tables.yml }

View File

@@ -15,12 +15,12 @@ services:
auth.provider.db:
class: phpbb\auth\provider\db
arguments:
- '@dbal.conn'
- '@captcha.factory'
- '@config'
- '@dbal.conn'
- '@passwords.manager'
- '@request'
- '@user'
- '@service_container'
- '%core.root_path%'
- '%core.php_ext%'
tags:
@@ -29,9 +29,9 @@ services:
auth.provider.apache:
class: phpbb\auth\provider\apache
arguments:
- '@dbal.conn'
- '@config'
- '@passwords.manager'
- '@dbal.conn'
- '@language'
- '@request'
- '@user'
- '%core.root_path%'
@@ -42,9 +42,9 @@ services:
auth.provider.ldap:
class: phpbb\auth\provider\ldap
arguments:
- '@dbal.conn'
- '@config'
- '@passwords.manager'
- '@dbal.conn'
- '@language'
- '@user'
tags:
- { name: auth.provider }
@@ -52,18 +52,18 @@ services:
auth.provider.oauth:
class: phpbb\auth\provider\oauth\oauth
arguments:
- '@dbal.conn'
- '@config'
- '@passwords.manager'
- '@dbal.conn'
- '@auth.provider.db'
- '@dispatcher'
- '@language'
- '@request'
- '@auth.provider.oauth.service_collection'
- '@user'
- '%tables.auth_provider_oauth_token_storage%'
- '%tables.auth_provider_oauth_states%'
- '%tables.auth_provider_oauth_account_assoc%'
- '@auth.provider.oauth.service_collection'
- '%tables.users%'
- '@service_container'
- '@dispatcher'
- '%core.root_path%'
- '%core.php_ext%'
tags:

View File

@@ -128,7 +128,6 @@ services:
- '@user'
- '@ext.manager'
- '@log'
- '%cache.driver.class%'
tags:
- { name: console.command }
@@ -138,7 +137,6 @@ services:
- '@user'
- '@ext.manager'
- '@log'
- '%cache.driver.class%'
tags:
- { name: console.command }
@@ -148,7 +146,6 @@ services:
- '@user'
- '@ext.manager'
- '@log'
- '%cache.driver.class%'
tags:
- { name: console.command }
@@ -158,15 +155,6 @@ services:
- '@user'
- '@ext.manager'
- '@log'
- '%cache.driver.class%'
tags:
- { name: console.command }
console.command.fixup.recalculate_email_hash:
class: phpbb\console\command\fixup\recalculate_email_hash
arguments:
- '@user'
- '@dbal.conn'
tags:
- { name: console.command }

View File

@@ -3,6 +3,7 @@ services:
class: phpbb\cron\manager
arguments:
- '@cron.task_collection'
- '@routing.helper'
- '%core.root_path%'
- '%core.php_ext%'
@@ -13,6 +14,18 @@ services:
- '@config'
- '@dbal.conn'
cron.controller:
class: phpbb\cron\controller\cron
cron.event_listener:
class: phpbb\cron\event\cron_runner_listener
arguments:
- '@cron.lock_db'
- '@cron.manager'
- '@request'
tags:
- { name: kernel.event_subscriber }
# ----- Cron tasks -----
cron.task_collection:
class: phpbb\di\service_collection

View File

@@ -1,4 +1,7 @@
parameters:
passwords.driver.argon2_memory_cost: 1024
passwords.driver.argon2_threads: 2
passwords.driver.argon2_time_cost: 2
passwords.driver.bcrypt_cost: 10
services:
@@ -27,6 +30,23 @@ services:
tags:
- { name: service_collection, tag: passwords.driver }
passwords.driver.argon2i:
class: phpbb\passwords\driver\argon2i
arguments:
- '@config'
- '@passwords.driver_helper'
- '%passwords.driver.argon2_memory_cost%'
- '%passwords.driver.argon2_threads%'
- '%passwords.driver.argon2_time_cost%'
tags:
- { name: passwords.driver }
passwords.driver.argon2id:
class: phpbb\passwords\driver\argon2id
parent: passwords.driver.argon2i
tags:
- { name: passwords.driver }
passwords.driver.bcrypt:
class: phpbb\passwords\driver\bcrypt
arguments:

View File

@@ -3,20 +3,15 @@ services:
class: phpbb\profilefields\manager
arguments:
- '@auth'
- '@config_text'
- '@dbal.conn'
- '@dbal.tools'
- '@dispatcher'
- '@language'
- '@log'
- '@request'
- '@template'
- '@profilefields.type_collection'
- '@user'
- '%tables.profile_fields%'
- '%tables.profile_fields_data%'
- '%tables.profile_fields_options_language%'
- '%tables.profile_fields_language%'
- '%tables.profile_fields_data%'
profilefields.lang_helper:
class: phpbb\profilefields\lang_helper

View File

@@ -12,8 +12,6 @@ services:
class: Symfony\Component\HttpKernel\EventListener\RouterListener
arguments:
- '@router'
- null
- null
- '@request_stack'
tags:
- { name: kernel.event_subscriber }

View File

@@ -4,6 +4,11 @@ parameters:
text_formatter.cache.renderer.key: _text_formatter_renderer
services:
text_formatter.acp_utils:
class: phpbb\textformatter\s9e\acp_utils
arguments:
- '@text_formatter.s9e.factory'
text_formatter.cache:
alias: text_formatter.s9e.factory

View File

@@ -38,10 +38,23 @@ services:
class: phpbb\template\twig\extension
arguments:
- '@template_context'
- '@template.twig.environment'
- '@language'
tags:
- { name: twig.extension }
template.twig.extensions.avatar:
class: phpbb\template\twig\extension\avatar
tags:
- { name: twig.extension }
template.twig.extensions.config:
class: phpbb\template\twig\extension\config
arguments:
- '@config'
tags:
- { name: twig.extension }
template.twig.extensions.routing:
class: phpbb\template\twig\extension\routing
arguments:
@@ -49,6 +62,11 @@ services:
tags:
- { name: twig.extension }
template.twig.extensions.username:
class: phpbb\template\twig\extension\username
tags:
- { name: twig.extension }
template.twig.extensions.debug:
class: Twig_Extension_Debug

View File

@@ -0,0 +1,17 @@
services:
phpbb.ucp.controller.reset_password:
class: phpbb\ucp\controller\reset_password
arguments:
- '@config'
- '@dbal.conn'
- '@dispatcher'
- '@controller.helper'
- '@language'
- '@log'
- '@passwords.manager'
- '@request'
- '@template'
- '@user'
- '%tables.users%'
- '%core.root_path%'
- '%core.php_ext%'

View File

@@ -0,0 +1,3 @@
phpbb_cron_run:
path: /{cron_type}
defaults: { _controller: cron.controller:handle }

View File

@@ -8,6 +8,10 @@
# instantiate the 'foo_service' service and call the 'method' method.
#
phpbb_cron_routing:
resource: cron.yml
prefix: /cron
phpbb_feed_routing:
resource: feed.yml
prefix: /feed
@@ -22,3 +26,7 @@ phpbb_help_routing:
phpbb_report_routing:
resource: report.yml
phpbb_ucp_routing:
resource: ucp.yml
prefix: /user

View File

@@ -0,0 +1,7 @@
phpbb_ucp_reset_password_controller:
path: /reset_password
defaults: { _controller: phpbb.ucp.controller.reset_password:reset }
phpbb_ucp_forgot_password_controller:
path: /forgot_password
defaults: { _controller: phpbb.ucp.controller.reset_password:request }

View File

@@ -3,11 +3,19 @@ imports:
core:
require_dev_dependencies: true
allow_install_dir: true
debug:
exceptions: true
load_time: true
sql_explain: true
memory: true
show_errors: true
twig:
debug: true
auto_reload: true
enable_debug_extension: true
session:
log_errors: true

View File

@@ -3,3 +3,4 @@ imports:
core:
require_dev_dependencies: true
allow_install_dir: true

View File

@@ -11,10 +11,11 @@
*
*/
use Symfony\Component\HttpFoundation\RedirectResponse;
/**
*/
define('IN_PHPBB', true);
define('IN_CRON', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
@@ -23,62 +24,14 @@ include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin(false);
$auth->acl($user->data);
function output_image()
{
// Output transparent gif
header('Cache-Control: no-cache');
header('Content-type: image/gif');
header('Content-length: 43');
echo base64_decode('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==');
// Flush here to prevent browser from showing the page as loading while
// running cron.
flush();
}
// Thanks to various fatal errors and lack of try/finally, it is quite easy to leave
// the cron lock locked, especially when working on cron-related code.
//
// Attempt to alleviate the problem by doing setup outside of the lock as much as possible.
$cron_type = $request->variable('cron_type', '');
// Comment this line out for debugging so the page does not return an image.
output_image();
$get_params_array = $request->get_super_global(\phpbb\request\request_interface::GET);
/* @var $cron_lock \phpbb\lock\db */
$cron_lock = $phpbb_container->get('cron.lock_db');
if ($cron_lock->acquire())
{
/* @var $cron \phpbb\cron\manager */
$cron = $phpbb_container->get('cron.manager');
$task = $cron->find_task($cron_type);
if ($task)
{
/**
* This event enables you to catch the task before it runs
*
* @event core.cron_run_before
* @var \phpbb\cron\task\wrapper task Current Cron task
* @since 3.1.8-RC1
*/
$vars = array(
'task',
/** @var \phpbb\controller\helper $controller_helper */
$controller_helper = $phpbb_container->get('controller.helper');
$response = new RedirectResponse(
$controller_helper->route('phpbb_cron_run', $get_params_array, false),
301
);
extract($phpbb_dispatcher->trigger_event('core.cron_run_before', compact($vars)));
if ($task->is_parametrized())
{
$task->parse_parameters($request);
}
if ($task->is_ready())
{
$task->run();
}
}
$cron_lock->release();
}
garbage_collection();
$response->send();

View File

@@ -156,7 +156,6 @@ $u_permissions = array(
'u_download' => array(0, 1),
'u_attach' => array(0, 1),
'u_sig' => array(0, 1),
'u_emoji' => array(0, 1),
'u_pm_attach' => array(0, 1),
'u_pm_bbcode' => array(0, 1),
'u_pm_smilies' => array(0, 1),
@@ -375,11 +374,6 @@ function mass_auth($ug_type, $forum_id, $ug_id, $acl_list, $setting)
case 'insert':
switch ($db->get_sql_layer())
{
case 'mysql':
case 'mysql4':
$sql = 'VALUES ' . implode(', ', preg_replace('#^(.*?)$#', '(\1)', $sql_subary));
break;
case 'sqlite3':
$sql = implode(' UNION ALL ', preg_replace('#^(.*?)$#', 'SELECT \1', $sql_subary));
break;

View File

@@ -1,74 +0,0 @@
<?php
/**
*
* 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.
*
*/
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
@set_time_limit(300);
$db = $dbhost = $dbuser = $dbpasswd = $dbport = $dbname = '';
define('IN_PHPBB', 1);
define('ANONYMOUS', 1);
$phpEx = substr(strrchr(__FILE__, '.'), 1);
$phpbb_root_path='./../';
include($phpbb_root_path . 'config.'.$phpEx);
require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.'.$phpEx);
require($phpbb_root_path . 'includes/db/' . $dbms . '.'.$phpEx);
include($phpbb_root_path . 'includes/functions.'.$phpEx);
$cache = new acm();
$db = new sql_db();
// Connect to DB
$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false);
$start = 0;
do
{
// Batch query for group members, call group_user_del
$sql = "SELECT user_id, user_email
FROM {$table_prefix}users
LIMIT $start, 100";
$result = $db->sql_query($sql);
if ($row = $db->sql_fetchrow($result))
{
do
{
$sql = "UPDATE {$table_prefix}users
SET user_email_hash = " . (crc32(strtolower($row['user_email'])) . strlen($row['user_email'])) . '
WHERE user_id = ' . $row['user_id'];
$db->sql_query($sql);
$start++;
}
while ($row = $db->sql_fetchrow($result));
echo "<br />Batch -> $start\n";
flush();
}
else
{
$start = 0;
}
$db->sql_freeresult($result);
}
while ($start);
echo "<p><b>Done</b></p>\n";

View File

@@ -21,7 +21,6 @@
$schema_path = dirname(__FILE__) . '/../install/schemas/';
$supported_dbms = array(
'mssql',
'mysql_40',
'mysql_41',
'oracle',
'postgres',

View File

@@ -1,212 +0,0 @@
<?php
/**
*
* 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.
*
*/
/**
* This file creates SQL statements to upgrade phpBB on MySQL 3.x/4.0.x to 4.1.x/5.x
*/
//
// Security message:
//
// This script is potentially dangerous.
// Remove or comment the next line (die(".... ) to enable this script.
// Do NOT FORGET to either remove this script or disable it after you have used it.
//
die("Please read the first lines of this script for instructions on how to enable it");
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$prefix = $table_prefix;
$newline = "\n";
if (PHP_SAPI !== 'cli')
{
$newline = '<br>';
}
$sql = 'DESCRIBE ' . POSTS_TABLE . ' post_text';
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$mysql_indexer = $drop_index = false;
if (strtolower($row['Type']) === 'mediumtext')
{
$mysql_indexer = true;
}
if (strtolower($row['Key']) === 'mul')
{
$drop_index = true;
}
echo "USE $dbname;$newline$newline";
@set_time_limit(0);
$finder = new \phpbb\finder(new \phpbb\filesystem\filesystem(), $phpbb_root_path);
$classes = $finder->core_path('phpbb/')
->directory('/db/migration/data')
->get_classes();
$factory = new \phpbb\db\tools\factory();
$db_tools = $factory->get($db, true);
$schema_generator = new \phpbb\db\migration\schema_generator($classes, $config, $db, $db_tools, $phpbb_root_path, $phpEx, $table_prefix);
$schema_data = $schema_generator->get_schema();
$dbms_type_map = \phpbb\db\tools\tools::get_dbms_type_map();
foreach ($schema_data as $table_name => $table_data)
{
$table_name = str_replace('phpbb_', $prefix, $table_name);
// Write comment about table
echo "# Table: '{$table_name}'$newline";
// Create Table statement
$generator = $textimage = false;
// Do we need to DROP a fulltext index before we alter the table?
if ($table_name == ($prefix . 'posts') && $drop_index)
{
echo "ALTER TABLE {$table_name}{$newline}";
echo "DROP INDEX post_text,{$newline}DROP INDEX post_subject,{$newline}DROP INDEX post_content;{$newline}{$newline}";
}
$line = "ALTER TABLE {$table_name} $newline";
// Table specific so we don't get overlap
$modded_array = array();
// Write columns one by one...
foreach ($table_data['COLUMNS'] as $column_name => $column_data)
{
// Get type
if (strpos($column_data[0], ':') !== false)
{
list($orig_column_type, $column_length) = explode(':', $column_data[0]);
$column_type = sprintf($dbms_type_map['mysql_41'][$orig_column_type . ':'], $column_length);
if (isset($dbms_type_map['mysql_40'][$orig_column_type . ':']['limit']) &&
isset($dbms_type_map['mysql_40'][$orig_column_type . ':']['limit'][0]))
{
switch ($dbms_type_map['mysql_40'][$orig_column_type . ':']['limit'][0])
{
case 'mult':
if (($column_length * $dbms_type_map['mysql_40'][$orig_column_type . ':']['limit'][1]) > $dbms_type_map['mysql_40'][$orig_column_type . ':']['limit'][2])
{
$modded_array[$column_name] = $column_type;
}
break;
}
}
$orig_column_type .= ':';
}
else
{
$orig_column_type = $column_data[0];
$other_column_type = $dbms_type_map['mysql_40'][$column_data[0]];
if ($other_column_type == 'text' || $other_column_type == 'blob')
{
$modded_array[$column_name] = $column_type;
}
$column_type = $dbms_type_map['mysql_41'][$column_data[0]];
}
// Adjust default value if db-dependent specified
if (is_array($column_data[1]))
{
$column_data[1] = (isset($column_data[1][$dbms])) ? $column_data[1][$dbms] : $column_data[1]['default'];
}
$line .= "\tMODIFY {$column_name} {$column_type} ";
// For hexadecimal values do not use single quotes
if (!is_null($column_data[1]) && substr($column_type, -4) !== 'text' && substr($column_type, -4) !== 'blob')
{
$line .= (strpos($column_data[1], '0x') === 0) ? "DEFAULT {$column_data[1]} " : "DEFAULT '{$column_data[1]}' ";
}
$line .= 'NOT NULL';
if (isset($column_data[2]))
{
if ($column_data[2] == 'auto_increment')
{
$line .= ' auto_increment';
}
else if ($column_data[2] == 'true_sort')
{
$line .= ' COLLATE utf8_unicode_ci';
}
else if ($column_data[2] == 'no_sort')
{
$line .= ' COLLATE utf8_bin';
}
}
else if (preg_match('/(?:var)?char|(?:medium)?text/i', $column_type))
{
$line .= ' COLLATE utf8_bin';
}
$line .= ",$newline";
}
// Write Keys
if (isset($table_data['KEYS']))
{
foreach ($table_data['KEYS'] as $key_name => $key_data)
{
$temp = '';
if (!is_array($key_data[1]))
{
$key_data[1] = array($key_data[1]);
}
$temp .= ($key_data[0] == 'INDEX') ? "\tADD KEY" : '';
$temp .= ($key_data[0] == 'UNIQUE') ? "\tADD UNIQUE" : '';
$repair = false;
foreach ($key_data[1] as $key => $col_name)
{
if (isset($modded_array[$col_name]))
{
$repair = true;
}
}
if ($repair)
{
$line .= "\tDROP INDEX " . $key_name . ",$newline";
$line .= $temp;
$line .= ' ' . $key_name . ' (' . implode(', ', $key_data[1]) . "),$newline";
}
}
}
//$line .= "\tCONVERT TO CHARACTER SET `utf8`$newline";
$line .= "\tDEFAULT CHARSET=utf8 COLLATE=utf8_bin;$newline$newline";
echo $line . "$newline";
// Do we now need to re-add the fulltext index? ;)
if ($table_name == ($prefix . 'posts') && $drop_index)
{
echo "ALTER TABLE $table_name ADD FULLTEXT (post_subject), ADD FULLTEXT (post_text), ADD FULLTEXT post_content (post_subject, post_text);{$newline}";
}
}

View File

@@ -8,46 +8,6 @@
//
die("Please read the first lines of this script for instructions on how to enable it");
// IP regular expressions
$dec_octet = '(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])';
$h16 = '[\dA-F]{1,4}';
$ipv4 = "(?:$dec_octet\.){3}$dec_octet";
$ls32 = "(?:$h16:$h16|$ipv4)";
$ipv6_construct = array(
array(false, '', '{6}', $ls32),
array(false, '::', '{0,5}', "(?:$h16(?::$h16)?|$ipv4)"),
array('', ':', '{4}', $ls32),
array('{1,2}', ':', '{3}', $ls32),
array('{1,3}', ':', '{2}', $ls32),
array('{1,4}', ':', '', $ls32),
array('{1,5}', ':', false, $ls32),
array('{1,6}', ':', false, $h16),
array('{1,7}', ':', false, ''),
array(false, '::', false, '')
);
$ipv6 = '(?:';
foreach ($ipv6_construct as $ip_type)
{
$ipv6 .= '(?:';
if ($ip_type[0] !== false)
{
$ipv6 .= "(?:$h16:)" . $ip_type[0];
}
$ipv6 .= $ip_type[1];
if ($ip_type[2] !== false)
{
$ipv6 .= "(?:$h16:)" . $ip_type[2];
}
$ipv6 .= $ip_type[3] . ')|';
}
$ipv6 = substr($ipv6, 0, -1) . ')';
echo 'IPv4: ' . $ipv4 . "<br />\nIPv6: " . $ipv6 . "<br />\n";
// URL regular expressions
$pct_encoded = "%[\dA-F]{2}";

View File

@@ -8,45 +8,6 @@
//
die("Please read the first lines of this script for instructions on how to enable it");
// IP regular expressions
$dec_octet = '(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])';
$h16 = '[\dA-F]{1,4}';
$ipv4 = "(?:$dec_octet\.){3}$dec_octet";
$ls32 = "(?:$h16:$h16|$ipv4)";
$ipv6_construct = array(
array(false, '', '{6}', $ls32),
array(false, '::', '{0,5}', "(?:$h16(?::$h16)?|$ipv4)"),
array('', ':', '{4}', $ls32),
array('{1,2}', ':', '{3}', $ls32),
array('{1,3}', ':', '{2}', $ls32),
array('{1,4}', ':', '', $ls32),
array('{1,5}', ':', false, $ls32),
array('{1,6}', ':', false, $h16),
array('{1,7}', ':', false, ''),
array(false, '::', false, '')
);
$ipv6 = '(?:';
foreach ($ipv6_construct as $ip_type)
{
$ipv6 .= '(?:';
if ($ip_type[0] !== false)
{
$ipv6 .= "(?:$h16:)" . $ip_type[0];
}
$ipv6 .= $ip_type[1];
if ($ip_type[2] !== false)
{
$ipv6 .= "(?:$h16:)" . $ip_type[2];
}
$ipv6 .= $ip_type[3] . ')|';
}
$ipv6 = substr($ipv6, 0, -1) . ')';
echo 'IPv4: ' . $ipv4 . "<br /><br />\n\nIPv6: " . $ipv6 . "<br /><br />\n\n";
// URL regular expressions
/* IDN2008 characters derivation

View File

@@ -1,56 +0,0 @@
<?php
/**
* Corrects user_email_hash values if DB moved from 32-bit system to 64-bit system or vice versa.
* The CRC32 function in PHP generates different results for both systems.
* @PHP dev team: no, a hexdec() applied to it does not solve the issue. And please document it.
*
*/
die("Please read the first lines of this script for instructions on how to enable it");
set_time_limit(0);
define('IN_PHPBB', true);
$phpbb_root_path = './../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$start = $request->variable('start', 0);
$num_items = 1000;
echo '<br />Updating user email hashes' . "\n";
$sql = 'SELECT user_id, user_email
FROM ' . USERS_TABLE . '
ORDER BY user_id ASC';
$result = $db->sql_query($sql);
$echos = 0;
while ($row = $db->sql_fetchrow($result))
{
$echos++;
$sql = 'UPDATE ' . USERS_TABLE . "
SET user_email_hash = '" . $db->sql_escape(phpbb_email_hash($row['user_email'])) . "'
WHERE user_id = " . (int) $row['user_id'];
$db->sql_query($sql);
if ($echos == 200)
{
echo '<br />';
$echos = 0;
}
echo '.';
flush();
}
$db->sql_freeresult($result);
echo 'FINISHED';
// Done
$db->sql_close();

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />
<meta name="description" content="phpBB 3.2.x Changelog" />
<meta name="description" content="phpBB 3.3.x Changelog" />
<title>phpBB &bull; Changelog</title>
<link href="assets/css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
@@ -21,7 +21,7 @@
<div id="doc-description">
<a href="../index.php" id="logo"><img src="assets/images/site_logo.gif" alt="" /></a>
<h1>phpBB 3.2.x Changelog</h1>
<h1>phpBB 3.3.x Changelog</h1>
<p style="display: none;"><a href="#start_here">Skip</a></p>
</div>
@@ -36,7 +36,7 @@
<!-- BEGIN DOCUMENT -->
<p class="paragraph main-description">
This is a non-exhaustive (but still near complete) changelog for phpBB 3.2.x including release candidate versions.
This is a non-exhaustive (but still near complete) changelog for phpBB 3.3.x including release candidate versions.
Our thanks to all those people who've contributed bug reports and code fixes.
</p>
@@ -50,10 +50,9 @@
<ol>
<li><a href="#changelog">Changelog</a>
<ul>
<li><a href="#v3210rc1">Changes since 3.2.10-RC1</a></li>
<li><a href="#v329">Changes since 3.2.9</a></li>
<li><a href="#v329rc1">Changes since 3.2.9-RC1</a></li>
<li><a href="#v328">Changes since 3.2.8</a></li>
<li><a href="#v330b2">Changes since 3.3.0-b2</a></li>
<li><a href="#v330b1">Changes since 3.3.0-b1</a></li>
<li><a href="#v32x">Changes since 3.2.x</a></li>
<li><a href="#v328rc1">Changes since 3.2.8-RC1</a></li>
<li><a href="#v327">Changes since 3.2.7</a></li>
<li><a href="#v326">Changes since 3.2.6</a></li>
@@ -144,207 +143,168 @@
<div class="inner">
<div class="content">
<a name="v3210rc1"></a><h3>Changes since 3.2.10-RC1</h3>
<a name="v330b2"></a><h3>Changes since 3.3.0-b2</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16505">PHPBB3-16505</a>] - PHP debug warning while using \phpbb\language\language\lang_array() function</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16507">PHPBB3-16507</a>] - White page when searching users' posts</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16508">PHPBB3-16508</a>] - Whois not working for IPv6 addresses</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16510">PHPBB3-16510</a>] - Missing rows in config table on new install</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16511">PHPBB3-16511</a>] - Fatal error when deleting user in ACP</li>
</ul>
<a name="v329"></a><h3>Changes since 3.2.9</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-10506">PHPBB3-10506</a>] - Not confirming &quot;Save as Draft&quot; strips attachments from PMs</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-13426">PHPBB3-13426</a>] - Timezone related fatal error after upgrade to 3.1.2</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-13867">PHPBB3-13867</a>] - Profile field types need an enable/disable mechanism</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-13914">PHPBB3-13914</a>] - Could not get style data via MySQL DB auto_increment_offset != 1 </li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15194">PHPBB3-15194</a>] - Cannot remove group avatar in UCP (manage group)</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15275">PHPBB3-15275</a>] - Post details: Look up IP links don't properly work</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15395">PHPBB3-15395</a>] - Very slow FTS on PostgreSQL</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15438">PHPBB3-15438</a>] - Use wrong word in ACP for logged administrators actions</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15560">PHPBB3-15560</a>] - Wrong redirection upon hard delete after soft delete in viewtopic</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15591">PHPBB3-15591</a>] - Users with disabled &quot;Can send instant messages&quot; permission can view jabber address</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15712">PHPBB3-15712</a>] - Inserting an emoji in PM subject field causes errors</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15766">PHPBB3-15766</a>] - &quot;No role assigned....&quot; for forum permissions is ambiguous</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15887">PHPBB3-15887</a>] - Firefox confuses username and e-mail when storing passwords</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15979">PHPBB3-15979</a>] - Restoring deleted post on edit does not update last post info</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16060">PHPBB3-16060</a>] - auto-prune of shadow topics triggered by prune_all_forums updates wrong timestamp</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16149">PHPBB3-16149</a>] - Missing profile field data</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16222">PHPBB3-16222</a>] - Timezone suggestion in UCP</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16234">PHPBB3-16234</a>] - Search syntax broken when using Sphinx Fulltext backend</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16245">PHPBB3-16245</a>] - Overflow in MSSQL attempting to manage attachments when collection &gt; 2.1 GB</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16289">PHPBB3-16289</a>] - U_VIEW_REPORT in emails is incorrectly HTML-encoded</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16291">PHPBB3-16291</a>] - MCP Front is missing report time</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16296">PHPBB3-16296</a>] - Unable to delete or mark PMs in UCP folder view</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16310">PHPBB3-16310</a>] - S_SOFTDELETE_ALLOWED condition in posting.php is wrong and causes soft delete option to appear when it should not</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16316">PHPBB3-16316</a>] - navbar_header.html of prosilver style breaks Rich-Markup</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16326">PHPBB3-16326</a>] - Passwort Reset - Template - missing class for new and confirm password</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16332">PHPBB3-16332</a>] - Language strings for CODE and QUOTE are missing in the MCP post details and in the member profiles</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16335">PHPBB3-16335</a>] - $display_cat and $download_link are undefined variables for core.parse_attachments_modify_template_data when $denied is true</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16339">PHPBB3-16339</a>] - Poll's voting options are not fully Ajaxed</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16344">PHPBB3-16344</a>] - phpbb_validate_email uses non-existent language keys</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16348">PHPBB3-16348</a>] - user_ban double free of $result when banning a non-existent or disallowed username on command line</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16356">PHPBB3-16356</a>] - Saving a draft does not delete orphaned attachments from the server</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16358">PHPBB3-16358</a>] - Attachment tab should be removed when there are no filters</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16367">PHPBB3-16367</a>] - Feed controller is not actually setting character set of response</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16377">PHPBB3-16377</a>] - Undefined index navlinks in navbar_header</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16391">PHPBB3-16391</a>] - Language file info_mcp_xxx.php from extensions should be included in ACP</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16399">PHPBB3-16399</a>] - Emoji's in topic title cause errors</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16403">PHPBB3-16403</a>] - Attachment icon always displayed in list of reported message</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16407">PHPBB3-16407</a>] - S_MESSAGE_REPORTED and L_MESSAGE_REPORTED aren't defined anywhere</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16416">PHPBB3-16416</a>] - A non-numeric value encountered in ACP attachments settings</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16418">PHPBB3-16418</a>] - A non-numeric value encountered - ACP board start date</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16422">PHPBB3-16422</a>] - bbcode URL tag breaking URL's?</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16423">PHPBB3-16423</a>] - Add Aria Engine to list of Fulltext Supported</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16428">PHPBB3-16428</a>] - Allowed schemes in links and similar fields should check field content</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16432">PHPBB3-16432</a>] - PHP Fatal error: APCuIterator::__construct(): APC must be enabled to use APCuIterator</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16437">PHPBB3-16437</a>] - Forum permissions don't appear for logged users who cannot post a new topic</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16453">PHPBB3-16453</a>] - Always load permission lang files before core.permissions</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16467">PHPBB3-16467</a>] - phpBB3 does not work with spaces in PostgreSQL database passwords</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16480">PHPBB3-16480</a>] - Fix Emoji in report post</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16485">PHPBB3-16485</a>] - Fix Emoji in logs for warning message</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16486">PHPBB3-16486</a>] - Wrong configuration DB update in 3.2.0-a1 migration</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16487">PHPBB3-16487</a>] - Wrong CDN URL for fontawesome in 3.2.0 migration</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16500">PHPBB3-16500</a>] - Copying topics results in rearranging of inline attachments </li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16503">PHPBB3-16503</a>] - WhoIs lookup has error message in MCP</li>
</ul>
<h4>Improvement</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15370">PHPBB3-15370</a>] - Spinning indicator missing when updating permissions</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15672">PHPBB3-15672</a>] - Keep same format in Submit changes.</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16163">PHPBB3-16163</a>] - No error message when there is no displayed post in the MCP</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16328">PHPBB3-16328</a>] - Inform users about PHP requirements in PHP 3.3</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16350">PHPBB3-16350</a>] - Move acp/mcp ban code to functions_admin.php</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16351">PHPBB3-16351</a>] - Use CHMOD constants from filesystem_interface</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16352">PHPBB3-16352</a>] - Deprecate unused functions/classes</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16370">PHPBB3-16370</a>] - Add core events for Notification</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16381">PHPBB3-16381</a>] - Add core event to Modify Topics SQL</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16383">PHPBB3-16383</a>] - Add core events to modify friends list</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16384">PHPBB3-16384</a>] - Add template events friends list username {prepend/append}</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16388">PHPBB3-16388</a>] - Add new events in viewforum_body.html and viewtopic_body.html</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16406">PHPBB3-16406</a>] - Event core.notification_manager_add_notifications_for_users_modify_data incorrectly placed</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16411">PHPBB3-16411</a>] - Add vars to notification core events</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16421">PHPBB3-16421</a>] - Add contact field icon template events to viewtopic_body.html</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16424">PHPBB3-16424</a>] - Add base_url to generate_smilies events</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16425">PHPBB3-16425</a>] - Add event core.generate_smilies_modify_sql</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16429">PHPBB3-16429</a>] - Add vars to 2 ACP User core events</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16433">PHPBB3-16433</a>] - Add data array to core.ucp_register_user_row_after</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16443">PHPBB3-16443</a>] - Add event core.ucp_pm_compose_modify_parse_after</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16444">PHPBB3-16444</a>] - Add event core.ucp_pm_view_message_before</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16446">PHPBB3-16446</a>] - Add event core.message_history_modify_rowset</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16447">PHPBB3-16447</a>] - Add event core.ucp_pm_compose_compose_pm_basic_info_query_after</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16448">PHPBB3-16448</a>] - Add event core.mcp_get_post_data_after</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16450">PHPBB3-16450</a>] - ACP permission tabs don't use all available space</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16456">PHPBB3-16456</a>] - Add event core.text_formatter_s9e_get_errors</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16458">PHPBB3-16458</a>] - Add template events to acp_profile.html</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16461">PHPBB3-16461</a>] - Ignore .idea and node_modules</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16463">PHPBB3-16463</a>] - Fix &quot;acp_board.php&quot; where &quot;ACP_SUBMIT_CHANGES&quot; is not displayed.</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16468">PHPBB3-16468</a>] - Amend DocBlocks for user_delete()</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16494">PHPBB3-16494</a>] - Update composer and composer dependencies</li>
</ul>
<h4>New Feature</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16329">PHPBB3-16329</a>] - Strip Exif metadata from uploaded image attachments</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16330">PHPBB3-16330</a>] - Enable ACP option to specify image compression level</li>
</ul>
<h4>Sub-task</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16233">PHPBB3-16233</a>] - Enable exact phrase searching with Sphinx Fulltext</li>
</ul>
<h4>Task</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15609">PHPBB3-15609</a>] - Discrepancy and bugs between moderation queue and reports</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16121">PHPBB3-16121</a>] - Add footer-row to simple_footer.html</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16122">PHPBB3-16122</a>] - RANK_IMG, GROUP_RANK and RANK_TITLE variables are useless in some template files</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16392">PHPBB3-16392</a>] - Update composer &amp; dependencies</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16415">PHPBB3-16415</a>] - Use API token for appveyor builds</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16419">PHPBB3-16419</a>] - Add mrgoldy to CREDITS.txt</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16496">PHPBB3-16496</a>] - The help line text for custom BBcode could be wrongly displayed</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16506">PHPBB3-16506</a>] - Update credits to latest state</li>
</ul>
<a name="v329rc1"></a><h3>Changes since 3.2.9-RC1</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15592">PHPBB3-15592</a>] - &quot;Place inline&quot; button appears when BBcode is disabled (Post settings)</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16269">PHPBB3-16269</a>] - Sphinx backend indexes HTML markup as keywords</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16282">PHPBB3-16282</a>] - Default jQuery CDN URL is outdated on new installs</li>
</ul>
<h4>Improvement</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16271">PHPBB3-16271</a>] - Add support for 3.3.x API documentation</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16279">PHPBB3-16279</a>] - Add permission for Emojii in topic title</li>
</ul>
<h4>Security</h4>
<ul>
<li>[SECURITY-249] - Group avatar overwrite on invalid submit</li>
<li>[SECURITY-250] - Group leader can be tricked into approving user</li>
</ul>
<h4>Hardening</h4>
<ul>
<li>[SECURITY-251] - Unwanted move of PMs to folders</li>
<li>[SECURITY-252] - PMs of unsuspecting users can be marked as important</li>
<li>[SECURITY-253] - PM export without proper validation</li>
</ul>
<a name="v328"></a><h3>Changes since 3.2.8</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-14815">PHPBB3-14815</a>] - The facebook page link is not displayed properly in memberlist.php</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15643">PHPBB3-15643</a>] - $phpbb_filesystem-&gt;resolve_path() may trigger open_basedir restriction</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15902">PHPBB3-15902</a>] - Out of range error with Sphinx search</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16056">PHPBB3-16056</a>] - JPEG dimensions undetectable for some kind of jpeg files</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16076">PHPBB3-16076</a>] - Limit attachment size by extension group</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16141">PHPBB3-16141</a>] - plupload chunk_size calculation incorrect when one or more settings are 'unlimited'</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16150">PHPBB3-16150</a>] - Post title link urls not reliable when shared</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16156">PHPBB3-16156</a>] - Bots see both register and logout links in the navbar</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16157">PHPBB3-16157</a>] - Incorrect FORM_INVALID error message while sending email form</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16181">PHPBB3-16181</a>] - OAuth provider id needs to be quoted</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16184">PHPBB3-16184</a>] - Mark read button only works once</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16199">PHPBB3-16199</a>] - Guest posting CAPTCHA is being generated with no guest posting auth</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16209">PHPBB3-16209</a>] - Nginx example configuration file blocks an image in the ACP</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16210">PHPBB3-16210</a>] - Terms of use should not be skippable</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16211">PHPBB3-16211</a>] - COPPA should not be skippable</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16216">PHPBB3-16216</a>] - Disable xdebug in travis builds</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16217">PHPBB3-16217</a>] - Enable opcache in travis CI builds</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16226">PHPBB3-16226</a>] - Cron Tasks are not running on some Apache Server</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16227">PHPBB3-16227</a>] - If click login or acp login add errors</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16228">PHPBB3-16228</a>] - BBCode definitions with an optional attribute and a non-TEXT content are not merged correctly</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16235">PHPBB3-16235</a>] - Ignore patterns in ext-sniff.sh are not processed</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16242">PHPBB3-16242</a>] - Redirect loop when install folder doesn't exist</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16252">PHPBB3-16252</a>] - Ignore non-BBCodes when looking for unauthorized markup</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16257">PHPBB3-16257</a>] - Typo in Email Settings section</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16255">PHPBB3-16255</a>] - PHP 7.4 Deprecation warning on curly braces offsets</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16258">PHPBB3-16258</a>] - Sample Sphinx configuration file causes delta index to only include the most recent post</li>
</ul>
<h4>Improvement</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16084">PHPBB3-16084</a>] - Pointless radio button for database backup in 3.2.7 </li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16139">PHPBB3-16139</a>] - Add core.viewtopic_modify_quick_reply_template_vars</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16140">PHPBB3-16140</a>] - Add new event to UCP Edit Profile Page</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16143">PHPBB3-16143</a>] - Add core events for move topics</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16144">PHPBB3-16144</a>] - NO_STYLE_DATA - Provide extra fallback to board's default style for $user.</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16146">PHPBB3-16146</a>] - Add core event for after move the forum</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16148">PHPBB3-16148</a>] - Add template events to acp_groups.html</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16151">PHPBB3-16151</a>] - Enable Emojis and rich text in forum name</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16153">PHPBB3-16153</a>] - Enable Emojis and rich text in topic title</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16159">PHPBB3-16159</a>] - Wrap post times in html time tag</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16174">PHPBB3-16174</a>] - Event for disabling cookie creation</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16182">PHPBB3-16182</a>] - Add core.generate_smilies_modify_rowset</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16183">PHPBB3-16183</a>] - Add core.generate_smilies_count_sql_before</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15294">PHPBB3-15294</a>] - Server slowed down when having high session count</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16203">PHPBB3-16203</a>] - Enable Emojis and rich text in sent Emails</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16247">PHPBB3-16247</a>] - Quote PM has no identifier</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16251">PHPBB3-16251</a>] - Shortened link text shouldn't override custom plugins</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16223">PHPBB3-16223</a>] - Remove no longer supported memcache</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16236">PHPBB3-16236</a>] - Bump phpBB 3.3 maximum PHP version requirement to PHP 7.4</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16239">PHPBB3-16239</a>] - Remove deprecated phpbb\db\tools</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16247">PHPBB3-16247</a>] - Quote PM has no identifier.</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16248">PHPBB3-16248</a>] - update to new svg version of logo</li>
</ul>
<h4>Task</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15422">PHPBB3-15422</a>] - Remove the unnecessary helpline function and help_line variable</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16147">PHPBB3-16147</a>] - Updated tokens legend in BBCodes ACP</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16160">PHPBB3-16160</a>] - Add script for generating package json file</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16172">PHPBB3-16172</a>] - Add &quot;Rank:&quot; or &quot;Group rank:&quot; in the memberlist</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16224">PHPBB3-16224</a>] - Update composer dependencies</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16241">PHPBB3-16241</a>] - Color Palette Syntax Breaks Backwards Compatibility</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16246">PHPBB3-16246</a>] - Prettify and update README Automated Testing section</li>
</ul>
<a name="v330b1"></a><h3>Changes since 3.3.0-b1</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16008">PHPBB3-16008</a>] - oAuth does not respect custom server settings</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16167">PHPBB3-16167</a>] - phpbb_email_hash creates false duplicates</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16188">PHPBB3-16188</a>] - Statistics Panel in ACP</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16192">PHPBB3-16192</a>] - Installing Extensions Via CLI Broken</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16205">PHPBB3-16205</a>] - Undefined variable 'zebra' in search.php</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16210">PHPBB3-16210</a>] - Terms of use should not be skippable</li>
</ul>
<h4>Improvement</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-12539">PHPBB3-12539</a>] - Live Member Search Improvements</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-12559">PHPBB3-12559</a>] - Add forum setting to limit subforums legend to direct children only</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-12574">PHPBB3-12574</a>] - Don't require the passwords_manager in the constructor of the auth plugins</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15958">PHPBB3-15958</a>] - Created forums and default forum created during install have diferent options</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16187">PHPBB3-16187</a>] - Correctly display registration using external services</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16189">PHPBB3-16189</a>] - Deprecate inet_ntop and inet_pton wrappers</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16190">PHPBB3-16190</a>] - Deprecate phpbb's checkdnsrr wrapper</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16195">PHPBB3-16195</a>] - Copy forum permissions missing paragraph</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16196">PHPBB3-16196</a>] - Remove random_compat</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16206">PHPBB3-16206</a>] - Remove offsetExists reimplementation in service_collection</li>
</ul>
<a name="v32x"></a><h3>Changes since 3.2.x</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-14670">PHPBB3-14670</a>] - Use latest symfony branch in master</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-14769">PHPBB3-14769</a>] - CLI Installer Fails</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-14815">PHPBB3-14815</a>] - The facebook page link is not displayed properly in membership.php</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15255">PHPBB3-15255</a>] - Language variables of filesystem exception should moved</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15351">PHPBB3-15351</a>] - Confirm box function does not work with symlink on server config</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15377">PHPBB3-15377</a>] - INCLUDECSS and INCLUDEJS broken on all front controllers (app.php)</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15400">PHPBB3-15400</a>] - app.php urls aren't working in vagrant because of nginx</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15424">PHPBB3-15424</a>] - Fix typos in coding guidelines, comments, events list &amp; credits</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15436">PHPBB3-15436</a>] - Remove folder icons from index</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15522">PHPBB3-15522</a>] - Allow multiple color palettes per page</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15643">PHPBB3-15643</a>] - $phpbb_filesystem-&gt;resolve_path() may triggers open_basedir restriction</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15686">PHPBB3-15686</a>] - Update homestead for vagrant</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15720">PHPBB3-15720</a>] - Redirections dont need to escape ampersands</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15725">PHPBB3-15725</a>] - Testing framework fails to install extensions because of outdated assertion</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15744">PHPBB3-15744</a>] - Not all sql querys need to free memory</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15828">PHPBB3-15828</a>] - php 7.3 warning in installing 3.2.3 and installtion failed</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15846">PHPBB3-15846</a>] - Wrong id for downloadable extension group</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15922">PHPBB3-15922</a>] - Remove support for APC cache</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15935">PHPBB3-15935</a>] - Check if APCu is installed before installing it</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15938">PHPBB3-15938</a>] - Static attributes blacklist references no longer existing classes</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15991">PHPBB3-15991</a>] - Tables in ACP are displayed incorrectly</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16003">PHPBB3-16003</a>] - Post count not updated when deleting only post in topic</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16048">PHPBB3-16048</a>] - Unable to restore any backup from ACP</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16050">PHPBB3-16050</a>] - PHP warning in MCP banning tab on PHP 7.2+</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16057">PHPBB3-16057</a>] - Fix vagrant in 3.3</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16074">PHPBB3-16074</a>] - Twemoji -fe0f sequence not rendering</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16076">PHPBB3-16076</a>] - Limit attachment size by extension group</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16131">PHPBB3-16131</a>] - Force vagrant to install phpBB with a specific PHP version</li>
</ul>
<h4>Improvement</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-11515">PHPBB3-11515</a>] - Add interface for lock classes and add new methods</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-11838">PHPBB3-11838</a>] - OAuth registration from ucp_register</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-12591">PHPBB3-12591</a>] - Improve breadcrumb functionality with new &quot;Home page&quot;/&quot;Forum index&quot; link</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-14465">PHPBB3-14465</a>] - Remove maximum password length setting</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-14573">PHPBB3-14573</a>] - Extend breadcrumb to support more pages</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-14948">PHPBB3-14948</a>] - Changes 3.3 PHP requirement to 7.1</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-14972">PHPBB3-14972</a>] - PHP 7.2 compatibility: wrong sizeof/count parameter type</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15088">PHPBB3-15088</a>] - Optimize code for extension manager to avoid repetitions</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15153">PHPBB3-15153</a>] - Update laravel/homestead box for vagrant</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15203">PHPBB3-15203</a>] - Missing constants during web installation</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15257">PHPBB3-15257</a>] - Extensions may indicate reasons why they cannot enable</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15269">PHPBB3-15269</a>] - Set development environment and enable all debugs when installing with vagrant</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15274">PHPBB3-15274</a>] - Migration &quot;custom&quot; tool does not allow parameters</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15295">PHPBB3-15295</a>] - Restore MyIsam and mysql environments to test suite</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15330">PHPBB3-15330</a>] - Twig function to know if a language string is defined</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15413">PHPBB3-15413</a>] - Login from any page and redirecting back there</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15508">PHPBB3-15508</a>] - Upgrade Twig to version 2.x</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15564">PHPBB3-15564</a>] - Switch to Invisible reCAPTCHA</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15580">PHPBB3-15580</a>] - Remove extra settings in ACP</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15610">PHPBB3-15610</a>] - Improving UI of Board Statistics in ACP</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15646">PHPBB3-15646</a>] - Add support for Argon2i passwords</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15663">PHPBB3-15663</a>] - Remove flash support in attachments</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15664">PHPBB3-15664</a>] - Manage extensions with ajax</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15671">PHPBB3-15671</a>] - Limit accepted formats to allowed extensions in avatars upload</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15694">PHPBB3-15694</a>] - Add style-related language files into .gitignore</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15714">PHPBB3-15714</a>] - Login after register</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15718">PHPBB3-15718</a>] - Update CONTRIBUTING.md</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15772">PHPBB3-15772</a>] - Hide warning message in acp when install dir is present and allow_install_dir is true</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15905">PHPBB3-15905</a>] - Create multiple twig extensions</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15940">PHPBB3-15940</a>] - Expose user_id to notif method's is_available and add event before it to load user data</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15987">PHPBB3-15987</a>] - Make table parameters an array</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16016">PHPBB3-16016</a>] - Provide a base class to implement password hashing via native functions</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16017">PHPBB3-16017</a>] - Add support for Argon2id password hashing</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16081">PHPBB3-16081</a>] - Remove eAccelerator as its latest supported PHP version is 5.3</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16082">PHPBB3-16082</a>] - Remove XCache as it does not support PHP 7</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16115">PHPBB3-16115</a>] - Add PHP 7.4 builds to travis CI</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16144">PHPBB3-16144</a>] - NO_STYLE_DATA - Provide extra fallback to board's default style for $user.</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16148">PHPBB3-16148</a>] - Add template events to acp_groups.html</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16159">PHPBB3-16159</a>] - Wrap post times in html time tag</li>
</ul>
<h4>New Feature</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-11327">PHPBB3-11327</a>] - Implement reset password functionality via form instead of sending password</li>
</ul>
<h4>Sub-task</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-12624">PHPBB3-12624</a>] - Add debug.load_time</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-12627">PHPBB3-12627</a>] - Add debug.sql_explain</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-12628">PHPBB3-12628</a>] - Add debug.memory</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-12629">PHPBB3-12629</a>] - Add debug.errors_show</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-12635">PHPBB3-12635</a>] - Add allow_install_dir</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-12636">PHPBB3-12636</a>] - Add log.session_errors</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-14542">PHPBB3-14542</a>] - Move cron to controller</li>
</ul>
<h4>Task</h4>
<ul>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-14584">PHPBB3-14584</a>] - Move deprecated globals and functions to compatibility_*.php</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-14761">PHPBB3-14761</a>] - Update travis tests setup too, move myisam from PHP 5.4 to 5.5</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15244">PHPBB3-15244</a>] - Remove the UNGLOBALISE-related code</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15410">PHPBB3-15410</a>] - Remove obsolete code from BBCodes ACP</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15422">PHPBB3-15422</a>] - Remove the unnecessary helpline function and help_line variable</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15738">PHPBB3-15738</a>] - Remove code related with safe mode</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15746">PHPBB3-15746</a>] - Update dependencies for 3.2.3</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15921">PHPBB3-15921</a>] - Update TextFormatter to 1.3.2</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-15927">PHPBB3-15927</a>] - Fix ACP table display error</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16051">PHPBB3-16051</a>] - Remove mysql driver as it's unsupported</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16052">PHPBB3-16052</a>] - Branch off 3.3.x branch</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16067">PHPBB3-16067</a>] - Define trusty build environment for travis builds</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16072">PHPBB3-16072</a>] - Update s9e/text-formatter</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16112">PHPBB3-16112</a>] - Update composer dependencies to latest</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16175">PHPBB3-16175</a>] - Update composer.json dependencies for 3.3.0-b1</li>
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16185">PHPBB3-16185</a>] - Use Xenial build environment on travis-ci</li>
</ul>
<a name="v328rc1"></a><h3>Changes since 3.2.8-RC1</h3>
<h4>Bug</h4>
<ul>

View File

@@ -22,15 +22,16 @@ phpBB Project Manager: Marshalrusty (Yuriy Rusko)
phpBB Lead Developer: Marc (Marc Alexander)
phpBB Developers: CHItA (Máté Bartus)
phpBB Developers: bantu (Andreas Fischer)
CHItA (Máté Bartus)
Derky (Derk Ruitenbeek)
Elsensee (Oliver Schramm)
Hanakin (Michael Miday)
mrgoldy (Gijs Martens)
Nicofuma (Tristan Darricau)
rubencm (Rubén Calvo)
For a list of phpBB Team members, please see:
https://www.phpbb.com/about/team/
http://www.phpbb.com/about/team/
For a full list of phpBB code contributors, please see:
https://github.com/phpbb/phpbb/graphs/contributors
@@ -51,13 +52,11 @@ phpBB Developers: A_Jelly_Doughnut (Josh Woody) [01/2010 - 11/2010]
APTX (Marek A. Ruszczyński) [12/2007 - 04/2011]
Arty (Vjacheslav Trushkin) [02/2012 - 07/2012]
Ashe (Ludovic Arnaud) [10/2002 - 11/2003, 06/2006 - 10/2006]
bantu (Andreas Fischer) [07/2009 - 06/2020]
BartVB (Bart van Bragt) [11/2000 - 03/2006]
ckwalsh (Cullen Walsh) [01/2010 - 07/2011]
DavidMJ (David M.) [12/2005 - 08/2009]
dhn (Dominik Dröscher) [05/2007 - 01/2011]
dhruv.goel92 (Dhruv Goel) [04/2013 - 05/2016]
Elsensee (Oliver Schramm) [03/2015 - 06/2020]
EXreaction (Nathan Guse) [07/2012 - 05/2014]
GrahamJE (Graham Eames) [09/2005 - 11/2006]
igorw (Igor Wiedler) [08/2010 - 02/2013]
@@ -85,10 +84,10 @@ prosilver by subBlue Design, Tom Beddard, (c) 2004 phpBB Limited
phpBB contains code from the following applications:
LGPL licenced:
LGPL licensed:
Smarty (c) 2001, 2002 by ispi of Lincoln, Inc, http://smarty.php.net/
GPL licenced:
GPL licensed:
phpMyAdmin (c) 2001, 2003 phpMyAdmin Devel team, http://www.phpmyadmin.net/
Jabber Class (c) 2006 Flyspray.org, http://www.flyspray.org/
Chora (c) 2000-2006, The Horde Project. http://horde.org/chora/
@@ -102,7 +101,7 @@ Pear (c) 2001-2004 PHP Group, http://pear.php.net
Text_Diff-0.2.1 http://pear.php.net/package/Text_Diff
MIT licenced:
MIT licensed:
Symfony2 (c) 2004-2011 Fabien Potencier, https://symfony.com/
Cookie Consent (c) 2015 Silktide Ltd, https://cookieconsent.insites.com

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />
<meta name="description" content="phpBB 3.2.x frequently asked questions" />
<meta name="description" content="phpBB 3.3.x frequently asked questions" />
<title>phpBB &bull; FAQ</title>
<link href="assets/css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
@@ -21,8 +21,8 @@
<div id="doc-description">
<a href="../index.php" id="logo"><img src="assets/images/site_logo.gif" alt="" /></a>
<h1>phpBB 3.2.x FAQ</h1>
<p>phpBB 3.2.x frequently asked questions</p>
<h1>phpBB 3.3.x FAQ</h1>
<p>phpBB 3.3.x frequently asked questions</p>
<p style="display: none;"><a href="#start_here">Skip</a></p>
</div>
@@ -249,7 +249,7 @@ I want to sue you because i think you host an illegal board!</h2>
<div class="content">
<p>Please read the paragraph about permissions in our extensive <a href="https://www.phpbb.com/support/docs/en/3.2/ug/">online documentation</a>.</p>
<p>Please read the paragraph about permissions in our extensive <a href="https://www.phpbb.com/support/docs/en/3.3/ug/">online documentation</a>.</p>
</div>
@@ -305,7 +305,7 @@ I want to sue you because i think you host an illegal board!</h2>
<div class="content">
<p>Please read our <a href="https://www.phpbb.com/support/docs/en/3.2/ug/">extensive user documentation</a> first, it may just explain what you want to know.</p>
<p>Please read our <a href="https://www.phpbb.com/support/docs/en/3.3/ug/">extensive user documentation</a> first, it may just explain what you want to know.</p>
<p>Feel free to search our community forum for the information you require. <strong>PLEASE DO NOT</strong> post your question without having first used search, chances are someone has already asked and answered your question. You can find our board here:</p>

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />
<meta name="description" content="phpBB 3.2.x Installation, updating and conversion informations" />
<meta name="description" content="phpBB 3.3.x Installation, updating and conversion informations" />
<title>phpBB &bull; Install</title>
<link href="assets/css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
@@ -21,8 +21,8 @@
<div id="doc-description">
<a href="../index.php" id="logo"><img src="assets/images/site_logo.gif" alt="" /></a>
<h1>phpBB 3.2.x Install</h1>
<p>phpBB 3.2.x Installation, updating and conversion informations</p>
<h1>phpBB 3.3.x Install</h1>
<p>phpBB 3.3.x Installation, updating and conversion informations</p>
<p style="display: none;"><a href="#start_here">Skip</a></p>
</div>
@@ -44,7 +44,7 @@
<p>
A basic overview of running phpBB can be found in the accompanying <a href="README.html">README</a> file.
Please ensure you read that document in addition to this! For more detailed information on using, installing,
updating and converting phpBB you should read <a href="https://www.phpbb.com/support/docs/en/3.2/ug/">the documentation</a>
updating and converting phpBB you should read <a href="https://www.phpbb.com/support/docs/en/3.3/ug/">the documentation</a>
available online.
</p>
</div>
@@ -59,7 +59,7 @@
<li><a href="#quickinstall">Quick install</a></li>
<li><a href="#require">Requirements</a></li>
<li><a href="#install">New installation</a></li>
<li><a href="#update">Updating from stable releases of phpBB 3.2.x</a>
<li><a href="#update">Updating from stable releases of phpBB 3.3.x</a>
<ol style="list-style-type: lower-roman;">
<li><a href="#update_full">Full package</a></li>
<li><a href="#update_files">Changed files</a></li>
@@ -68,8 +68,8 @@
<li><a href="#update_all">All package types</a></li>
</ol>
</li>
<li><a href="#update30_31">Updating from phpBB 3.0.x/3.1.x to phpBB 3.2.x</a></li>
<li><a href="#convert">Conversion from phpBB 2.0.x to phpBB 3.2.x</a>
<li><a href="#update30_31">Updating from phpBB 3.0.x/3.1.x to phpBB 3.2.x or phpBB 3.3.x</a></li>
<li><a href="#convert">Conversion from phpBB 2.0.x to phpBB 3.3.x</a>
<ol style="list-style-type: lower-roman;">
<li><a href="#prereq">Requirements before converting</a></li>
<li><a href="#conversion">Converting</a></li>
@@ -139,7 +139,7 @@
<li>A webserver or web hosting account running on any major Operating System with support for PHP</li>
<li>A SQL database system, <strong>one of</strong>:
<ul>
<li>MySQL 3.23 or above (MySQLi supported)</li>
<li>MySQL 4.1.3 or above (MySQLi required)</li>
<li>MariaDB 5.1 or above</li>
<li>PostgreSQL 8.3+</li>
<li>SQLite 3.6.15+</li>
@@ -147,10 +147,11 @@
<li>Oracle</li>
</ul>
</li>
<li><strong>PHP 5.4.7+</strong> but less than <strong>PHP 7.3</strong> with support for the database you intend to use.</li>
<li><strong>PHP 7.1.0+</strong> up to and including <strong>PHP 7.4</strong> with support for the database you intend to use.</li>
<li>The following PHP modules are required:
<ul>
<li>json</li>
<li>XML support</li>
</ul>
</li>
<li>getimagesize() function must be enabled.</li>
@@ -158,13 +159,12 @@
<ul>
<li>zlib Compression support</li>
<li>Remote FTP support</li>
<li>XML support</li>
<li>GD Support</li>
</ul>
</li>
</ul>
<p>If your server or hosting account does not meet the requirements above then you will be unable to install phpBB 3.2.x.</p>
<p>If your server or hosting account does not meet the requirements above then you will be unable to install phpBB 3.3.x.</p>
</div>
@@ -255,7 +255,7 @@
<hr />
<a name="update"></a><h2>4. Updating from stable releases of phpBB 3.2.x</h2>
<a name="update"></a><h2>4. Updating from stable releases of phpBB 3.3.x</h2>
<div class="paragraph">
<div class="inner">
@@ -280,7 +280,7 @@
<p>This package is meant for those wanting to only replace the files that were changed between a previous version and the latest version.</p>
<p>This package contains a number of archives, each contains the files changed from a given release to the latest version. You should select the appropriate archive for your current version, e.g. if you currently have <strong>3.2.0</strong> you should select the appropriate <code>phpBB-3.2.1-files.zip/tar.bz2</code> file.</p>
<p>This package contains a number of archives, each contains the files changed from a given release to the latest version. You should select the appropriate archive for your current version, e.g. if you currently have <strong>3.3.0</strong> you should select the appropriate <code>phpBB-3.3.1-files.zip/tar.bz2</code> file.</p>
<p>The directory structure has been preserved, enabling you (if you wish) to simply upload the uncompressed contents of the archive to the appropriate location on your server, i.e. simply overwrite the existing files with the new versions. Do not forget that if you have installed any modifications (MODs) these files will overwrite the originals, possibly destroying them in the process. You will need to re-add MODs to any affected file before uploading.</p>
@@ -292,7 +292,7 @@
<p>The patch file is one solution for those with changes in to the phpBB core files and do not want to re-add them back to all the changed files. To use this you will need command line access to a standard UNIX type <strong>patch</strong> application. If you do not have access to such an application, but still want to use this update approach, we strongly recommend the <a href="#update_auto">Automatic update package</a> explained below. It is also the recommended update method.</p>
<p>A number of patch files are provided to allow you to update from previous stable releases. Select the correct patch, e.g. if your current version is <strong>3.2.0</strong>, you need the <code>phpBB-3.2.1-patch.zip/tar.bz2</code> file. Place the correct patch in the parent directory containing the phpBB core files (i.e. index.php, viewforum.php, etc.). With this done you should run the following command: <code>patch -cl -d [PHPBB DIRECTORY] -p1 &lt; [PATCH NAME]</code> (where PHPBB DIRECTORY is the directory name your phpBB Installation resides in, for example phpBB, and where PATCH NAME is the relevant filename of the selected patch file). This should complete quickly, hopefully without any HUNK FAILED comments.</p>
<p>A number of patch files are provided to allow you to update from previous stable releases. Select the correct patch, e.g. if your current version is <strong>3.3.0</strong>, you need the <code>phpBB-3.3.1-patch.zip/tar.bz2</code> file. Place the correct patch in the parent directory containing the phpBB core files (i.e. index.php, viewforum.php, etc.). With this done you should run the following command: <code>patch -cl -d [PHPBB DIRECTORY] -p1 &lt; [PATCH NAME]</code> (where PHPBB DIRECTORY is the directory name your phpBB Installation resides in, for example phpBB, and where PATCH NAME is the relevant filename of the selected patch file). This should complete quickly, hopefully without any HUNK FAILED comments.</p>
<p>If you do get failures, you should look at using the <a href="#update_files">Changed Files</a> package to replace the files which failed to patch. Please note that you will need to manually re-add any MODs to these particular files. Alternatively, if you know how, you can examine the .rej files to determine what failed where and make manual adjustments to the relevant source.</p>
@@ -302,7 +302,7 @@
<p>This update method is only recommended for installations with modifications to core phpBB files. This package detects changed files automatically and merges in changes if needed.</p>
<p>The automatic update package will update the board from a given version to the latest version. A number of automatic update files are available, and you should choose the one that corresponds to the version of the board that you are currently running. For example, if your current version is <strong>3.2.0</strong>, you need the <code>phpBB-3.2.0_to_3.2.1.zip/tar.bz2</code> file.</p>
<p>The automatic update package will update the board from a given version to the latest version. A number of automatic update files are available, and you should choose the one that corresponds to the version of the board that you are currently running. For example, if your current version is <strong>3.3.0</strong>, you need the <code>phpBB-3.3.0_to_3.3.1.zip/tar.bz2</code> file.</p>
<p>To perform the update, either follow the instructions from the <strong>Administration Control Panel-&gt;System</strong> Tab - this should point out that you are running an outdated version and will guide you through the update - or follow the instructions listed below.</p>
@@ -331,16 +331,16 @@
<hr />
<a name="update30_31"></a><h2>5. Updating from phpBB 3.0.x/3.1x to phpBB 3.2.x</h2>
<a name="update30_31"></a><h2>5. Updating from phpBB 3.0.x/3.1x to phpBB 3.2.x or phpBB 3.3.x</h2>
<div class="paragraph">
<div class="inner"><span class="corners-top"><span></span></span>
<div class="content">
<p>Updating from phpBB 3.0.x or 3.1.x to 3.2.x is just the same as <a href="#update">updating from stable releases of phpBB 3.2.x</a></p>
<p>Updating from phpBB 3.0.x or 3.1.x to 3.2.x or 3.3.x is just the same as <a href="#update">updating from stable releases of phpBB 3.3.x</a></p>
<p>However you can also start with a new set of phpBB 3.2.x files.</p>
<p>However you can also start with a new set of phpBB 3.3.x files.</p>
<ol>
<li>Delete all files <strong>EXCEPT</strong> for the following:
@@ -353,7 +353,7 @@
<li>(The <code>ext/</code> directory</li>
</ul></li>
<li>Upload the contents of the 3.2.x Full Package into your forum's directory. Make sure the root level .htaccess file is included in the upload.</li>
<li>Upload the contents of the 3.3.x Full Package into your forum's directory. Make sure the root level .htaccess file is included in the upload.</li>
<li>Browse to <code>/install/app.php/update</code></li>
<li>Read the notice <em>Update database only</em> and press <strong>Submit</strong></li>
<li>Delete the <code>install/</code> directory</li>
@@ -367,7 +367,7 @@
<hr />
<a name="convert"></a><h2>6. Conversion from phpBB 2.0.x to phpBB 3.2.x</h2>
<a name="convert"></a><h2>6. Conversion from phpBB 2.0.x to phpBB 3.3.x</h2>
<div class="paragraph">
<div class="inner">

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="keywords" content="" />
<meta name="description" content="phpBB 3.2.x Readme" />
<meta name="description" content="phpBB 3.3.x Readme" />
<title>phpBB &bull; Readme</title>
<link href="assets/css/stylesheet.css" rel="stylesheet" type="text/css" media="screen" />
@@ -21,7 +21,7 @@
<div id="doc-description">
<a href="../index.php" id="logo"><img src="assets/images/site_logo.gif" alt="" /></a>
<h1>phpBB 3.2.x Readme</h1>
<h1>phpBB 3.3.x Readme</h1>
<p style="display: none;"><a href="#start_here">Skip</a></p>
</div>
@@ -91,13 +91,13 @@
<div class="content">
<p>Installation, update and conversion instructions can be found in the <a href="INSTALL.html">INSTALL</a> document in this directory. If you are intending on converting from a phpBB 2.0.x or 3.0.x installation we highly recommend that you backup any existing data before proceeding!</p>
<p>Users of phpBB 3.0, 3.1 and 3.2 Beta versions cannot directly update.</p>
<p>Users of phpBB 3.0, 3.1, 3.2, and 3.3 Beta versions cannot directly update.</p>
<p>Please note that we don't support the following installation types:</p>
<ul>
<li>Updates from phpBB Beta versions and lower to phpBB Release Candidates and higher</li>
<li>Conversions from phpBB 2.0.x to phpBB 3.0 Beta, 3.1 Beta and 3.2 Beta versions</li>
<li>phpBB 3.0 Beta, 3.1 Beta or 3.2 beta installations</li>
<li>Conversions from phpBB 2.0.x to phpBB 3.0 Beta, 3.1 Beta, 3.2 Beta, and 3.3 Beta versions</li>
<li>phpBB 3.0 Beta, 3.1 Beta, 3.2 beta, or 3.3 beta installations</li>
</ul>
<p>We give support for the following installation types:</p>
@@ -106,8 +106,8 @@
<li>Updates from phpBB 3.0 RC1, 3.1 RC1 and 3.2 RC1 to the latest version</li>
<li>Note: if using the <em>Automatic Update Package</em>, updates are supported from phpBB 3.0.2 onward. To update a pre-3.0.2 installation, first update to 3.0.2 and then update to the current version.</li>
<li>Conversions from phpBB 2.0.x to the latest version</li>
<li>New installations of phpBB 3.1.x - only the latest released version</li>
<li>New installations of phpBB 3.2.x - only the latest released version</li>
<li>New installations of phpBB 3.3.x - only the latest released version</li>
</ul>
</div>
@@ -184,7 +184,7 @@
<p>Comprehensive documentation is now available on the phpBB website:</p>
<p><a href="https://www.phpbb.com/support/docs/en/3.2/ug/">https://www.phpbb.com/support/docs/en/3.2/ug/</a></p>
<p><a href="https://www.phpbb.com/support/docs/en/3.3/ug/">https://www.phpbb.com/support/docs/en/3.3/ug/</a></p>
<p>This covers everything from installation to setting permissions and managing users.</p>
@@ -224,7 +224,7 @@
<div class="content">
<p>This is a stable release of phpBB. The 3.2.x line is feature frozen, with point releases principally including fixes for bugs and security issues. Feature alterations and minor feature additions may be done if deemed absolutely required. The next major release will be phpBB 3.3 which is currently under development. Please do not post questions asking when 3.3 will be available, no release date has been set.</p>
<p>This is a stable release of phpBB. The 3.3.x line is feature frozen, with point releases principally including fixes for bugs and security issues. Feature alterations and minor feature additions may be done if deemed absolutely required. The next major release will be phpBB 3.3 which is currently under development. Please do not post questions asking when 3.3 will be available, no release date has been set.</p>
<p>Those interested in the development of phpBB should keep an eye on the development forums to see how things are progressing:</p>
@@ -265,7 +265,7 @@
<ul>
<li>Your server type/version, e.g. Apache 2.2.3, IIS 7, Sambar, etc.</li>
<li>PHP version and mode of operation, e.g. PHP 5.4.0 as a module, PHP 5.4.0 running as CGI, etc.</li>
<li>PHP version and mode of operation, e.g. PHP 7.1.0 as a module, PHP 7.1.0 running as CGI, etc.</li>
<li>DB type/version, e.g. MySQL 5.0.77, PostgreSQL 9.0.6, MSSQL Server 2000 (via ODBC), etc.</li>
</ul>
@@ -273,7 +273,7 @@
<p>Please be as detailed as you can in your report, and if possible, list the steps required to duplicate the problem. If you have a patch that fixes the issue, please attach it to the ticket or submit a pull request to our repository <a href="https://github.com/phpbb/phpbb">on GitHub</a>.</p>
<p>If you create a patch, it is very much appreciated (but not required) if you follow the phpBB coding guidelines. Please note that the coding guidelines are somewhat different between different versions of phpBB. For phpBB 3.2.x the coding guidelines may be found here: <a href="http://area51.phpbb.com/docs/32x/coding-guidelines.html">http://area51.phpbb.com/docs/32x/coding-guidelines.html</a></p>
<p>If you create a patch, it is very much appreciated (but not required) if you follow the phpBB coding guidelines. Please note that the coding guidelines are somewhat different between different versions of phpBB. For phpBB 3.3.x the coding guidelines may be found here: <a href="http://area51.phpbb.com/docs/33x/coding-guidelines.html">http://area51.phpbb.com/docs/33x/coding-guidelines.html</a></p>
<p>Once a bug has been submitted you will be emailed any follow up comments added to it. <strong>Please</strong> if you are requested to supply additional information, do so! It is frustrating for us to receive bug reports, ask for additional information but get nothing. In these cases we have a policy of closing the bug, which may leave a very real problem in place. Obviously we would rather not have this situation arise.</p>
@@ -323,11 +323,11 @@
<div class="content">
<p>phpBB 3.2.x takes advantage of new features added in PHP 5.4. We recommend that you upgrade to the latest stable release of PHP to run phpBB. The minimum version required is PHP 5.4.7 and the maximum supported version is the latest stable version of PHP.</p>
<p>phpBB 3.3.x takes advantage of new features added in PHP 7.1.0. We recommend that you upgrade to the latest stable release of PHP to run phpBB. The minimum version required is PHP 7.1.0 and the maximum supported version is the latest stable version of PHP.</p>
<p>Please remember that running any application on a development (unstable, e.g. a beta release) version of PHP can lead to strange/unexpected results which may appear to be bugs in the application. Therefore, we recommend you upgrade to the newest stable version of PHP before running phpBB. If you are running a development version of PHP please check any bugs you find on a system running a stable release before submitting.</p>
<p>This board has been developed and tested under Linux and Windows (amongst others) running Apache using MySQL 3.23, 4.x, 5.x, MariaDB 5.x, PostgreSQL 8.x, Oracle 8 and SQLite 3. Versions of PHP used range from 5.4.7 above 5.6.x to 7.1.x and 7.2.x without problem.</p>
<p>This board has been developed and tested under Linux and Windows (amongst others) running Apache using MySQLi 4.1.3, 4.x, 5.x, MariaDB 5.x, PostgreSQL 8.x, Oracle 8 and SQLite 3. Versions of PHP used range from 7.1.0 to 7.2.x and 7.3.x without issues.</p>
<a name="phpsec"></a><h3>7.i. Notice on PHP security issues</h3>

View File

@@ -234,9 +234,9 @@ PHPBB_USE_BOARD_URL_PATH (use generate_board_url() for image paths instead of
PHPBB_DISABLE_ACP_EDITOR (disable ACP style editor for templates)
PHPBB_DISABLE_CONFIG_CHECK (disable ACP config.php writeable check)
PHPBB_ACM_MEMCACHE_PORT (overwrite memcached port, default is 11211)
PHPBB_ACM_MEMCACHE_COMPRESS (overwrite memcached compress setting, default is disabled)
PHPBB_ACM_MEMCACHE_HOST (overwrite memcached host name, default is localhost)
PHPBB_ACM_MEMCACHED_PORT (overwrite memcached port, default is 11211)
PHPBB_ACM_MEMCACHED_COMPRESS (overwrite memcached compress setting, default is disabled)
PHPBB_ACM_MEMCACHED_HOST (overwrite memcached host name, default is localhost)
PHPBB_ACM_REDIS_HOST (overwrite redis host name, default is localhost)
PHPBB_ACM_REDIS_PORT (overwrite redis port, default is 6379)
@@ -738,7 +738,7 @@ static private function f()</pre>
<a name="sql"></a><h3>2.iii. SQL/SQL Layout</h3>
<h4>Common SQL Guidelines: </h4>
<p>All SQL should be cross-DB compatible, if DB specific SQL is used alternatives must be provided which work on all supported DB's (MySQL3/4/5, MSSQL (7.0 and 2000), PostgreSQL (8.3+), SQLite, Oracle8, ODBC (generalised if possible)).</p>
<p>All SQL should be cross-DB compatible, if DB specific SQL is used alternatives must be provided which work on all supported DB's (MySQL4/5, MSSQL (7.0 and 2000), PostgreSQL (8.3+), SQLite, Oracle8, ODBC (generalised if possible)).</p>
<p>All SQL commands should utilise the DataBase Abstraction Layer (DBAL)</p>
<h4>SQL code layout:</h4>
@@ -1184,8 +1184,8 @@ append_sid(&quot;{$phpbb_root_path}memberlist.$phpEx&quot;, 'mode=group&amp;amp;
# General Information about this style
name = prosilver_duplicate
copyright = © phpBB Limited, 2007
style_version = 3.2.0
phpbb_version = 3.2.0
style_version = 3.3.0
phpbb_version = 3.3.0
# Defining a different template bitfield
# template_bitfield = lNg=
@@ -1211,7 +1211,7 @@ parent = prosilver</pre>
&lt;td class=&quot;gensmall&quot;&gt;TEST&lt;/td&gt;
</pre></div>
<p>Try to match text class types with existing useage, e.g. don't use the nav class where viewtopic uses gensmall for example.</p>
<p>Try to match text class types with existing usage, e.g. don't use the nav class where viewtopic uses gensmall for example.</p>
<p>Row colours/classes are now defined by the template, use an <code>IF S_ROW_COUNT</code> switch, see viewtopic or viewforum for an example.</p>
@@ -1223,7 +1223,7 @@ parent = prosilver</pre>
<p>The separate catXXXX and thXXX classes are gone. When defining a header cell just use <code>&lt;th&gt;</code> rather than <code>&lt;th class="thHead"&gt;</code> etc. Similarly for cat, don't use <code>&lt;td class="catLeft"&gt;</code> use <code>&lt;td class="cat"&gt;</code> etc.</p>
<p>Try to retain consistency of basic layout and class useage, i.e. _EXPLAIN text should generally be placed below the title it explains, e.g. <code>{L_POST_USERNAME}&lt;br /&gt;&lt;span class="gensmall"&gt;{L_POST_USERNAME_EXPLAIN}&lt;/span&gt;</code> is the typical way of handling this ... there may be exceptions and this isn't a hard and fast rule.</p>
<p>Try to retain consistency of basic layout and class usage, i.e. _EXPLAIN text should generally be placed below the title it explains, e.g. <code>{L_POST_USERNAME}&lt;br /&gt;&lt;span class="gensmall"&gt;{L_POST_USERNAME_EXPLAIN}&lt;/span&gt;</code> is the typical way of handling this ... there may be exceptions and this isn't a hard and fast rule.</p>
<p>Try to keep template conditional and other statements tabbed in line with the block to which they refer.</p>
@@ -1767,7 +1767,7 @@ This may span multiple lines.
<p>The <a href="http://en.wikipedia.org/wiki/Universal_Character_Set">Universal Character Set (UCS)</a> described in ISO/IEC 10646 consists of a large amount of characters. Each of them has a unique name and a code point which is an integer number. <a href="http://en.wikipedia.org/wiki/Unicode">Unicode</a> - which is an industry standard - complements the Universal Character Set with further information about the characters' properties and alternative character encodings. More information on Unicode can be found on the <a href="http://www.unicode.org/">Unicode Consortium's website</a>. One of the Unicode encodings is the <a href="http://en.wikipedia.org/wiki/UTF-8">8-bit Unicode Transformation Format (UTF-8)</a>. It encodes characters with up to four bytes aiming for maximum compatibility with the <a href="http://en.wikipedia.org/wiki/ASCII">American Standard Code for Information Interchange</a> which is a 7-bit encoding of a relatively small subset of the UCS.</p>
<h4>phpBB's use of Unicode</h4>
<p>Unfortunately PHP does not faciliate the use of Unicode prior to version 6. Most functions simply treat strings as sequences of bytes assuming that each character takes up exactly one byte. This behaviour still allows for storing UTF-8 encoded text in PHP strings but many operations on strings have unexpected results. To circumvent this problem we have created some alternative functions to PHP's native string operations which use code points instead of bytes. These functions can be found in <code>/includes/utf/utf_tools.php</code>. They are also covered in the <a href="http://area51.phpbb.com/docs/code/">phpBB3 Sourcecode Documentation</a>. A lot of native PHP functions still work with UTF-8 as long as you stick to certain restrictions. For example <code>explode</code> still works as long as the first and the last character of the delimiter string are ASCII characters.</p>
<p>Unfortunately PHP does not facilitate the use of Unicode prior to version 6. Most functions simply treat strings as sequences of bytes assuming that each character takes up exactly one byte. This behaviour still allows for storing UTF-8 encoded text in PHP strings but many operations on strings have unexpected results. To circumvent this problem we have created some alternative functions to PHP's native string operations which use code points instead of bytes. These functions can be found in <code>/includes/utf/utf_tools.php</code>. They are also covered in the <a href="http://area51.phpbb.com/docs/code/">phpBB3 Sourcecode Documentation</a>. A lot of native PHP functions still work with UTF-8 as long as you stick to certain restrictions. For example <code>explode</code> still works as long as the first and the last character of the delimiter string are ASCII characters.</p>
<p>phpBB only uses the ASCII and the UTF-8 character encodings. Still all Strings are UTF-8 encoded because ASCII is a subset of UTF-8. The only exceptions to this rule are code sections which deal with external systems which use other encodings and character sets. Such external data should be converted to UTF-8 using the <code>utf8_recode()</code> function supplied with phpBB. It supports a variety of other character sets and encodings, a full list can be found below.</p>
@@ -1848,7 +1848,7 @@ if (utf8_case_fold_nfc($string1) == utf8_case_fold_nfc($string2))
<p>The <abbr title="Internet Engineering Task Force">IETF</abbr> recently published <a href="http://tools.ietf.org/html/rfc4646">RFC 4646</a> for tags used to identify languages, which in combination with <a href="http://tools.ietf.org/html/rfc4647">RFC 4647</a> obseletes the older <a href="http://tools.ietf.org/html/rfc3066">RFC 3006</a> and older-still <a href="http://tools.ietf.org/html/rfc1766">RFC 1766</a>. <a href="http://tools.ietf.org/html/rfc4646">RFC 4646</a> uses <a href="http://www.loc.gov/standards/iso639-2/php/English_list.php">ISO 639-1/ISO 639-2</a>, <a href="http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html">ISO 3166-1 alpha-2</a>, <a href="http://www.unicode.org/iso15924/iso15924-codes.html">ISO 15924</a> and <a href="http://unstats.un.org/unsd/methods/m49/m49.htm">UN M.49</a> to define a language tag. Each complete tag is composed of subtags which are not case sensitive and can also be empty.</p>
<p>Ordering of the subtags in the case that they are all non-empty is: <code>language</code>-<code>script</code>-<code>region</code>-<code>variant</code>-<code>extension</code>-<code>privateuse</code>. Should any subtag be empty, its corresponding hyphen would also be ommited. Thus, the language tag for English will be <code>en</code> <strong>and not</strong> <code>en-----</code>.</p>
<p>Ordering of the subtags in the case that they are all non-empty is: <code>language</code>-<code>script</code>-<code>region</code>-<code>variant</code>-<code>extension</code>-<code>privateuse</code>. Should any subtag be empty, its corresponding hyphen would also be omitted. Thus, the language tag for English will be <code>en</code> <strong>and not</strong> <code>en-----</code>.</p>
<p>Most language tags consist of a two- or three-letter language subtag (from <a href="http://www.loc.gov/standards/iso639-2/php/English_list.php">ISO 639-1/ISO 639-2</a>). Sometimes, this is followed by a two-letter or three-digit region subtag (from <a href="http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html">ISO 3166-1 alpha-2</a> or <a href="http://unstats.un.org/unsd/methods/m49/m49.htm">UN M.49</a>). Some examples are:</p>
@@ -1902,7 +1902,7 @@ if (utf8_case_fold_nfc($string1) == utf8_case_fold_nfc($string2))
<p>The ultimate aim of a language tag is to convey the needed <strong>useful distingushing information</strong>, whilst keeping it as <strong>short as possible</strong>. So for example, use <code>en</code>, <code>fr</code> and <code>ja</code> as opposed to <code>en-GB</code>, <code>fr-FR</code> and <code>ja-JP</code>, since we know English, French and Japanese are the native language of Great Britain, France and Japan respectively.</p>
<p>Next is the <a href="http://www.unicode.org/iso15924/iso15924-codes.html">ISO 15924</a> language script code and when one should or shouldn't use it. For example, whilst <code>en-Latn</code> is syntaxically correct for describing English written with Latin script, real world English writing is <strong>more-or-less exclusively in the Latin script</strong>. For such languages like English that are written in a single script, the <a href="http://www.iana.org/assignments/language-subtag-registry"><abbr title="Internet Assigned Numbers Authority">IANA</abbr> Language Subtag Registry</a> has a "Suppress-Script" field meaning the script code <strong>should be ommitted</strong> unless a specific language tag requires a specific script code. Some languages are <strong>written in more than one script</strong> and in such cases, the script code <strong>is encouraged</strong> since an end-user may be able to read their language in one script, but not the other. Some examples are:</p>
<p>Next is the <a href="http://www.unicode.org/iso15924/iso15924-codes.html">ISO 15924</a> language script code and when one should or shouldn't use it. For example, whilst <code>en-Latn</code> is syntaxically correct for describing English written with Latin script, real world English writing is <strong>more-or-less exclusively in the Latin script</strong>. For such languages like English that are written in a single script, the <a href="http://www.iana.org/assignments/language-subtag-registry"><abbr title="Internet Assigned Numbers Authority">IANA</abbr> Language Subtag Registry</a> has a "Suppress-Script" field meaning the script code <strong>should be omitted</strong> unless a specific language tag requires a specific script code. Some languages are <strong>written in more than one script</strong> and in such cases, the script code <strong>is encouraged</strong> since an end-user may be able to read their language in one script, but not the other. Some examples are:</p>
<table>
<caption>Examples of using a language subtag in combination with a script subtag</caption>
@@ -1967,7 +1967,7 @@ if (utf8_case_fold_nfc($string1) == utf8_case_fold_nfc($string2))
</tbody>
</table>
<p>Usage of the three-digit <a href="http://unstats.un.org/unsd/methods/m49/m49.htm">UN M.49</a> code over the two-letter <a href="http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html">ISO 3166-1 alpha-2</a> code should hapen if a macro-geographical entity is required and/or the <a href="http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html">ISO 3166-1 alpha-2</a> is ambiguous.</p>
<p>Usage of the three-digit <a href="http://unstats.un.org/unsd/methods/m49/m49.htm">UN M.49</a> code over the two-letter <a href="http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html">ISO 3166-1 alpha-2</a> code should happen if a macro-geographical entity is required and/or the <a href="http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html">ISO 3166-1 alpha-2</a> is ambiguous.</p>
<p>Examples of English using marco-geographical regions:</p>

View File

@@ -410,27 +410,6 @@ acp_posting_buttons_custom_tags_before
* Since: 3.1.10-RC1
* Purpose: Add content before the custom BBCodes in the ACP
acp_profile_basic_options_after
===
* Locations:
+ adm/style/acp_profile.html
* Since: 3.2.10-RC1
* Purpose: Add content after custom profile field basic options in the ACP
acp_profile_basic_options_before
===
* Locations:
+ adm/style/acp_profile.html
* Since: 3.2.10-RC1
* Purpose: Add content before custom profile field basic options in the ACP
acp_profile_contact_after
===
* Locations:
+ adm/style/acp_profile.html
* Since: 3.2.10-RC1
* Purpose: Add content after contact specific custom profile field option in the ACP
acp_profile_contact_before
===
* Locations:
@@ -445,13 +424,6 @@ acp_profile_contact_last
* Since: 3.1.11-RC1
* Purpose: Add contact specific options to custom profile fields in the ACP
acp_profile_options_before
===
* Locations:
+ adm/style/acp_profile.html
* Since: 3.2.10-RC1
* Purpose: Add content before custom profile field options in the ACP
acp_profile_step_one_lang_after
===
* Locations:
@@ -459,20 +431,6 @@ acp_profile_step_one_lang_after
* Since: 3.1.11-RC1
* Purpose: Add extra lang specific options to custom profile field step one configuration in the ACP
acp_profile_visibility_options_after
===
* Locations:
+ adm/style/acp_profile.html
* Since: 3.2.10-RC1
* Purpose: Add content after custom profile field visibility options in the ACP
acp_profile_visibility_options_before
===
* Locations:
+ adm/style/acp_profile.html
* Since: 3.2.10-RC1
* Purpose: Add content before custom profile field visibility options in the ACP
acp_prune_forums_append
===
* Locations:
@@ -1936,34 +1894,6 @@ posting_editor_submit_buttons
* Since: 3.1.6-RC1
* Purpose: Add custom buttons in the posting editor
posting_editor_topic_icons_after
===
* Locations:
+ styles/prosilver/template/posting_editor.html
* Since: 3.2.10-RC1
* Purpose: Add custom data after the topic icons loop
posting_editor_topic_icons_append
===
* Locations:
+ styles/prosilver/template/posting_editor.html
* Since: 3.2.10-RC1
* Purpose: Append custom data to the topic icon
posting_editor_topic_icons_before
===
* Locations:
+ styles/prosilver/template/posting_editor.html
* Since: 3.2.10-RC1
* Purpose: Add custom data before the topic icons loop
posting_editor_topic_icons_prepend
===
* Locations:
+ styles/prosilver/template/posting_editor.html
* Since: 3.2.10-RC1
* Purpose: Prepend custom data to the topic icon
posting_layout_include_panel_body
===
* Locations:
@@ -2446,34 +2376,6 @@ ucp_friend_list_before
* Since: 3.1.0-a4
* Purpose: Add optional elements before list of friends in UCP
ucp_header_friends_offline_username_full_append
===
* Locations:
+ styles/prosilver/template/ucp_header.html
* Since: 3.2.10-RC1
* Purpose: Append information to offline friends username in UCP
ucp_header_friends_offline_username_full_prepend
===
* Locations:
+ styles/prosilver/template/ucp_header.html
* Since: 3.2.10-RC1
* Purpose: Prepend information to offline friends username in UCP
ucp_header_friends_online_username_full_append
===
* Locations:
+ styles/prosilver/template/ucp_header.html
* Since: 3.2.10-RC1
* Purpose: Append information to online friends username in UCP
ucp_header_friends_online_username_full_prepend
===
* Locations:
+ styles/prosilver/template/ucp_header.html
* Since: 3.2.10-RC1
* Purpose: Prepend information to online friends username in UCP
ucp_main_front_user_activity_after
===
* Locations:
@@ -2828,13 +2730,6 @@ viewforum_body_last_post_author_username_prepend
* Since: 3.2.4-RC1
* Purpose: Prepend information to last post author username of member
viewforum_body_online_list_before
===
* Locations:
+ styles/prosilver/template/viewforum_body.html
* Since: 3.2.10-RC1
* Purpose: Add content before the online users list
viewforum_body_topic_author_username_append
===
* Locations:
@@ -2984,20 +2879,6 @@ viewtopic_body_contact_fields_before
* Purpose: Add data before the contact fields on the user profile when viewing
a post
viewtopic_body_contact_icon_append
===
* Locations:
+ styles/prosilver/template/viewtopic_body.html
* Since: 3.2.10-RC1
* Purpose: Add content directly after the contact field icons in post user miniprofiles
viewtopic_body_contact_icon_prepend
===
* Locations:
+ styles/prosilver/template/viewtopic_body.html
* Since: 3.2.10-RC1
* Purpose: Add content directly before the contact field icons in post user miniprofiles
viewtopic_body_footer_before
===
* Locations:
@@ -3006,13 +2887,6 @@ viewtopic_body_footer_before
* Purpose: Add content to the bottom of the View topic screen below the posts
and quick reply, directly before the jumpbox in Prosilver.
viewtopic_body_online_list_before
===
* Locations:
+ styles/prosilver/template/viewtopic_body.html
* Since: 3.2.10-RC1
* Purpose: Add content before the online users list
viewtopic_body_pagination_top_after
===
* Locations:

View File

@@ -70,7 +70,7 @@ http {
}
# Deny access to internal phpbb files.
location ~ /(config\.php|common\.php|cache|files|images/avatars/upload|includes|(?<!ext/)phpbb(?!\w+)|store|vendor) {
location ~ /(config\.php|common\.php|cache|files|images/avatars/upload|includes|(?<!ext/)phpbb|store|vendor) {
deny all;
# deny was ignored before 0.8.40 for connections over IPv6.
# Use internal directive to prohibit access on older versions.

View File

@@ -70,16 +70,10 @@ index index_phpbb_{SPHINX_ID}_main
docinfo = extern
morphology = none
stopwords =
wordforms = # optional, specify path to wordforms file. See ./docs/sphinx_wordforms.txt for example
exceptions = # optional, specify path to exceptions file. See ./docs/sphinx_exceptions.txt for example
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 # Minimum number of characters for wildcard searches by prefix (min 1). Default is 3. If specified, set min_infix_len to 0
min_infix_len = 0 # Minimum number of characters for wildcard searches by infix (min 2). If specified, set min_prefix_len to 0
html_strip = 1
index_exact_words = 0 # Set to 1 to enable exact search operator. Requires wordforms or morphology
blend_chars = U+23, U+24, U+25, U+26, U+40
min_prefix_len = 0
min_infix_len = 0
}
index index_phpbb_{SPHINX_ID}_delta : index_phpbb_{SPHINX_ID}_main
{

View File

@@ -1,97 +0,0 @@
# Sample tokenised exception file for phpBB using Sphinx search engine
#
# Exceptions allow one or more tokens to be mapped to a single keyword.
# Exceptions are defined BEFORE tokenisation and are therefore case sensitive and accept characters that would normally be excluded such as punctuation.
# Exceptions are applied to both indexing and searching, such that search queries for one mapped variation will find all others.
# List needs to be customised according to board and language requirements.
# Please remove all commented lines before use.
#
# See Sphinx documentation for further details: http://sphinxsearch.com/docs/current/conf-exceptions.html
#
# Examples:
#
# Acronyms and initialisms
U.S.A. => usa
u.s.a. => usa
U.S.A => usa
u.s.a => usa
USA => usa
U.S. => usa
u.s. => usa
U.S => usa
u.s => usa
US => usa
# Abbreviations using ampersand
profit & loss => p&l
profit and loss => p&l
P & L => p&l
P and L => p&l
p & l => p&l
p and l => p&l
# Ampersands
& => and
# Ordinals
1st => first
1ST => first
2nd => second
2ND => second
3rd => third
3RD => third
4th => fourth
4TH => fourth
5th => fifth
5TH => fifth
6th => sixth
6TH => sixth
7th => seventh
7TH => seventh
8th => eighth
8TH => eighth
9th => ninth
9TH => ninth
10th => tenth
10TH => tenth
# Numerals
1 => one
2 => two
3 => three
4 => four
5 => five
6 => six
7 => seven
8 => eight
9 => nine
10 => ten
11 => eleven
12 => twelve
13 => thirteen
14 => fourteen
15 => fifteen
16 => sixteen
17 => seventeen
18 => eighteen
19 => nineteen
20 => twenty
30 => thirty
40 => forty
50 => fifty
60 => sixty
70 => seventy
80 => eighty
90 => ninety
100 => one hundred
1000 => one thousand
10000 => ten thousand
100000 => one hundred thousand
1000000 => one million
1000000000 => one billion
# Numbered groupings / decades
10s => tens
20s => twenties
30s => thirties
40s => forties
50s => fifties
60s => sixties
70s => seventies
80s => eighties
90s => nineties

File diff suppressed because it is too large Load Diff

View File

@@ -257,11 +257,6 @@ else
$display_cat = ATTACHMENT_CATEGORY_NONE;
}
if ($display_cat == ATTACHMENT_CATEGORY_FLASH && !$user->optionget('viewflash'))
{
$display_cat = ATTACHMENT_CATEGORY_NONE;
}
/**
* Event to modify data before sending file to browser
*

View File

@@ -36,17 +36,17 @@ $mode = $request->variable('mode', '');
if ($forum_id !== 0)
{
$url = $controller_helper->route('phpbb_feed_forum', array('forum_id' => $forum_id));
$url = $controller_helper->route('phpbb_feed_forum', array('forum_id' => $forum_id), false);
}
else if ($topic_id !== 0)
{
$url = $controller_helper->route('phpbb_feed_topic', array('topic_id' => $topic_id));
$url = $controller_helper->route('phpbb_feed_topic', array('topic_id' => $topic_id), false);
}
else
{
try
{
$url = $controller_helper->route('phpbb_feed_overall', array('mode' => $mode));
$url = $controller_helper->route('phpbb_feed_overall', array('mode' => $mode), false);
}
catch (InvalidParameterException $e)
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 B

View File

@@ -123,29 +123,17 @@ class acp_attachments
include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
}
$allowed_pm_groups = [];
$allowed_post_groups = [];
$s_assigned_groups = [];
$sql = 'SELECT group_id, group_name, cat_id, allow_group, allow_in_pm
$sql = 'SELECT group_name, cat_id
FROM ' . EXTENSION_GROUPS_TABLE . '
WHERE cat_id > 0
ORDER BY cat_id';
$result = $db->sql_query($sql);
$s_assigned_groups = array();
while ($row = $db->sql_fetchrow($result))
{
$row['group_name'] = $this->language->is_set('EXT_GROUP_' . utf8_strtoupper($row['group_name'])) ? $this->language->lang('EXT_GROUP_' . utf8_strtoupper($row['group_name'])) : $row['group_name'];
$s_assigned_groups[$row['cat_id']][] = $row['group_name'];
if ($row['allow_group'])
{
$allowed_post_groups[] = $row['group_id'];
}
if ($row['allow_in_pm'])
{
$allowed_pm_groups[] = $row['group_id'];
}
}
$db->sql_freeresult($result);
@@ -163,13 +151,13 @@ class acp_attachments
'allow_attachments' => array('lang' => 'ALLOW_ATTACHMENTS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'allow_pm_attach' => array('lang' => 'ALLOW_PM_ATTACHMENTS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'max_attachments' => array('lang' => 'MAX_ATTACHMENTS', 'validate' => 'int:0:999', 'type' => 'number:0:999', 'explain' => false),
'max_attachments_pm' => array('lang' => 'MAX_ATTACHMENTS_PM', 'validate' => 'int:0:999', 'type' => 'number:0:999', 'explain' => false),
'upload_path' => array('lang' => 'UPLOAD_DIR', 'validate' => 'wpath', 'type' => 'text:25:100', 'explain' => true),
'display_order' => array('lang' => 'DISPLAY_ORDER', 'validate' => 'bool', 'type' => 'custom', 'method' => 'display_order', 'explain' => true),
'attachment_quota' => array('lang' => 'ATTACH_QUOTA', 'validate' => 'string', 'type' => 'custom', 'method' => 'max_filesize', 'explain' => true),
'max_filesize' => array('lang' => 'ATTACH_MAX_FILESIZE', 'validate' => 'string', 'type' => 'custom', 'method' => 'max_filesize', 'explain' => true),
'max_filesize_pm' => array('lang' => 'ATTACH_MAX_PM_FILESIZE','validate' => 'string', 'type' => 'custom', 'method' => 'max_filesize', 'explain' => true),
'max_attachments' => array('lang' => 'MAX_ATTACHMENTS', 'validate' => 'int:0:999', 'type' => 'number:0:999', 'explain' => false),
'max_attachments_pm' => array('lang' => 'MAX_ATTACHMENTS_PM', 'validate' => 'int:0:999', 'type' => 'number:0:999', 'explain' => false),
'secure_downloads' => array('lang' => 'SECURE_DOWNLOADS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'secure_allow_deny' => array('lang' => 'SECURE_ALLOW_DENY', 'validate' => 'int', 'type' => 'custom', 'method' => 'select_allow_deny', 'explain' => true),
'secure_allow_empty_referer' => array('lang' => 'SECURE_EMPTY_REFERRER', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
@@ -181,8 +169,6 @@ class acp_attachments
'img_max_thumb_width' => array('lang' => 'MAX_THUMB_WIDTH', 'validate' => 'int:0:999999999999999', 'type' => 'number:0:999999999999999', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
'img_min_thumb_filesize' => array('lang' => 'MIN_THUMB_FILESIZE', 'validate' => 'int:0:999999999999999', 'type' => 'number:0:999999999999999', 'explain' => true, 'append' => ' ' . $user->lang['BYTES']),
'img_max' => array('lang' => 'MAX_IMAGE_SIZE', 'validate' => 'int:0:9999', 'type' => 'dimension:0:9999', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
'img_strip_metadata' => array('lang' => 'IMAGE_STRIP_METADATA', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'img_quality' => array('lang' => 'IMAGE_QUALITY', 'validate' => 'int:50:90', 'type' => 'number:50:90', 'explain' => true, 'append' => ' &percnt;'),
'img_link' => array('lang' => 'IMAGE_LINK_SIZE', 'validate' => 'int:0:9999', 'type' => 'dimension:0:9999', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
)
);
@@ -225,9 +211,6 @@ class acp_attachments
if (in_array($config_name, array('attachment_quota', 'max_filesize', 'max_filesize_pm')))
{
$size_var = $request->variable($config_name, '');
$config_value = (int) $config_value;
$this->new_config[$config_name] = $config_value = ($size_var == 'kb') ? round($config_value * 1024) : (($size_var == 'mb') ? round($config_value * 1048576) : $config_value);
}
@@ -276,14 +259,10 @@ class acp_attachments
$db->sql_freeresult($result);
$template->assign_vars(array(
'S_EMPTY_PM_GROUPS' => empty($allowed_pm_groups),
'S_EMPTY_POST_GROUPS' => empty($allowed_post_groups),
'S_SECURE_DOWNLOADS' => $this->new_config['secure_downloads'],
'S_DEFINED_IPS' => ($defined_ips != '') ? true : false,
'S_WARNING' => (count($error)) ? true : false,
'U_EXTENSION_GROUPS' => append_sid("{$phpbb_admin_path}index.$phpEx", "i=$id&amp;mode=ext_groups"),
'WARNING_MSG' => implode('<br />', $error),
'DEFINED_IPS' => $defined_ips,
@@ -631,7 +610,6 @@ class acp_attachments
$cat_lang = array(
ATTACHMENT_CATEGORY_NONE => $user->lang['NO_FILE_CAT'],
ATTACHMENT_CATEGORY_IMAGE => $user->lang['CAT_IMAGES'],
ATTACHMENT_CATEGORY_FLASH => $user->lang['CAT_FLASH_FILES'],
);
$group_id = $request->variable('g', 0);
@@ -1312,7 +1290,7 @@ class acp_attachments
*/
public function get_attachment_stats($limit = '')
{
$sql = 'SELECT COUNT(a.attach_id) AS num_files, SUM(' . $this->db->cast_expr_to_bigint('a.filesize') . ') AS upload_dir_size
$sql = 'SELECT COUNT(a.attach_id) AS num_files, SUM(a.filesize) AS upload_dir_size
FROM ' . ATTACHMENTS_TABLE . " a
WHERE a.is_orphan = 0
$limit";
@@ -1406,7 +1384,6 @@ class acp_attachments
$types = array(
ATTACHMENT_CATEGORY_NONE => $user->lang['NO_FILE_CAT'],
ATTACHMENT_CATEGORY_IMAGE => $user->lang['CAT_IMAGES'],
ATTACHMENT_CATEGORY_FLASH => $user->lang['CAT_FLASH_FILES'],
);
if ($group_id)
@@ -1499,7 +1476,7 @@ class acp_attachments
try
{
$this->filesystem->phpbb_chmod($phpbb_root_path . $upload_dir, \phpbb\filesystem\filesystem_interface::CHMOD_READ | \phpbb\filesystem\filesystem_interface::CHMOD_WRITE);
$this->filesystem->phpbb_chmod($phpbb_root_path . $upload_dir, CHMOD_READ | CHMOD_WRITE);
}
catch (\phpbb\filesystem\exception\filesystem_exception $e)
{

View File

@@ -156,8 +156,7 @@ class acp_ban
break;
}
display_ban_end_options();
display_ban_options($mode);
self::display_ban_options($mode);
$template->assign_vars(array(
'L_TITLE' => $this->page_title,
@@ -174,4 +173,126 @@ class acp_ban
'U_FIND_USERNAME' => append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=searchuser&amp;form=acp_ban&amp;field=ban'),
));
}
/**
* Display ban options
*/
static public function display_ban_options($mode)
{
global $user, $db, $template;
// Ban length options
$ban_end_text = array(0 => $user->lang['PERMANENT'], 30 => $user->lang['30_MINS'], 60 => $user->lang['1_HOUR'], 360 => $user->lang['6_HOURS'], 1440 => $user->lang['1_DAY'], 10080 => $user->lang['7_DAYS'], 20160 => $user->lang['2_WEEKS'], 40320 => $user->lang['1_MONTH'], -1 => $user->lang['UNTIL'] . ' -&gt; ');
$ban_end_options = '';
foreach ($ban_end_text as $length => $text)
{
$ban_end_options .= '<option value="' . $length . '">' . $text . '</option>';
}
switch ($mode)
{
case 'user':
$field = 'username';
$sql = 'SELECT b.*, u.user_id, u.username, u.username_clean
FROM ' . BANLIST_TABLE . ' b, ' . USERS_TABLE . ' u
WHERE (b.ban_end >= ' . time() . '
OR b.ban_end = 0)
AND u.user_id = b.ban_userid
ORDER BY u.username_clean ASC';
break;
case 'ip':
$field = 'ban_ip';
$sql = 'SELECT *
FROM ' . BANLIST_TABLE . '
WHERE (ban_end >= ' . time() . "
OR ban_end = 0)
AND ban_ip <> ''
ORDER BY ban_ip";
break;
case 'email':
$field = 'ban_email';
$sql = 'SELECT *
FROM ' . BANLIST_TABLE . '
WHERE (ban_end >= ' . time() . "
OR ban_end = 0)
AND ban_email <> ''
ORDER BY ban_email";
break;
}
$result = $db->sql_query($sql);
$banned_options = $excluded_options = array();
while ($row = $db->sql_fetchrow($result))
{
$option = '<option value="' . $row['ban_id'] . '">' . $row[$field] . '</option>';
if ($row['ban_exclude'])
{
$excluded_options[] = $option;
}
else
{
$banned_options[] = $option;
}
$time_length = ($row['ban_end']) ? ($row['ban_end'] - $row['ban_start']) / 60 : 0;
if ($time_length == 0)
{
// Banned permanently
$ban_length = $user->lang['PERMANENT'];
}
else if (isset($ban_end_text[$time_length]))
{
// Banned for a given duration
$ban_length = $user->lang('BANNED_UNTIL_DURATION', $ban_end_text[$time_length], $user->format_date($row['ban_end'], false, true));
}
else
{
// Banned until given date
$ban_length = $user->lang('BANNED_UNTIL_DATE', $user->format_date($row['ban_end'], false, true));
}
$template->assign_block_vars('bans', array(
'BAN_ID' => (int) $row['ban_id'],
'LENGTH' => $ban_length,
'A_LENGTH' => addslashes($ban_length),
'REASON' => $row['ban_reason'],
'A_REASON' => addslashes($row['ban_reason']),
'GIVE_REASON' => $row['ban_give_reason'],
'A_GIVE_REASON' => addslashes($row['ban_give_reason']),
));
}
$db->sql_freeresult($result);
$options = '';
if ($excluded_options)
{
$options .= '<optgroup label="' . $user->lang['OPTIONS_EXCLUDED'] . '">';
$options .= implode('', $excluded_options);
$options .= '</optgroup>';
}
if ($banned_options)
{
$options .= '<optgroup label="' . $user->lang['OPTIONS_BANNED'] . '">';
$options .= implode('', $banned_options);
$options .= '</optgroup>';
}
$template->assign_vars(array(
'S_BAN_END_OPTIONS' => $ban_end_options,
'S_BANNED_OPTIONS' => ($banned_options || $excluded_options) ? true : false,
'BANNED_OPTIONS' => $options,
));
}
}

View File

@@ -157,7 +157,7 @@ class acp_bbcodes
* @var string bbcode_tpl The bbcode HTML replacement string
* @var string bbcode_helpline The bbcode help line string
* @var array hidden_fields Array of hidden fields for use when
* submitting form when $warn_text is true
* submitting form when $warn_unsafe is true
* @since 3.1.0-a3
*/
$vars = array(
@@ -172,14 +172,25 @@ class acp_bbcodes
);
extract($phpbb_dispatcher->trigger_event('core.acp_bbcodes_modify_create', compact($vars)));
$warn_text = preg_match('%<[^>]*\{text[\d]*\}[^>]*>%i', $bbcode_tpl);
$acp_utils = $phpbb_container->get('text_formatter.acp_utils');
$bbcode_info = $acp_utils->analyse_bbcode($bbcode_match, $bbcode_tpl);
$warn_unsafe = ($bbcode_info['status'] === $acp_utils::BBCODE_STATUS_UNSAFE);
if (!$warn_text && !check_form_key($form_key))
if ($bbcode_info['status'] === $acp_utils::BBCODE_STATUS_INVALID_TEMPLATE)
{
trigger_error($user->lang['BBCODE_INVALID_TEMPLATE'] . adm_back_link($this->u_action), E_USER_WARNING);
}
if ($bbcode_info['status'] === $acp_utils::BBCODE_STATUS_INVALID_DEFINITION)
{
trigger_error($user->lang['BBCODE_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}
if (!$warn_unsafe && !check_form_key($form_key))
{
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}
if (!$warn_text || confirm_box(true))
if (!$warn_unsafe || confirm_box(true))
{
$data = $this->build_regexp($bbcode_match, $bbcode_tpl);
@@ -226,12 +237,6 @@ class acp_bbcodes
trigger_error($user->lang['BBCODE_HELPLINE_TOO_LONG'] . adm_back_link($this->u_action), E_USER_WARNING);
}
/**
* Replace Emojis and other 4bit UTF-8 chars not allowed by MySQL to UCR/NCR.
* Using their Numeric Character Reference's Hexadecimal notation.
*/
$bbcode_helpline = utf8_encode_ucr($bbcode_helpline);
$sql_ary = array_merge($sql_ary, array(
'bbcode_tag' => $data['bbcode_tag'],
'bbcode_match' => $bbcode_match,
@@ -452,144 +457,7 @@ class acp_bbcodes
function build_regexp(&$bbcode_match, &$bbcode_tpl)
{
$bbcode_match = trim($bbcode_match);
$bbcode_tpl = trim($bbcode_tpl);
// Allow unicode characters for URL|LOCAL_URL|RELATIVE_URL|INTTEXT tokens
$utf8 = preg_match('/(URL|LOCAL_URL|RELATIVE_URL|INTTEXT)/', $bbcode_match);
$fp_match = preg_quote($bbcode_match, '!');
$fp_replace = preg_replace('#^\[(.*?)\]#', '[$1:$uid]', $bbcode_match);
$fp_replace = preg_replace('#\[/(.*?)\]$#', '[/$1:$uid]', $fp_replace);
$sp_match = preg_quote($bbcode_match, '!');
$sp_match = preg_replace('#^\\\\\[(.*?)\\\\\]#', '\[$1:$uid\]', $sp_match);
$sp_match = preg_replace('#\\\\\[/(.*?)\\\\\]$#', '\[/$1:$uid\]', $sp_match);
$sp_replace = $bbcode_tpl;
// @todo Make sure to change this too if something changed in message parsing
$tokens = array(
'URL' => array(
'!(?:(' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('url')) . ')|(' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('www_url')) . '))!ie' => "\$this->bbcode_specialchars(('\$1') ? '\$1' : 'http://\$2')"
),
'LOCAL_URL' => array(
'!(' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('relative_url')) . ')!e' => "\$this->bbcode_specialchars('$1')"
),
'RELATIVE_URL' => array(
'!(' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('relative_url')) . ')!e' => "\$this->bbcode_specialchars('$1')"
),
'EMAIL' => array(
'!(' . get_preg_expression('email') . ')!ie' => "\$this->bbcode_specialchars('$1')"
),
'TEXT' => array(
'!(.*?)!es' => "str_replace(array(\"\\r\\n\", '\\\"', '\\'', '(', ')'), array(\"\\n\", '\"', '&#39;', '&#40;', '&#41;'), trim('\$1'))"
),
'SIMPLETEXT' => array(
'!([a-zA-Z0-9-+.,_ ]+)!' => "$1"
),
'INTTEXT' => array(
'!([\p{L}\p{N}\-+,_. ]+)!u' => "$1"
),
'IDENTIFIER' => array(
'!([a-zA-Z0-9-_]+)!' => "$1"
),
'COLOR' => array(
'!([a-z]+|#[0-9abcdef]+)!i' => '$1'
),
'NUMBER' => array(
'!([0-9]+)!' => '$1'
)
);
$sp_tokens = array(
'URL' => '(?i)((?:' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('url')) . ')|(?:' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('www_url')) . '))(?-i)',
'LOCAL_URL' => '(?i)(' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('relative_url')) . ')(?-i)',
'RELATIVE_URL' => '(?i)(' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('relative_url')) . ')(?-i)',
'EMAIL' => '(' . get_preg_expression('email') . ')',
'TEXT' => '(.*?)',
'SIMPLETEXT' => '([a-zA-Z0-9-+.,_ ]+)',
'INTTEXT' => '([\p{L}\p{N}\-+,_. ]+)',
'IDENTIFIER' => '([a-zA-Z0-9-_]+)',
'COLOR' => '([a-zA-Z]+|#[0-9abcdefABCDEF]+)',
'NUMBER' => '([0-9]+)',
);
$pad = 0;
$modifiers = 'i';
$modifiers .= ($utf8) ? 'u' : '';
if (preg_match_all('/\{(' . implode('|', array_keys($tokens)) . ')[0-9]*\}/i', $bbcode_match, $m))
{
foreach ($m[0] as $n => $token)
{
$token_type = $m[1][$n];
reset($tokens[strtoupper($token_type)]);
list($match, $replace) = each($tokens[strtoupper($token_type)]);
// Pad backreference numbers from tokens
if (preg_match_all('/(?<!\\\\)\$([0-9]+)/', $replace, $repad))
{
$repad = $pad + count(array_unique($repad[0]));
$replace = preg_replace_callback('/(?<!\\\\)\$([0-9]+)/', function ($match) use ($pad) {
return '${' . ($match[1] + $pad) . '}';
}, $replace);
$pad = $repad;
}
// Obtain pattern modifiers to use and alter the regex accordingly
$regex = preg_replace('/!(.*)!([a-z]*)/', '$1', $match);
$regex_modifiers = preg_replace('/!(.*)!([a-z]*)/', '$2', $match);
for ($i = 0, $size = strlen($regex_modifiers); $i < $size; ++$i)
{
if (strpos($modifiers, $regex_modifiers[$i]) === false)
{
$modifiers .= $regex_modifiers[$i];
if ($regex_modifiers[$i] == 'e')
{
$fp_replace = "'" . str_replace("'", "\\'", $fp_replace) . "'";
}
}
if ($regex_modifiers[$i] == 'e')
{
$replace = "'.$replace.'";
}
}
$fp_match = str_replace(preg_quote($token, '!'), $regex, $fp_match);
$fp_replace = str_replace($token, $replace, $fp_replace);
$sp_match = str_replace(preg_quote($token, '!'), $sp_tokens[$token_type], $sp_match);
// Prepend the board url to local relative links
$replace_prepend = ($token_type === 'LOCAL_URL') ? generate_board_url() . '/' : '';
$sp_replace = str_replace($token, $replace_prepend . '${' . ($n + 1) . '}', $sp_replace);
}
$fp_match = '!' . $fp_match . '!' . $modifiers;
$sp_match = '!' . $sp_match . '!s' . (($utf8) ? 'u' : '');
if (strpos($fp_match, 'e') !== false)
{
$fp_replace = str_replace("'.'", '', $fp_replace);
$fp_replace = str_replace(".''.", '.', $fp_replace);
}
}
else
{
// No replacement is present, no need for a second-pass pattern replacement
// A simple str_replace will suffice
$fp_match = '!' . $fp_match . '!' . $modifiers;
$sp_match = $fp_replace;
$sp_replace = '';
}
// Lowercase tags
$bbcode_tag = preg_replace('/.*?\[([a-z0-9_-]+).*/i', '$1', $bbcode_match);
$bbcode_search = preg_replace('/.*?\[([a-z0-9_-]+).*/i', '$1', $bbcode_match);
if (!preg_match('/^[a-zA-Z0-9_-]+$/', $bbcode_tag))
{
@@ -597,25 +465,13 @@ class acp_bbcodes
trigger_error($user->lang['BBCODE_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}
$fp_match = preg_replace_callback('#\[/?' . $bbcode_search . '#i', function ($match) {
return strtolower($match[0]);
}, $fp_match);
$fp_replace = preg_replace_callback('#\[/?' . $bbcode_search . '#i', function ($match) {
return strtolower($match[0]);
}, $fp_replace);
$sp_match = preg_replace_callback('#\[/?' . $bbcode_search . '#i', function ($match) {
return strtolower($match[0]);
}, $sp_match);
$sp_replace = preg_replace_callback('#\[/?' . $bbcode_search . '#i', function ($match) {
return strtolower($match[0]);
}, $sp_replace);
return array(
'bbcode_tag' => $bbcode_tag,
'first_pass_match' => $fp_match,
'first_pass_replace' => $fp_replace,
'second_pass_match' => $sp_match,
'second_pass_replace' => $sp_replace
'first_pass_match' => '/(?!)/',
'first_pass_replace' => '',
// Use a non-matching, valid regexp to effectively disable this BBCode
'second_pass_match' => '/(?!)/',
'second_pass_replace' => ''
);
}
}

View File

@@ -101,18 +101,10 @@ class acp_board
'allow_bookmarks' => array('lang' => 'ALLOW_BOOKMARKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'allow_birthdays' => array('lang' => 'ALLOW_BIRTHDAYS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'display_last_subject' => array('lang' => 'DISPLAY_LAST_SUBJECT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'display_unapproved_posts' => array('lang' => 'DISPLAY_UNAPPROVED_POSTS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'allow_quick_reply' => array('lang' => 'ALLOW_QUICK_REPLY', 'validate' => 'bool', 'type' => 'custom', 'method' => 'quick_reply', 'explain' => true),
'legend2' => 'ACP_LOAD_SETTINGS',
'load_birthdays' => array('lang' => 'YES_BIRTHDAYS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'load_moderators' => array('lang' => 'YES_MODERATORS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'load_jumpbox' => array('lang' => 'YES_JUMPBOX', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'load_cpf_memberlist' => array('lang' => 'LOAD_CPF_MEMBERLIST', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'load_cpf_pm' => array('lang' => 'LOAD_CPF_PM', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'load_cpf_viewprofile' => array('lang' => 'LOAD_CPF_VIEWPROFILE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'load_cpf_viewtopic' => array('lang' => 'LOAD_CPF_VIEWTOPIC', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'legend3' => 'ACP_SUBMIT_CHANGES',
'legend2' => 'ACP_SUBMIT_CHANGES',
)
);
break;
@@ -141,10 +133,12 @@ class acp_board
'title' => 'ACP_AVATAR_SETTINGS',
'vars' => array(
'legend1' => 'ACP_AVATAR_SETTINGS',
'avatar_min_width' => array('lang' => 'MIN_AVATAR_SIZE', 'validate' => 'int:0', 'type' => false, 'method' => false, 'explain' => false),
'avatar_min_height' => array('lang' => 'MIN_AVATAR_SIZE', 'validate' => 'int:0', 'type' => false, 'method' => false, 'explain' => false),
'avatar_max_width' => array('lang' => 'MAX_AVATAR_SIZE', 'validate' => 'int:0', 'type' => false, 'method' => false, 'explain' => false),
'avatar_max_height' => array('lang' => 'MAX_AVATAR_SIZE', 'validate' => 'int:0', 'type' => false, 'method' => false, 'explain' => false),
'allow_avatar' => array('lang' => 'ALLOW_AVATARS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'avatar_min' => array('lang' => 'MIN_AVATAR_SIZE', 'validate' => 'int:0', 'type' => 'dimension:0', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
'avatar_max' => array('lang' => 'MAX_AVATAR_SIZE', 'validate' => 'int:0', 'type' => 'dimension:0', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
@@ -155,8 +149,6 @@ class acp_board
{
$display_vars['vars'] += $avatar_vars;
}
$display_vars['vars']['legend2'] = 'ACP_SUBMIT_CHANGES';
break;
case 'message':
@@ -263,7 +255,6 @@ class acp_board
'vars' => array(
'legend1' => 'GENERAL_SETTINGS',
'max_name_chars' => array('lang' => 'USERNAME_LENGTH', 'validate' => 'int:8:180', 'type' => false, 'method' => false, 'explain' => false,),
'max_pass_chars' => array('lang' => 'PASSWORD_LENGTH', 'validate' => 'int:8:255', 'type' => false, 'method' => false, 'explain' => false,),
'require_activation' => array('lang' => 'ACC_ACTIVATION', 'validate' => 'int', 'type' => 'select', 'method' => 'select_acc_activation', 'explain' => true),
'new_member_post_limit' => array('lang' => 'NEW_MEMBER_POST_LIMIT', 'validate' => 'int:0:255', 'type' => 'number:0:255', 'explain' => true, 'append' => ' ' . $user->lang['POSTS']),
@@ -315,8 +306,6 @@ class acp_board
'legend4' => 'ACP_FEED_SETTINGS_OTHER',
'feed_overall_forums' => array('lang' => 'ACP_FEED_OVERALL_FORUMS', 'validate' => 'bool', 'type' => 'radio:enabled_disabled', 'explain' => true ),
'feed_exclude_id' => array('lang' => 'ACP_FEED_EXCLUDE_ID', 'validate' => 'string', 'type' => 'custom', 'method' => 'select_exclude_forums', 'explain' => true),
'legend5' => 'ACP_SUBMIT_CHANGES',
)
);
break;
@@ -331,8 +320,6 @@ class acp_board
'cookie_path' => array('lang' => 'COOKIE_PATH', 'validate' => 'string', 'type' => 'text::255', 'explain' => true),
'cookie_secure' => array('lang' => 'COOKIE_SECURE', 'validate' => 'bool', 'type' => 'radio:enabled_disabled', 'explain' => true),
'cookie_notice' => array('lang' => 'COOKIE_NOTICE', 'validate' => 'bool', 'type' => 'radio:enabled_disabled', 'explain' => true),
'legend2' => 'ACP_SUBMIT_CHANGES',
)
);
break;
@@ -430,7 +417,6 @@ class acp_board
'remote_upload_verify' => array('lang' => 'UPLOAD_CERT_VALID', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'check_dnsbl' => array('lang' => 'CHECK_DNSBL', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'email_check_mx' => array('lang' => 'EMAIL_CHECK_MX', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'max_pass_chars' => array('lang' => 'PASSWORD_LENGTH', 'validate' => 'int:8:255', 'type' => false, 'method' => false, 'explain' => false,),
'min_pass_chars' => array('lang' => 'PASSWORD_LENGTH', 'validate' => 'int:1', 'type' => 'custom', 'method' => 'password_length', 'explain' => true),
'pass_complex' => array('lang' => 'PASSWORD_TYPE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_password_chars', 'explain' => true),
'chg_passforce' => array('lang' => 'FORCE_PASS_CHANGE', 'validate' => 'int:0:999', 'type' => 'number:0:999', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),
@@ -442,7 +428,6 @@ class acp_board
'form_token_lifetime' => array('lang' => 'FORM_TIME_MAX', 'validate' => 'int:-1:99999', 'type' => 'number:-1:99999', 'explain' => true, 'append' => ' ' . $user->lang['SECONDS']),
'form_token_sid_guests' => array('lang' => 'FORM_SID_GUESTS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'legend2' => 'ACP_SUBMIT_CHANGES',
)
);
break;
@@ -909,13 +894,13 @@ class acp_board
}
/**
* Maximum/Minimum password length
* Minimum password length
*/
function password_length($value, $key)
{
global $user;
return '<input id="' . $key . '" type="number" min="1" max="999" name="config[min_pass_chars]" value="' . $value . '" /> ' . $user->lang['MIN_CHARS'] . '&nbsp;&nbsp;<input type="number" min="8" max="255" name="config[max_pass_chars]" value="' . $this->new_config['max_pass_chars'] . '" /> ' . $user->lang['MAX_CHARS'];
return '<input id="' . $key . '" type="number" min="1" max="999" name="config[min_pass_chars]" value="' . $value . '" /> ' . $user->lang['MIN_CHARS'];
}
/**

View File

@@ -248,8 +248,6 @@ class acp_database
switch ($db->get_sql_layer())
{
case 'mysql':
case 'mysql4':
case 'mysqli':
case 'sqlite3':
while (($sql = $fgetd($fp, ";\n", $read, $seek, $eof)) !== false)

Some files were not shown because too many files have changed in this diff Show More