I've got a plugin that provides a variation of the "media" button on the new entry page, letting you use an external gallery as a source of images. The problem is the script includes "serendipity_config.inc.php", which itself looks for "serendipity_config_local.inc.php". But it looks for it in the directory my script is in, which means my script has to be in the serendipity root directory. I'd rather have it in the plugin directory, especially as having it anywhere else would probably break the spartacus compatibility as well as being messy.
Anyway, to get to the point, if I change line 15 of serendipity_config.inc.php (0.8b4) from:
Code: Select all
define('IS_installed', file_exists('serendipity_config_local.inc.php'));
to:
Code: Select all
define('IS_installed', file_exists(S9Y_INCLUDE_PATH . 'serendipity_config_local.inc.php'));
then it works fine with my script in the plugin directory rather than root. Could this be changed or is there some subtle security implication? Is there another way to get the same result without editing any of the core files?