From: Jim Hu <ji...@ta...> - 2005-11-28 15:43:45
|
Last night I was wondering about customizing the webcalendars in different subdirectories specified by cpath. I just realized this is unbelievably easy. I can add this under the code in init.inc.php that sets cpath #this allows you to place a file within a calendar subdirectory to override global settings, or execute local code...e.g. to secure a particular subdirectory. if(is_file("$calendar_path/cpath_config.php")){ include ("$calendar_path/cpath_config.php"); } Then you can just drop a config file into that directory to override whatever you want, insert login code, etc. I think something like this would be useful for anyone who wants to set up a calendar server service. What do you think? Should I add this to CVS? Or is there a better way to do this? Jim |