Relocate config.php to the index folder
Brought to you by:
canajun2eh,
yalnifj
I have numerously over-written my config.php file while
upgrading updating etc. So I got to thinking that if the
config.php file was modified from default settings at all,
it should be then stored in the index folder.
A routine could be moddified to look there first and
validate the config.php options. If the options test as
invalid for whatever reason, The default config.php.
This is much like what is done with lang_settings.php
when settings are moddified.
This could prevent the novice pgv admin from getting
scared off.
Thanks
John
Logged In: YES
user_id=300048
This would already be done if the location of the index
directory were not specified by the $INDEX_DIRECTORY
variable defined in the config.php file.
--John
Logged In: YES
user_id=634811
can we at least try to see if the index dir is at the
default location (most cases I think) and possibly prompt
the user for the location of the index dir if it isnt in the
default location?
Logged In: YES
user_id=152229
What about this idea?
- /index is assumed to be the standard index dir
- On the first configuration the changed config file will be
copied to the index directory.
- This means PGV will always try to find a config.php in the
standard index dir.
- If this file is not found, PGV tries to use the config.php in
the root dir.
- if config.php in the root dir is not found an error message is
displayed and PGV stops.
- For further changes PGV uses the found config.php,
normally the one in the index dir, else the one in the root dir.