I have thought about 2 new constants:
Code: Select all
define('CMSIMPLE_ROOT', str_replace('/'.$sl.'/', "/", $sn)); //for absolute references
define('CMSIMPLE_BASE', (strtolower($cf['language']['default'])==$sl?'./':'./../')); //for relative references
Should we define the constants in the index.php of the Pluginloader? So they would be available, if an user of CMSimple 3.2 updates his PL.