Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"added": [],
|
||||
"edited": [
|
||||
"app=core&module=moderation&controller=spam&searchResult=bot_antispam_type",
|
||||
"app=core&module=moderation&controller=spam&tab=captcha",
|
||||
"app=core&module=settings&controller=general&searchResult=form_site_online",
|
||||
"app=core&module=settings&controller=posting&tab=simplifiedMode&searchResult=form_editor_r__table"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"id": 5000900,
|
||||
"name": "5.0.9 Beta 1",
|
||||
"steps": {
|
||||
"queries": false,
|
||||
"lang": true,
|
||||
"theme": true,
|
||||
"themeeditor": false,
|
||||
"javascript": true,
|
||||
"emailTemplates": true,
|
||||
"acpSearchKeywords": true,
|
||||
"settings": true,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": true
|
||||
},
|
||||
"forceMainUpgrader": true,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"added": [],
|
||||
"edited": [
|
||||
"emailWrapper"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"files": {
|
||||
"added": [
|
||||
"core\/admin\/controllers\/stats\/ips.stats.downloadbutton.js",
|
||||
"core\/admin\/controllers\/stats\/ips.stats.dynamicChart.mixin.js",
|
||||
"core\/admin\/controllers\/stats\/ips.stats.liveDateFilter.js",
|
||||
"core\/admin\/controllers\/stats\/ips.stats.overviewBlock.mixin.js"
|
||||
],
|
||||
"edited": [
|
||||
"global\/framework\/common\/ui\/ips.ui.autocomplete.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.captcha.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.chart.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.drawer.js",
|
||||
"global\/framework\/common\/utils\/ips.utils.url.js",
|
||||
"core\/admin\/controllers\/core\/ips.core.changeTheme.js",
|
||||
"global\/admin\/controllers\/core\/ips.core.dynamicChart.js",
|
||||
"core\/admin\/controllers\/members\/ips.members.lazyLoadingProfileBlock.js",
|
||||
"core\/admin\/controllers\/stats\/ips.stats.overview.js",
|
||||
"core\/admin\/controllers\/stats\/ips.stats.overviewBlock.js",
|
||||
"global\/framework\/templates\/ips.core.templates.autocomplete.js"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"orders": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"normal": {
|
||||
"added": [
|
||||
"captcha_type_turnstile",
|
||||
"captcha_type_turnstile_desc",
|
||||
"turnstile_site_key",
|
||||
"turnstile_secret_key",
|
||||
"turnstile_secret_key_cloud_desc",
|
||||
"turnstile_secret_key_desc",
|
||||
"filestorage__core_CustomBadges",
|
||||
"emailtpl_notification_report_outcome",
|
||||
"onboard_tab_spamprevention",
|
||||
"onboard_msg_spamprevention",
|
||||
"onboard_location_spamprevention",
|
||||
"member_filter_core_joined_start_desc",
|
||||
"member_filter_core_joined_end_desc",
|
||||
"member_filter_core_lastpost_start_desc",
|
||||
"member_filter_core_lastpost_end_desc",
|
||||
"member_filter_core_lastvisit_start_desc",
|
||||
"member_filter_core_lastvisit_end_desc",
|
||||
"stats_deletedcontent_csv_title",
|
||||
"emailtpl_loginAfterInactivity",
|
||||
"stats_pfields__stars",
|
||||
"custom_chart_title_desc",
|
||||
"statsreports_add_block_to_report",
|
||||
"statsreports_saved_block_title",
|
||||
"statsreports_saved_block_title_desc",
|
||||
"statsreports_show_all_members",
|
||||
"statsreports_show_all_members_desc",
|
||||
"statsreports_saved_blocks",
|
||||
"statsreports_report_maindash",
|
||||
"statsreports_saved_charts",
|
||||
"statsreports_no_blocks",
|
||||
"statsreports_chart_range",
|
||||
"statsreports_download",
|
||||
"statsreports_download_desc",
|
||||
"statsreports_edit_block",
|
||||
"statsreports_chart_fname",
|
||||
"statsreports_block_fname",
|
||||
"statsreports_include_in_report",
|
||||
"statsreports_include_in_report_desc",
|
||||
"statsreports_report",
|
||||
"statsreports_report_new",
|
||||
"statsreports_report_new_title",
|
||||
"statsreports_saved_reports",
|
||||
"statsreports_select_report",
|
||||
"statsreports_total_members_fixed",
|
||||
"statsreports_current_counts",
|
||||
"statsreports_previous_counts",
|
||||
"statsreports_previous_count",
|
||||
"statsreports_current_count",
|
||||
"statsreports_current_total",
|
||||
"statsreports_previous_total",
|
||||
"statsreports_legacy_block",
|
||||
"menu__core_keystats",
|
||||
"menu__core_keystats_mycharts",
|
||||
"menu__core_keystats_communityhealth",
|
||||
"menu__core_keystats_activityoverview",
|
||||
"menu__core_keystats_overview"
|
||||
],
|
||||
"edited": [
|
||||
"recaptcha2_private_key_desc",
|
||||
"page_top",
|
||||
"stats_deleted_tooltip",
|
||||
"menu__core_overview_mycharts"
|
||||
],
|
||||
"removed": [
|
||||
"delta_upgrade_md5_fail",
|
||||
"delta_upgrade_md5_fix",
|
||||
"download_upgrade_initial_md5_fail_title",
|
||||
"download_upgrade_initial_md5_fail_explain",
|
||||
"md5_check_fail",
|
||||
"md5_fail_help_1",
|
||||
"md5_fail_help_2",
|
||||
"md5_build_fail",
|
||||
"md5_fail_download",
|
||||
"md5_fail_download_1",
|
||||
"md5_fail_download_2",
|
||||
"menu__core_stats_overview",
|
||||
"menu__core_activitystats_overview"
|
||||
]
|
||||
},
|
||||
"js": {
|
||||
"added": [
|
||||
"statsreports_delete_confirm",
|
||||
"autocomplete_no_results"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"added": [
|
||||
"turnstile_secret_key",
|
||||
"turnstile_site_key"
|
||||
],
|
||||
"edited": [
|
||||
"bot_antispam_type",
|
||||
"recaptcha2_private_key",
|
||||
"recaptcha2_public_key"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [
|
||||
"global\/forms\/captchaTurnstile",
|
||||
"admin\/reports\/overviewStatisticBlock",
|
||||
"admin\/reports\/reportSelector",
|
||||
"admin\/reports\/savedStatBlocks",
|
||||
"admin\/reports\/statBlockButton"
|
||||
],
|
||||
"edited": [
|
||||
"admin\/activitystats\/overview",
|
||||
"front\/clubs\/membersRows",
|
||||
"front\/clubs\/view",
|
||||
"global\/forms\/number",
|
||||
"admin\/forms\/template",
|
||||
"front\/forms\/template",
|
||||
"front\/global\/announcementTop",
|
||||
"global\/global\/chart",
|
||||
"global\/global\/dynamicChart",
|
||||
"admin\/global\/globalTemplate",
|
||||
"front\/global\/globalTemplate",
|
||||
"front\/global\/mobileFooterBar",
|
||||
"admin\/global\/mobileNavigation",
|
||||
"front\/global\/mobileNavigationChildren",
|
||||
"global\/global\/pagination",
|
||||
"front\/global\/userPhoto",
|
||||
"global\/members\/dateFilters",
|
||||
"admin\/members\/memberListResultsInfobox",
|
||||
"front\/profile\/profileTabs",
|
||||
"admin\/stats\/filtersOverviewForm",
|
||||
"admin\/stats\/mycharts",
|
||||
"admin\/stats\/overview",
|
||||
"front\/streams\/streamItems",
|
||||
"front\/system\/coppa",
|
||||
"front\/system\/coppaForm",
|
||||
"front\/system\/login",
|
||||
"front\/system\/settingsOverview",
|
||||
"front\/tables\/rows",
|
||||
"admin\/tables\/table",
|
||||
"front\/tags\/view",
|
||||
"front\/themeeditor\/themeEditorTemplate",
|
||||
"front\/widgets\/mostSolved",
|
||||
"front\/widgets\/mostSolvedRows",
|
||||
"front\/widgets\/topContributorRows",
|
||||
"front\/widgets\/topContributors"
|
||||
],
|
||||
"removed": [
|
||||
"admin\/support\/fixMd5",
|
||||
"admin\/support\/fixMd5Download",
|
||||
"admin\/system\/upgradeDeltaMd5"
|
||||
]
|
||||
},
|
||||
"css": {
|
||||
"added": [
|
||||
"admin\/system\/reports.css"
|
||||
],
|
||||
"edited": [
|
||||
"admin\/core\/global.css",
|
||||
"admin\/core\/zzz-admin-only.css",
|
||||
"global\/framework\/1-3-variables.css",
|
||||
"global\/framework\/1-5-global.css",
|
||||
"global\/framework\/3-buttons.css",
|
||||
"global\/framework\/3-compose.css",
|
||||
"global\/framework\/3-data-tables.css",
|
||||
"global\/framework\/3-editor.css",
|
||||
"global\/framework\/3-entries.css",
|
||||
"global\/framework\/3-inputs.css",
|
||||
"global\/framework\/3-lightbox.css",
|
||||
"global\/framework\/3-menus.css",
|
||||
"global\/framework\/3-messages.css",
|
||||
"global\/framework\/3-misc.css",
|
||||
"global\/framework\/3-post-content.css",
|
||||
"global\/framework\/3-streams.css",
|
||||
"global\/framework\/3-tables.css",
|
||||
"global\/framework\/3-tabs.css",
|
||||
"global\/framework\/3-typography.css",
|
||||
"global\/framework\/4-footer.css",
|
||||
"global\/framework\/4-header.css",
|
||||
"global\/framework\/4-offcanvas.css",
|
||||
"front\/styles\/profiles.css",
|
||||
"front\/styles\/theme_editor.css",
|
||||
"admin\/system\/statistics.css"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief 5.0.9 Beta 1 Upgrade Code
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
|
||||
* @since 16 Jun 2025
|
||||
*/
|
||||
|
||||
namespace IPS\core\setup\upg_5000900;
|
||||
|
||||
use IPS\Db;
|
||||
use IPS\Settings;
|
||||
use function defined;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 5.0.9 Beta 1 Upgrade Code
|
||||
*/
|
||||
class Upgrade
|
||||
{
|
||||
private string $defaultKey = '6LcH7UEUAAAAAIGWgOoyBKAqjLmOIKzfJTOjyC7z';
|
||||
|
||||
/**
|
||||
* Classic: If using our global key, move the key to 'custom' setting, so it's retained after we wipe the default.
|
||||
*
|
||||
* @return bool|array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function step1() : bool|array
|
||||
{
|
||||
$captchaType = Settings::i()->bot_antispam_type;
|
||||
$recaptchaPublicKey = Settings::i()->recaptcha2_public_key;
|
||||
$recaptchaSecretKey = Settings::i()->recaptcha2_private_key;
|
||||
|
||||
/* Are we using the services with the global key? */
|
||||
if( !\IPS\CIC AND in_array( $captchaType, [ 'invisible', 'recaptcha2' ] ) AND $recaptchaPublicKey == $this->defaultKey )
|
||||
{
|
||||
/* Set the defaults */
|
||||
Db::i()->update( 'core_sys_conf_settings', [ 'conf_default' => '', ], [ 'conf_key=? OR conf_key=?', 'recaptcha2_public_key', 'recaptcha2_private_key' ] );
|
||||
Db::i()->update( 'core_sys_conf_settings', [ 'conf_default' => 'none', ], [ 'conf_key=?', 'bot_antispam_type' ] );
|
||||
Settings::i()->clearCache();
|
||||
|
||||
/* Set the global keys to custom settings for now */
|
||||
Settings::i()->changeValues( [
|
||||
'bot_antispam_type' => $captchaType,
|
||||
'recaptcha2_public_key' => $recaptchaPublicKey,
|
||||
'recaptcha2_private_key' => $recaptchaSecretKey
|
||||
] );
|
||||
}
|
||||
/* Switch Cloud customers to use Turnstile */
|
||||
elseif( \IPS\CIC AND in_array( $captchaType, [ 'invisible', 'recaptcha2' ] ) AND $recaptchaPublicKey == $this->defaultKey )
|
||||
{
|
||||
Settings::i()->changeValues( [ 'bot_antispam_type' => 'turnstile' ] );
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// You can create as many additional methods (step2, step3, etc.) as is necessary.
|
||||
// Each step will be executed in a new HTTP request
|
||||
}
|
||||
Reference in new issue
Block a user