ECE (Emergency Configuration Editor)

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
User avatar
Kailey
Administrator
Administrator
Posts: 73
Joined: Sat May 18, 2024 4:11 am
Name: Kailey Snay

Re: ECE (Emergency Configuration Editor)

Post by Kailey »

Good idea
Stoker
New member
New member
Posts: 8
Joined: Mon Mar 03, 2025 10:44 am

Re: ECE (Emergency Configuration Editor)

Post by Stoker »

Glad you like it. Got one more :D
Sometimes when screwing ip big time, we cant even purge cache in ACP,
'Of Course you can do it manually vith FTP
But a standalone purge cache function would be nice, if possible?
User avatar
Kailey
Administrator
Administrator
Posts: 73
Joined: Sat May 18, 2024 4:11 am
Name: Kailey Snay

Re: ECE (Emergency Configuration Editor)

Post by Kailey »

That one should be easy enough. I'm out right now but these are things I can look into next week.
User avatar
Dion
New member
New member
Posts: 35
Joined: Fri Dec 06, 2024 3:37 am

Re: ECE (Emergency Configuration Editor)

Post by Dion »

Both could easily be added, but ECE = Emergency Configuration Editor. Neither of your (very good) suggestions fit into that category. I think it would be best to take the core setup/login portion of ECE and use it to create a second standalone script. Perhaps it could form the core of an improved replacement SOS Admin script.

If that's done, the new script should truncate SESSIONS_TABLE before $user->session_begin() is called. (Using TRUNCATE will fix a crashed table.) This would eliminate another common issue that blocks admins from accessing the ACP. While it will log out people that didn't use the "remember me" option when logging in, that's not a big deal, especially if the board was currently inaccessible!
User avatar
Dion
New member
New member
Posts: 35
Joined: Fri Dec 06, 2024 3:37 am

Re: ECE (Emergency Configuration Editor)

Post by Dion »

I realized that there's no need to add "extension disable" support to ECE (or otherwise) because you can already disable extensions by installing safe mode:

https://www.phpbbmodders.com/community/viewtopic.php?t=88

and activating it via the PHPBB_SAFEMODE constant.

If the issues are more serious, you can activate safe mode, then use ECE to fix server configuration issues, and afterwards click its "ACP" button to access the ACP. You can then disable extensions as needed.
User avatar
Dion
New member
New member
Posts: 35
Joined: Fri Dec 06, 2024 3:37 am

Re: ECE (Emergency Configuration Editor)

Post by Dion »

Here's a version of ECE with a button to purge the cache. I'm not going to update the first post with this version because I honestly don't think the button belongs in ECE.

ece_purge_cache.zip
You do not have the required permissions to view the files attached to this post.