var $appModules = '';
+ var $authUser; // always contains the authenticated user..
+
/**
{
// appModules/appDisable contain a comma limited list of
// both modules and components that can be enabled/disabled..
-
+ $boot = HTML_FlexyFramework::get();
+
// the modules call just lists the modules
$enabled = array('Core' => true);
- $am = !empty($this->appModules) ? explode(',', $this->appModules) : array();
+ $am = !empty($boot->enable) ? explode(',', $boot->enable) : array();
foreach($am as $k) {
if (strpos( $k ,'.') ) {
continue;
}
$enabled[$k] = true;
}
- $disabled = explode(',', $this->appDisable ? $this->appDisable: '');
+
+
+ $disabled = !empty($boot->disable) ? explode(',', $boot->disable) : array();
foreach($disabled as $k) {
- if (!$with_component && strpos( $k ,'.') ) {
+ if ( strpos( $k ,'.') ) {
continue;
}
if (isset($enabled[$k])) {
unset($enabled[$k]);
- }
-
+ }
}
+ //echo '<PRE>'; var_Dump($enabled);
+
return array_keys($enabled);
}
) {
header('Content-type: text/html');
echo "<HTML><HEAD></HEAD><BODY>";
- echo $json->encodeUnsafe(array('success'=> true, 'data' => $str));
+ // encode html characters so they can be read..
+ echo str_replace(array('<','>'), array('\u003c','\u003e'),
+ $json->encodeUnsafe(array('success'=> true, 'data' => $str)));
echo "</BODY></HTML>";
exit;
}