phpBB Safe Mode

One off tools that don't edit core files and perform single use functions
Forum rules
One off tools that don't edit core files and perform single use functions
Post Reply
User avatar
Dion
Support
Support
Posts: 20
Joined: Fri Dec 06, 2024 3:37 am

phpBB Safe Mode

Post by Dion »

Attached is a ZIP archive containing a file named common_safemode.php. You should copy common_safemode.php to a phpBB 3.3 board, rename common.php to common_original.php, and then rename common_safemode.php to common.php. You can then enable safe mode at any time by adding the following line to your config.php file:

Code: Select all

define('PHPBB_SAFEMODE', true);
phpBB will load without extensions, with the Prosilver theme, and with the board disabled. It only works with phpBB 3.3.

Here's an example of a good use for safe mode. If you had enabled a new extension that broke your board, you can enable safe mode, then access the ACP and disable the offending extension, and then disable safe mode. It also comes close to implementing a phpBB ideas proposal.

If you have any questions, please ask. And if you're an extension developer, make sure to look at the code in common_safemode.php. It contains several "tricks" you may find useful. ;)

common_safemode.zip
(4.05 KiB) Downloaded 8 times
Post Reply