First cut of field locks support. functional but missing strings and support for LDAP/DB modules.
- Extended set_config() - Implemented get_config() which takes over $CFG loading in setup.php - admin/auth.php has special handling if post vars starting in pluginconfig_ - admin/auth.php print_auth_lock_options() prints a form fragment -- being called from most plugins now - user/edit.php follows the new convention when locking down fields, both javascript UI and on POST.
This commit is contained in:
+1
-15
@@ -147,21 +147,7 @@ global $THEME;
|
||||
|
||||
|
||||
/// Load up any configuration from the config table
|
||||
|
||||
if ($configs = get_records('config')) {
|
||||
$CFG = (array)$CFG;
|
||||
foreach ($configs as $config) {
|
||||
if (!isset($CFG[$config->name])) {
|
||||
$CFG[$config->name] = $config->value;
|
||||
} else {
|
||||
error_log("\$CFG->$config->name in config.php overrides database setting");
|
||||
}
|
||||
}
|
||||
|
||||
$CFG = (object)$CFG;
|
||||
unset($configs);
|
||||
unset($config);
|
||||
}
|
||||
$CFG = get_config();
|
||||
|
||||
/// Turn on SQL logging if required
|
||||
if (!empty($CFG->logsql)) {
|
||||
|
||||
Reference in New Issue
Block a user