Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted December 1, 200717 yr Would it be possible to move the configurations in init.php into a seperate configuration file (or make them ACP settings) ?Because, things like the admin path (which incedentally it should be mentioned in the upgrade instructions needs renaming before uploading if you've renamed it) have to be reapplied every upgrade, as init.php is changed every upgrade (because the version numbers are in it)The settings which need to be maintained are IPB_ACP_DIRECTORY, IPB_ACP_IP_MATCH, maybe IPB_ACP_ALLOW_EXEC_URL, IPB_ACP_ALLOW_TEMPLATE_PHP, IPB_MAKE_PORTAL_HOMEPAGE, IPB_ACP_USE_GZIP, maybe KERNEL_PATH (why is that even an option?), LEGACY_MODE, USE_MODULES, CUSTOM_ERROR. The rest like IN_DEV you'd probably only enable temporarily.
December 2, 200717 yr That would make sense to me, although the root path has to stay as that's how it finds the config file.
December 2, 200717 yr There are some settings that you really wouldn't want in the Admin CP for security reasons, and I feel that will be the answer IPS will give.IPB_ACP_ALLOW_EXEC_URL - Its recommended to be 0, allowing someone to turn it to 1 at their own will in the ACP isn't the best thingIPB_ACP_ALLOW_TEMPLATE_PHP - Self explanatory, meant to be 0, if a admin turns it to 1, they can enter PHP in templates, security risk
December 2, 200717 yr Yup - certain things you wouldn't want in the ACP. But they shouldn't be in init.php eitherIf someone for whatever reason has allowed PHP in the templates - that setting will revert back to 0 when you upgrade (because init.php always has to be updated) - which is probably going to mess you up as you must have enabled it for a reason. So that one needs to be in a file, but not init.phpThe thing which is actually annoying me is IPB_ACP_DIRECTORY
December 2, 200717 yr Already in the works. Probably, the version numbers, which is why init.php has to be replaced in the first place, will be moved elsewhere. Additionally, if you have to bump the memory limit up, or enable display_errors, init.php is the best place to do it, because that file is basically loaded everywhere..
December 4, 200717 yr Nothing, it just means you won't have to re-perform common edits when upgrading.
Archived
This topic is now archived and is closed to further replies.