PDA

View Full Version : Sug: config.php variables editable from CP


Jake Bunce
Fri 1st Jun '01, 4:47am
centralized admin, good stuff.

Sug: There should be another variable in the config.php that would allow the config.php settings to be viewable and editable from the CP. (similar to the option for viewing and editing passwords via the CP)

Chris Schreiber
Fri 1st Jun '01, 4:51am
This has been discussed... the only problem with doing this are: security issues with allowing access to the config.php file, and the fact that permission would need to be set on the file to allow writing.

Jake Bunce
Fri 1st Jun '01, 4:55am
ok then :)

Jake Bunce
Fri 1st Jun '01, 5:09am
ah, what about putting the functionality for this in the config.php but then putting #'s in there? This way the option is there for those people who take out the #'s. Also in front of #'s would be notes saying how the permissions for the config.php would need to be set and that this posses a potential security risk.

John
Fri 1st Jun '01, 8:43am
There's very little to change in the config.php file for a first thing.

If you were changing database details, how exactly do you plan to log into the control panel in the first place, if the db details are wrong?

The other couple of options are intentionally in there so that you must have shell/ftp access to the server to change them - security reasons.

So it's not really worth us writing such a thing. However, if you want the code, grab the first couple of steps from install.php, as they can basically do that.

John

Jake Bunce
Fri 1st Jun '01, 4:21pm
ok then :)