'$banner' => array('banner', t("Banner/Logo"), $banner, ""),
'$shortcut_icon' => array('shortcut_icon', t("Shortcut icon"), get_config('system','shortcut_icon'), t("Link to an icon that will be used for browsers.")),
'$touch_icon' => array('touch_icon', t("Touch icon"), get_config('system','touch_icon'), t("Link to an icon that will be used for tablets and mobiles.")),
- '$info' => array('info',t('Additional Info'), $info, sprintf(t('For public servers: you can add additional information here that will be listed at %s/siteinfo.'), get_server())),
+ '$info' => array('info', t('Additional Info'), $info, sprintf(t('For public servers: you can add additional information here that will be listed at %s/siteinfo.'), get_server())),
'$language' => array('language', t("System language"), get_config('system','language'), "", $lang_choices),
'$theme' => array('theme', t("System theme"), get_config('system','theme'), t("Default system theme - may be over-ridden by user profiles - <a href='#' id='cnftheme'>change theme settings</a>"), $theme_choices),
'$theme_mobile' => array('theme_mobile', t("Mobile system theme"), get_config('system','mobile-theme'), t("Theme for mobile devices"), $theme_choices_mobile),
$features = get_features(false);
foreach ($features as $fname => $fdata) {
- foreach (array_slice($fdata,1) as $f) {
+ foreach (array_slice($fdata, 1) as $f) {
$feature = $f[0];
- $feature_state = 'feature_'.$feature;
- $featurelock = 'featurelock_'.$feature;
+ $feature_state = 'feature_' . $feature;
+ $featurelock = 'featurelock_' . $feature;
- if (x($_POST[$feature_state])) {
- $val = intval($_POST['feature_'.$feature]);
+ if (x($_POST, $feature_state)) {
+ $val = intval($_POST[$feature_state]);
} else {
$val = 0;
}
set_config('feature',$feature,$val);
- if (x($_POST[$featurelock])) {
- set_config('feature_lock',$feature,$val);
+ if (x($_POST, $featurelock)) {
+ set_config('feature_lock', $feature, $val);
} else {
- del_config('feature_lock',$feature);
+ del_config('feature_lock', $feature);
}
}
}
$set = $f[3];
}
$arr[$fname][1][] = array(
- array('feature_' .$f[0],$f[1],$set,$f[2],array(t('Off'),t('On'))),
- array('featurelock_' .$f[0],sprintf(t('Lock feature %s'),$f[1]),(($f[4] !== false) ? "1" : ''),'',array(t('Off'),t('On')))
+ array('feature_' .$f[0],$f[1],$set,$f[2],array(t('Off'), t('On'))),
+ array('featurelock_' .$f[0],sprintf(t('Lock feature %s'),$f[1]),(($f[4] !== false) ? "1" : ''),'',array(t('Off'), t('On')))
);
}
}