X-Git-Url: http://git.roojs.org/?p=pear;a=blobdiff_plain;f=HTML%2FFlexyFramework.php;fp=HTML%2FFlexyFramework.php;h=c1a23e473471f2f619509c06bcac9fc0e21aea4e;hp=3d16bca2cb1970c53e426e54d47e851eff0f09f0;hb=1b3b9698a9eca070153aca7d2c16f9252d288dc5;hpb=f70089226bd74cd0d003516df08eba257ef7c118 diff --git a/HTML/FlexyFramework.php b/HTML/FlexyFramework.php index 3d16bca2..c1a23e47 100755 --- a/HTML/FlexyFramework.php +++ b/HTML/FlexyFramework.php @@ -213,7 +213,15 @@ RewriteRule ^(.+)$ /web.hpasite/index.local.php [L,NC,E=URL:$1] } $proj = $cfg['project']; $rootDir = realpath(dirname($_SERVER["SCRIPT_FILENAME"])); - + $cls = $proj.'_Config'; + if (file_exists($rootDir . '/'.str_replace('_','/', $cls). '.php')) { + require_once str_replace('_','/', $cls). '.php'; + $c = new $cls(); + if (method_exists($c,'init')) { + $cfg = $c->init($this,$cfg); + } + } + foreach(explode(',',$cfg['enable']) as $m) { $cls = $proj.'_'. $m . '_Config';