41 parent::__construct();
42 $this->varName =
'cf';
43 $this->params = array(
48 $this->redir =
'?file=config&action=array&xh_success=config';
50 $fn = $pth[
'folder'][
'cmsimple'] .
'metaconfig.php';
51 if (is_readable($fn)) {
54 foreach ($cf as $cat => $opts) {
55 $this->cfg[$cat] = array();
56 foreach ($opts as $name => $val) {
59 if ($cat ==
'security' && $name ==
'type' 60 || $cat ==
'scripting' && $name ==
'regexp' 61 || $cat ==
'site' && $name ==
'title' 66 $omcf = isset($mcf[$cat][$name]) ? $mcf[$cat][$name] : null;
67 $hint = isset($tx[
'help'][
"${cat}_$name"])
68 ? $tx[
'help'][
"${cat}_$name"] : null;
69 $this->cfg[$cat][$name] = $this->option($omcf, $val, $hint);
71 if (empty($this->cfg[$cat])) {
72 unset($this->cfg[$cat]);