Lecteur Markdown
Config Documentation En
Feature: Config #
Administration interface for viewing, editing and deleting configuration overrides stored in the database. Allows replacing default configuration file values without modifying code.
Administration interface for viewing, editing and deleting configuration overrides stored in the database. Allows replacing default configuration file values without modifying code.
Via FTP: Upload the config/ directory into /plugins/.
Via package manager: Select config from the available plugins list.
Paths:
/plugins/config/config.php/plugins/config/conf/config.conf.inc.php/plugins/config/lib/config.lib.inc.phpConfiguration parameters (config.conf.inc.php):
| Variable | Default | Description |
|---|---|---|
| $basedatadisplay | 'yes' | Display in management interface |
| $basedisplevel | BASE_LEVEL_ADMIN | Minimum required level |
| $ftype | 3 | Plugin type (system) |
Required SQL table: system_config
Keys containing the following words cannot be edited through this interface:
usr, user, login, key, passwd, password, pass, pwd,
secret, authenticate, token, api_key, private
The plugin automatically detects and restores the PHP type when reading: bool, int, float, array, JSON.
?obj=config.php — Override list
?obj=config.php&cfgact=edit&name=X — Edit form
?obj=config.php&cfgact=save — Save (POST)
?obj=config.php&cfgact=delete&name=X — Delete an override
Beamreactor\Database\SQL — read/write on system_configBeamreactor\Sanitizer\Parser — submitted value sanitisationConfigService (namespace Beamreactor\Config):
| Method | Description |
|---|---|
| get(string $name, $default) | Read a value with database override |
| getAll(bool $sanitized) | Returns all keys with metadata |
| set(string $name, $value, string $about) | Create or update an override |
| delete(string $name) | Delete an override |
| isSensitive(string $name) | Check if the key is protected |