Version 5.0.13

This commit is contained in:
Neo committed 2025-12-19 19:04:57 -08:00
1 parent b89858b2ff
commit 5efe744c5f
1407 files changed
+69690 -30177

No files matched your search

@@ -12,6 +12,7 @@ namespace IPS\core\modules\admin\membersettings;
/* To prevent PHP errors (extending class does not exist) revealing path */
use IPS\Api\Webhook;
use IPS\Data\Store;
use IPS\DateTime;
use IPS\Db;
@@ -180,6 +181,8 @@ class ban extends Controller
'ban_reason' => $values['ban_reason'],
'ban_date' => time()
);
Webhook::fire( 'ban_filter_added', $save);
if ( $current )
{
@@ -217,6 +220,7 @@ class ban extends Controller
$current = Db::i()->select( '*', 'core_banfilters', array( 'ban_id=?', Request::i()->id ) )->first();
Session::i()->log( 'acplog__ban_deleted', array( 'ban_filter_' . $current['ban_type'] . '_select' => TRUE, $current['ban_content'] => FALSE ) );
Db::i()->delete( 'core_banfilters', array( 'ban_id=?', Request::i()->id ) );
Webhook::fire( 'ban_filter_removed', $current);
unset( Store::i()->bannedIpAddresses );
}
catch ( UnderflowException $e ) { }
@@ -16,6 +16,7 @@ use IPS\Dispatcher\Controller;
use IPS\Http\Url;
use IPS\Member;
use IPS\Output;
use IPS\Platform\Bridge;
use IPS\Request;
use IPS\Theme;
use function defined;
@@ -61,10 +62,24 @@ class profiles extends Controller
$tabs['profilesettings'] = 'profile_settings';
}
/* Profile Photo Gallery */
if( Bridge::i()->featureIsEnabled( 'profile_gallery' ) and Member::loggedIn()->hasAcpRestriction( 'cloud', 'smartcommunity', 'smartcommunity_profilegallery' ) )
{
$tabs['profilegallery'] = 'profile_gallery';
}
/* Route */
$classname = 'IPS\core\modules\admin\membersettings\\' . $activeTab;
$class = new $classname;
$class->url = Url::internal("app=core&module=membersettings&controller=profiles&tab={$activeTab}");
if( $activeTab == 'profilegallery' )
{
$classname = 'IPS\cloud\modules\admin\profiles\photogallery';
}
else
{
$classname = 'IPS\core\modules\admin\membersettings\\' . $activeTab;
}
$class = new $classname;
$class->url = Url::internal("app=core&module=membersettings&controller=profiles&tab={$activeTab}");
$class->execute();
$output = Output::i()->output;