From: Charles C. <ch...@ru...> - 2005-01-18 11:53:44
|
I would like the wiki file to specify the location of config.ini. This would allow me to use the clean versions of PhpWiki from CVS without a) having to remember to copy config.ini into the CVS controlled directory each time I get a fresh version (Eclipse deletes my private version of config.ini when I request a refresh from CVS b) when I get CVS-write access, I will not accidentally checkin my private version of config.ini with passwords I think that this facility might also be useful for wikifarms (but others will know better) Patch: index.php - line 36 - replace IniConfig(dirname(__FILE__)."/config/config.ini"); with if (defined('CONFIG_FILE_LOCATION')) { IniConfig(CONFIG_FILE_LOCATION); } else { IniConfig(dirname(__FILE__)."/config/config.ini"); } wiki - line 19 - insert The default location for config.ini is in phpwiki\config\config.ini To define an alternate location for config.ini, insert the following define before 'include "index.php";' and change the path to your required location define('CONFIG_FILE_LOCATION', 'C:\doc_root\config.ini'); If this change is accepted, will need to track down any other places in the code base that refer to config.ini (mostly it is documentation). regards, Charles |