1

Topic: More reliable forum root

I would appreciate if the standard startup code for any PunBB got tightened up. The code:

if (!defined('FORUM_ROOT'))
    define('FORUM_ROOT', './');

would be much more reliable if rewritten to:

if (!defined('FORUM_ROOT'))
    define('FORUM_ROOT', dirname(__FILE__).'./');

That way a developer could call the forum from any directory, not just from its own directory (it's important for integration into various content management engines).