├── auth ├── index.htm └── provider │ ├── index.htm │ └── oauth │ └── service │ └── exception.php ├── groupposition └── exception.php ├── di └── exception │ ├── service_not_found_exception.php │ ├── multiple_service_definitions_exception.php │ └── di_exception.php ├── storage ├── update_type.php └── exception │ ├── action_in_progress_exception.php │ └── no_action_in_progress_exception.php ├── feed ├── exception │ ├── unauthorized_exception.php │ ├── feed_unavailable_exception.php │ ├── feed_exception.php │ ├── no_feed_exception.php │ ├── no_forum_exception.php │ ├── no_topic_exception.php │ ├── unauthorized_forum_exception.php │ └── unauthorized_topic_exception.php └── quote_helper.php ├── module └── exception │ ├── module_exception.php │ └── module_not_found_exception.php ├── search └── exception │ ├── action_in_progress_exception.php │ ├── no_action_in_progress_exception.php │ ├── no_search_backend_found_exception.php │ └── search_exception.php ├── controller └── exception.php ├── report └── exception │ ├── already_reported_exception.php │ ├── entity_not_found_exception.php │ ├── report_permission_denied_exception.php │ ├── invalid_report_exception.php │ ├── factory_invalid_argument_exception.php │ ├── pm_reporting_disabled_exception.php │ └── empty_report_exception.php ├── extension └── exception.php ├── notification ├── exception.php └── method │ └── extended_method_interface.php ├── ban └── exception │ ├── no_valid_ips_exception.php │ ├── invalid_length_exception.php │ ├── no_valid_emails_exception.php │ ├── no_valid_users_exception.php │ └── type_not_found_exception.php ├── exception ├── version_check_exception.php └── exception_interface.php ├── install ├── helper │ └── iohandler │ │ └── exception │ │ └── iohandler_not_implemented_exception.php ├── exception │ ├── invalid_dbms_exception.php │ ├── file_updater_failure_exception.php │ ├── cannot_build_container_exception.php │ ├── installer_exception.php │ ├── resource_limit_reached_exception.php │ ├── installer_config_not_writable_exception.php │ └── user_interaction_required_exception.php └── module │ ├── requirements │ ├── update_module.php │ └── install_module.php │ ├── install_database │ └── module.php │ ├── install_finish │ └── module.php │ ├── install_filesystem │ └── module.php │ ├── install_data │ └── module.php │ ├── obtain_data │ ├── update_module.php │ └── install_module.php │ ├── update_database │ └── module.php │ └── update_filesystem │ └── module.php ├── language └── exception │ ├── language_exception.php │ ├── invalid_plural_rule_exception.php │ └── language_file_not_found.php ├── composer ├── exception │ ├── managed_with_error_exception.php │ ├── managed_with_clean_error_exception.php │ └── managed_with_enable_error_exception.php └── io │ ├── null_io.php │ └── io_interface.php ├── passwords └── driver │ ├── phpass.php │ ├── argon2id.php │ ├── rehashable_driver_interface.php │ ├── bcrypt_2y.php │ └── convert_password.php ├── template ├── twig │ └── node │ │ ├── includejs.php │ │ ├── includecss.php │ │ └── expression │ │ └── binary │ │ ├── equalequal.php │ │ └── notequalequal.php └── exception │ └── user_object_not_available.php ├── db ├── extractor │ └── exception │ │ ├── invalid_format_exception.php │ │ └── extractor_not_initialized_exception.php ├── output_handler │ └── null_migrator_output_handler.php ├── tools │ ├── tools.php │ ├── mssql.php │ ├── postgres.php │ └── factory.php ├── migration │ ├── data │ │ ├── v32x │ │ │ ├── timezone_p3.php │ │ │ ├── remove_imagick.php │ │ │ ├── add_plupload_config.php │ │ │ ├── f_list_topics_permission_add.php │ │ │ ├── cookie_notice_p2.php │ │ │ ├── v328.php │ │ │ ├── disable_remote_avatar.php │ │ │ ├── v3210.php │ │ │ ├── v3211.php │ │ │ ├── v323.php │ │ │ ├── v327.php │ │ │ ├── v325rc1.php │ │ │ ├── v327rc1.php │ │ │ ├── v329rc1.php │ │ │ ├── forum_topics_per_page_type.php │ │ │ ├── v323rc2.php │ │ │ ├── v326rc1.php │ │ │ ├── load_user_activity_limit.php │ │ │ ├── enable_accurate_pm_button.php │ │ │ ├── v322.php │ │ │ ├── v321.php │ │ │ ├── v325.php │ │ │ ├── v324.php │ │ │ ├── v328rc1.php │ │ │ ├── v329.php │ │ │ ├── email_force_sender.php │ │ │ ├── v323rc1.php │ │ │ └── v324rc1.php │ │ ├── v310 │ │ │ ├── boardindex.php │ │ │ ├── mod_rewrite.php │ │ │ ├── live_searches_config.php │ │ │ ├── extensions_version_check_force_unstable.php │ │ │ ├── board_contact_name.php │ │ │ ├── forgot_password.php │ │ │ ├── rc2.php │ │ │ ├── rc6.php │ │ │ ├── notifications_cron_p2.php │ │ │ ├── gold.php │ │ │ ├── namespaces.php │ │ │ ├── search_type.php │ │ │ ├── notifications_cron.php │ │ │ ├── rc4.php │ │ │ ├── allow_cdn.php │ │ │ ├── alpha2.php │ │ │ └── plupload.php │ │ ├── v320 │ │ │ ├── cookie_notice.php │ │ │ ├── remote_upload_validation.php │ │ │ ├── allowed_schemes_links.php │ │ │ ├── dev.php │ │ │ └── font_awesome_update.php │ │ ├── v400 │ │ │ ├── add_disable_board_access_config.php │ │ │ ├── remove_remote_upload.php │ │ │ ├── remove_max_img_size.php │ │ │ ├── dev.php │ │ │ ├── remove_template_php.php │ │ │ ├── remove_dbms_version_config.php │ │ │ ├── font_awesome_6_upgrade.php │ │ │ ├── extensions_composer_3.php │ │ │ └── remove_flash_v2.php │ │ ├── v33x │ │ │ ├── fix_display_unapproved_posts_config.php │ │ │ ├── font_awesome_5_rollback.php │ │ │ ├── v333.php │ │ │ ├── v337.php │ │ │ ├── v333rc1.php │ │ │ ├── v334.php │ │ │ ├── v335.php │ │ │ ├── v336.php │ │ │ ├── v338.php │ │ │ ├── v339.php │ │ │ ├── v3310.php │ │ │ ├── v3313.php │ │ │ ├── v3314.php │ │ │ ├── v3315.php │ │ │ ├── font_awesome_5_update.php │ │ │ ├── v334rc1.php │ │ │ ├── v339rc1.php │ │ │ ├── v3310rc1.php │ │ │ ├── v3311.php │ │ │ ├── v3313rc1.php │ │ │ ├── v3314rc1.php │ │ │ ├── v332rc1.php │ │ │ ├── v3312rc1.php │ │ │ ├── v3315rc1.php │ │ │ ├── v336rc1.php │ │ │ ├── v332.php │ │ │ ├── v338rc1.php │ │ │ └── default_search_return_chars.php │ │ ├── v31x │ │ │ ├── m_softdelete_global.php │ │ │ ├── plupload_last_gc_dynamic.php │ │ │ ├── v312.php │ │ │ ├── v313.php │ │ │ ├── v315.php │ │ │ ├── v316.php │ │ │ ├── v317.php │ │ │ ├── v318.php │ │ │ ├── v319.php │ │ │ ├── v3110.php │ │ │ ├── v3111.php │ │ │ ├── v3112.php │ │ │ ├── v314rc1.php │ │ │ ├── v315rc1.php │ │ │ ├── v316rc1.php │ │ │ ├── v317pl1.php │ │ │ ├── v319rc1.php │ │ │ ├── increase_size_of_dateformat.php │ │ │ ├── update_hashes.php │ │ │ ├── v3110rc1.php │ │ │ ├── v311.php │ │ │ ├── v314.php │ │ │ ├── v317rc1.php │ │ │ ├── v312rc1.php │ │ │ ├── v313rc2.php │ │ │ ├── v314rc2.php │ │ │ ├── add_smtp_ssl_context_config_options.php │ │ │ ├── add_jabber_ssl_context_config_options.php │ │ │ └── v318rc1.php │ │ ├── v330 │ │ │ ├── dev.php │ │ │ ├── v330rc1.php │ │ │ ├── add_display_unapproved_posts_config.php │ │ │ └── v330.php │ │ ├── v30x │ │ │ ├── release_3_0_1.php │ │ │ ├── release_3_0_2.php │ │ │ ├── release_3_0_3.php │ │ │ ├── release_3_0_6.php │ │ │ ├── release_3_0_7.php │ │ │ ├── release_3_0_8.php │ │ │ ├── release_3_0_9.php │ │ │ ├── release_3_0_10.php │ │ │ ├── release_3_0_11.php │ │ │ ├── release_3_0_5.php │ │ │ ├── release_3_0_6_rc2.php │ │ │ ├── release_3_0_6_rc4.php │ │ │ ├── release_3_0_7_pl1.php │ │ │ ├── release_3_0_9_rc2.php │ │ │ ├── release_3_0_9_rc3.php │ │ │ ├── release_3_0_9_rc4.php │ │ │ ├── release_3_0_10_rc2.php │ │ │ ├── release_3_0_10_rc3.php │ │ │ └── release_3_0_10_rc1.php │ │ └── .htaccess │ └── container_aware_migration.php └── middleware │ ├── mysql │ ├── middleware.php │ └── driver.php │ ├── oracle │ └── middleware.php │ ├── sqlsrv │ ├── middleware.php │ └── driver.php │ └── postgresql │ ├── middleware.php │ └── driver.php ├── captcha └── plugins │ └── confirm_type.php ├── console └── command │ └── config │ └── command.php ├── textreparser └── plugins │ ├── forum_rules.php │ ├── forum_description.php │ ├── group_description.php │ ├── pm_text.php │ └── post_text.php ├── mimetype ├── content_guesser.php └── guesser_base.php ├── routing ├── resources_locator │ └── resources_locator_interface.php └── file_locator.php ├── textformatter └── cache_interface.php ├── composer.json ├── json_response.php ├── attachment └── attachment_category.php └── .htaccess /auth/index.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /auth/provider/index.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /groupposition/exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\groupposition; 15 | 16 | class exception extends \Exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /di/exception/service_not_found_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\di\exception; 15 | 16 | class service_not_found_exception extends di_exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /storage/update_type.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\storage; 15 | 16 | enum update_type: int 17 | { 18 | case CONFIG = 0; 19 | case COPY = 1; 20 | case MOVE = 2; 21 | } 22 | -------------------------------------------------------------------------------- /feed/exception/unauthorized_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\feed\exception; 15 | 16 | abstract class unauthorized_exception extends feed_exception 17 | { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module/exception/module_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\module\exception; 15 | 16 | class module_exception extends \phpbb\exception\runtime_exception 17 | { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /search/exception/action_in_progress_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\search\exception; 15 | 16 | class action_in_progress_exception extends search_exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /feed/exception/feed_unavailable_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\feed\exception; 15 | 16 | abstract class feed_unavailable_exception extends feed_exception 17 | { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /module/exception/module_not_found_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\module\exception; 15 | 16 | class module_not_found_exception extends module_exception 17 | { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /storage/exception/action_in_progress_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\storage\exception; 15 | 16 | class action_in_progress_exception extends storage_exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /controller/exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\controller; 15 | 16 | /** 17 | * Controller exception class 18 | */ 19 | class exception extends \phpbb\exception\runtime_exception 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /di/exception/multiple_service_definitions_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\di\exception; 15 | 16 | class multiple_service_definitions_exception extends di_exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /report/exception/already_reported_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\report\exception; 15 | 16 | class already_reported_exception extends invalid_report_exception 17 | { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /report/exception/entity_not_found_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\report\exception; 15 | 16 | class entity_not_found_exception extends invalid_report_exception 17 | { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /search/exception/no_action_in_progress_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\search\exception; 15 | 16 | class no_action_in_progress_exception extends search_exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /search/exception/no_search_backend_found_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\search\exception; 15 | 16 | class no_search_backend_found_exception extends search_exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /storage/exception/no_action_in_progress_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\storage\exception; 15 | 16 | class no_action_in_progress_exception extends storage_exception 17 | { 18 | } 19 | -------------------------------------------------------------------------------- /di/exception/di_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\di\exception; 15 | 16 | use phpbb\exception\runtime_exception; 17 | 18 | class di_exception extends runtime_exception 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /extension/exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\extension; 15 | 16 | /** 17 | * Exception class for metadata 18 | */ 19 | class exception extends \phpbb\exception\runtime_exception 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /notification/exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\notification; 15 | 16 | /** 17 | * Notifications exception 18 | */ 19 | 20 | class exception extends \phpbb\exception\runtime_exception 21 | { 22 | } 23 | -------------------------------------------------------------------------------- /auth/provider/oauth/service/exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\auth\provider\oauth\service; 15 | 16 | /** 17 | * OAuth service exception class 18 | */ 19 | class exception extends \RuntimeException 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /report/exception/report_permission_denied_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\report\exception; 15 | 16 | class report_permission_denied_exception extends invalid_report_exception 17 | { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /search/exception/search_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\search\exception; 15 | 16 | use phpbb\exception\runtime_exception; 17 | 18 | class search_exception extends runtime_exception 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /ban/exception/no_valid_ips_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\ban\exception; 15 | 16 | use phpbb\exception\runtime_exception; 17 | 18 | class no_valid_ips_exception extends runtime_exception 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /feed/exception/feed_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\feed\exception; 15 | 16 | use phpbb\exception\runtime_exception; 17 | 18 | abstract class feed_exception extends runtime_exception 19 | { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /ban/exception/invalid_length_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\ban\exception; 15 | 16 | use phpbb\exception\runtime_exception; 17 | 18 | class invalid_length_exception extends runtime_exception 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /ban/exception/no_valid_emails_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\ban\exception; 15 | 16 | use phpbb\exception\runtime_exception; 17 | 18 | class no_valid_emails_exception extends runtime_exception 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /ban/exception/no_valid_users_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\ban\exception; 15 | 16 | use phpbb\exception\runtime_exception; 17 | 18 | class no_valid_users_exception extends runtime_exception 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /ban/exception/type_not_found_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\ban\exception; 15 | 16 | use phpbb\exception\runtime_exception; 17 | 18 | class type_not_found_exception extends runtime_exception 19 | { 20 | } 21 | -------------------------------------------------------------------------------- /exception/version_check_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\exception; 15 | 16 | /** 17 | * Define an exception related to the version checker. 18 | */ 19 | class version_check_exception extends runtime_exception 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /install/helper/iohandler/exception/iohandler_not_implemented_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\helper\iohandler\exception; 15 | 16 | class iohandler_not_implemented_exception extends \Exception 17 | { 18 | 19 | } 20 | -------------------------------------------------------------------------------- /report/exception/invalid_report_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\report\exception; 15 | 16 | use phpbb\exception\runtime_exception; 17 | 18 | class invalid_report_exception extends runtime_exception 19 | { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /report/exception/factory_invalid_argument_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\report\exception; 15 | 16 | use phpbb\exception\runtime_exception; 17 | 18 | class factory_invalid_argument_exception extends runtime_exception 19 | { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /install/exception/invalid_dbms_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\exception; 15 | 16 | /** 17 | * Thrown when an unavailable DBMS has been selected 18 | */ 19 | class invalid_dbms_exception extends installer_exception 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /report/exception/pm_reporting_disabled_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\report\exception; 15 | 16 | class pm_reporting_disabled_exception extends invalid_report_exception 17 | { 18 | public function __construct() 19 | { 20 | 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /install/exception/file_updater_failure_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\exception; 15 | 16 | /** 17 | * Thrown when the file updater fails 18 | */ 19 | class file_updater_failure_exception extends installer_exception 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /language/exception/language_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\language\exception; 15 | 16 | /** 17 | * Base exception class for language exceptions 18 | */ 19 | class language_exception extends \phpbb\exception\runtime_exception 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /composer/exception/managed_with_error_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\composer\exception; 15 | 16 | /** 17 | * Packaged managed with success but errored at some point 18 | */ 19 | class managed_with_error_exception extends runtime_exception 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /install/exception/cannot_build_container_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\exception; 15 | 16 | /** 17 | * Thrown when the container cannot be built 18 | */ 19 | class cannot_build_container_exception extends installer_exception 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /language/exception/invalid_plural_rule_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\language\exception; 15 | 16 | /** 17 | * Thrown when nonexistent plural rule is specified 18 | */ 19 | class invalid_plural_rule_exception extends language_exception 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /language/exception/language_file_not_found.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\language\exception; 15 | 16 | /** 17 | * This exception is thrown when the language file is not found 18 | */ 19 | class language_file_not_found extends language_exception 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /install/exception/installer_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\exception; 15 | 16 | use phpbb\exception\runtime_exception; 17 | 18 | /** 19 | * Installer's base exception 20 | */ 21 | class installer_exception extends runtime_exception 22 | { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /passwords/driver/phpass.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\passwords\driver; 15 | 16 | class phpass extends salted_md5 17 | { 18 | const PREFIX = '$P$'; 19 | 20 | /** 21 | * {@inheritdoc} 22 | */ 23 | public function get_prefix() 24 | { 25 | return self::PREFIX; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /report/exception/empty_report_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\report\exception; 15 | 16 | class empty_report_exception extends invalid_report_exception 17 | { 18 | public function __construct() 19 | { 20 | parent::__construct('EMPTY_REPORT'); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /install/exception/resource_limit_reached_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\exception; 15 | 16 | /** 17 | * Thrown when the installer is out of memory or time 18 | */ 19 | class resource_limit_reached_exception extends installer_exception 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /template/twig/node/includejs.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\template\twig\node; 15 | 16 | class includejs extends \phpbb\template\twig\node\includeasset 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_setters_name() 22 | { 23 | return 'script'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /db/extractor/exception/invalid_format_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\extractor\exception; 15 | 16 | /** 17 | * This exception is thrown when invalid format is given to the extractor 18 | */ 19 | class invalid_format_exception extends \InvalidArgumentException 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /template/twig/node/includecss.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\template\twig\node; 15 | 16 | class includecss extends \phpbb\template\twig\node\includeasset 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_setters_name() 22 | { 23 | return 'stylesheet'; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /install/exception/installer_config_not_writable_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\exception; 15 | 16 | /** 17 | * Thrown when installer config is not writable to disk 18 | */ 19 | class installer_config_not_writable_exception extends installer_exception 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /composer/io/null_io.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\composer\io; 15 | 16 | use Composer\IO\NullIO; 17 | 18 | class null_io extends NullIO implements io_interface 19 | { 20 | /** 21 | * {@inheritdoc} 22 | */ 23 | public function get_composer_error() 24 | { 25 | return ''; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /db/output_handler/null_migrator_output_handler.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\output_handler; 15 | 16 | class null_migrator_output_handler implements migrator_output_handler_interface 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function write($message, $verbosity) 22 | { 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /db/tools/tools.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\tools; 15 | 16 | /** 17 | * Database Tools for handling cross-db actions such as altering columns, etc. 18 | * Currently not supported is returning SQL for creating tables. 19 | * 20 | * @deprecated 4.0.0-a1 21 | */ 22 | class tools extends doctrine 23 | { 24 | } 25 | -------------------------------------------------------------------------------- /captcha/plugins/confirm_type.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\captcha\plugins; 15 | 16 | /** 17 | * Confirmation types for CAPTCHA plugins 18 | */ 19 | enum confirm_type: int { 20 | case UNDEFINED = 0; 21 | case REGISTRATION = 1; 22 | case LOGIN = 2; 23 | case POST = 3; 24 | case REPORT = 4; 25 | } 26 | -------------------------------------------------------------------------------- /composer/exception/managed_with_clean_error_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\composer\exception; 15 | 16 | /** 17 | * Packaged managed with success but error occurred when cleaning the filesystem 18 | */ 19 | class managed_with_clean_error_exception extends managed_with_error_exception 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /composer/exception/managed_with_enable_error_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\composer\exception; 15 | 16 | /** 17 | * Packaged managed with success but error occurred when re-enabling the extension 18 | */ 19 | class managed_with_enable_error_exception extends managed_with_error_exception 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /db/tools/mssql.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\tools; 15 | 16 | /** 17 | * Database Tools for handling cross-db actions such as altering columns, etc. 18 | * Currently not supported is returning SQL for creating tables. 19 | * 20 | * @deprecated 4.0.0-a1 21 | */ 22 | class mssql extends doctrine 23 | { 24 | } 25 | -------------------------------------------------------------------------------- /db/tools/postgres.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\tools; 15 | 16 | /** 17 | * Database Tools for handling cross-db actions such as altering columns, etc. 18 | * Currently not supported is returning SQL for creating tables. 19 | * 20 | * @deprecated 4.0.0-a1 21 | */ 22 | class postgres extends doctrine 23 | { 24 | } 25 | -------------------------------------------------------------------------------- /feed/exception/no_feed_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\feed\exception; 15 | 16 | class no_feed_exception extends feed_unavailable_exception 17 | { 18 | public function __construct(\Exception|null $previous = null, $code = 0) 19 | { 20 | parent::__construct('NO_FEED', array(), $previous, $code); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /template/exception/user_object_not_available.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\template\exception; 15 | 16 | /** 17 | * This exception is thrown when the user object was not set but it is required by the called method 18 | */ 19 | class user_object_not_available extends \phpbb\exception\runtime_exception 20 | { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /template/twig/node/expression/binary/equalequal.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\template\twig\node\expression\binary; 15 | 16 | class equalequal extends \Twig\Node\Expression\Binary\AbstractBinary 17 | { 18 | public function operator(\Twig\Compiler $compiler) : \Twig\Compiler 19 | { 20 | return $compiler->raw('==='); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /template/twig/node/expression/binary/notequalequal.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\template\twig\node\expression\binary; 15 | 16 | class notequalequal extends \Twig\Node\Expression\Binary\AbstractBinary 17 | { 18 | public function operator(\Twig\Compiler $compiler) : \Twig\Compiler 19 | { 20 | return $compiler->raw('!=='); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /install/module/requirements/update_module.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\module\requirements; 15 | 16 | class update_module extends abstract_requirements_module 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_navigation_stage_path() 22 | { 23 | return array('update', 0, 'requirements'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /db/extractor/exception/extractor_not_initialized_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\extractor\exception; 15 | 16 | use phpbb\exception\runtime_exception; 17 | 18 | /** 19 | * This exception is thrown when invalid format is given to the extractor 20 | */ 21 | class extractor_not_initialized_exception extends runtime_exception 22 | { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /feed/exception/no_forum_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\feed\exception; 15 | 16 | class no_forum_exception extends feed_unavailable_exception 17 | { 18 | public function __construct($forum_id, \Exception|null $previous = null, $code = 0) 19 | { 20 | parent::__construct('NO_FORUM', array($forum_id), $previous, $code); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /feed/exception/no_topic_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\feed\exception; 15 | 16 | class no_topic_exception extends feed_unavailable_exception 17 | { 18 | public function __construct($topic_id, \Exception|null $previous = null, $code = 0) 19 | { 20 | parent::__construct('NO_TOPIC', array($topic_id), $previous, $code); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /install/module/requirements/install_module.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\module\requirements; 15 | 16 | class install_module extends abstract_requirements_module 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_navigation_stage_path() 22 | { 23 | return array('install', 0, 'requirements'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /composer/io/io_interface.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\composer\io; 15 | 16 | use Composer\IO\IOInterface; 17 | 18 | interface io_interface extends IOInterface 19 | { 20 | /** 21 | * Returns the composer errors that occurred since the last tcall of the method. 22 | * 23 | * @return string 24 | */ 25 | public function get_composer_error(); 26 | } 27 | -------------------------------------------------------------------------------- /feed/exception/unauthorized_forum_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\feed\exception; 15 | 16 | class unauthorized_forum_exception extends unauthorized_exception 17 | { 18 | public function __construct($forum_id, \Exception|null $previous = null, $code = 0) 19 | { 20 | parent::__construct('SORRY_AUTH_READ', array($forum_id), $previous, $code); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /feed/exception/unauthorized_topic_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\feed\exception; 15 | 16 | class unauthorized_topic_exception extends unauthorized_exception 17 | { 18 | public function __construct($topic_id, \Exception|null $previous = null, $code = 0) 19 | { 20 | parent::__construct('SORRY_AUTH_READ_TOPIC', array($topic_id), $previous, $code); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /passwords/driver/argon2id.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\passwords\driver; 15 | 16 | class argon2id extends argon2i 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_algo_name() 22 | { 23 | return 'PASSWORD_ARGON2ID'; 24 | } 25 | 26 | /** 27 | * {@inheritdoc} 28 | */ 29 | public function get_prefix() 30 | { 31 | return '$argon2id$'; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /console/command/config/command.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | namespace phpbb\console\command\config; 14 | 15 | abstract class command extends \phpbb\console\command\command 16 | { 17 | /** @var \phpbb\config\config */ 18 | protected $config; 19 | 20 | public function __construct(\phpbb\user $user, \phpbb\config\config $config) 21 | { 22 | $this->config = $config; 23 | 24 | parent::__construct($user); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /install/module/install_database/module.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\module\install_database; 15 | 16 | /** 17 | * Installer module for database installation 18 | */ 19 | class module extends \phpbb\install\module_base 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function get_navigation_stage_path() 25 | { 26 | return array('install', 0, 'install'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /install/module/install_finish/module.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\module\install_finish; 15 | 16 | /** 17 | * Installer module for filesystem installation 18 | */ 19 | class module extends \phpbb\install\module_base 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function get_navigation_stage_path() 25 | { 26 | return array('install', 0, 'install'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /install/module/install_filesystem/module.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\module\install_filesystem; 15 | 16 | /** 17 | * Installer module for filesystem installation 18 | */ 19 | class module extends \phpbb\install\module_base 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function get_navigation_stage_path() 25 | { 26 | return array('install', 0, 'install'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /passwords/driver/rehashable_driver_interface.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\passwords\driver; 15 | 16 | interface rehashable_driver_interface extends driver_interface 17 | { 18 | /** 19 | * Check if password needs to be rehashed 20 | * 21 | * @param string $hash Hash to check for rehash 22 | * @return bool True if password needs to be rehashed, false if not 23 | */ 24 | public function needs_rehash($hash); 25 | } 26 | -------------------------------------------------------------------------------- /db/migration/data/v32x/timezone_p3.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class timezone_p3 extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array('\phpbb\db\migration\data\v310\timezone'); 21 | } 22 | 23 | public function update_data() 24 | { 25 | return array( 26 | array('config.remove', array('board_dst')), 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /install/module/install_data/module.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\module\install_data; 15 | 16 | /** 17 | * Installer module for recovering and installing default data installation 18 | */ 19 | class module extends \phpbb\install\module_base 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function get_navigation_stage_path() 25 | { 26 | return array('install', 0, 'install'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /db/migration/data/v310/boardindex.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class boardindex extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return isset($this->config['board_index_text']); 21 | } 22 | 23 | public function update_data() 24 | { 25 | return array( 26 | array('config.add', array('board_index_text', '')), 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /db/tools/factory.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\tools; 15 | 16 | use Doctrine\DBAL\Connection; 17 | 18 | /** 19 | * A factory which serves the suitable tools instance for the given dbal 20 | */ 21 | class factory 22 | { 23 | /** 24 | * @return tools_interface 25 | */ 26 | public function get(Connection $connection, $return_statements = false) 27 | { 28 | return new doctrine($connection, $return_statements); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /install/exception/user_interaction_required_exception.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\exception; 15 | 16 | /** 17 | * This exception should be thrown when user interaction is inevitable 18 | * 19 | * Note: Please note that the output should already be setup for the user 20 | * when you use throw this exception 21 | */ 22 | class user_interaction_required_exception extends installer_exception 23 | { 24 | 25 | } 26 | -------------------------------------------------------------------------------- /exception/exception_interface.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\exception; 15 | 16 | /** 17 | * Interface exception_interface 18 | * 19 | * Define an exception which support a language var as message. 20 | */ 21 | interface exception_interface extends \Throwable 22 | { 23 | /** 24 | * Return the arguments associated with the message if it's a language var. 25 | * 26 | * @return array 27 | */ 28 | public function get_parameters(); 29 | } 30 | -------------------------------------------------------------------------------- /db/migration/data/v310/mod_rewrite.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class mod_rewrite extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v310\dev', 22 | ); 23 | } 24 | 25 | public function update_data() 26 | { 27 | return array( 28 | array('config.add', array('enable_mod_rewrite', '0')), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/migration/data/v32x/remove_imagick.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class remove_imagick extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v32x\v324rc1', 22 | ); 23 | } 24 | 25 | public function update_data() 26 | { 27 | return array( 28 | array('config.remove', array('img_imagick')), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/migration/data/v310/live_searches_config.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class live_searches_config extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return isset($this->config['allow_live_searches']); 21 | } 22 | 23 | public function update_data() 24 | { 25 | return array( 26 | array('config.add', array('allow_live_searches', '1')), 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /db/migration/data/v320/cookie_notice.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v320; 15 | 16 | class cookie_notice extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v320\v320rc2', 22 | ); 23 | } 24 | 25 | public function update_data() 26 | { 27 | return array( 28 | array('config.add', array('cookie_notice', false)), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /passwords/driver/bcrypt_2y.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\passwords\driver; 15 | 16 | class bcrypt_2y extends bcrypt 17 | { 18 | const PREFIX = '$2y$'; 19 | 20 | /** 21 | * {@inheritdoc} 22 | */ 23 | public function get_prefix() 24 | { 25 | return self::PREFIX; 26 | } 27 | 28 | /** 29 | * {@inheritdoc} 30 | */ 31 | public function is_supported() 32 | { 33 | return (version_compare(PHP_VERSION, '5.3.7', '<')) ? false : true; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /textreparser/plugins/forum_rules.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\textreparser\plugins; 15 | 16 | class forum_rules extends \phpbb\textreparser\row_based_plugin 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_columns() 22 | { 23 | return array( 24 | 'id' => 'forum_id', 25 | 'text' => 'forum_rules', 26 | 'bbcode_uid' => 'forum_rules_uid', 27 | 'options' => 'forum_rules_options', 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /install/module/obtain_data/update_module.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\module\obtain_data; 15 | 16 | class update_module extends \phpbb\install\module_base 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_navigation_stage_path() 22 | { 23 | return array('update', 0, 'obtain_data'); 24 | } 25 | 26 | /** 27 | * {@inheritdoc} 28 | */ 29 | public function get_step_count() 30 | { 31 | return 0; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /install/module/update_database/module.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\module\update_database; 15 | 16 | class module extends \phpbb\install\module_base 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_navigation_stage_path() 22 | { 23 | return array('update', 0, 'update_database'); 24 | } 25 | 26 | /** 27 | * {@inheritdoc} 28 | */ 29 | public function get_step_count() 30 | { 31 | return 0; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /install/module/update_filesystem/module.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\module\update_filesystem; 15 | 16 | class module extends \phpbb\install\module_base 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_navigation_stage_path() 22 | { 23 | return array('update', 0, 'update_files'); 24 | } 25 | 26 | /** 27 | * {@inheritdoc} 28 | */ 29 | public function get_step_count() 30 | { 31 | return 0; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /db/middleware/mysql/middleware.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\middleware\mysql; 15 | 16 | use Doctrine\DBAL\Driver; 17 | use phpbb\db\middleware\mysql\driver as mysql_driver; 18 | 19 | /** 20 | * MySQL Doctrine middleware. 21 | * Makes use of phpBB's MySQL specific platform. 22 | */ 23 | class middleware implements Driver\Middleware 24 | { 25 | public function wrap(Driver $driver): Driver 26 | { 27 | return new mysql_driver($driver); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /install/module/obtain_data/install_module.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\install\module\obtain_data; 15 | 16 | class install_module extends \phpbb\install\module_base 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_navigation_stage_path() 22 | { 23 | return array('install', 0, 'obtain_data'); 24 | } 25 | 26 | /** 27 | * {@inheritdoc} 28 | */ 29 | public function get_step_count() 30 | { 31 | return 0; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /textreparser/plugins/forum_description.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\textreparser\plugins; 15 | 16 | class forum_description extends \phpbb\textreparser\row_based_plugin 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_columns() 22 | { 23 | return array( 24 | 'id' => 'forum_id', 25 | 'text' => 'forum_desc', 26 | 'bbcode_uid' => 'forum_desc_uid', 27 | 'options' => 'forum_desc_options', 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /textreparser/plugins/group_description.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\textreparser\plugins; 15 | 16 | class group_description extends \phpbb\textreparser\row_based_plugin 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_columns() 22 | { 23 | return array( 24 | 'id' => 'group_id', 25 | 'text' => 'group_desc', 26 | 'bbcode_uid' => 'group_desc_uid', 27 | 'options' => 'group_desc_options', 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /db/migration/data/v400/add_disable_board_access_config.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v400; 15 | 16 | class add_disable_board_access_config extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return [ 21 | '\phpbb\db\migration\data\v400\dev', 22 | ]; 23 | } 24 | 25 | public function update_data() 26 | { 27 | return [ 28 | ['config.add', ['board_disable_access', '2']], 29 | ]; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /mimetype/content_guesser.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\mimetype; 15 | 16 | class content_guesser extends guesser_base 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function is_supported() 22 | { 23 | return function_exists('mime_content_type') && is_callable('mime_content_type'); 24 | } 25 | 26 | /** 27 | * {@inheritdoc} 28 | */ 29 | public function guess($file, $file_name = '') 30 | { 31 | return mime_content_type($file) ?: null; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /db/middleware/oracle/middleware.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\middleware\oracle; 15 | 16 | use Doctrine\DBAL\Driver; 17 | use phpbb\db\middleware\oracle\driver as oracle_driver; 18 | 19 | /** 20 | * Oracle Doctrine middleware. 21 | * Makes use of phpBB's Oracle specific platform. 22 | */ 23 | class middleware implements Driver\Middleware 24 | { 25 | public function wrap(Driver $driver): Driver 26 | { 27 | return new oracle_driver($driver); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /db/migration/data/v32x/add_plupload_config.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class add_plupload_config extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return ['\phpbb\db\migration\data\v32x\v329']; 21 | } 22 | 23 | public function update_data() 24 | { 25 | return [ 26 | ['config.add', ['img_quality', '85']], 27 | ['config.add', ['img_strip_metadata', '0']], 28 | ]; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /db/migration/data/v320/remote_upload_validation.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v320; 15 | 16 | class remote_upload_validation extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v320\v320a2', 22 | ); 23 | } 24 | 25 | public function update_data() 26 | { 27 | return array( 28 | array('config.add', array('remote_upload_verify', '0')), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/migration/data/v320/allowed_schemes_links.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v320; 15 | 16 | class allowed_schemes_links extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v320\dev', 22 | ); 23 | } 24 | 25 | public function update_data() 26 | { 27 | return array( 28 | array('config.add', array('allowed_schemes_links', 'http,https,ftp')), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/middleware/sqlsrv/middleware.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\middleware\sqlsrv; 15 | 16 | use Doctrine\DBAL\Driver; 17 | use phpbb\db\middleware\sqlsrv\driver as sqlsrv_driver; 18 | 19 | /** 20 | * Microsoft SQL server Doctrine middleware. 21 | * Makes use of phpBB's SQL Server specific platform. 22 | */ 23 | class middleware implements Driver\Middleware 24 | { 25 | public function wrap(Driver $driver): Driver 26 | { 27 | return new sqlsrv_driver($driver); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /routing/resources_locator/resources_locator_interface.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\routing\resources_locator; 15 | 16 | interface resources_locator_interface 17 | { 18 | /** 19 | * Locates a list of resources used to load the routes 20 | * 21 | * Each entry of the list can be either the resource or an array composed of 2 elements: 22 | * the resource and its type. 23 | * 24 | * @return mixed[] List of resources 25 | */ 26 | public function locate_resources(); 27 | } 28 | -------------------------------------------------------------------------------- /db/middleware/mysql/driver.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\middleware\mysql; 15 | 16 | use Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware; 17 | 18 | /** 19 | * MySQL Doctrine driver middleware. 20 | * Makes use of phpBB's MySQL specific platform. 21 | */ 22 | class driver extends AbstractDriverMiddleware 23 | { 24 | /** 25 | * {@inheritDoc} 26 | */ 27 | public function createDatabasePlatformForVersion($version) 28 | { 29 | return new platform(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/migration/data/v310/extensions_version_check_force_unstable.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class extensions_version_check_force_unstable extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array('\phpbb\db\migration\data\v310\dev'); 21 | } 22 | 23 | public function update_data() 24 | { 25 | return array( 26 | array('config.add', array('extension_force_unstable', false)), 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /mimetype/guesser_base.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\mimetype; 15 | 16 | abstract class guesser_base implements guesser_interface 17 | { 18 | /** 19 | * @var int Guesser Priority 20 | */ 21 | protected $priority; 22 | 23 | /** 24 | * {@inheritdoc} 25 | */ 26 | public function get_priority() 27 | { 28 | return $this->priority; 29 | } 30 | 31 | /** 32 | * {@inheritdoc} 33 | */ 34 | public function set_priority($priority) 35 | { 36 | $this->priority = $priority; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /db/middleware/postgresql/middleware.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\middleware\postgresql; 15 | 16 | use Doctrine\DBAL\Driver; 17 | use phpbb\db\middleware\postgresql\driver as postgresql_driver; 18 | 19 | /** 20 | * PostgreSQL Doctrine middleware. 21 | * Makes use of phpBB's PostgreSQL specific platform. 22 | */ 23 | class middleware implements Driver\Middleware 24 | { 25 | public function wrap(Driver $driver): Driver 26 | { 27 | return new postgresql_driver($driver); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /db/migration/data/v32x/f_list_topics_permission_add.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class f_list_topics_permission_add extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v32x\v321', 22 | ); 23 | } 24 | 25 | public function update_data() 26 | { 27 | return array( 28 | array('permission.add', array('f_list_topics', false, 'f_read')), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/middleware/postgresql/driver.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\middleware\postgresql; 15 | 16 | use Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware; 17 | 18 | /** 19 | * PostgreSQL Doctrine driver middleware. 20 | * Makes use of phpBB's PostgreSQL specific platform. 21 | */ 22 | class driver extends AbstractDriverMiddleware 23 | { 24 | /** 25 | * {@inheritDoc} 26 | */ 27 | public function createDatabasePlatformForVersion($version) 28 | { 29 | return new platform(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/middleware/sqlsrv/driver.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\middleware\sqlsrv; 15 | 16 | use Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware; 17 | 18 | /** 19 | * Microsoft SQL server Doctrine driver middleware. 20 | * Makes use of phpBB's SQL Server specific platform. 21 | */ 22 | class driver extends AbstractDriverMiddleware 23 | { 24 | /** 25 | * {@inheritDoc} 26 | */ 27 | public function createDatabasePlatformForVersion($version) 28 | { 29 | return new platform(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /textformatter/cache_interface.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\textformatter; 15 | 16 | /** 17 | * Currently only used to signal that something that could effect the rendering has changed. 18 | * BBCodes, smilies, censored words, templates, etc... 19 | */ 20 | interface cache_interface 21 | { 22 | /** 23 | * Invalidate and/or regenerate this text formatter's cache(s) 24 | */ 25 | public function invalidate(); 26 | 27 | /** 28 | * Tidy/prune this text formatter's cache(s) 29 | */ 30 | public function tidy(); 31 | } 32 | -------------------------------------------------------------------------------- /db/migration/data/v33x/fix_display_unapproved_posts_config.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class fix_display_unapproved_posts_config extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return [ 21 | '\phpbb\db\migration\data\v330\add_display_unapproved_posts_config', 22 | ]; 23 | } 24 | 25 | public function update_data() 26 | { 27 | return [ 28 | ['config.add', ['display_unapproved_posts', 1]], 29 | ]; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/migration/data/v400/remove_remote_upload.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v400; 15 | 16 | use phpbb\db\migration\container_aware_migration; 17 | 18 | class remove_remote_upload extends container_aware_migration 19 | { 20 | public static function depends_on() 21 | { 22 | return [ 23 | '\phpbb\db\migration\data\v320\remote_upload_validation' 24 | ]; 25 | } 26 | 27 | public function update_data() 28 | { 29 | return [ 30 | ['config.remove', ['remote_upload_verify']], 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /db/migration/data/v400/remove_max_img_size.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v400; 15 | 16 | use phpbb\db\migration\migration; 17 | 18 | class remove_max_img_size extends migration 19 | { 20 | public static function depends_on(): array 21 | { 22 | return [ 23 | '\phpbb\db\migration\data\v400\dev', 24 | ]; 25 | } 26 | 27 | public function update_data(): array 28 | { 29 | return [ 30 | ['config.remove', ['max_sig_img_width']], 31 | ['config.remove', ['max_sig_img_height']], 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v33x/font_awesome_5_rollback.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class font_awesome_5_rollback extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return [ 21 | '\phpbb\db\migration\data\v33x\font_awesome_5_update', 22 | ]; 23 | } 24 | 25 | public function update_data() 26 | { 27 | return [ 28 | ['config.update', ['load_font_awesome_url', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css']], 29 | ]; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v333.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v333 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.3', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v333rc1', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.3']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /notification/method/extended_method_interface.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\notification\method; 15 | 16 | use phpbb\controller\helper; 17 | use phpbb\form\form_helper; 18 | 19 | interface extended_method_interface extends method_interface 20 | { 21 | /** 22 | * Get UCP template data for type 23 | * 24 | * @param helper $controller_helper 25 | * @param form_helper $form_helper 26 | * @return array Template data 27 | */ 28 | public function get_ucp_template_data(helper $controller_helper, form_helper $form_helper): array; 29 | } 30 | -------------------------------------------------------------------------------- /textreparser/plugins/pm_text.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\textreparser\plugins; 15 | 16 | class pm_text extends \phpbb\textreparser\row_based_plugin 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_columns() 22 | { 23 | return array( 24 | 'id' => 'msg_id', 25 | 'enable_bbcode' => 'enable_bbcode', 26 | 'enable_smilies' => 'enable_smilies', 27 | 'enable_magic_url' => 'enable_magic_url', 28 | 'text' => 'message_text', 29 | 'bbcode_uid' => 'bbcode_uid', 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "phpbb/phpbb-core", 3 | "description": "Collection of core phpBB libraries", 4 | "type": "library", 5 | "keywords": ["phpbb", "forum"], 6 | "homepage": "https://www.phpbb.com", 7 | "license": "GPL-2.0-only", 8 | "authors": [ 9 | { 10 | "name": "phpBB Limited", 11 | "email": "operations@phpbb.com", 12 | "homepage": "https://www.phpbb.com/go/authors" 13 | } 14 | ], 15 | "support": { 16 | "issues": "https://tracker.phpbb.com", 17 | "forum": "https://www.phpbb.com/community/", 18 | "docs": "https://www.phpbb.com/support/docs/", 19 | "irc": "irc://irc.libera.chat/phpbb", 20 | "chat": "https://www.phpbb.com/support/chat/" 21 | }, 22 | "autoload": { 23 | "classmap": [""] 24 | }, 25 | "require": { 26 | "php": "^8.2" 27 | }, 28 | "extra": { 29 | "branch-alias": { 30 | "dev-master": "4.0.x-dev" 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /db/migration/data/v31x/m_softdelete_global.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class m_softdelete_global extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array('\phpbb\db\migration\data\v31x\v311'); 21 | } 22 | 23 | public function update_data() 24 | { 25 | return array( 26 | // Make m_softdelete global. The add method will take care of updating 27 | // it if it already exists. 28 | array('permission.add', array('m_softdelete', true)), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/migration/data/v31x/plupload_last_gc_dynamic.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class plupload_last_gc_dynamic extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array('\phpbb\db\migration\data\v31x\v312'); 21 | } 22 | 23 | public function update_data() 24 | { 25 | return array( 26 | // Make plupload_last_gc dynamic. 27 | array('config.remove', array('plupload_last_gc')), 28 | array('config.add', array('plupload_last_gc', 0, 1)), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v337.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v337 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.7', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v336', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.7']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /json_response.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb; 15 | 16 | /** 17 | * JSON class 18 | */ 19 | class json_response 20 | { 21 | /** 22 | * Send the data to the client and exit the script. 23 | * 24 | * @param array $data Any additional data to send. 25 | * @param bool $exit Will exit the script if true. 26 | */ 27 | public function send($data, $exit = true) 28 | { 29 | header('Content-Type: application/json'); 30 | echo json_encode($data); 31 | 32 | if ($exit) 33 | { 34 | garbage_collection(); 35 | exit_handler(); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /textreparser/plugins/post_text.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\textreparser\plugins; 15 | 16 | class post_text extends \phpbb\textreparser\row_based_plugin 17 | { 18 | /** 19 | * {@inheritdoc} 20 | */ 21 | public function get_columns() 22 | { 23 | return array( 24 | 'id' => 'post_id', 25 | 'enable_bbcode' => 'enable_bbcode', 26 | 'enable_smilies' => 'enable_smilies', 27 | 'enable_magic_url' => 'enable_magic_url', 28 | 'text' => 'post_text', 29 | 'bbcode_uid' => 'bbcode_uid', 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /attachment/attachment_category.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\attachment; 15 | 16 | abstract class attachment_category 17 | { 18 | /** @var int None category */ 19 | public const NONE = 0; 20 | 21 | /** @var int Inline images */ 22 | public const IMAGE = 1; 23 | 24 | /** @var int Not used within the database, only while displaying posts */ 25 | public const THUMB = 4; 26 | 27 | /** @var int Browser-playable audio files */ 28 | public const AUDIO = 7; 29 | 30 | /** @var int Browser-playable video files */ 31 | public const VIDEO = 8; 32 | } 33 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v333rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v333rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.3-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v332', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.3-RC1']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v334.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v334 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.4', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v334rc1', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.4']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v335.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v335 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.5', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v335rc1', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.5']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v336.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v336 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.6', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v336rc1', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.6']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v338.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v338 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.8', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v338rc1', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.8']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v339.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v339 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.9', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v339rc1', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.9']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v310/board_contact_name.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class board_contact_name extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return isset($this->config['board_contact_name']); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v310\beta2'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.add', array('board_contact_name', '')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v3310.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v3310 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.10', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v3310rc1', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.10']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v3313.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v3313 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.13', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v3313rc1', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.13']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v3314.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v3314 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.14', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v3314rc1', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.14']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v3315.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v3315 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.15', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v3315rc1', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.15']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v400/dev.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v400; 15 | 16 | use phpbb\db\migration\migration; 17 | 18 | class dev extends migration 19 | { 20 | public function effectively_installed() 21 | { 22 | return version_compare($this->config['version'], '4.0.0-dev', '>='); 23 | } 24 | 25 | public static function depends_on() 26 | { 27 | return ['\phpbb\db\migration\data\v330\v330rc1']; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '4.0.0-dev']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v32x/cookie_notice_p2.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class cookie_notice_p2 extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v320\v320', 22 | ); 23 | } 24 | 25 | public function effectively_installed() 26 | { 27 | return isset($this->config['cookie_notice']); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.add', array('cookie_notice', '0')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/font_awesome_5_update.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class font_awesome_5_update extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return [ 21 | '\phpbb\db\migration\data\v330\v330', 22 | '\phpbb\db\migration\data\v32x\font_awesome_update_cdn', 23 | ]; 24 | } 25 | 26 | public function update_data() 27 | { 28 | return [ 29 | ['config.update', ['load_font_awesome_url', 'https://use.fontawesome.com/releases/v5.13.0/css/all.css']], 30 | ]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v334rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v334rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.4-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v333', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.4-RC1']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v339rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v339rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.9-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v338', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.9-RC1']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/container_aware_migration.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration; 15 | 16 | use Symfony\Component\DependencyInjection\ContainerInterface; 17 | 18 | /** 19 | * Abstract base class for container aware database migrations. 20 | */ 21 | abstract class container_aware_migration extends migration 22 | { 23 | /** 24 | * @var ContainerInterface 25 | */ 26 | protected $container; 27 | 28 | /** 29 | * {@inheritdoc} 30 | */ 31 | public function setContainer(ContainerInterface|null $container = null) 32 | { 33 | $this->container = $container; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /db/migration/data/v310/forgot_password.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class forgot_password extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return isset($this->config['allow_password_reset']); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_11'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.add', array('allow_password_reset', 1)), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v312.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v312 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.2', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v312rc1', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.2')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v313.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v313 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.3', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v313rc2', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.3')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v315.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v315 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.5', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v315rc1', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.5')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v316.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v316 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.6', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v316rc1', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.6')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v317.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v317 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.7', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v317rc1', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.7')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v318.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v318 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.8', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v318rc1', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.8')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v319.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v319 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.9', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v319rc1', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.9')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v328.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v328 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.8', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v328rc1', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.2.8')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v330/dev.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v330; 15 | 16 | class dev extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.0-dev', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v327', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.3.0-dev')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v3310rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v3310rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.10-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v339', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.10-RC1']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v3311.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v3311 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.11', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\profilefields_update', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.11']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v3313rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v3313rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.13-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v3312', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.13-RC1']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v3314rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v3314rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.14-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v3313', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.14-RC1']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /feed/quote_helper.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\feed; 15 | 16 | /** 17 | * Modified quote_helper for feeds (basically just removing all attributes) 18 | */ 19 | class quote_helper extends \phpbb\textformatter\s9e\quote_helper 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function inject_metadata($xml) 25 | { 26 | // In feeds we don't want any attributes, so delete all of them 27 | return \s9e\TextFormatter\Utils::replaceAttributes( 28 | $xml, 29 | 'QUOTE', 30 | function () 31 | { 32 | return []; 33 | } 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /passwords/driver/convert_password.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\passwords\driver; 15 | 16 | class convert_password extends base 17 | { 18 | const PREFIX = '$CP$'; 19 | 20 | /** 21 | * {@inheritdoc} 22 | */ 23 | public function get_prefix() 24 | { 25 | return self::PREFIX; 26 | } 27 | 28 | /** 29 | * {@inheritdoc} 30 | */ 31 | public function hash($password, $user_row = '') 32 | { 33 | return false; 34 | } 35 | 36 | /** 37 | * {@inheritdoc} 38 | */ 39 | public function check($password, $hash, $user_row = array()) 40 | { 41 | return false; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /db/migration/data/v310/rc2.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class rc2 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.0-RC2', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v310\rc1', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.0-RC2')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v310/rc6.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class rc6 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.0-RC6', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v310\rc5', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.0-RC6')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v3110.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v3110 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.10', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v3110rc1', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.10')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v3111.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v3111 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.11', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v3111rc1', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.11')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v3112.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v3112 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.12', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v3111', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.12')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v32x/disable_remote_avatar.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | use phpbb\db\migration\migration; 17 | 18 | class disable_remote_avatar extends migration 19 | { 20 | public static function depends_on() 21 | { 22 | return array( 23 | '\phpbb\db\migration\data\v32x\v325', 24 | ); 25 | } 26 | 27 | public function update_data() 28 | { 29 | return array( 30 | array('config.update', array('allow_avatar_remote', '0')), 31 | array('config.update', array('allow_avatar_remote_upload', '0')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v3210.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v3210 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.10', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v3210rc2', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.2.10')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v3211.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v3211 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.11', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v3210', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.2.11')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v323.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v323 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.3', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v323rc2', 27 | ); 28 | 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.2.3')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v327.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v327 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.7', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v327rc1', 27 | ); 28 | 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.2.7')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v332rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v332rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.2-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\remove_profilefield_aol', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.2-RC1']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_1_rc1'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.1')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_2.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_2 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.2', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_2_rc2'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.2')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_3.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_3 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.3', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_3_rc1'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.3')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_6.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_6 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.6', '>='); 21 | } 22 | 23 | static public function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_6_rc4'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.6')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_7.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_7 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.7', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_7_rc2'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.7')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_8.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_8 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.8', '>='); 21 | } 22 | 23 | static public function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_8_rc1'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.8')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_9.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_9 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.9', '>='); 21 | } 22 | 23 | static public function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_9_rc4'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.9')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v314rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v314rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.4-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v313', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.4-RC1')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v315rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v315rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.5-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v314', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.5-RC1')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v316rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v316rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.6-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v315', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.6-RC1')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v317pl1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v317pl1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.7-pl1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v317', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.7-pl1')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v319rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v319rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.9-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v318', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.9-RC1')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v325rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v325rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.5-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v324', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.2.5-RC1')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v327rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v327rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.7-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v326', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.2.7-RC1')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v329rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v329rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.9-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v328', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.2.9-RC1')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v330/v330rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v330; 15 | 16 | class v330rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.0-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v330\v330b2', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.3.0-RC1')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v3312rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v3312rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.12-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\jquery_update_v3', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.12-RC1']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_10.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_10 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.10', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_10_rc3'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.10')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_11.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_11 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.11', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_11_rc2'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.11')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_5.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_5 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.5', '>='); 21 | } 22 | 23 | static public function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_5_rc1part2'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.5')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v310/notifications_cron_p2.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class notifications_cron_p2 extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array('\phpbb\db\migration\data\v310\notifications_cron'); 21 | } 22 | 23 | public function update_data() 24 | { 25 | return array( 26 | // Make read_notification_last_gc dynamic. 27 | array('config.remove', array('read_notification_last_gc')), 28 | array('config.add', array('read_notification_last_gc', 0, 1)), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/migration/data/v31x/increase_size_of_dateformat.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class increase_size_of_dateformat extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v31x\v317', 22 | ); 23 | } 24 | 25 | public function update_schema() 26 | { 27 | return array( 28 | 'change_columns' => array( 29 | $this->table_prefix . 'users' => array( 30 | 'user_dateformat' => array('VCHAR_UNI:64', 'd M Y H:i'), 31 | ), 32 | ), 33 | ); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /db/migration/data/v31x/update_hashes.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class update_hashes extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v31x\v3110', 22 | ); 23 | } 24 | 25 | public function update_data() 26 | { 27 | return array( 28 | array('config.add', array('enable_update_hashes', '1')), 29 | array('config.add', array('update_hashes_lock', '')), 30 | array('config.add', array('update_hashes_last_cron', '0')) 31 | ); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v3110rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v3110rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.10-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v319', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.1.10-RC1')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v320/dev.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v320; 15 | 16 | class dev extends \phpbb\db\migration\container_aware_migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.2.0-dev', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v316', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.2.0-dev')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v32x/forum_topics_per_page_type.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class forum_topics_per_page_type extends \phpbb\db\migration\migration 17 | { 18 | 19 | public static function depends_on() 20 | { 21 | return array( 22 | '\phpbb\db\migration\data\v32x\v323', 23 | ); 24 | } 25 | 26 | public function update_schema() 27 | { 28 | return array( 29 | 'change_columns' => array( 30 | $this->table_prefix . 'forums' => array( 31 | 'forum_topics_per_page' => array('USINT', 0), 32 | ), 33 | ), 34 | ); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v323rc2.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v323rc2 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.3-RC2', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v323rc1', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.update', array('version', '3.2.3-RC2')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v3315rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v3315rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.15-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\topic_views_update', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.15-RC1']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v336rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v336rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.6-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\remove_orphaned_roles', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.6-RC1']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v326rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v326rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.6-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v325', 27 | ); 28 | 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.2.6-RC1')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v332.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v332 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.2', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\v332rc1', 27 | '\phpbb\db\migration\data\v32x\v3211', 28 | ]; 29 | } 30 | 31 | public function update_data() 32 | { 33 | return [ 34 | ['config.update', ['version', '3.3.2']], 35 | ]; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v33x/v338rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class v338rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.8-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v33x\profilefield_youtube_update', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.update', ['version', '3.3.8-RC1']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /routing/file_locator.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\routing; 15 | 16 | use Symfony\Component\Config\FileLocator; 17 | use phpbb\filesystem\helper as filesystem_helper; 18 | 19 | class file_locator extends FileLocator 20 | { 21 | public function __construct($paths = []) 22 | { 23 | $paths = (array) $paths; 24 | $absolute_paths = []; 25 | 26 | foreach ($paths as $path) 27 | { 28 | $path = filesystem_helper::realpath($path); 29 | if ($path !== false) 30 | { 31 | $absolute_paths[] = $path; 32 | } 33 | } 34 | 35 | parent::__construct($absolute_paths); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_6_rc2.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_6_rc2 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.6-RC2', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_6_rc1'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.6-RC2')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_6_rc4.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_6_rc4 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.6-RC4', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_6_rc3'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.6-RC4')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_7_pl1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_7_pl1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.7-pl1', '>='); 21 | } 22 | 23 | static public function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_7'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.7-pl1')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_9_rc2.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_9_rc2 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.9-RC2', '>='); 21 | } 22 | 23 | static public function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_9_rc1'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.9-RC2')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_9_rc3.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_9_rc3 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.9-RC3', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_9_rc2'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.9-RC3')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_9_rc4.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_9_rc4 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.9-RC4', '>='); 21 | } 22 | 23 | static public function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_9_rc3'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.9-RC4')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v330/add_display_unapproved_posts_config.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v330; 15 | 16 | class add_display_unapproved_posts_config extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return $this->config->offsetExists('display_unapproved_posts'); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return ['\phpbb\db\migration\data\v330\dev',]; 26 | } 27 | 28 | public function update_data() 29 | { 30 | return [ 31 | ['config.add', ['display_unapproved_posts', 1]], 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v400/remove_template_php.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v400; 15 | 16 | use phpbb\db\migration\migration; 17 | 18 | class remove_template_php extends migration 19 | { 20 | public function effectively_installed(): bool 21 | { 22 | return !$this->config->offsetExists('tpl_allow_php'); 23 | } 24 | 25 | public static function depends_on(): array 26 | { 27 | return [ 28 | '\phpbb\db\migration\data\v400\dev', 29 | ]; 30 | } 31 | 32 | public function update_data(): array 33 | { 34 | return [['config.remove', ['tpl_allow_php']]]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_10_rc2.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_10_rc2 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.10-RC2', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_10_rc1'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.10-RC2')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_10_rc3.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_10_rc3 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.10-RC3', '>='); 21 | } 22 | 23 | static public function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_10_rc2'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.update', array('version', '3.0.10-RC3')), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v32x/load_user_activity_limit.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class load_user_activity_limit extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v320\v320', 22 | ); 23 | } 24 | 25 | public function effectively_installed() 26 | { 27 | return isset($this->config['load_user_activity_limit']); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.add', array('load_user_activity_limit', '5000')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v32x/enable_accurate_pm_button.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class enable_accurate_pm_button extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v32x\v322', 22 | ); 23 | } 24 | 25 | public function effectively_installed() 26 | { 27 | return isset($this->config['enable_accurate_pm_button']); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.add', array('enable_accurate_pm_button', '1')), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v330/v330.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v330; 15 | 16 | class v330 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return version_compare($this->config['version'], '3.3.0', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v329', 27 | '\phpbb\db\migration\data\v330\v330rc1', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.3.0')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v33x/default_search_return_chars.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v33x; 15 | 16 | class default_search_return_chars extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return $this->config->offsetExists('default_search_return_chars'); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v330\v330', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.add', ['default_search_return_chars', 300]], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v310/gold.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class gold extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.0', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v310\rc6', 27 | '\phpbb\db\migration\data\v310\bot_update', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.1.0')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v310/namespaces.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class namespaces extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v310\dev', 22 | ); 23 | } 24 | 25 | public function update_data() 26 | { 27 | return array( 28 | array('if', array( 29 | (preg_match('#^phpbb_search_#', $this->config['search_type'])), 30 | array('config.update', array('search_type', str_replace('phpbb_search_', '\\phpbb\\search\\', $this->config['search_type']))), 31 | )), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v311.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v311 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v310\gold', 27 | '\phpbb\db\migration\data\v31x\style_update', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.1.1')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v322.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v322 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.2', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v3112', 27 | '\phpbb\db\migration\data\v32x\v322rc1', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.2.2')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v400/remove_dbms_version_config.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v400; 15 | 16 | use phpbb\db\migration\migration; 17 | 18 | class remove_dbms_version_config extends migration 19 | { 20 | public function effectively_installed() 21 | { 22 | return !$this->config->offsetExists('dbms_version'); 23 | } 24 | 25 | public function update_data() 26 | { 27 | return [ 28 | ['config.remove', ['dbms_version']], 29 | ]; 30 | } 31 | 32 | public static function depends_on() 33 | { 34 | return [ 35 | '\phpbb\db\migration\data\v30x\release_3_0_3_rc1', 36 | ]; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v314.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v314 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.4', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v30x\release_3_0_14', 27 | '\phpbb\db\migration\data\v31x\v314rc2', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.1.4')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v321.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v321 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v3111', 27 | '\phpbb\db\migration\data\v32x\v321rc1', 28 | ); 29 | 30 | } 31 | 32 | public function update_data() 33 | { 34 | return array( 35 | array('config.update', array('version', '3.2.1')), 36 | ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /db/migration/data/v310/search_type.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class search_type extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v310\dev', 22 | ); 23 | } 24 | 25 | public function update_data() 26 | { 27 | return array( 28 | array('if', array( 29 | (is_file($this->phpbb_root_path . 'phpbb/search/' . $this->config['search_type'] . $this->php_ext)), 30 | array('config.update', array('search_type', '\\phpbb\\search\\' . $this->config['search_type'])), 31 | )), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v325.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v325 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.5', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v325rc1', 27 | '\phpbb\db\migration\data\v32x\jquery_update', 28 | ); 29 | 30 | } 31 | 32 | public function update_data() 33 | { 34 | return array( 35 | array('config.update', array('version', '3.2.5')), 36 | ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v317rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v317rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.7-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\m_pm_report', 27 | '\phpbb\db\migration\data\v31x\v316', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.1.7-RC1')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v324.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v324 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.4', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v324rc1', 27 | '\phpbb\db\migration\data\v32x\remove_imagick', 28 | ); 29 | 30 | } 31 | 32 | public function update_data() 33 | { 34 | return array( 35 | array('config.update', array('version', '3.2.4')), 36 | ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v328rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v328rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.8-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\timezone_p3', 27 | '\phpbb\db\migration\data\v32x\v327', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.2.8-RC1')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v329.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v329 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.9', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v329rc1', 27 | '\phpbb\db\migration\data\v32x\user_emoji_permission', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.2.9')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v400/font_awesome_6_upgrade.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v400; 15 | 16 | use phpbb\db\migration\migration; 17 | 18 | class font_awesome_6_upgrade extends migration 19 | { 20 | public static function depends_on(): array 21 | { 22 | return [ 23 | '\phpbb\db\migration\data\v400\dev', 24 | '\phpbb\db\migration\data\v33x\font_awesome_5_rollback', 25 | ]; 26 | } 27 | 28 | public function update_data(): array 29 | { 30 | return [ 31 | ['config.update', ['load_font_awesome_url', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css']], 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /db/migration/data/v310/notifications_cron.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class notifications_cron extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array('\phpbb\db\migration\data\v310\notifications'); 21 | } 22 | 23 | public function update_data() 24 | { 25 | return array( 26 | array('config.add', array('read_notification_expire_days', 30)), 27 | array('config.add', array('read_notification_last_gc', 0)), // last run 28 | array('config.add', array('read_notification_gc', (60 * 60 * 24))), // seconds between run; 1 day 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /db/migration/data/v310/rc4.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class rc4 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.0-RC4', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v310\rc3', 27 | '\phpbb\db\migration\data\v310\notifications_use_full_name', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.1.0-RC4')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v320/font_awesome_update.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v320; 15 | 16 | class font_awesome_update extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return isset($this->config['load_font_awesome_url']); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return [ 26 | '\phpbb\db\migration\data\v320\dev', 27 | ]; 28 | } 29 | 30 | public function update_data() 31 | { 32 | return [ 33 | ['config.add', ['load_font_awesome_url', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css']], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v32x/email_force_sender.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class email_force_sender extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array( 21 | '\phpbb\db\migration\data\v32x\v321', 22 | ); 23 | } 24 | 25 | public function effectively_installed() 26 | { 27 | return isset($this->config['email_force_sender']); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.add', array('email_force_sender', '0')), 34 | array('config.remove', array('email_function_name')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | # With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from 2 | # module mod_authz_host to a new module called mod_access_compat (which may be 3 | # disabled) and a new "Require" syntax has been introduced to mod_authz_core. 4 | # We could just conditionally provide both versions, but unfortunately Apache 5 | # does not explicitly tell us its version if the module mod_version is not 6 | # available. In this case, we check for the availability of module 7 | # mod_authz_core (which should be on 2.4 or higher only) as a best guess. 8 | 9 | 10 | Order Allow,Deny 11 | Deny from All 12 | 13 | = 2.4> 14 | Require all denied 15 | 16 | 17 | 18 | 19 | Order Allow,Deny 20 | Deny from All 21 | 22 | 23 | Require all denied 24 | 25 | 26 | -------------------------------------------------------------------------------- /db/migration/data/v310/allow_cdn.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class allow_cdn extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return isset($this->config['allow_cdn']); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v310\jquery_update', 27 | ); 28 | } 29 | 30 | public function update_data() 31 | { 32 | return array( 33 | array('config.add', array('allow_cdn', (int) $this->config['load_jquery_cdn'])), 34 | array('config.remove', array('load_jquery_cdn')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v310/alpha2.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class alpha2 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.0-a2', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v310\alpha1', 27 | '\phpbb\db\migration\data\v310\notifications_cron_p2', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.1.0-a2')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v312rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v312rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.2-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\v311', 27 | '\phpbb\db\migration\data\v31x\m_softdelete_global', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.1.2-RC1')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v313rc2.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v313rc2 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.3-RC2', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v30x\release_3_0_13_pl1', 27 | '\phpbb\db\migration\data\v31x\v313rc1', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.1.3-RC2')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v314rc2.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v314rc2 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.4-RC2', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v30x\release_3_0_14_rc1', 27 | '\phpbb\db\migration\data\v31x\v314rc1', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.1.4-RC2')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v400/extensions_composer_3.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v400; 15 | 16 | use phpbb\db\migration\migration; 17 | 18 | class extensions_composer_3 extends migration 19 | { 20 | public function effectively_installed(): bool 21 | { 22 | return $this->config->offsetExists('exts_composer_minimum_stability'); 23 | } 24 | 25 | public function update_data(): array 26 | { 27 | return [ 28 | ['config.add', ['exts_composer_minimum_stability', 'stable']], 29 | ]; 30 | } 31 | 32 | public static function depends_on(): array 33 | { 34 | return ['\phpbb\db\migration\data\v400\extensions_composer']; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v400/remove_flash_v2.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v400; 15 | 16 | use phpbb\db\migration\migration; 17 | 18 | class remove_flash_v2 extends migration 19 | { 20 | public function effectively_installed() 21 | { 22 | return !$this->config->offsetExists('max_post_img_width'); 23 | } 24 | 25 | public static function depends_on() 26 | { 27 | return [ 28 | '\phpbb\db\migration\data\v400\remove_flash', 29 | ]; 30 | } 31 | 32 | public function update_data() 33 | { 34 | return [ 35 | ['config.remove', ['max_post_img_width']], 36 | ['config.remove', ['max_post_img_height']], 37 | ]; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /db/migration/data/v310/plupload.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v310; 15 | 16 | class plupload extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return isset($this->config['plupload_last_gc']) && 21 | isset($this->config['plupload_salt']); 22 | } 23 | 24 | public static function depends_on() 25 | { 26 | return array('\phpbb\db\migration\data\v310\dev'); 27 | } 28 | 29 | public function update_data() 30 | { 31 | return array( 32 | array('config.add', array('plupload_last_gc', 0)), 33 | array('config.add', array('plupload_salt', unique_id())), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /db/migration/data/v31x/add_smtp_ssl_context_config_options.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class add_smtp_ssl_context_config_options extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array('\phpbb\db\migration\data\v31x\v3110'); 21 | } 22 | 23 | public function update_data() 24 | { 25 | return array( 26 | // See http://php.net/manual/en/context.ssl.php 27 | array('config.add', array('smtp_verify_peer', 1)), 28 | array('config.add', array('smtp_verify_peer_name', 1)), 29 | array('config.add', array('smtp_allow_self_signed', 0)), 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v323rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v323rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.3-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v322', 27 | '\phpbb\db\migration\data\v32x\enable_accurate_pm_button', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.2.3-RC1')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v32x/v324rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v32x; 15 | 16 | class v324rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.2.4-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v32x\v323', 27 | '\phpbb\db\migration\data\v32x\forum_topics_per_page_type', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.2.4-RC1')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/v31x/add_jabber_ssl_context_config_options.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class add_jabber_ssl_context_config_options extends \phpbb\db\migration\migration 17 | { 18 | public static function depends_on() 19 | { 20 | return array('\phpbb\db\migration\data\v31x\v3110'); 21 | } 22 | 23 | public function update_data() 24 | { 25 | return array( 26 | // See http://php.net/manual/en/context.ssl.php 27 | array('config.add', array('jab_verify_peer', 1)), 28 | array('config.add', array('jab_verify_peer_name', 1)), 29 | array('config.add', array('jab_allow_self_signed', 0)), 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /db/migration/data/v31x/v318rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v31x; 15 | 16 | class v318rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.1.8-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array( 26 | '\phpbb\db\migration\data\v31x\increase_size_of_dateformat', 27 | '\phpbb\db\migration\data\v31x\v317pl1', 28 | ); 29 | } 30 | 31 | public function update_data() 32 | { 33 | return array( 34 | array('config.update', array('version', '3.1.8-RC1')), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /db/migration/data/.htaccess: -------------------------------------------------------------------------------- 1 | # With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from 2 | # module mod_authz_host to a new module called mod_access_compat (which may be 3 | # disabled) and a new "Require" syntax has been introduced to mod_authz_core. 4 | # We could just conditionally provide both versions, but unfortunately Apache 5 | # does not explicitly tell us its version if the module mod_version is not 6 | # available. In this case, we check for the availability of module 7 | # mod_authz_core (which should be on 2.4 or higher only) as a best guess. 8 | 9 | 10 | Order Allow,Deny 11 | Deny from All 12 | 13 | = 2.4> 14 | Require all denied 15 | 16 | 17 | 18 | 19 | Order Allow,Deny 20 | Deny from All 21 | 22 | 23 | Require all denied 24 | 25 | 26 | -------------------------------------------------------------------------------- /db/migration/data/v30x/release_3_0_10_rc1.php: -------------------------------------------------------------------------------- 1 | 7 | * @license GNU General Public License, version 2 (GPL-2.0) 8 | * 9 | * For full copyright and license information, please see 10 | * the docs/CREDITS.txt file. 11 | * 12 | */ 13 | 14 | namespace phpbb\db\migration\data\v30x; 15 | 16 | class release_3_0_10_rc1 extends \phpbb\db\migration\migration 17 | { 18 | public function effectively_installed() 19 | { 20 | return phpbb_version_compare($this->config['version'], '3.0.10-RC1', '>='); 21 | } 22 | 23 | public static function depends_on() 24 | { 25 | return array('\phpbb\db\migration\data\v30x\release_3_0_9'); 26 | } 27 | 28 | public function update_data() 29 | { 30 | return array( 31 | array('config.add', array('email_max_chunk_size', 50)), 32 | 33 | array('config.update', array('version', '3.0.10-RC1')), 34 | ); 35 | } 36 | } 37 | --------------------------------------------------------------------------------