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,22 @@
|
||||
{
|
||||
"id": 5001200,
|
||||
"name": "5.0.12 Beta 1",
|
||||
"steps": {
|
||||
"queries": true,
|
||||
"lang": true,
|
||||
"theme": true,
|
||||
"themeeditor": false,
|
||||
"javascript": true,
|
||||
"emailTemplates": true,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": true
|
||||
},
|
||||
"forceMainUpgrader": true,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"added": [],
|
||||
"edited": [
|
||||
"notification_report_center"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"files": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"global\/library\/app.js",
|
||||
"global\/framework\/common\/components\/dropdown.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.autoCheck.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.autocomplete.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.filterBar.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.pageAction.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.tableOfContents.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.tooltip.js",
|
||||
"global\/framework\/common\/utils\/ips.utils.iconpicker.js",
|
||||
"global\/framework\/common\/utils\/ips.utils.search.js",
|
||||
"core\/front\/controllers\/clubs\/ips.clubs.requests.js",
|
||||
"core\/admin\/controllers\/core\/ips.core.acpSearchKeywords.js",
|
||||
"core\/admin\/controllers\/core\/ips.core.changeTheme.js",
|
||||
"global\/admin\/controllers\/core\/ips.core.dynamicChart.js",
|
||||
"core\/admin\/controllers\/core\/ips.core.notificationMenu.js",
|
||||
"global\/front\/controllers\/core\/ips.core.comment.js",
|
||||
"global\/front\/controllers\/core\/ips.core.commentFeed.js",
|
||||
"global\/front\/controllers\/core\/ips.core.ignoredComments.js",
|
||||
"core\/front\/controllers\/core\/ips.core.notifications.js",
|
||||
"core\/front\/controllers\/core\/ips.core.tagEditorForm.js",
|
||||
"global\/front\/controllers\/core\/ips.core.userbar.js",
|
||||
"core\/global\/controllers\/core\/ips.core.coverPhoto.js",
|
||||
"core\/global\/controllers\/core\/ips.core.genericTable.js",
|
||||
"core\/global\/controllers\/core\/ips.core.prefixedAutocomplete.js",
|
||||
"core\/global\/controllers\/core\/ips.core.table.js",
|
||||
"core\/admin\/controllers\/dashboard\/ips.dashboard.main.js",
|
||||
"core\/front\/controllers\/ignore\/ips.ignore.existing.js",
|
||||
"core\/admin\/controllers\/members\/ips.members.history.js",
|
||||
"core\/admin\/controllers\/members\/ips.members.listFlagSpammer.js",
|
||||
"core\/front\/controllers\/messages\/ips.messages.list.js",
|
||||
"core\/front\/controllers\/messages\/ips.messages.main.js",
|
||||
"core\/front\/controllers\/messages\/ips.messages.view.js",
|
||||
"core\/front\/controllers\/modcp\/ips.modcp.report.js",
|
||||
"core\/front\/controllers\/modcp\/ips.modcp.reportList.js",
|
||||
"core\/front\/controllers\/modcp\/ips.modcp.reportToggle.js",
|
||||
"core\/front\/controllers\/profile\/ips.profile.followers.js",
|
||||
"core\/front\/controllers\/search\/ips.search.filters.js",
|
||||
"core\/front\/controllers\/streams\/ips.streams.form.js",
|
||||
"core\/front\/controllers\/streams\/ips.streams.main.js",
|
||||
"core\/front\/controllers\/widgets\/ips.widgets.manager.js",
|
||||
"global\/admin\/mixins\/ips.core.table.js",
|
||||
"global\/front\/mixins\/ips.core.table.js",
|
||||
"global\/admin\/templates\/ips.core.templates.js",
|
||||
"core\/admin\/templates\/ips.templates.dashboard.js",
|
||||
"global\/framework\/templates\/ips.core.templates.js",
|
||||
"core\/front\/templates\/ips.templates.messages.js",
|
||||
"global\/admin\/ui\/ips.ui.controlStrip.js",
|
||||
"global\/admin\/ui\/ips.ui.tree.js"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"orders": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"normal": {
|
||||
"added": [
|
||||
"queue_cleanup_approval_queue",
|
||||
"clubs_sort_distance",
|
||||
"club_filter_location",
|
||||
"club_auto_follow",
|
||||
"club_auto_follow_desc",
|
||||
"club_auto_follow_desc_edit",
|
||||
"queue_club_auto_follow",
|
||||
"app_desc_confirm",
|
||||
"tag_text_desc",
|
||||
"tags_search_desc"
|
||||
],
|
||||
"edited": [
|
||||
"notification_options",
|
||||
"promote_toggle_custom_desc",
|
||||
"promote_toggle_comment_desc",
|
||||
"dev_app_missing_description"
|
||||
],
|
||||
"removed": [
|
||||
"replied_lc",
|
||||
"mailsub__core_acp_notification_ManualInterventionMessage",
|
||||
"method_check_fail",
|
||||
"acp_notification_ManualInterventionMessage",
|
||||
"advise_removal_of_php8_incompatible_code"
|
||||
]
|
||||
},
|
||||
"js": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/* Look for any clubs custom fields that do not have permissions configured.
|
||||
Inform the Admin that these need to be checked. */
|
||||
$fields = iterator_to_array(
|
||||
\IPS\Db::i()->select( 'f_id', 'core_clubs_fields', [ 'f_id not in (?)', \IPS\Db::i()->select( 'perm_type_id', 'core_permission_index', [ 'app=? and perm_type=?', 'core', 'clubfields' ] ) ] )
|
||||
);
|
||||
|
||||
if( \count( $fields ) )
|
||||
{
|
||||
$message = "The following Club Custom Fields have no permissions configured and should be reviewed:";
|
||||
foreach( $fields as $field )
|
||||
{
|
||||
$message .= "<br>" . \IPS\Member::loggedIn()->language()->get( 'core_clubfield_' . $field );
|
||||
}
|
||||
|
||||
$message = \IPS\Theme::i()->getTemplate( 'global' )->block( NULL, $message );
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "addIndex",
|
||||
"params": [
|
||||
"core_members",
|
||||
{
|
||||
"type": "key",
|
||||
"name": "photo_type",
|
||||
"columns": [
|
||||
"pp_photo_type",
|
||||
"pp_main_photo"
|
||||
],
|
||||
"length": [
|
||||
null,
|
||||
190
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"method": "delete",
|
||||
"params": [
|
||||
"core_acp_notifications",
|
||||
[
|
||||
"app=? and ext=?",
|
||||
"core",
|
||||
"ManualInterventionMessage"
|
||||
]
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"core_clubs",
|
||||
{
|
||||
"name": "auto_follow",
|
||||
"type": "TINYINT",
|
||||
"length": null,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": true,
|
||||
"default": "0",
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [
|
||||
"admin\/applications\/appDescConfirm",
|
||||
"admin\/applications\/appDescMissing"
|
||||
],
|
||||
"edited": [
|
||||
"front\/clubs\/directory",
|
||||
"front\/clubs\/header",
|
||||
"front\/clubs\/members",
|
||||
"front\/clubs\/membersRows",
|
||||
"front\/clubs\/view",
|
||||
"front\/clubs\/viewPage",
|
||||
"admin\/customization\/templateEditor",
|
||||
"admin\/dashboard\/dashboardHeader",
|
||||
"admin\/dashboard\/fileTable",
|
||||
"global\/forms\/autocomplete",
|
||||
"front\/forms\/commentUnavailable",
|
||||
"global\/forms\/date",
|
||||
"global\/forms\/editorAttachmentsPlaceholder",
|
||||
"admin\/global\/appmenu",
|
||||
"front\/global\/blockEditorButton",
|
||||
"front\/global\/buttons",
|
||||
"front\/global\/comment",
|
||||
"front\/global\/commentContainer",
|
||||
"front\/global\/commentMultimodHeader",
|
||||
"admin\/global\/controlStrip",
|
||||
"front\/global\/controlStrip",
|
||||
"front\/global\/coverPhoto",
|
||||
"global\/global\/dynamicChart",
|
||||
"front\/global\/footer",
|
||||
"admin\/global\/globalTemplate",
|
||||
"front\/global\/globalTemplate",
|
||||
"global\/global\/includeMeta",
|
||||
"front\/global\/loginPopup",
|
||||
"front\/global\/metaTagEditor",
|
||||
"front\/global\/navColumn",
|
||||
"admin\/global\/pageButtons",
|
||||
"global\/global\/pagination",
|
||||
"front\/global\/reactionBlurb",
|
||||
"front\/global\/review",
|
||||
"front\/global\/rssMenu",
|
||||
"front\/global\/searchDialog",
|
||||
"front\/global\/searchDialogTrigger",
|
||||
"admin\/global\/searchKeywords",
|
||||
"front\/global\/signature",
|
||||
"front\/global\/tags",
|
||||
"front\/global\/tagsWithPrefix",
|
||||
"front\/global\/userBar",
|
||||
"admin\/memberprofile\/basicInformation",
|
||||
"admin\/memberprofile\/header",
|
||||
"admin\/memberprofile\/history",
|
||||
"front\/menu\/button",
|
||||
"front\/menu\/content",
|
||||
"front\/menu\/link",
|
||||
"front\/menu\/rowWrapper",
|
||||
"front\/menu\/separator",
|
||||
"front\/menu\/titleField",
|
||||
"front\/messaging\/conversation",
|
||||
"front\/messaging\/messageList",
|
||||
"front\/messaging\/participant",
|
||||
"front\/messaging\/template",
|
||||
"front\/modcp\/alertRow",
|
||||
"front\/modcp\/announcementRow",
|
||||
"front\/modcp\/approvalQueueItem",
|
||||
"front\/modcp\/approvalQueueTable",
|
||||
"front\/modcp\/deletedRows",
|
||||
"front\/modcp\/deletedTable",
|
||||
"front\/modcp\/hiddenTable",
|
||||
"front\/modcp\/hiddenTableRow",
|
||||
"front\/modcp\/memberManagementRow",
|
||||
"front\/modcp\/report",
|
||||
"front\/modcp\/reportToggle",
|
||||
"front\/moderationLog\/table",
|
||||
"front\/myAttachments\/template",
|
||||
"front\/online\/onlineUsersRow",
|
||||
"front\/online\/onlineUsersTable",
|
||||
"front\/popular\/popularWrapper",
|
||||
"front\/popular\/topMembers",
|
||||
"front\/profile\/followers",
|
||||
"front\/profile\/hovercard",
|
||||
"front\/profile\/userReputationTable",
|
||||
"front\/profile\/userSolutionsTable",
|
||||
"admin\/reports\/reportSelector",
|
||||
"front\/search\/filters",
|
||||
"front\/search\/resultStream",
|
||||
"front\/sharelinks\/shareButton",
|
||||
"front\/streams\/filterCreateForm",
|
||||
"front\/streams\/filterForm",
|
||||
"front\/streams\/filterFormContentType",
|
||||
"front\/streams\/filterFormFollowStatus",
|
||||
"front\/streams\/filterFormOwnership",
|
||||
"front\/streams\/filterFormShowMe",
|
||||
"front\/streams\/filterFormTags",
|
||||
"front\/streams\/filterFormTimePeriod",
|
||||
"front\/streams\/filterInlineForm",
|
||||
"front\/streams\/streamWrapper",
|
||||
"front\/system\/announcement",
|
||||
"front\/system\/ignoreTable",
|
||||
"front\/system\/ignoreTableRows",
|
||||
"front\/system\/searchResult",
|
||||
"admin\/tables\/table",
|
||||
"front\/tables\/table"
|
||||
],
|
||||
"removed": [
|
||||
"admin\/support\/methodIssues"
|
||||
]
|
||||
},
|
||||
"css": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"front\/core.css",
|
||||
"admin\/core\/controlstrip.css",
|
||||
"admin\/core\/global.css",
|
||||
"admin\/core\/zzz-admin-only.css",
|
||||
"global\/framework\/1-1-reset.css",
|
||||
"global\/framework\/1-4-colors.css",
|
||||
"global\/framework\/3-compose.css",
|
||||
"global\/framework\/3-data-tables.css",
|
||||
"global\/framework\/3-dropdown.css",
|
||||
"global\/framework\/3-engagement.css",
|
||||
"global\/framework\/3-entries.css",
|
||||
"global\/framework\/3-inputs.css",
|
||||
"global\/framework\/3-menus.css",
|
||||
"global\/framework\/3-pagination.css",
|
||||
"global\/framework\/3-popup.css",
|
||||
"global\/framework\/3-post-content.css",
|
||||
"global\/framework\/3-tables.css",
|
||||
"global\/framework\/4-footer.css",
|
||||
"global\/framework\/4-header.css",
|
||||
"global\/framework\/4-offcanvas.css",
|
||||
"global\/framework\/4-search-dialog.css",
|
||||
"global\/framework\/table-of-contents.css",
|
||||
"admin\/members\/view.css",
|
||||
"front\/styles\/messaging.css",
|
||||
"front\/styles\/streams.css"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief 5.0.12 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 04 Sep 2025
|
||||
*/
|
||||
|
||||
namespace IPS\core\setup\upg_5001200;
|
||||
|
||||
use IPS\Db;
|
||||
use IPS\Task;
|
||||
use function defined;
|
||||
use function json_decode;
|
||||
use function json_encode;
|
||||
use function preg_match;
|
||||
|
||||
/* 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.12 Beta 1 Upgrade Code
|
||||
*/
|
||||
class Upgrade
|
||||
{
|
||||
/**
|
||||
* Fix logo data to prevent them from disappearing every time the cache is cleared
|
||||
*
|
||||
* @return bool|array
|
||||
*/
|
||||
public function step1() : bool|array
|
||||
{
|
||||
foreach( Db::i()->select( 'set_id,set_logo_data', 'core_themes' ) as $row )
|
||||
{
|
||||
$logoData = $row['set_logo_data'] ? json_decode( $row['set_logo_data'], true ) : [];
|
||||
foreach( $logoData as $type => $logo )
|
||||
{
|
||||
if( isset( $logo['fullUrl'] ) )
|
||||
{
|
||||
/* We previously stored this as a resource tag; extract the file name instead */
|
||||
preg_match( '/resource=\"custom\/(.+?)\"/is', $logo['fullUrl'], $match );
|
||||
if( !empty( $match ) )
|
||||
{
|
||||
$logoData[ $type ]['filename'] = $match[1];
|
||||
}
|
||||
else if ( isset( $logoData[ $type ]['url'] ) )
|
||||
{
|
||||
$logoData[ $type ]['filename'] = $logoData[ $type ]['url'];
|
||||
}
|
||||
|
||||
unset( $logoData[ $type ]['url'] );
|
||||
unset( $logoData[ $type ]['fullUrl'] );
|
||||
}
|
||||
}
|
||||
|
||||
Db::i()->update( 'core_themes', [ 'set_logo_data' => json_encode( $logoData ) ], [ 'set_id=?', $row['set_id'] ] );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up orphaned data from the approval queue table
|
||||
*
|
||||
* @return bool|array
|
||||
*/
|
||||
public function step2() : bool|array
|
||||
{
|
||||
Task::queue( 'core', 'CleanupApprovalQueue', [] );
|
||||
|
||||
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