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

@@ -48,16 +48,27 @@ class _unsubscribe extends \IPS\Dispatcher\Controller
/* Verify the key is correct */
if ( \IPS\Login::compareHashes( md5( $member->email . ':' . $member->members_pass_hash ), (string) \IPS\Request::i()->key ) )
{
/* Set the member not to receive future emails */
$member->allow_admin_mails = 0;
$member->save();
/* Log it */
$member->logHistory( 'core', 'admin_mails', array( 'enabled' => FALSE ) );
$action = 'bulkEmail';
if ( isset( \IPS\Request::i()->action ) and \IPS\Request::i()->action === 'markSolved' )
{
$action = 'markSolved';
$member->members_bitoptions['no_solved_reenage'] = 1;
$member->save();
}
else
{
/* Set the member not to receive future emails */
$member->allow_admin_mails = 0;
$member->save();
/* Log it */
$member->logHistory( 'core', 'admin_mails', array( 'enabled' => FALSE ) );
}
/* And then show them a confirmation screen */
\IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'system' )->unsubscribed( $action );
\IPS\Output::i()->title = \IPS\Member::loggedIn()->language()->addToStack('unsubscribed');
\IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'system' )->unsubscribed();
}
else
{