Version 4.7.6

This commit is contained in:
Neo committed 2025-12-19 16:05:19 -08:00
1 parent 8ba7d43898
commit 7b7404e741
1085 files changed
+30590 -7837

No files matched your search

@@ -73,6 +73,82 @@ class _done extends \IPS\Dispatcher\Controller
/* Remove any new version ACP Notifications */
\IPS\core\AdminNotification::remove( 'core', 'NewVersion' );
/* Check for php8 method substitution issues */
if ( \IPS\Application\Scanner::scanCustomizationIssues( false, true ) !== null )
{
$foundIssues = \IPS\Application\Scanner::scanCustomizationIssues()[0];
$disabledApps = array();
$disabledPlugins = array();
foreach ( $foundIssues as $appOrPlugin => $classes )
{
$components = explode( "-", $appOrPlugin );
$isApp = \mb_strtolower( trim( $components[0] ) ) === 'app';
$appDir = trim( $components[1] );
/* Disable the plugin/app and flag for manual intervention */
if ( $isApp and ( empty( $disabledApps[$appDir] ) ) )
{
/* IPS Code is flawless, skip it */
if ( \in_array( $appDir, \IPS\IPS::$ipsApps ) )
{
continue;
}
try
{
$app = \IPS\Application::load( $appDir );
$app->_enabled = false;
if ( ! \IPS\IN_DEV )
{
$app->requires_manual_intervention = 1;
}
$app->save();
$disabledApps[$appDir] = $app->_title;
}
catch ( \InvalidArgumentException|\OutOfRangeException $e )
{
/* This still won't work, so don't leave it empty */
$disabledApps[$appDir] = $appDir;
continue;
}
}
elseif ( empty( $disabledPlugins[$appDir] ) )
{
try
{
$pluginId = \IPS\Db::i()->select( 'plugin_id', 'core_plugins', [ 'plugin_location=?', $appDir ], null, 1 )->first();
$plugin = \IPS\Plugin::load( $pluginId );
$plugin->_enabled = false;
if ( ! \IPS\IN_DEV )
{
$plugin->requires_manual_intervention = 1;
}
$plugin->save();
$disabledPlugins[$appDir] = $plugin->name;
}
catch ( \UnderflowException|\InvalidArgumentException|\OutOfRangeException $e )
{
/* This still won't work, so don't leave it empty */
$disabledPlugins[$appDir] = $appDir;
continue;
}
}
}
if ( \count( $disabledPlugins ) OR \count( $disabledApps ) )
{
\IPS\core\AdminNotification::send( 'core', 'ManualInterventionMessage' );
$_SESSION['upgrade_postUpgrade']['core'][] = \IPS\Theme::i()->getTemplate( 'global' )->methodIssues(
\IPS\Theme::i()->getTemplate( 'global' )->disabled3rdParty( array_keys( $disabledApps ), array_keys( $disabledPlugins ), false )
);
}
}
/* And show the complete page - the template handles this step special already so we don't have to output anything */
\IPS\Output::i()->title = \IPS\Member::loggedIn()->language()->addToStack('done');