From 1cffd36c227c28608090567e09b269372d3fc327 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Thu, 11 Jul 2024 20:49:49 +0200 Subject: [PATCH 1/5] Document removed deprecated functions for PHPBB-12479 --- development/development/upgrade/400.rst | 166 ++++++++++++++++++++++++ 1 file changed, 166 insertions(+) diff --git a/development/development/upgrade/400.rst b/development/development/upgrade/400.rst index b1d7b8bd..81d894bb 100644 --- a/development/development/upgrade/400.rst +++ b/development/development/upgrade/400.rst @@ -54,87 +54,253 @@ Also have a look at the `phpBB API documentation `_ namespace. + * - ``\phpbb\captcha\plugins\incomplete`` - ``phpbb/captcha/plugins/incomplete.php`` - Added - ``4.0.0-a1`` - Placeholder CAPTCHA that prevents e.g. registration until safer captcha like reCAPTCHA or QA is enabled. + * - ``\phpbb\captcha\plugins\gd`` - ``phpbb/captcha/plugins/gd.php`` - Removed - ``4.0.0-a1`` - Use safer captcha like reCAPTCHA or QA. + * - ``\phpbb\captcha\plugins\gd_wave`` - ``phpbb/captcha/plugins/gd_wave.php`` - Removed - ``4.0.0-a1`` - Use safer captcha like reCAPTCHA or QA. + * - ``\phpbb\captcha\plugins\nogd`` - ``phpbb/captcha/plugins/nogd.php`` - Removed - ``4.0.0-a1`` - Use safer captcha like reCAPTCHA or QA. + * - ``\phpbb\captcha\char_cube3d`` - ``phpbb/captcha/char_cube3d.php`` - Removed - ``4.0.0-a1`` - No longer used due to removal of gd & nogd CAPTCHAs. + * - ``\phpbb\captcha\colour_manager`` - ``phpbb/captcha/colour_manager.php`` - Removed - ``4.0.0-a1`` - No longer used due to removal of gd & nogd CAPTCHAs. + * - ``\phpbb\captcha\gd`` - ``phpbb/captcha/gd.php`` - Removed - ``4.0.0-a1`` - No longer used due to removal of gd & nogd CAPTCHAs. + * - ``\phpbb\captcha\gd_wave`` - ``phpbb/captcha/gd_wave.php`` - Removed - ``4.0.0-a1`` - No longer used due to removal of gd & nogd CAPTCHAs. + * - ``\phpbb\captcha\non_gd`` - ``phpbb/captcha/non_gd.php`` - Removed - ``4.0.0-a1`` - No longer used due to removal of gd & nogd CAPTCHAs. + * - ``\phpbb\form\form_helper`` - ``phpbb/form/form_helper.php`` - Added - ``4.0.0-a1`` - Introduced form_helper for generating and checking form tokens. + * - ``get_user_avatar`` - ``includes/functions_compatibility.php`` - Removed in ``4.0.0-a1``, deprecated in ``3.1.0-a1`` - ``4.0.0-a1`` - Use ``\phpbb\avatar\helper::get_user_avatar()`` instead. + * - ``phpbb_get_user_avatar`` - ``includes/functions.php`` - Removed - ``4.0.0-a1`` - Use ``\phpbb\avatar\helper::get_user_avatar()`` instead. + * - ``phpbb_get_group_avatar`` - ``includes/functions.php`` - Removed - ``4.0.0-a1`` - Use ``\phpbb\avatar\helper::get_user_avatar()`` instead. + * - ``phpbb_get_avatar`` - ``includes/functions.php`` - Removed - ``4.0.0-a1`` - Use ``\phpbb\avatar\helper::get_user_avatar()`` instead. + * - ``phpbb_check_hash`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\passwords\manager::check()`` instead. + + * - ``phpbb_clean_path`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\filesystem\helper::clean_path()`` instead. + + * - ``phpbb_hash`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\passwords\manager::hash()`` instead. + + * - ``tz_select`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``phpbb_timezone_select()`` from ``functions.php`` instead. + + * - ``cache_moderators`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``phpbb_cache_moderators()`` from ``functions_admin.php`` instead. + + * - ``update_foes`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``phpbb_update_foes()`` from ``functions_admin.php`` instead. + + * - ``get_user_rank`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``phpbb_get_user_rank()`` from ``functions_display.php`` instead. + + * - ``get_remote_file`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\file_downloader`` instead. + + * - ``add_log`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\log\log`` instead. + + * - ``get_tables`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\db\tools\tools_interface`` classes instead. + + * - ``phpbb_chmod`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\filesystem\filesystem::phpbb_chmod()`` instead. + + * - ``phpbb_is_writable`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\filesystem\filesystem::is_writable()`` instead. + + * - ``phpbb_is_absolute`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\filesystem\helper::is_absolute_path()`` instead. + + * - ``phpbb_realpath`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\filesystem\helper::realpath()`` instead. + + * - ``phpbb_get_plural_form`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\language\language::get_plural_form()`` instead. + + * - ``phpbb_pcre_utf8_support`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Not used anymore. + + * - ``delete_attachments`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\attachment\manager::delete()`` instead. + + * - ``phpbb_unlink`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\attachment\manager::unlink()`` instead. + + * - ``upload_attachment`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\attachment\manager::upload()`` instead. + + * - ``display_reasons`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\report\report_reason_list_provider::display_reasons()`` instead. + + * - ``phpbb_check_and_display_sql_report`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use ``\phpbb\controller\helper::display_sql_report()`` instead. + + * - ``phpbb_checkdnsrr`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use PHP's ``checkdnsrr()`` instead. + + * - ``phpbb_inet_ntop`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use PHP's ``inet_ntop()`` instead. + + * - ``phpbb_inet_pton`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Use PHP's ``inet_pton()`` instead. + + * - ``wrap_img_in_html`` + - ``includes/functions_compatibility.php`` + - Removed + - ``4.0.0-a1`` + - Not used anymore. + * - ``build_cfg_template`` - ``includes/functions_acp.php`` - Removed From ac0af67a8b1309cf0226a2d9a244a25eef5c2722 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Thu, 11 Jul 2024 21:40:40 +0200 Subject: [PATCH 2/5] Add removal of set_config, set_config_count and \phpbb\filesystem --- development/development/upgrade/400.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/development/development/upgrade/400.rst b/development/development/upgrade/400.rst index 81d894bb..9a731ddf 100644 --- a/development/development/upgrade/400.rst +++ b/development/development/upgrade/400.rst @@ -121,6 +121,12 @@ Also have a look at the `phpBB API documentation Date: Thu, 11 Jul 2024 21:54:27 +0200 Subject: [PATCH 3/5] Document removal of request_var --- development/development/upgrade/400.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/development/development/upgrade/400.rst b/development/development/upgrade/400.rst index 9a731ddf..c877a92a 100644 --- a/development/development/upgrade/400.rst +++ b/development/development/upgrade/400.rst @@ -223,6 +223,12 @@ Also have a look at the `phpBB API documentation Date: Fri, 12 Jul 2024 21:24:23 +0200 Subject: [PATCH 4/5] Update info about removed functions --- development/development/upgrade/400.rst | 48 +++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/development/development/upgrade/400.rst b/development/development/upgrade/400.rst index c877a92a..f6084521 100644 --- a/development/development/upgrade/400.rst +++ b/development/development/upgrade/400.rst @@ -133,6 +133,12 @@ Also have a look at the `phpBB API documentation Date: Fri, 12 Jul 2024 21:39:49 +0200 Subject: [PATCH 5/5] Remove function bbcode_second_pass_by_extension --- development/development/upgrade/400.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/development/development/upgrade/400.rst b/development/development/upgrade/400.rst index f6084521..9bcad8fb 100644 --- a/development/development/upgrade/400.rst +++ b/development/development/upgrade/400.rst @@ -139,6 +139,12 @@ Also have a look at the `phpBB API documentation